Unable to extract initrd content after removing U-boot header from uInitrd in Ubuntu Headless 11.04 Natty Narwhal for OMAP4 released on 26th April
Hi,
I have downloaded Ubuntu Headless 11.04 Natty Narwhal released on 16th April 2011 for OMAP4 ( OMAP4 preinstalled headless image) from:
http://
and then zcat it to 4GB Micro SD car as well as on 4GB usb driver.
sudo sh -c 'zcat ubuntu-
Where 'sdY' is the device where the SD card is mapped
After zcat, 2 partition have been created on SD card. First one is Vfat boot partition and 2nd ext3 rootfs partition.
Now i want to see the content of initrd. So i first removed U-boot headers from uInitrd and created initrd using below command:
sumit@sumit-
-rwxr-xr-x 1 sumit sumit 3467529 2011-04-26 05:51 uInitrd
sumit@sumit-
Image Name: Ubuntu Initrd
Created: Tue Apr 26 11:21:41 2011
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 3467465 Bytes = 3386.20 kB = 3.31 MB
Load Address: 0x00000000
Entry Point: 0x00000000
The header size is the uInitrd file size minus the data size listed by mkimage. i.e. 3467529 - 3467465 = 64
Then i removed U-boot header from uInitrd as
dd if=uInitrd of=initrd skip=64 bs=1
Now initrd is created which is not in cpio compressed format. i found it is in data format. On doing "file" on created initrd as
sumit@sumit-
initrd: data
So on doing zcat initrd | cpio -id, it is giving me the error as
sumit@sumit-
gzip: initrd: not in gzip format
cpio: premature end of archive
or on doing sumit@sumit-
cpio: Malformed number
cpio: Malformed number
cpio: Malformed number
cpio: Malformed number
cpio: Malformed number
cpio: Malformed number
cpio: warning: skipped 18927 bytes of junk
cpio: warning: archive header has reverse byte-order
cpio: premature end of file
So is there any way to extract initrd and to view/edit it contents? And for ubuntu headless, initrd created from uInitrd is in "data format" instead of cpio compressed format.
Please suggest me the way to extract initrd for OMAP4 preinstalled ubuntu headless Natty narwhal image.
Thanks...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bjarne Steinsbø
- Solved:
- Last query:
- Last reply: