Forums

Uboot keeps booting from 0x0 ignoring kerneloffset

  • I've installed the kernel on my leopard board but I'm unable to boot the

    kernel. I investigated a bit and it seems uboot ignores the kerneloffeset enviroment

    variable and keep booting at 0x0. Following is the output of uboot.

    http://pastebin.com/EHwDpFqh

    As you can see, if I run boot (which in turns run nboot \${loadaddr} 0 \${kerneloffset} ) it

    jumps at 0x0, even though kerneloffset=0x400000) and so it fails, but if I run nboot

    manually the kernel starts.

    Any idea/suggestions?

    Thanks in advance.

  • You mise-named your loadaddr :

    in your printenv it is "kernelloadaddr"

    And you are using "loadaddr".

    In fact, your test when typing the command yourself is not showing it because you put the adress and offset as hexadecimal numbers and not call of variables ${loadaddr}.

  • Yes, I realized that after writing this post. However even after defining loadaddr with the same value of kerneladdr, it still

    didn't boot. I had to reset the bootcmd with the hardcoded address to make it work.