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

IPB

Welcome Guest ( Log In | Register )

> 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
 
Start new topic
Replies
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
born2wonder
post Apr 13 2008, 02:12 PM
Post #3





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

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2014 - 12:09 AM