Step 1. rename ramdisk.img.
Step 6. modify the content that you want.
Step 7. Generate pack list.
$ mv ramdisk.img ramdisk.img.gzStep 2. decompress ramdisk.img.gz through gunzip.
$ gunzip ramdisk.img.gzStep 3. create a directory.
$ mkdir <dir-name>Step 4. enter the directory that you just created.
$ cd ramdiskStep 5. unpack ramdisk.img through cpio
$ cpio -i -F ../ramdisk.imgNote. After step 5, the whole ramdisk.img content decompressed.
Step 6. modify the content that you want.
Step 7. Generate pack list.
$ cpio -i -t -F ../ramdisk.img > listStep 8. pack new.img.
$ cpio -o -H newc -O new.img < listStep 9. Compress new.img
$ gzip new.img
沒有留言:
張貼留言