Author Topic: OZ3.5.1 Kernel question  (Read 4054 times)

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« on: November 02, 2004, 11:06:43 am »
Hi all,

I am a complete newbie about Zaurus (but quite knowlegeable regarding linux/unix stuff).
I just got a SL-5600 last week, and managed to install OZ3.5.1 quite easily (after reading this forum).
I've read somewhere on ZUG, that the OZ kernel are compiled with the Cache Errata setting, and I wanted to test without it to see if that works, as a lot of people seems to run it without any problems.

So I installed OE, and managed to compile a new kernel without this setting.
BTW, OE is really nice, it built everything for me, including the toolchain !  

Now, the question is how can I flash my new kernel in my zaurus without erasing completely my flash (which contains some applications and some of my data) ?
At least is it possible ?
Maybe I should generate a custom rootfs containing my stuff ?
I noticed in the kernel and the System.map resides in /boot (like any traditional non embedded linux), but I doubt replacing those files with the ones I compiled will work, right ?

Another question, related to the kernel.
I tried opie-camera and sharp-camera-support from the feed and upgrades, but I always get a kernel oops in the sharpzdc_cs module (and opie-camera then segfaults).
Do anyone have a ksymoops package for the zaurus or should I try to cross compile one, so that I can provide anyone interested more information ?
Is it possible to use the camera with OZ3.5.1 (the thing worked fine with the default sharp ROM).

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
OZ3.5.1 Kernel question
« Reply #1 on: November 02, 2004, 11:45:24 am »
Hello,

First, as to the data. It is relativly easy to save PIM data with an SD or CF card. Using Backup and Restore set the destination to SD (or CF) and perform a 'backup'. After the re-flash perform a 'restore'.

There was a bug in 'opie-camera' that is fixed in the 'upgrades' feed. (This name changed, it is the alternate feed and contains fixes)

Dan

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ3.5.1 Kernel question
« Reply #2 on: November 02, 2004, 12:07:00 pm »
Yes you can flash the kernel without flashing/erasing the filesystem, however it probably depends on what the particular installer.sh which you use decides to do - whether it automatically clears the user partition (I don't think it does as I've seen people talking about having stuff left over from their last ROM, but do back-up your stuff just in case)

Basically just don't put an initrd.bin file (the filesystem) on the CF/SD card and proceed as normal with just the zImage.bin (kernel) and installer.sh.

Edit: The kernel should be named zImage (without the .bin) for the 5600.

Obviously if you were to flash a different kernel version then you'd have to prepare by installing the appropriate modules before doing the flash, but in this case you'll be fine.


Si
« Last Edit: November 02, 2004, 06:42:37 pm by lardman »
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

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
OZ3.5.1 Kernel question
« Reply #3 on: November 02, 2004, 12:48:29 pm »
I believe the correct filename is zImage rather than zImage.bin...

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
OZ3.5.1 Kernel question
« Reply #4 on: November 02, 2004, 01:18:40 pm »
Check out the ozone script (sorry, I don't have an url right now, but google should find it). It clones your Z as it is, and then you can reflash with the exact image+software you have right now and a kernel of your choice. Great for backup and testing as well!

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.\"

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #5 on: November 02, 2004, 02:17:33 pm »
Quote
Check out the ozone script (sorry, I don't have an url right now, but google should find it).
Every link I find resolve to the authors site which unfortunately does not exist anymore  
Can someone point me to a site that actually host the file ?
Or better if someone could send it to me

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #6 on: November 02, 2004, 02:20:07 pm »
Quote
Basically just don't put an initrd.bin file (the filesystem) on the CF/SD card and proceed as normal with just the zImage.bin (kernel) and installer.sh.
After decoding and reading the OZ updater.sh, it seems that if you don't provide the initrd.bin file, your MTD root partition won't be erased.
I'll try that (but I'd prefer to find the ozone script first )

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #7 on: November 02, 2004, 02:22:48 pm »
Quote
There was a bug in 'opie-camera' that is fixed in the 'upgrades' feed. (This name changed, it is the alternate feed and contains fixes)
It seems I have the last version (opie-camera from feed and sharp-camera-support from upgrades).
Maybe I should build the package from oe as there might be a new version ?

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
OZ3.5.1 Kernel question
« Reply #8 on: November 02, 2004, 05:01:13 pm »
Uhh, yeah, now THAT's a sad thing... You can download it at http://www.pipsfrank.de/public_files/ozone.tar.gz . Note that this version (its 0.11) has a small bug in it, related to the IP of the Z itself, which is in one place hardcoded in the script, but should be $Z_IP, which is defined in ozone_config. Just try it out, if you get strange error messages, you know where to look. It works for me anyway, though my Z doesn't have a standard IP, so I really don't know if it matters. If you have problems, ask

Cheer
Philipp

Edit: I looked through my version, and can't find that bug, so maybe I fixed it by hand...
« Last Edit: November 02, 2004, 05:03:45 pm by Pyrates »
\" ... 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.\"

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
OZ3.5.1 Kernel question
« Reply #9 on: November 02, 2004, 05:17:08 pm »
Quote
There was a bug in 'opie-camera' that is fixed in the 'upgrades' feed. (This name changed, it is the alternate feed and contains fixes)
Umm. I'm sorry, I don't follow that. What[/] "alternate feed".

Windrose
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #10 on: November 02, 2004, 05:23:19 pm »
Quote
Uhh, yeah, now THAT's a sad thing... You can download it at http://www.pipsfrank.de/public_files/ozone.tar.gz .
Many thanks,

Do you know if this version works with a SL-5600 ?
The author admits in the README that he never tested on this zaurus.

Thanks,

Brice

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ3.5.1 Kernel question
« Reply #11 on: November 02, 2004, 06:41:16 pm »
Quote
I believe the correct filename is zImage rather than zImage.bin...

z.

You're right, my apologies for the confusion; I don't have a 5600 so was just going from what I have to do with my 750.


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

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #12 on: November 08, 2004, 09:01:24 am »
Quote
Basically just don't put an initrd.bin file (the filesystem) on the CF/SD card and proceed as normal with just the zImage.bin (kernel) and installer.sh.

Edit: The kernel should be named zImage (without the .bin) for the 5600.

Si
The upgrade went fine, but unfortunately, when booting the OZ kernel has panic'ed with something like:
VFS: can't find rootfs...
Analysis of the previous message showed that the kernel seems to partition the MTD while booting after an upgrade (maybe because the size of the kernel changed ?).
I have to look to the kernel's code...

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
OZ3.5.1 Kernel question
« Reply #13 on: November 08, 2004, 10:17:36 am »
masterzen, sorry, I don't know if it works with a 5600, I have a 5500. But if you find out, well, let us know

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.\"

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
OZ3.5.1 Kernel question
« Reply #14 on: November 08, 2004, 05:08:23 pm »
Quote
masterzen, sorry, I don't know if it works with a 5600, I have a 5500. But if you find out, well, let us know
Unfortunately it does not seem to work.
It produces an initrd, the initrd can be flashed, but the kernel won't boot...