Welcome! Log In Create A New Profile

Advanced

U-Boot 2015.10 for Iomega HMNHDCE

Posted by mari8b 
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 22, 2019 09:52AM
Hi bodhi!

I did all what you instructed. my ls -larth /mnt/boot output is:

total 8.3M
-rwxr-xr-x  1 root root  16K Dec 31  1969 u-boot.env
drwxr-xr-x  2 root root 4.0K Aug  3  2014 dts
-rwxr-xr-x  1 root root  32K Aug  3  2014 u-boot-spl.bin
-rw-r--r--  1 root root 514K Aug  3  2014 u-boot.img
-rw-r--r--  1 root root 2.2M Aug  3  2014 uImage_2.6.31.14_OX820_1.2_shv.Pro
-rw-r--r--  1 root root 3.6M Aug  3  2014 uImage
-rw-r--r--  1 root root 2.1M Aug  3  2014 uInitrd
drwxr-xr-x  3 root root 4.0K Aug  3  2014 .
drwxr-xr-x 23 root root 4.0K Jul 22 10:17 ..

and my boot is:

U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: WDC WD800JD-75MSA3 Firm: 10.01E04 Ser#:  WD-WMAM9AR84678
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
NAND:  16 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  3 ^H^H^H 0
OX820 # setenv uinitrd_addr '0x60e00000'
OX820 # setenv uimage_addr '0x60500000'
OX820 # setenv dtb_addr '0x62c00000'
OX820 # setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10'
OX820 # setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
OX820 # setenv dt_load_dtb 'ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
OX820 # setenv dt_load_initrd 'ext2load ide 0:1 $uinitrd_addr /boot/uInitrd'
OX820 # setenv dt_load_uimage 'ext2load ide 0:1 $uimage_addr /boot/uImage'
OX820 # setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
OX820 # setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
OX820 # setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
OX820 # setenv bootcmd 'run dt_bootcmd_ide'
OX820 # boot

Reset IDE: Bus 0: OK
  Device 0: Model: WDC WD800JD-75MSA3 Firm: 10.01E04 Ser#:  WD-WMAM9AR84678
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
3676848 bytes read in 830 ms (4.2 MiB/s)
2103272 bytes read in 463 ms (4.3 MiB/s)
7029 bytes read in 28 ms (245.1 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-3.12.13-oxnas-tld-5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3676784 Bytes = 3.5 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... Bad Data CRC

Led:    ORANGE (Failed)

and this output without seting environment:

U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  128 MiB   
IDE:   Bus 0: OK 
  Device 0: Model: WDC WD800JD-75MSA3 Firm: 10.01E04 Ser#:  WD-WMAM9AR84678
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
NAND:  16 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0
ide - IDE sub-system

Usage:
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
    to/from memory address `addr'
2212156 bytes read in 500 ms (4.2 MiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-2.6.31.14_OX820_1.2_shv
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2212092 Bytes = 2.1 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux.......................................................................................................................................

crc error

 -- System halted
Do you think I should try spl fo pogoplug classic? If so could you please give me a link (I can't find it anywhere in the forum).
And can you please give me direction how I can compile 1st stage, 2nd stage and all uboot things myself. I see so many devices have very good uboot updates, but poor iomega HMNHDCE is a red headed cousin nobody wants to play with ;)) but I think iomega HMNHDCE is better than pogoplug (more ram, housing for 3.5 hdd, now nand under the hood (16Gb maby), and I've installed fan (fan speed control coming soon), wi-fi and bluetooth can be on usb, and more)

I found the way how to compile u-boot.env from *.txt. Could you please give example for simple environment settings to boot to sata/usb. From there I'll go for unbriking nand tutorial.

thank you!



Edited 3 time(s). Last edit at 07/22/2019 12:44PM by sobir.
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 23, 2019 05:19AM
sobir,

> Do you think I should try spl fo pogoplug classic?

No, that's no the problem.

> If so could you please give me a link (I can't
> find it anywhere in the forum).
> And can you please give me direction how I can
> compile 1st stage, 2nd stage and all uboot things
> myself.

I don't have any written instruction for this.

Your file system seems to shows problem.

On disk it is 3.6M
-rw-r--r--  1 root root 3.6M Aug  3  2014 uImage

While it is loading it is 3.5M
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-3.12.13-oxnas-tld-5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3676784 Bytes = 3.5 MiB
   Load Address: 60008000

===

What I would suggest is:

- Create 2 partitions on you HDD.
- Format both as Ext3.
- Going through the same procedure for boot with SPL and u-boot on HDD using sda1.
- As root user, extract Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 from the release thread to sda2.

And then adjust the boot envs as followed:

OX820 # setenv uinitrd_addr '0x60e00000'
OX820 # setenv uimage_addr '0x60500000'
OX820 # setenv dtb_addr '0x62c00000'
OX820 # setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootdelay=10'

OX820 # setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'

OX820 # setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
OX820 # setenv dt_load_initrd 'ext2load ide 0:2 $uinitrd_addr /boot/uInitrd'
OX820 # setenv dt_load_uimage 'ext2load ide 0:2 $uimage_addr /boot/uImage'

OX820 # setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
OX820 # setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
OX820 # setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
OX820 # setenv bootcmd 'run dt_bootcmd_ide'

And then try booting with it. Once it can boot into the rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2, we can further refine the envs to make it more robust.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 23, 2019 04:30PM
Hi bodhi!

here is the result:

U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: WDC WD800JD-75MSA3 Firm: 10.01E04 Ser#:  WD-WMAM9AR84678
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
NAND:  16 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0
OX820 # setenv uinitrd_addr '0x60e00000'
OX820 # setenv uimage_addr '0x60500000'
OX820 # setenv dtb_addr '0x62c00000'
OX820 # setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootdelay=10'
OX820 # setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
OX820 # setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
OX820 # setenv dt_load_initrd 'ext2load ide 0:2 $uinitrd_addr /boot/uInitrd'
OX820 # setenv dt_load_uimage 'ext2load ide 0:2 $uimage_addr /boot/uImage'
OX820 # setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
OX820 # setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
OX820 # setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
OX820 # setenv bootcmd 'run dt_bootcmd_ide'
OX820 # boot
Reset IDE: Bus 0: OK
  Device 0: Model: WDC WD800JD-75MSA3 Firm: 10.01E04 Ser#:  WD-WMAM9AR84678
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
4621824 bytes read in 1025 ms (4.3 MiB/s)
4594376 bytes read in 1025 ms (4.3 MiB/s)
7067 bytes read in 35 ms (196.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.54-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4621760 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes = 4.4 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 679c6000, end 67e27a88 ... OK
   Loading Device Tree to 679c1000, end 679c5b9a ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported processor variant (0x410fb025).

I also have one more question. I accidentally disconnected anothe hdd while dd zeroing was in process. Now gpt partition table is not recognized by iomega and no boot, although my linux PC have no problems recognizing evrything. How to unbrick hdd? I remade gpt label many times, no luck. Ironically oldzeus's uboot works fine on this hdd.

U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK 
  Device 0: 
GPT: last_usable_lba incorrect: 15D50A38E > 5D50A3B0
get_partition_info_efi: *** ERROR: Invalid GPT ***
** Partition 1 not valid on device 0 **
### ERROR ### Please RESET the board ###


Thank you!



Edited 2 time(s). Last edit at 07/23/2019 10:57PM by sobir.
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 24, 2019 11:38PM
sobir,

Try booting with whatever DTB olderzeus used for this box.

https://github.com/olderzeus/Iomega-HMNHDCE

The Pogo Pro DTB might not be the correct one. So replace it with one you can find from olderzeus's GitHub.
OX820 # setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 24, 2019 11:40PM
Hi bodhi!
I found this
Quote
Openwrt
no PCIe on OX820/NAS7820, 1x PCIe on OX821/NAS7821, 2x PCIe on NAS7825
so conclusion is pogoplug pro has oxnas7821 cpu and iomega HMNHDCE, pogoplug v3 and ZyXEL NSA-212 / MitraStra STG-212 are oxnas7820 cpu. I have to try pogoplug-classic



Edited 4 time(s). Last edit at 07/25/2019 02:10AM by sobir.
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 25, 2019 03:25AM
sobir,

> I have to try
> pogoplug-classic

That's correct.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 25, 2019 04:23AM
So to try, change this env:

setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb'

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 26, 2019 11:10AM
Hi bodhi!
I tried with ox820-pogoplug-classic.dtb no luck, same thing. I'll try with oldzeus's dtb which, I suspect, is file named u-boot.md.wrapped? If no luck there then I will contact openwrt and willing to donate them my board so they can compile all u-boot needed.

By the way I always have checksum verification failing with
setenv uinitrd_addr '0x60e00000'
setenv uimage_addr '0x60500000'
setenv dtb_addr '0x62c00000'
setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootdelay=10'
setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb'
setenv dt_load_initrd 'ext2load ide 0:2 $uinitrd_addr /boot/uInitrd'
setenv dt_load_uimage 'ext2load ide 0:2 $uimage_addr /boot/uImage'
setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
setenv bootcmd 'run dt_bootcmd_ide'

But if I skip addressation and just use this
setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootdelay=10'
setenv dt_load_dtb 'ext2load ide 0:2 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb'
setenv dt_load_initrd 'ext2load ide 0:2 $uinitrd_addr /boot/uInitrd'
setenv dt_load_uimage 'ext2load ide 0:2 $uimage_addr /boot/uImage'
setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
setenv bootcmd 'run dt_bootcmd_ide'
checksum verification is Ok. I think different memory chip configuration and different gpio connection on processor makes u-boot addressation confused. What makes me think that I definitely need spl from openwrt guys specific to iomega HMNHDCE board.
Anyway thank you bodhi for your support and help.
If you can give me hint how to and who to contact in openwrt so I could ship my device to.
Thank you again!



Edited 1 time(s). Last edit at 07/26/2019 11:11AM by sobir.
Re: U-Boot 2015.10 for Iomega HMNHDCE
July 26, 2019 11:50AM
sobir,

> If you can give me hint how to and who to contact
> in openwrt so I could ship my device to.

I don't have any OpenWrt contact. I guess you can try their website.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: