[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cubox-i with Debian Stock Kernel



Hi Vagrant,

thank you for your reply.

On Friday 30 May 2014 09:53:09 you wrote:
> On Fri, May 30, 2014 at 05:33:14PM +0200, Rainer Dorsch wrote:
> > I did not have Debian's u-boot. I tested it now, but does not work at all
> > for me.
> > 
> > 
> > I dd ed SPL and u-boot.img from /usr/lib/u-boot/mx6_cubox-i/.
> > 
> > But that did not change anything for bootz, still it does not detect the
> > ramdisk
> 
> ...
> 
> > CuBox-i U-Boot > ext4load mmc 0:2 0x12800000 initrd.img
> > 10909053 bytes read in 722 ms (14.4 MiB/s)
> > CuBox-i U-Boot > bootz 0x10800000 0x12800000 0x18000000
> > Kernel image @ 0x10800000 [ 0x000000 - 0x2b8978 ]
> > Wrong Ramdisk Image Format
> > Ramdisk image is corrupt or invalid
> > CuBox-i U-Boot >
> 
> You need to specify the ramdisk size when using bootz. the following works
> for me with u-boot 2014.04-2 from Debian Sid:

Oh, I did not know that

> 
> CuBox-i U-Boot > printenv loadaddr kernel ramdiskaddr initrd fdt_addr
> fdt_file loadkernel loadinitrd loadfdt bootargs bootcmd loadaddr=0x10800000
> kernel=vmlinuz
> ramdiskaddr=0x11800000
> initrd=initrd.img
> fdt_addr=0x18000000
> fdt_file=imx6q-cubox-i.dtb
> loadkernel=load mmc 0:2 ${loadaddr} ${kernel}
> loadinitrd=load mmc 0:2 ${ramdiskaddr} ${initrd} ; setenv initrdsize
> ${filesize} loadfdt=load mmc 0:2 ${fdt_addr} ${fdt_file}

Thanks for sharing your env, that is very useful.

Where does filesize come from ?? I do not see it defined anywhere.

> bootargs=console=ttymxc0,115200 root=/dev/mmcblk0p2
> bootcmd=run loadkernel ; run loadinitrd ; run loadfdt ; bootz ${loadaddr}
> ${ramdiskaddr}:${initrdsize} ${fdt_addr} CuBox-i U-Boot > run bootcmd
> 
> I don't quite recall which of those are custom settings, and which are out
> of the box. I also have to make sure the .dtb file is symlinked to the
> appropriate file, which could hopefully be handled by flash-kernel.

I copied it to be on the save side until getting started.

> I really need to give flash-kernel a try one of these days...
> 



-- 
Rainer Dorsch
http://bokomoko.de/


Reply to: