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

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> So Close To Debian/pdaxii13 Dual Boot!, fun and games with kexec
pelrun
post Jan 21 2008, 05:27 PM
Post #1





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



I installed debian over the weekend with the angstrom 2.6.23 kernel, and it's really, really neat. But I still want my pdaxii13 install - which thankfully is untouched in NAND.

I downloaded the angstrom kexec-tools and manually installed them, which includes adding a "kexec -e" just before "/sbin/reboot" in /etc/init.d/reboot. This is because kexec doesn't gracefully shut down the system before launching a new kernel, so the trick is to load a kernel using "kexec -l", reboot, and then have the modified /etc/init.d/reboot launch the new kernel after everything is shut down nicely. If you haven't loaded a kernel in that session then kexec fails and the reboot happens as normal. So don't use "kexec -f" like I've seen in a few places! (except in an altboot script, of course.)

Anyway, after kexec was installed I loaded the old pdaxii13 kernel, rebooted, started the new kernel successfully, failed to find an initial console, then kernel panicked.

Damn. sad.gif

It seems like it isn't correctly mapping the nand; a normal pdaxii13 boot for me looks like:

CODE
0x00000000-0x00700000 : "smf"
0x00700000-0x08000000 : "root"
0x08000000-0x08000000 : "home"

but the kexec'd boot displays:

CODE
0x00000000-0x00700000 : "smf"
0x00700000-0x03c00000 : "root"
0x03c00000-0x08000000 : "home"

Reflashing the pdaxii13 kernel works, but of course I'd like to avoid doing that.

Any ideas? (I might just reinstall pdaxii13 from scratch with the layout that the kexec'd kernel expects...)

(oh and edit: fixed my working nand details, I don't have a /home)
Go to the top of the page
 
+Quote Post
pelrun
post Mar 5 2008, 05:28 PM
Post #2





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



Success! I grabbed evilJazz's kernel source tarball (which is unbelievably easy to use) and modified it to use my NAND layout. Kexec'ing now works perfectly!


Attached File(s)
Attached File  zImage_3100_pdaXrom_fastfpe_nohome.zip ( 1.1MB ) Number of downloads: 154
 
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 5 2008, 10:30 PM
Post #3





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



QUOTE(pelrun @ Mar 6 2008, 02:28 AM) *
Success! I grabbed evilJazz's kernel source tarball (which is unbelievably easy to use) and modified it to use my NAND layout. Kexec'ing now works perfectly!

Hey, isn't dualbooting already working as in http://www.oesf.org/forum/index.php?showtopic=25555 ? tongue.gif
Go to the top of the page
 
+Quote Post
pelrun
post Mar 6 2008, 04:06 AM
Post #4





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



Sure, if your NAND partitioning is just right - see that "*exactly 53MB*" bit in your instructions? I didn't want to wipe out my existing pdaXii13 install and start from scratch with split partitions just to satisfy that restriction.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 6 2008, 08:20 AM
Post #5





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



Surely your solution is better!

I guess the reason why some of the directories (such as /home, /usr, /etc ) in pdaX (the jffs2 flash) fail to mount is because they are in a different /dev/mtdblock from the main system files. The 53MB limitation is a roadblock. So I just guess with everything living in one big 121MB root partition they are all accessible/mountable in Debian, which will be the perfect result!
I will try your way with kexec tonight and see how far I can go.

By the way, do you know if it is possible just to kexec the pdaXrom kernel without flashing, then run pdaXii off the SD just like on the microdrive on C3000 (chrooted?)?

If this works then I will certainly parted the internal disk into the partition to suit Cacko in NAND (if no luck with Meanie's hacked rc.rofilesys), and run pdaXii off SD, and perhaps also with Cortez' Android rootfs off another SD with kexec the patched 2.6.23 kernel...

Rather than coming to an end, I think the big fun of the Z just begins...
Go to the top of the page
 
+Quote Post
adf
post Mar 6 2008, 09:20 AM
Post #6





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE
Rather than coming to an end, I think the big fun of the Z just begins...


I was thinking that re the cacko debian dual boot... but if I could kexec into sid using my existing ii13v2/PW etch setup.... smile.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 7 2008, 05:05 AM
Post #7





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



QUOTE(pelrun @ Mar 6 2008, 02:28 AM) *
Success! I grabbed evilJazz's kernel source tarball (which is unbelievably easy to use) and modified it to use my NAND layout. Kexec'ing now works perfectly!

Thanks for the kernel. I use it on my 3200 and it works like a charm! Everything in pdaXii (root partition = 121MB) is visible under Debian! So dualbooting Debian/pdaXii is real now! wink.gif
There are a few new paths to follow... (Cacko on NAND, pdaXii w/ Meanie's hdimage-full.tgz on SD ...)
Go to the top of the page
 
+Quote Post
born2wonder
post Apr 13 2008, 02:12 PM
Post #8





Group: Members
Posts: 26
Joined: 24-June 07
Member No.: 17,442



QUOTE(pelrun @ Mar 5 2008, 06:28 PM) *
Success! I grabbed evilJazz's kernel source tarball (which is unbelievably easy to use) and modified it to use my NAND layout. Kexec'ing now works perfectly!


Can you please make a similarly edited kernel for the c1000, or post steps to do it since I am not familiar with compiling the kernel .
Thanks in advance
Go to the top of the page
 
+Quote Post

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: 18th December 2014 - 06:16 PM