Iomage IX2 really old uboot March 26, 2022 12:23AM |
Registered: 5 years ago Posts: 20 |
setenv bootargs_console 'console=ttyS0,115200' setenv bootcmd_ide0 'ide reset; ext2load ide 0:1 0x800000 /boot/uImage; ext2load ide 0:1 0x2100000 /boot/uInitrd' setenv bootcmd_ide1 'ide reset; ext2load ide 1:1 0x800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd' setenv bootcmd_stock 'nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x2100000' setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_ide1; run bootcmd_ide0; run bootcmd_stock'This works and I tested it by having two identical boot drives. It still booted with one or the other removed. Since the idea was to make the rootfs into a RAID 1, this should be fine but it seems a bit clunky. Is there a better way to get uboot to choose a boot drive?
Re: Iomage IX2 really old uboot March 26, 2022 03:42PM |
Admin Registered: 13 years ago Posts: 19,207 |
setenv bootcmd 'mw 0x800000 0 1; run bootcmd_drive_0; mw 0x800000 0 1; run bootcmd_drive_1; mw 0x800000 0 1; run boocmd_nand; reset'mw 0x800000 0 1 is the old trick that seems to work in very old u-boot, that makes sure the memory is clear (there must have been a bug in those u-boot versions).
Re: Iomage IX2 really old uboot March 27, 2022 02:34PM |
Registered: 5 years ago Posts: 20 |