patrick immling

Prepare kernel and root FS on imx51

Discussion created by patrick immling on Mar 14, 2012
Latest reply on Mar 26, 2012 by KrishnaPavan

I followed the procedure in to run the latest linux kernel (stable version, 3.2.10) on an imx51 Freescale board with a linux  rootFS of our choice. The uImage that I generate from my kernel zImage is 2.3MB and I packed it into my boot partition. However it turns out that the rootfile system(a .tgz file) which I downloaded is 723MB and when I tar it into my rootfs partition it has a size of 1.7GB. Is there some mistake? I am not able to correctly set the u-boot parameters as I am confused. I have the u-boot.imx after compiling u-boot sources.This is what I have:
sudo dd if=u-boot.imx of=${DISK} seek=1 bs=1024
Followed by setting of the partitions as follows:
unallocated: 5MB
fat16:boot: 50MB
ext4:rootfs:3.6GB(rest of the 4GB SD card)
I then copy the uImage, boot.scr to the boot partition and then I tar &copy the rootfs.tgz and kernel sources to the rootfs.

Here is what I set in boot.scr:
setenv bootcmd ‘fatload mmc 0:1 0×90800000 uImage; bootm 0×90800000′
setenv bootargs console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p2 rootwait ro rootfstype=ext4 mxcdi1fb:1280x720M@60

How do I set the right addresses in the above file? I don’t understand it :(
Perhaps because of this, while I boot up my imx device: I get the following message:

U-Boot 2011.12 (Mar 13 2012 – 14:15:41)

CPU: Freescale i.MX51 family rev3.0 at 800 MHz
Reset cause: POR
Board: MX51EVK
DRAM: 512 MiB
WARNING: Caches not enabled
MMC: no card present
MMC init failed
Using default environment

In: serial
Out: serial
Err: serial
Net: FEC
Warning: failed to set MAC address

Hit any key to stop autoboot: 0
MMC: no card present
Booting from net …
BOOTP broadcast 1
BOOTP broadcast 2