Difference between revisions of "Talk:Using Initial RAM disk"

From ArmadeusWiki
Jump to: navigation, search
(New page: ==For old BR== Here we use a 35Mbytes initrd formatted as EXT2. Other format/size can be used (if supported by kernel). <pre class="host"> $ make shell_env $ source armadeus_env.sh $ dd i...)
 
 
Line 12: Line 12:
 
$ umount ./myinitrd/
 
$ umount ./myinitrd/
 
$ gzip ./myinitrd.img
 
$ gzip ./myinitrd.img
 +
</pre>
 +
 +
==Convert initrd for U-Boot==
 +
<pre class="host">
 +
$ ./buildroot/project_build_armv5te/apf27/u-boot-1.3.4/tools/mkimage -n 'MyRamDisk' -A arm -O linux -T ramdisk -C gzip -d ./myinitrd.img.gz rootfs-initrd
 +
$ cp rootfs-initrd /tftpboot/
 
</pre>
 
</pre>

Latest revision as of 18:23, 20 September 2013

For old BR

Here we use a 35Mbytes initrd formatted as EXT2. Other format/size can be used (if supported by kernel).

$ make shell_env
$ source armadeus_env.sh

$ dd if=/dev/zero of=./myinitrd.img bs=1M count=35
$ mke2fs -m 1 ./myinitrd.img
$ mkdir ./myinitrd
$ mount -t ext2 ./myinitrd.img ./myinitrd -o loop
$ tar -xvf $ARMADEUS_ROOTFS_TAR -C ./myinitrd/
$ umount ./myinitrd/
$ gzip ./myinitrd.img

Convert initrd for U-Boot

$ ./buildroot/project_build_armv5te/apf27/u-boot-1.3.4/tools/mkimage -n 'MyRamDisk' -A arm -O linux -T ramdisk -C gzip -d ./myinitrd.img.gz rootfs-initrd
$ cp rootfs-initrd /tftpboot/