Talk:Using Initial RAM disk

From ArmadeusWiki
Revision as of 17:23, 20 September 2013 by JulienB (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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/