This recommendation does not work under Ubuntu 15 or Ubuntu 16.
The following command sequence can be used for adding file to rootfs:
Add files to rootfs
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 commands of the mkimage for generation .itb file.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------