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

IPB

Welcome Guest ( Log In | Register )

5 Pages V  < 1 2 3 4 5 >  
Reply to this topicStart new topic
> Dualbooting/multiplebooting With Kexec!, updated: 20080416: Cacko HDD-free hack v0.2 + updater.sh for C1000
matthis
post Mar 27 2008, 01:13 AM
Post #31





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Woops sorry ZDevil, you hadn't mixed up anything unsure.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 27 2008, 01:42 AM
Post #32





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



No worry. I just fear the notes may make more toasted penguins. Happy dualbooting! wink.gif
Go to the top of the page
 
+Quote Post
matthis
post Mar 27 2008, 02:07 AM
Post #33





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Alas, following your instructions with Sharp rom already installed gives me the usual:
"Warning: unable to open an initial console". and nothing more.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 27 2008, 02:17 AM
Post #34





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



In which system do you get the error? Sharp or Debian?

If you get this when booting sharp rom, how about reflashing the sharp rom kernel first and let it boot once smoothly (can't think of any reason how this would fail), and then flash the debian kernel (provided that you have a debian system ready on the media)?
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 27 2008, 11:45 AM
Post #35





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Hey, I've found the way to boot Cacko without the need for hdd1, hdd2 and hdd3.
So no more need to repartition the internal disk just for restoring Cacko in NAND.
Also now the whole Debian rootfs can be freely mounted and is entirely visible in Cacko.
ATM working on a script for the Cacko hack and will post here later.
Go to the top of the page
 
+Quote Post
speculatrix
post Mar 27 2008, 03:49 PM
Post #36





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(ZDevil @ Mar 27 2008, 07:45 PM) *
Hey, I've found the way to boot Cacko without the need for hdd1, hdd2 and hdd3.
So no more need to repartition the internal disk just for restoring Cacko in NAND.
Also now the whole Debian rootfs can be freely mounted and is entirely visible in Cacko.
ATM working on a script for the Cacko hack and will post here later.


am looking forward to hearing more, dual-booting cacko and debian is my next project!
Go to the top of the page
 
+Quote Post
pelrun
post Mar 27 2008, 05:41 PM
Post #37





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



Heh - triplebooting cacko/pdaxii/debian is on my list smile.gif

Matthis - The kernel you kexec with needs the partition info hardcoded into the boot string (mtdparts=blah) to work properly, otherwise the system only sees a very truncated (and hence corrupted) filesystem. I recompiled the pdaXrom kernel to match my NAND layout; you can do the same thing with the sharprom. EvilJazz's kernel tarball has a nice script which completely automates building all the 2.4 kernel variants.
Go to the top of the page
 
+Quote Post
matthis
post Mar 28 2008, 01:06 AM
Post #38





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



QUOTE(pelrun @ Mar 27 2008, 05:41 PM) *
The kernel you kexec with needs the partition info hardcoded into the boot string (mtdparts=blah) to work properly, otherwise the system only sees a very truncated (and hence corrupted) filesystem. I recompiled the pdaXrom kernel to match my NAND layout; you can do the same thing with the sharprom. EvilJazz's kernel tarball has a nice script which completely automates building all the 2.4 kernel variants.


Thanks for your help. I was indeed trying to boot into sharprom with kexec. I will either try to compile the kernel or wait for a guru to do it rolleyes.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 28 2008, 08:26 AM
Post #39





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Just uploaded a new "Cacko HDD Fix" scriptpack, which will remove the HDD restriction on the internal disk, i.e. Cacko will run happily without caring about the HDD. wink.gif Please check out the first post (2.2.1).

I have tested the scriptpack a few times in my Cacko setup (3200). No problem found so far.

Have fun!
Go to the top of the page
 
+Quote Post
malik
post Mar 28 2008, 02:10 PM
Post #40





Group: Members
Posts: 150
Joined: 8-December 04
Member No.: 5,839



did i get it right? i can keep my cacko installation and my hd partition and install
debian on sd, kexecuting cacko kernel from debian? will try this soon...

another question: is there a 2.4 kernel which supports kexec so that i can use
cacko/sharp as my main distribution and kexec debian and so on for testing?

thanx...
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 28 2008, 02:39 PM
Post #41





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



QUOTE(malik @ Mar 28 2008, 11:10 PM) *
did i get it right? i can keep my cacko installation and my hd partition and install
debian on sd, kexecuting cacko kernel from debian?

I think so. Simply put, there is no special installation apart from setting up each system separately and then flashing a kexec-capable kernel. Just reboot and kexec from there. If at some point you don't like this setup anymore, say you want to go back and stick with Sharp/Cacko rom only, then simply reflash the Sharp/Cacko kernel and that's it (no more kexec).
QUOTE
another question: is there a 2.4 kernel which supports kexec so that i can use
cacko/sharp as my main distribution and kexec debian and so on for testing?

afaik kexec is supported in kernel 2.6 but not 2.4.

In reality it doesn't make a big difference if you simply do dualbooting (such as Debian/Cacko), as long as either of them can use kexec.
The "catch" here, if i am forced to say, is you must boot into the kexec-ready rootfs in the very first boot after setting everything up. And a simple reboot will boot into this rootfs first. But rebooting is not absolutely necessary (and not a very cool thing to do) if things are running well.

Then each time you want to load the other system it's a (warm) reboot. So it's like:

-- (first boot) --> Debian -- (reboot with kexec) --> Cacko -- (normal reboot again) -- > Debian -- (reboot with kexec again) --> Cacko -- ...... ad infinitum

(Hope this doesn't sound too confusing tongue.gif )

(The great thing about the Zaurus is we seldom shut it down totally because it is instant-on/off. wink.gif )

Of course triple/multiple booting is a different story. A full "juggling" mode is to make each system accessible from one another:
e.g. a "perfect" triple booting = a<-->b; b<-->c; c<-->a

Altboot and uboot are great solutions to this. But at this stage only Angstrom has altboot. uboot is not widely supported (esp. in upstream). There are also some kind of pivot booting (like the OpenBSD/Cacko dualbooting hack), but it doesn't apply to many systems.
Go to the top of the page
 
+Quote Post
matthis
post Mar 28 2008, 04:21 PM
Post #42





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



I was interested in kexec from 2.4 as well, there is a thread in this forum which seems to show it is possible.

http://www.oesf.org/forum/index.php?showtopic=18104

What do you think?
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 28 2008, 04:41 PM
Post #43





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



QUOTE(matthis @ Mar 29 2008, 01:21 AM) *
I was interested in kexec from 2.4 as well, there is a thread in this forum which seems to show it is possible.
http://www.oesf.org/forum/index.php?showtopic=18104
What do you think?

Hmm... very interesting (and very tempting too!) ... The discussion mentions corruption of the content in flash by the mtd modules in 2.6, which may explain the "incidence" my setup ran into some time ago when I tried to mount the partitions in flash in Debian.
I'll go remove the sections in the howto about accessing flash content in Debian.
Thanks for the pointer!
Go to the top of the page
 
+Quote Post
matthis
post Mar 28 2008, 06:07 PM
Post #44





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



OK I wanted to try 2.4 kexec backport so I compiled the kexec.c provided in the above thread, using eviljazz kernel sources.
(I attach the result to this post.)

Alas, when running the provided bootlinux script, the kexec module seems to be properly loaded, but nothing happens at all! blink.gif
(I get no error messages either).

Attached File(s)
Attached File  kexec_built.zip ( 10.36K ) Number of downloads: 8
 
Go to the top of the page
 
+Quote Post
ecc_hy
post Mar 28 2008, 07:32 PM
Post #45





Group: Members
Posts: 127
Joined: 5-January 07
Member No.: 13,705



The updater.sh is not suitable for C1000. You may use attach file which come from angstrom.
After install and set nand access, it corrupted my pdaxii13 root file.

To ZDevil:
Could you paste the content include how to access NAND? I need this to remove those modules and package.

Really like kexec for pdaxrom, pdaxii13 is more suitable for daily use. Debian need more test and adjust now.
Attached File(s)
Attached File  updater.sh.txt ( 11.46K ) Number of downloads: 9
 
Go to the top of the page
 
+Quote Post

5 Pages V  < 1 2 3 4 5 >
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th July 2014 - 02:31 PM