Author Topic: Flashing Oz To Zaurii With Non-original Rom  (Read 14092 times)

jan

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://www.spacezone.de/zaurus/articles/
Flashing Oz To Zaurii With Non-original Rom
« Reply #15 on: February 21, 2006, 02:04:34 pm »
Quote
Umm, good question actually. IMO a root partition of >40Mb should do, depending on your device of course.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115508\"][{POST_SNAPBACK}][/a][/div]

Thanks for your help. I made a NAND Backup. Then used Cacko's Partitioning tool and resized root partition to 50MB. Made CF card with initrd.bin (opie_c7x0...), zImage.bin and update.sh from OZ 3.5.3. went through installation instructions. The image got flashed and OZ boot logo was shown but instead of booting a got:
Code: [Select]
INIT: No inittab file found

Enter runlevel:

Entering 2 RET yields
Code: [Select]
INIT: Entering runlevel: 2
INIT: no more processes left in this runlevel
and nothing more.

What was my mistake? The opie image (which I renamed to initrd.bin) is only 19MB big. Did I pick the right file? Is init looking for files under /etc which are normally outside the root partition and therefore not there?

SL-C860 (Boxer), OZ 3.5.4.1 GPE 2.7
my blog

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Flashing Oz To Zaurii With Non-original Rom
« Reply #16 on: February 21, 2006, 05:00:32 pm »
Interesting result. I have no idea what went wrong there.

/sbin/init is found but /etc/* is MIA heh. Maybe the kernel uses certain parameters which sort-of force you into the standard partitioning, can't check that ATM. It might also be a problem with updater.sh, who knows?

It was worth a try tho.
Webmaster of hentges.net & Embedded Linux Developer.

jan

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://www.spacezone.de/zaurus/articles/
Flashing Oz To Zaurii With Non-original Rom
« Reply #17 on: February 21, 2006, 06:20:34 pm »
Quote
/sbin/init is found but /etc/* is MIA heh.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I got a step further by going back to Cacko temporarly. Now I get passed init and then a screen full of tar errors related to 'read-only' filesystem.

edit: First line is
mount: Mounting /dev/ram1 on /dev failed: No such device

What did I do wrong here?
 
[a href=\"http://www.spacezone.de/zaurus/articles/OZ_OPIE.html]complete install log[/url]

jan
« Last Edit: February 22, 2006, 07:12:10 am by jan »

SL-C860 (Boxer), OZ 3.5.4.1 GPE 2.7
my blog

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Flashing Oz To Zaurii With Non-original Rom
« Reply #18 on: February 22, 2006, 11:23:05 am »
From the linked webpage:

Quote
INIT: Id "1n" respawning too fast: disabled for 5 minutes

I've seen this when the rootfs doesn't flash. You've got a C860, does this actually have 100MB of flash? (as you've set root to 50MB) Try setting it to half of the total amount (64MB I think).


Si

P.S. If this fixes things, then we need to look at the updater.sh source and work out why it's so damn picky about the partition sizes. I've attached the source (may be a bit old now, but I think it's still the current one)
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

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Flashing Oz To Zaurii With Non-original Rom
« Reply #19 on: February 22, 2006, 11:56:58 am »
The content of that script in one word: ouch

Whoever wrote that has one hell of a talent to write unreadable code  
Webmaster of hentges.net & Embedded Linux Developer.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Flashing Oz To Zaurii With Non-original Rom
« Reply #20 on: February 22, 2006, 12:35:48 pm »
From packages/zaurus-updater/c7x0/


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

jan

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://www.spacezone.de/zaurus/articles/
Flashing Oz To Zaurii With Non-original Rom
« Reply #21 on: February 22, 2006, 02:09:39 pm »
Quote
I've seen this when the rootfs doesn't flash.

I think you are right. I says "flashing the kernel" and reboots quickly. I don't think the rootfs got acutally flashed.

Quote
You've got a C860, does this actually have 100MB of flash? (as you've set root to 50MB) Try setting it to half of the total amount (64MB I think).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115746\"][{POST_SNAPBACK}][/a][/div]
Been there, done that. I just didn't post it because I didn't improve things. Same error.

Someone pointed out that the Cacko/padXrom installer can't set the root partition size to exactly (to the byte) the size it was originally. Maybe that's the point.

SL-C860 (Boxer), OZ 3.5.4.1 GPE 2.7
my blog

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Flashing Oz To Zaurii With Non-original Rom
« Reply #22 on: February 22, 2006, 02:23:21 pm »
the original partition size are  53 (root) /68 (user)

But  as I said I'm not sure if resizing to 53 with the cacko/pdaxrom installer is enough.
I would restore from an original nand backup, this will restore the original partitions and then flash Oz
SLC-860 cacko / senao wifi

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Flashing Oz To Zaurii With Non-original Rom
« Reply #23 on: February 23, 2006, 04:59:35 am »
Quote
Someone pointed out that the Cacko/padXrom installer can't set the root partition size to exactly (to the byte) the size it was originally. Maybe that's the point.

No, probably not as I'd used the pdaXrom updater.sh to resize and then return the partitions to about 50-50% and then was able to install OZ without problems.

Quote
I would restore from an original nand backup, this will restore the original partitions and then flash Oz

Some are available from here: http://pocketworkstation.org/files/recover/

But the c860 one says that it probably doesn't work... Is there another place to download these, like in ZUG downloads?


Si
« Last Edit: February 23, 2006, 05:03:58 am 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

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Flashing Oz To Zaurii With Non-original Rom
« Reply #24 on: February 23, 2006, 05:20:09 am »
Quote
Is there another place to download these, like in ZUG downloads?

http://www.trisoft.de/download/
http://downloads.conics.net/pda/zaurus-sl-...iginal-backups/
SLC-860 cacko / senao wifi

jan

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://www.spacezone.de/zaurus/articles/
Flashing Oz To Zaurii With Non-original Rom
« Reply #25 on: March 01, 2006, 12:23:38 pm »
Quote
P.S. If this fixes things, then we need to look at the updater.sh source and work out why it's so damn picky about the partition sizes. I've attached the source (may be a bit old now, but I think it's still the current one)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I tried to understand update.sh and failed. The first part seems to check where the root filesystem is in terms of /dev/mtd... The second should flash it whenever it finds initrd.bin. No clue about the details and why things don't work. [a href=\"http://www.spacezone.de/zaurus/articles/update.sh.txt]commented version of update.sh[/url]

Did anyone try the installer from pdaXrom/cacko with OZ images? They do work after all.

jan
« Last Edit: March 01, 2006, 01:12:19 pm by jan »

SL-C860 (Boxer), OZ 3.5.4.1 GPE 2.7
my blog

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Flashing Oz To Zaurii With Non-original Rom
« Reply #26 on: March 20, 2006, 06:18:37 am »
I just try, and I was wrong about the nand backup, resizing to 53 with the cack/pdaxrom installer, then reboot and flashing OZ with the openzaurus installer is enough
SLC-860 cacko / senao wifi