Unbrick a Pogoplug Pro (v3/OXNAS?) November 19, 2017 07:16PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 19, 2017 09:35PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 19, 2017 11:12PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 20, 2017 12:04AM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 04:47PM |
Registered: 6 years ago Posts: 44 |
maldridge@deepblue:~/Downloads/oxnas/workdir$ sudo ./disk_create 0+1 records in 0+1 records out 444 bytes copied, 0.00790116 s, 56.2 kB/s Writing stage 1 14+1 records in 14+1 records out 7576 bytes (7.6 kB, 7.4 KiB) copied, 0.00496056 s, 1.5 MB/s Writing uboot 253+1 records in 253+1 records out 129852 bytes (130 kB, 127 KiB) copied, 0.0348114 s, 3.7 MB/s Writing kernel to 4164+1 records in 4164+1 records out 2132324 bytes (2.1 MB, 2.0 MiB) copied, 0.8046 s, 2.7 MB/s maldridge@deepblue:~/Downloads/oxnas/workdir$ sudo sync maldridge@deepblue:~/Downloads/oxnas/workdir$ sudo mount /dev/sdb1 /mnt mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 04:58PM |
Admin Registered: 13 years ago Posts: 18,548 |
fdisk -l
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 05:14PM |
Registered: 6 years ago Posts: 44 |
Disk /dev/sdb: 74.5 GiB, 80026361856 bytes, 156301488 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00008000 Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 146802687 146800640 70G 83 Linux /dev/sdb2 146802688 156301487 9498800 4.5G 82 Linux swap / Solaris
#!/bin/sh # uncomment line below and set to the correct disk disk=/dev/sdb if [ -z "${disk}" ] ; then echo "You must uncomment/set the 'disk' variable" exit -1 fi workarea="." stage1File=$workarea/stage1.wrapped ubootFile=$workarea/u-boot.wrapped kernelFile=$workarea/uImage perl <<EOF | dd of="$disk" bs=512 print "\x00" x 0x1a4; print "\x00\x5f\x01\x00"; print "\x00\xdf\x00\x00"; print "\x00\x80\x00\x00"; print "\x00" x (0x1b0 -0x1a4 -12 ); print "\x22\x80\x00\x00"; print "\x22\x00\x00\x00"; print "\x00\x80\x00\x00"; EOF if [ -f $stage1File ];then echo "Writing stage 1" dd if=$stage1File of="$disk" bs=512 seek=34 fi if [ -f $ubootFile ];then echo "Writing uboot" dd if=$ubootFile of="$disk" bs=512 seek=154 fi if [ -f $kernelFile ];then echo "Writing kernel to " dd if=$kernelFile of="$disk"1 bs=512 fi
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 06:50PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 07:27PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 07:51PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 07:52PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 10:05PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 25, 2017 10:07PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 28, 2017 09:45PM |
Registered: 6 years ago Posts: 44 |
U-Boot 1.1.2 (Dec 31 2011 - 15:24:45) U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Setting Linux mem= boot arg value IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK Hit any key to stop autoboot: 0 Loading from IDE device 0, partition 2: Name: hda2 Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011 Attempting to set PLLA to 850MHz ... plla_ctrl0 : 0x0000020A plla_ctrl1 : 0x00330000 plla_ctrl2 : 0x0065008B plla_ctrl3 : 0x000000F1 PLLA Set Setup memory, testing Reading disk 0, Image 0 Sector : 0x0000009A Hdr len: 0x0001FB34 Hdr CRC: 0x2229BDCD OK Initialising disks SATA PHY not ready for device 1 Detecting SATA busses: Bus 0: Found first device OK Device 0: Model: ST980817AS Firm: 3.CMF Ser#: 5RE1XNLE Type: Hard Disk Capacity: 76319.0 MB = 74.5 GB (156301488 x 512) Device 1: not available Failed to read valid environment from disk, using built-in default U-Boot 1.1.2 (Dec 31 2011 - 15:24:45) U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Setting Linux mem= boot arg value IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK Hit any key to stop autoboot: 0 Loading from IDE device 0, partition 2: Name: hda2 Type: U-Boot ** Bad Magic Number ** Unknown command 'lightled' - try 'help'
$ printenv bootcmd=run dload1 boot || run dload2 boot || lightled bootdelay=2 baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=172.31.0.128 serverip=172.31.0.100 autoload=n netmask=255.255.0.0 bootfile="uImage" lightled=ledfail 1 extinguishled=ledfail 0 boot=bootm 60500000 dload1=diskboot 60500000 0:1 dload2=diskboot 60500000 0:2 root_dev1=/dev/sda2 root_dev2=/dev/sda1 root_dev=/dev/sda2 stdin=serial stdout=serial stderr=serial bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=128M poweroutage=yes Environment size: 565/8188 bytes
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 28, 2017 11:15PM |
Admin Registered: 13 years ago Posts: 18,548 |
Quote
> U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)
>
> U-Boot code: 60E00000 -> 60E1FB34 BSS: ->
> 60E5435C
> RAM Configuration:
> Bank #0: 60000000 128 MB
> SRAM Configuration:
> 64KB at 0x50000000
> NAND:128 MiB
> *** Warning - bad CRC, using default environment
>
> In: serial
> Out: serial
> Err: serial
> Setting Linux mem= boot arg value
>
> IDE read: device 0 block # 288, count 1 ... 1
> blocks read: OK
> Hit any key to stop autoboot: 0
>
> Loading from IDE device 0, partition 2: Name:
> hda2
> Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011
> Attempting to set PLLA to 850MHz ...
> plla_ctrl0 : 0x0000020A
> plla_ctrl1 : 0x00330000
> plla_ctrl2 : 0x0065008B
> plla_ctrl3 : 0x000000F1
> PLLA Set
>
> Setup memory, testing
> Reading disk 0, Image 0
> Sector : 0x0000009A
> Hdr len: 0x0001FB34
> Hdr CRC: 0x2229BDCD
> OK
> Initialising disks
> SATA PHY not ready for device 1
> Detecting SATA busses:
> Bus 0: Found first device OK
> Device 0: Model: ST980817AS Firm: 3.CMF Ser#:
> 5RE1XNLE
> Type: Hard Disk
> Capacity: 76319.0 MB = 74.5 GB
> (156301488 x 512)
> Device 1: not available
/boot/u-boot.env
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 28, 2017 11:35PM |
Registered: 6 years ago Posts: 44 |
maldridge@deepblue:~$ sha256sum /mnt/boot/u-boot-spl.bin 70d359b639d28b8b6c701f1aea1ef47f849c3b7922ba92809afece99ff76f431 /mnt/boot/u-boot-spl.bin maldridge@deepblue:~$ sha256sum Downloads/oxnas/ox820-sata-uboot/u-boot-spl.bin 70d359b639d28b8b6c701f1aea1ef47f849c3b7922ba92809afece99ff76f431 Downloads/oxnas/ox820-sata-uboot/u-boot-spl.bin maldridge@deepblue:~$ sha256sum /mnt/boot/u-boot.env 763f5290ec8fb0beea5fbfaa9c10c8452d6d21949d3011d2af2abf692ac88d30 /mnt/boot/u-boot.env maldridge@deepblue:~$ sha256sum Downloads/oxnas/ox820-sata-uboot/u-boot.env 763f5290ec8fb0beea5fbfaa9c10c8452d6d21949d3011d2af2abf692ac88d30 Downloads/oxnas/ox820-sata-uboot/u-boot.env maldridge@deepblue:~$ sha256sum /mnt/boot/u-boot.img 095821b1a9877c26d31c08f6af3d238a846c67fce7f3a6dbf96dab48d74441bd /mnt/boot/u-boot.img maldridge@deepblue:~$ sha256sum Downloads/oxnas/ox820-sata-uboot/u-boot.img 095821b1a9877c26d31c08f6af3d238a846c67fce7f3a6dbf96dab48d74441bd Downloads/oxnas/ox820-sata-uboot/u-boot.img
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 12:11AM |
Admin Registered: 13 years ago Posts: 18,548 |
Hit any key to stop autoboot: 0 Loading from IDE device 0, partition 2: Name: hda2 Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011 Attempting to set PLLA to 850MHz ... plla_ctrl0 : 0x0000020A plla_ctrl1 : 0x00330000 plla_ctrl2 : 0x0065008B plla_ctrl3 : 0x000000F1 PLLA Set Setup memory, testing Reading disk 0, Image 0 Sector : 0x0000009A Hdr len: 0x0001FB34 Hdr CRC: 0x2229BDCD OK Initialising disks SATA PHY not ready for device 1 Detecting SATA busses: Bus 0: Found first device OK Device 0: Model: ST980817AS Firm: 3.CMF Ser#: 5RE1XNLE Type: Hard Disk Capacity: 76319.0 MB = 74.5 GB (156301488 x 512) Device 1: not available Failed to read valid environment from disk, using built-in defaultit means SPL has booted successfully, and it tried to find the u-boot.env file from disk.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 12:19AM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 04:09AM |
Admin Registered: 13 years ago Posts: 18,548 |
total 8404 drwxr-xr-x 3 root root 4096 Nov 28 21:59 . drwxr-xr-x 3 root root 4096 Jun 1 2016 .. drwxr-xr-x 2 root root 4096 Aug 3 2014 dts -rwxr-xr-x 1 root root 16384 Dec 31 1969 u-boot.env -rw-r--r-- 1 root root 525880 Aug 3 2014 u-boot.img -rwxr-xr-x 1 root root 32120 Aug 3 2014 u-boot-spl.bin -rw-r--r-- 1 root root 3676848 Aug 3 2014 uImage -rw-r--r-- 1 root root 2212156 Aug 3 2014 uImage_2.6.31.14_OX820_1.2_shv.Pro -rw-r--r-- 1 root root 2103272 Aug 3 2014 uInitrd
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 01:57PM |
Registered: 6 years ago Posts: 44 |
maldridge@deepblue:~$ ls -l Downloads/oxnas/ox820-sata-uboot/ total 8380 drwxr-xr-x 2 maldridge maldridge 4096 Aug 3 2014 dts -rwxr-xr-x 1 maldridge maldridge 32120 Aug 3 2014 u-boot-spl.bin -rwxr-xr-x 1 maldridge maldridge 16384 Dec 31 1969 u-boot.env -rw-r--r-- 1 maldridge maldridge 525880 Aug 3 2014 u-boot.img -rw-r--r-- 1 maldridge maldridge 3676848 Aug 3 2014 uImage -rw-r--r-- 1 maldridge maldridge 2212156 Aug 3 2014 uImage_2.6.31.14_OX820_1.2_shv.Pro -rw-r--r-- 1 maldridge maldridge 2103272 Aug 3 2014 uInitrd
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 07:59PM |
Admin Registered: 13 years ago Posts: 18,548 |
maldridge@deepblue:~$ ls -l Downloads/oxnas/ox820-sata-uboot/ total 8380 drwxr-xr-x 2 maldridge maldridge 4096 Aug 3 2014 dts -rwxr-xr-x 1 maldridge maldridge 32120 Aug 3 2014 u-boot-spl.bin -rwxr-xr-x 1 maldridge maldridge 16384 Dec 31 1969 u-boot.env -rw-r--r-- 1 maldridge maldridge 525880 Aug 3 2014 u-boot.img -rw-r--r-- 1 maldridge maldridge 3676848 Aug 3 2014 uImage -rw-r--r-- 1 maldridge maldridge 2212156 Aug 3 2014 uImage_2.6.31.14_OX820_1.2_shv.Pro -rw-r--r-- 1 maldridge maldridge 2103272 Aug 3 2014 uInitrd
Quote
https://forum.doozan.com/read.php?3,16017,17297#msg-17297
But if you put the right stage1 bootloader and the right uboot to your SATA drive it might boot with them. You can't use the files which are provided here for Flash install. Moreover you must put the stage1 bootloader to your drive as it is done by OXNAS-SATA-Boot skript from ALARM forum. The uboot can be put to the filesystem of the first partition (Fat32 or ext4 depends on the stage1 loader).
I tested the following setups:
sda1: just für boot files like u-boot.img, u-boot.env, uImage, uInitrd (ext4 or fat32)
sda2: rootfs (ext3 or ext4)
sda3: linux swap partition
sda4: data (ext4)
or
sda1: rootfs including boot files (ext4)
sda2: linux swap partition
sda3: data (ext4)
For both setups you can use the same stage1 bootloader (u-boot-spl.bin) which reads the boot files from and stores boot environment to the first ext4 partition of the SATA drive. The device must support 512 Byte sector size either natively or by simulation.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 08:31PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 09:27PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 09:28PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 09:35PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 09:37PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 29, 2017 10:13PM |
Registered: 6 years ago Posts: 44 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) November 30, 2017 01:05AM |
Admin Registered: 13 years ago Posts: 18,548 |
U-Boot 1.1.2 (Dec 31 2011 - 15:24:45) U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C RAM Configuration: Bank #0: 60000000 128 MB SRAM Configuration: 64KB at 0x50000000 NAND:128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Setting Linux mem= boot arg value IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK Hit any key to stop autoboot: 0
help
ide reset ide part usb start usb part source nand erase ext2load nand write
printenv
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) December 01, 2017 04:20PM |
Admin Registered: 13 years ago Posts: 18,548 |
Re: Unbrick a Pogoplug Pro (v3/OXNAS?) December 01, 2017 04:56PM |
Registered: 6 years ago Posts: 44 |