Use the following command sequence for adding file to RAM disk image.
- rename your RAM disk image to rootfs.ext2.gz.uboot
- sudo apt-get install u-boot-tools
Following are the steps for adding files into rootfilesystem:
- dd if=rootfs.ext2.gz.uboot of=rootfs.ext2.gz bs=64 skip=1
- gunzip rootfs.ext2.gz
- mkdir /mnt/iso_1
- sudo mount -oloop rootfs.ext2 /mnt/iso_1
- Now, one can copy files into appropriate location under “./mnt/iso_1” directory.
- sudo umount /mnt/iso_1
- gzip -9 rootfs.ext2
- mkimage -A ppc -O linux -T ramdisk -C gzip -n 'rootfs.ext2.gz.uboot' -d rootfs.ext2.gz rootfs.ext2.gz.uboot
See also the following pages:
http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/boot.html
and
https://stackoverflow.com/questions/7221757/run-automatically-program-on-startup-under-linux-ubuntu
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------