Skip to content
Adam Lee edited this page Jan 20, 2014 · 3 revisions

Welcome to the Gumstix Android wiki!

Modifying uInitrd

  1. dd if=uInitrd of=initrd skip=64 bs=1
$ dd if=uInitrd of=initrd skip=64 bs=1
238445+0 records in
238445+0 records out
238445 bytes (238 kB) copied, 0.351077 s, 679 kB/s
  1. mkdir tmp && && cd tmp
  2. gzip -dc ../initrd | cpio -id
$ gzip -dc ../initrd | cpio -id
865 blocks
  1. Here you can make necessary changes
  2. find ./ | cpio -H newc -o | gzip > ../initrd.gz
$ find ./ | cpio -H newc -o | gzip > ../initrd.gz
865 blocks
  1. mkimage -A arm -O linux -T ramdisk -C gzip -d initrd.gz uInitrd
$ mkimage -A arm -O linux -T ramdisk -C gzip -d initrd.gz uInitrdImage Name:   
Created:      Mon Jan 20 10:18:32 2014
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    238531 Bytes = 232.94 kB = 0.23 MB
Load Address: 00000000
Entry Point:  0000000
Clone this wiki locally