On Wed, May 7, 2014 at 3:05 PM, Thomas Petazzoni thomas.petazzoni@free-electrons.com wrote:
On Wed, 07 May 2014 12:59:41 -0700, Kevin Hilman wrote:
[...]
Hmm, if atags are not used, then u-boot will not be able to pass an initramfs in memory. That's a bit of a problem for my current setup.
I rely on initramfs because MMC and NFS rootfs setups break rather often, so I like to rely on initramfs, and then switch_root to MMC/NFS.
Hum, I see. Unfortunately, my understanding is that there is no support in the kernel for reading little-endian ATAGs when the kernel is built big-endian. There are some patches available to do that, but I think the general opinion was that BE support on ARMv7 is sufficiently new that we expected a DT-capable bootloader. It turns out that this is not really true :/
For those platforms, maybe you could use an initramfs built into the kernel, using CONFIG_INITRAMFS_SOURCE ? This is what I use all the time.
That's not as easy as it sounds because my boot testing is totally de-coupled from the builder. IOW, at build time, I have no idea what boards the zImage will be run on, and I don't want all kernels to have an initramfs built in. For that matter, my automated kernel builder would also have to have an initramfs laying around, or build one, and I don't want that either.
Maybe on those boards, I'll have to rely on MMC rootfs and hope that's supported (and stable) in mainline.
Kevin