Author Topic: So Close To Debian/pdaxii13 Dual Boot!  (Read 6412 times)

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« on: January 21, 2008, 08:27:33 pm »
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.  

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

Code: [Select]
0x00000000-0x00700000 : "smf"
0x00700000-0x08000000 : "root"
0x08000000-0x08000000 : "home"
but the kexec'd boot displays:

Code: [Select]
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)
« Last Edit: January 22, 2008, 10:52:22 pm by pelrun »
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #1 on: March 05, 2008, 08:28:42 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!
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #2 on: March 06, 2008, 01:30:53 am »
Quote from: pelrun
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 https://www.oesf.org/forum/index.php?showtopic=25555 ?  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #3 on: March 06, 2008, 07:06:12 am »
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.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #4 on: March 06, 2008, 11:20:35 am »
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...
« Last Edit: March 06, 2008, 11:22:31 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #5 on: March 06, 2008, 12:20:27 pm »
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....
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
So Close To Debian/pdaxii13 Dual Boot!
« Reply #6 on: March 07, 2008, 08:05:24 am »
Quote from: pelrun
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!  
There are a few new paths to follow... (Cacko on NAND, pdaXii w/ Meanie's hdimage-full.tgz on SD ...)
« Last Edit: March 07, 2008, 08:06:18 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

born2wonder

  • Newbie
  • *
  • Posts: 25
    • View Profile
So Close To Debian/pdaxii13 Dual Boot!
« Reply #7 on: April 13, 2008, 06:12:11 pm »
Quote from: pelrun
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
C1000 yonggun kernel and andromeda
Ambicom/dell/canon wifi cards