[ELDK] Initramfs

yel_yahc yel_yahc at etud.insa-toulouse.fr
Fri Apr 16 10:10:49 CEST 2010

To create my rootfs I used the uRamdisk in ppc_6xx/image [1]
When I set up CONFIG_INITRAMFS_SOURCE="/home/usr/initramfs" and compile my
kernel with make ARCH=powerpc CROSS_COMPILE=ppc_6xx- the initramfs.cpio was
created automatically in /linux/usr, then I expect that in uImage build
after compilation in /boot contain the rootfs and the kernel.

I change the name of uImage to initramfs and put it to /tftpboot

In my U-Boot:
I run: 

updateApp1=echo MISE A JOUR INITRAMFS 1;tftp ${loadtftp}
${initramfsFile};nand erase ${app1_offset_addr} ${app_size};nand
write.jfss2 ${loadtftp} ${app1_offset_addr} ${app_size}

execApp1=run app1args;nboot ${ramdisk_addr} ${devnand}
${app1_offset_addr};bootm ${ramdisk_addr} - ${dtb_addr}

app1args=setenv bootargs console=${console},${baudrate} panic=1 modeboot=1

Best regards,

[1] http://www.denx.de/wiki/view/DULG/RootFileSystemDesignAndBuilding

More information about the eldk mailing list