OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: tamarian on February 28, 2004, 06:09:39 pm

Title: Extracting initrd.bin content to hard disk
Post by: tamarian on February 28, 2004, 06:09:39 pm
Hi folks,

Is there a way to extract the contents of initrd.bin (from xrom) into hard drive? I\'d like to extract just the libs, to mix and match with qtrom+xqt

I tried bzip2 ang gzip, and none of them recognized it
Title: Extracting initrd.bin content to hard disk
Post by: Greg2 on February 28, 2004, 07:47:19 pm
Quote
I tried bzip2 ang gzip, and none of them recognized it


There\'s a little more to it then that...

Instructions here:
http://www.zaurususergroup.com/modules.php...lding%20a%20ROM (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Building%20a%20ROM)

And you should search \'romburst\'

Greg
Title: Extracting initrd.bin content to hard disk
Post by: datajerk on March 27, 2004, 04:27:12 pm
I just tried this.  Didn\'t work any other tips to extract pdaXrom initrd.bin?
Title: Extracting initrd.bin content to hard disk
Post by: jerrybme on March 27, 2004, 05:12:45 pm
Quote
I just tried this.  Didn\'t work any other tips to extract pdaXrom initrd.bin?
It\'s not hard, the initrd.bin is a jffs2 file system. I don\'t remember the commands exactly but if you go here http://www.zaurususergroup.com/index.php?n...ght=mount+jffs2 (https://www.oesf.org/forums/index.php?showtopic=2495&highlight=mount+jffs2)
It should get you started. I used a similar method to extract the file system from the pdaXrom earlier this week.

Cheers,
Jerry
Title: Extracting initrd.bin content to hard disk
Post by: datajerk on March 27, 2004, 05:25:18 pm
Nevermind.  I didn\'t know it was jffs2.  First I have heard of it.  I Googled and got this:

modprobe mtdcore
insmod mtdram total_size=32768 erase_size=256
insmod mtdblock
insmod jffs2
mkdir /dev/mtdblock
cd /dev/mtdblock
mknod 0 b 31 0
mknod 1 b 31 1
mknod 2 b 31 2
dd if=/tmp/initrd.bin of=/dev/mtdblock/0
mkdir /mnt/x
mount -t jffs2 /dev/mtdblock/0 /mnt/x

It works.