Hi David, david wrote: > After compiling up barebox 2012.08, I've managed to get the framebuffer > working and displaying graphics. The issue I have now is that barebox won't > boot from my SD card. The startup script gives this error: > > ... > running /env/bin/init... > > Hit any key to stop autoboot: 1 > error: set kernel_loc to one of tftp, nfs, nand, nor or disk > > If I edit the /env/config file to set kernel_loc to disk then on boot it > does the following: > > ... > running /env/bin/init... > > Hit any key to stop autoboot: 1 > booting kernel from /dev/ > > :/
Take a look into the "/env/bin/boot" script in Barebox, and compare the used device names with available devices names in the "dev/" directory. > Then it will dump me to the barebox prompt. The only progress I've made is > that I can load the kernel by doing 'bootm /dev/disk0.0' but that ends up > throwing this error trying to mount the root filesystem: > > VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 > Please append a correct "root=" boot option; here are the available > partitions: > 1f00 256 mtdblock0 (driver?) > 1f01 128 mtdblock1 (driver?) > 1f02 5120 mtdblock2 (driver?) > 1f03 256640 mtdblock3 (driver?) > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(0,0) > Function entered at [<c000dc54>] from [<c0294588>] > Function entered at [<c0294588>] from [<c0324ac0>] > Function entered at [<c0324ac0>] from [<c0324bf0>] > Function entered at [<c0324bf0>] from [<c0324d2c>] > Function entered at [<c0324d2c>] from [<c028f5f8>] > Function entered at [<c028f5f8>] from [<c0009190>] > > How would I go about fixing this problem? Thanks. This looks like the kernel does not see the SD card, or the kernel command line is wrong or simply missing. Please send us the whole log output from switching on your target up to the crashing kernel. To be able to help you, we need as much context information as possible. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
