[U-Boot] Trouble "booting using board info"
Mikhail Zaturenskiy
mzaturenskiy.st at gmail.com
Tue Jun 30 20:30:40 CEST 2009
>> If you have CONFIG_OF_BOARD_SETUP defined (if you don't that probably is the
>> answer to your missing #define question), you can run
>> fdt boardsetup
>> and then
>> fdt print /
>> to see what the fixed up tree looks like.
> No I do not have this defined, when I include it I cannot compile
> u-boot, errors out like this:
> common/libcommon.a(cmd_fdt.o): In function `do_fdt':
> /home/devone/embedded/orbitServer/u-boot-2009.03/common/cmd_fdt.c:437:
> undefined reference to `ft_board_setup'
> lib_ppc/libppc.a(bootm.o): In function `boot_body_linux':
> /home/devone/embedded/orbitServer/u-boot-2009.03/lib_ppc/bootm.c:272:
> undefined reference to `ft_board_setup'
> make: *** [u-boot] Error 1
Got it... thanks to
"http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg05111.html".
I added the following to the very end of
"u-boot-2009.03/board/ep88x/ep88x.c":
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
void ft_board_setup(void *blob, bd_t *bd)
{
ft_cpu_setup(blob, bd);
}
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
>> You can also run the bootm command step-by-step (some steps may not apply to
>> your board)...
>>
>> bootm start
>> bootm loados
>> bootm ramdisk
>> bootm fdt
>> bootm bdt
>> bootm cmdline
>> bootm prep
>>
>> Print out the tree:
>> fdt print /
>>
>> (last step is...)
>> bootm go
> I didn't realize I could do this! Thanks!
> After "bootm start 400000 - 750000" I'm able to do a "fdt print" to
> see the fdt I passed in, thought for some reason when I run "bootm
> loados" it never gets past "Uncompressing Kernel Image..." any idea
> why? It doesn't freeze here when I do "bootm 400000 - 750000".
>
u-boot's "fdt" and step-by-step "bootm" are still giving me a hard
time, but I don't really care anymore at this point as I'm finally
getting my console output and can move on to debugging my linux kernel
and adding a file system.
Thanks for suggestions!
More information about the U-Boot
mailing list