Booting mx25 based device from SD and NOR
rnibali at gmail.com
Thu May 24 09:18:13 EDT 2012
On Thu, May 24, 2012 at 2:58 PM, Eric Bénard <eric at eukrea.com> wrote:
> Hi Roberto,
> Le Thu, 24 May 2012 14:49:36 +0200,
> Roberto Nibali <rnibali at gmail.com> a écrit :
> > I haven't found a combination of root/rootfstype yet that permits me to
> > boot from barebox either from NFS, TFTP, MMC/SD or NOR yet. No matter
> > I try, the kernel spits back at me.
> well NAND boot + nand rootfs works fine here (cpuimx25) and I assume
> NAND boot + sd rootfs would work as sd is properly detected during boot.
> Yep, I believe it's more a question of me setting the parameters correctly
upon boot. But without a proper low level init (which I don't have because
I do not really understand all the details of the low level code), there
are other factors which could inhibit the proper boot, as you mention below.
> > Also I have the problem that my NOR is only detected when using barebox
> > a second stage boot loader from uboot. If booting from SD into barebox,
> > NOR is not detected. I have added the following changes to figure out
> > what's going on:
> > .../...
> > What's going on here?
> bad iomux and/or bad WEIM configuration
I support WEIM configuration is done in the low level part, isn't it? Where
would I find an appropriate example? I have been reading all the fsl
board's low_level codes, but have a hard time figuring out how to apply it
to my board.
With regard to the IOMUX, I was under the impression that it does not
matter much, since after low level code run, the execution path is:
device_initcall() --> add_cfi_flash_device()
console_initcall() --> mxc_iomux_v3_setup_multiple_pads()
So CFI/NOR detection happens before IOMUX setup, at least that's what I
have gathered for my board copying from various other examples in barebox.
What would the correct code execution path be from the architectural point
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the barebox