OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How Do I Unpack A .bin File?
xamindar
post Jul 17 2007, 12:51 AM
Post #1





Group: Members
Posts: 803
Joined: 30-March 04
From: California
Member No.: 2,368



Can someone tell me how to unpack a rom such as the cacko rom? I need to get into the filesystem and find the kernel module "serial_cs" if it is there. Hopefully getting that module will finally allow me to use my compact flash bluetooth card.

Or, if anyone knows where I can find that module that would greatly help. Thanks for any help.
Go to the top of the page
 
+Quote Post
pelrun
post Jul 17 2007, 05:18 AM
Post #2





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Make sure you have a /dev/mtdblock0 or /dev/mtdblock/0 device; if not use "mknod /dev/mtdblock0 b 31 0" to create one. Then:

modprobe mtdram total_size=32768
modprobe mtdblock
modprobe jffs2
dd if=initrd.bin of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 /mnt/whatever

The total_size above has to be big enough to hold the initrd.bin. It's in KB, so the 32768 above is 32MB. Try 65536 instead if your initrd.bin is larger.

Obviously you need to do this on a linux box; the Z just doesn't have the RAM to do the job itself. I'm not aware of any way to do it from windows.
Go to the top of the page
 
+Quote Post
xamindar
post Jul 17 2007, 07:53 AM
Post #3





Group: Members
Posts: 803
Joined: 30-March 04
From: California
Member No.: 2,368



Thank you so much for this info. After enabling memory technology devices and jffs2 support in my kernel and recompiling I was able to mount the cacko rom using your instructions. Thanks you so much.

YES! And the cacko rom has the serial_cs module. Now hopefully I can get this ambicom bluetooth BT2000C card to work.

EDIT: Dang, the module doesn't work. Anyone know where I can get one that is made for the C3100 kernel. I guess the cacko kernel is different for some reason.

CODE
bash-2.05# modprobe serial_cs
/lib/modules/2.4.20/pcmcia/serial_cs.o: unresolved symbol sharpsl_serial_out_wait
/lib/modules/2.4.20/pcmcia/serial_cs.o: insmod /lib/modules/2.4.20/pcmcia/serial_cs.o failed
/lib/modules/2.4.20/pcmcia/serial_cs.o: insmod serial_cs failed
bash-2.05#            
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th September 2014 - 11:56 AM