Author Topic: Customizing ...  (Read 3695 times)

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Customizing ...
« on: January 17, 2004, 01:49:25 pm »
Hi there!

I want to customize my rom, but I have a small problem... I can\'t get it  :?

Now, the thing is, I found a description on http://docs.zaurus.com/index.php?id=buildi...ding_custom_rom how to basically do it, but retrieving the filesystem isn\'t covered there. I mean, I have the initrd.bin, that\'s where it is, right? I can\'t mount it as a cramfs, but  using losetup as described there doesn\'t work as well, the final mount give the usual \"wrong filesystem\" error message (if I use it with -t cramfs, without mount complains about unknown filesystem...). So, can anybody tell me how to actually retrieve the filesystem? Does OZ feature the build.sh skript to make back into an initrd.bin afterwards?

Thanks for any help, cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Customizing ...
« Reply #1 on: January 17, 2004, 01:59:24 pm »
The reason you can\'t mount it is that it\'s a jffs2 image. There is a way of mounting this (try a search of this forum and the www.zaurus.com/dev/board one for \'mount and jffs2\' or similar) but I can\'t remember it off the top of my head.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Customizing ...
« Reply #2 on: January 17, 2004, 04:52:36 pm »
Found it:

modprobe mtdblock
modprobe mtdram -o total_size=16384
modprobe jffs2
dd if=initrd.bin of=/dev/mtdblock/0
mount -t jffs2 /dev/mtdblock/0 mnt/initrd


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Customizing ...
« Reply #3 on: January 18, 2004, 07:34:18 am »
Thanks  I\'ll have to recompile my kernel for that, maybe I\'ll switch to 2.6 today...

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Customizing ...
« Reply #4 on: January 20, 2004, 06:17:48 pm »
So, switch done  Now, I\'m not getting anywhere, I have CONFIG_MTD_RAM=m set, but I don\'t get a mtdram module. Does anybody know about that, what do I have to configure?

Otoh, I don\'t know how to get /dev/mtdblock/0, because I don\'t have such a file.

If I did a dd if=/dev/mtdblock/0 of=/home/pips/initrd.bin after doing all you suggested, would I get a valid initrd that I could flash on my zaurs?

Man, I have a lot of questions  Thanks for helping

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Customizing ...
« Reply #5 on: January 20, 2004, 06:21:18 pm »
Ummm... got it... Well, got the module (there actually is CONFIG_MTD_MTDRAM to be set).

And ... *more Ummm* didn\'t do my homework, a bit of googling showed me how to get my /dev/mtdblock/* ... sorry for that!

Still need help on the last issue, but I think I\'m just gonna try

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Customizing ...
« Reply #6 on: January 20, 2004, 06:33:51 pm »
Quote
If I did a dd if=/dev/mtdblock/0 of=/home/pips/initrd.bin after doing all you suggested, would I get a valid initrd that I could flash on my zaurs?  

Hmm, you\'ll be able to access the files in the filesystem. I presume you can also write to the filesystem. Assuming you don\'t exceed the max size for the initrd.bin file (I don\'t know what it is) then yes, you should be able to flash the resultant image.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Customizing ...
« Reply #7 on: January 20, 2004, 07:15:51 pm »
I tried it, but it wouldn\'t work. But the initrd came out to big, I did just delete some files, but it came out a bit more than 16MB, that\'s too much, so I\'m not surprised flashing didn\'t work... I\'ll try it again tomorrow...

Cheer
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"