[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:hardware:arm:sone_u-boot_hints [2013/12/22 10:17 (UTC)] – created louigi600 | howtos:hardware:arm:sone_u-boot_hints [2013/12/22 10:36 (UTC)] – [Sources] louigi600 | ||
---|---|---|---|
Line 8: | Line 8: | ||
* uImage and uinitrd must be contained in the first 4 detected usb devices | * uImage and uinitrd must be contained in the first 4 detected usb devices | ||
* uImage and uinitrd must be in the root or in a boot sub-directory in the device that holds them | * uImage and uinitrd must be in the root or in a boot sub-directory in the device that holds them | ||
- | * the root filesystem bust be labelled " | + | * the root filesystem bust be labelled " |
- | Heres the environment dumped from fw_printenv: | + | Heres the environment dumped from fw_printenv: |
- | arcNumber=3089 | + | arcNumber=<put here your device' |
baudrate=115200 | baudrate=115200 | ||
boot_flash_kernel=nand read $flash_kernel_load_addr $flash_kernel_offest $flash_kernel_size; | boot_flash_kernel=nand read $flash_kernel_load_addr $flash_kernel_offest $flash_kernel_size; | ||
Line 45: | Line 45: | ||
usb_dev_part=1 | usb_dev_part=1 | ||
usb_part_list=4 3 2 1 | usb_part_list=4 3 2 1 | ||
- | usb_scan=usb start; setenv usb_boot_dev none; for dev in $usb_dev_list; | + | usb_scan=usb start; setenv usb_boot_dev none; for dev in $usb_dev_list; |
- | bootm $usb_boot_address ; fi; | + | |
+ | Labeling the root filesystem was a workaround when I started getting issues on device namings changes as I began using the SATA drives for NAS storage. In practice what was happening was that uboot thought that root was on sda but once the kernel booted it would detect the SATA drives before that and name the usb memory stick to after the last SATA drive causing a kernel panic as initrd attempts to mount the root filesystem. | ||
+ | I thus changed the u-boot environment to pass the root device as a label rather then a device path. This allows me to boot my GoFlexNet correctly from any usb stick (even trough a usb hub) regardless of the presence of the SATA drives. | ||
====== Sources ====== | ====== Sources ====== | ||
Line 60: | Line 60: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |