Talk:Using Initial RAM disk
From ArmadeusWiki
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/