Author Topic: Mounting initrd.bin from Kathrin RC  (Read 4537 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Mounting initrd.bin from Kathrin RC
« on: October 19, 2004, 01:27:01 pm »
Hi:

I'd like to mount the initrd.bin from pdaxrom Kathrin RC5 on the Zaurus, to see if I can copy missing libs so that apps compiled form pdaxrom would run under XQt.

I thought the initrd.bin is just a cramfs volume.

So I copied it to a Temp directory on a CF, however when I try:
Code: [Select]
mount -t cramfs /mnt/cf/Temp/initrd.bin /mnt/cf/Temp/test -o loopI get
Code: [Select]
mount: Mounting /mnt/cf/Temp/initrd.bin on /mnt/cf/Temp/test failed: Invalid argumentWhat am I doing wrong?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Mounting initrd.bin from Kathrin RC
« Reply #1 on: October 19, 2004, 03:46:21 pm »
Quote
I'd like to mount the initrd.bin from pdaxrom Kathrin RC5 on the Zaurus, to see if I can copy missing libs so that apps compiled form pdaxrom would run under XQt.

I thought the initrd.bin is just a cramfs volume.

So I copied it to a Temp directory on a CF, however when I try:

Code: [Select]
mount -t cramfs /mnt/cf/Temp/initrd.bin /mnt/cf/Temp/test -o loopI get

Code: [Select]
mount: Mounting /mnt/cf/Temp/initrd.bin on /mnt/cf/Temp/test failed: Invalid argument
What am I doing wrong?

Everything I did wrong  

With a little help from some users in another Z forum I found the following solution:

Code: [Select]
# NOTE: This was done on Knoppix - I don't know if it works direct on the Z!!
su -
mkdir /dev/mtdblock
cd /dev/mtdblock
mknod 0 b 31 0
modprobe mtdblock
# 32768 = 32 MB
modprobe mtdram total_size=32768
modprobe jffs2
dd if=./initrd.bin of=/dev/mtdblock/0 bs=16 skip=1
mount -t jffs2 /dev/mtdblock/0 /mnt/hda1/pdaxrom

Now the filesystem from the initrd.bin is mounted on /mnt/hda1/pdaxrom
I tared the files there and copied them to my Z. There I do a chroot to the "new" root system. Some apps from the Kathrin RC5 work and some don't..


regards

Bernd

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Mounting initrd.bin from Kathrin RC
« Reply #2 on: October 20, 2004, 07:39:26 am »
Well at first sight it looks like it's not gonna work on the Z.

I don't have a Linux PC...

Do you think it would be possible for you to put the tared files somewhere for me to download, to enable me to skip the extracting step?

Thank you.

Best regards.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Mounting initrd.bin from Kathrin RC
« Reply #3 on: October 20, 2004, 09:31:51 am »
You can do it on the 760 (not sure if the 700/750 has enough memeory) you will need to for the mtd tools that someone posted here a while back.

Basically you need to create extra mtd_block devices as the ones already on the Z are being used by the existing filesystem.

Probably easier to download knoppix or another linux live CD and use that as AFAIK it's impossible to mount a rom in windoze

Otherwise, if you tell someone what apps you want and ask nicely they may do it for you

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Mounting initrd.bin from Kathrin RC
« Reply #4 on: October 20, 2004, 10:09:13 am »
Quote
Well at first sight it looks like it's not gonna work on the Z.

I don't have a Linux PC...

Do you think it would be possible for you to put the tared files somewhere for me to download, to enable me to skip the extracting step?

Thank you.

Best regards.
>>I don't have a Linux PC...

I've you have a PC you might download Knoppix (http://www.knoppix.net/). Knoppix is a Linux Distribution that work's if booted from the CDROM (no changes to the harddisks necessary). After booting Knoppix from the CDROM there is normally enough room in the /tmp  filesystem for mounting the initrd.bin.

>>Do you think it would be possible for you to put the tared files somewhere for me to >>download, to enable me to skip the extracting step?

If it's not possible for you to use knoppix let me know and I can sent you the tar file via email (I don't have a web site where I can put the tar file)

regards

Bernd
« Last Edit: October 20, 2004, 10:09:58 am by BerndS »

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Mounting initrd.bin from Kathrin RC
« Reply #5 on: October 20, 2004, 10:50:59 am »
I think that you may be on a 'Wild Goose Chase' here, since the change to the Kathrin kernel in RC5 (Vector Floating Point) I think you will find that the libs etc. from RC5 are incompatible with a standard Z kernel.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card