Author Topic: Dualbooting/multiplebooting With Kexec!  (Read 80629 times)

pasteur

  • Newbie
  • *
  • Posts: 18
    • View Profile
Dualbooting/multiplebooting With Kexec!
« Reply #15 on: March 05, 2008, 10:06:30 am »
Quote from: Snappy
Quote from: pasteur
Quote from: ZDevil
Quote from: pasteur
does updater.sh attached work on c1000 too?
I am not absolutely sure, but you can always use the Angstrom updater.sh for Akita.
Another (bigger) question is whether the yonggun kernel works on C1000. You can take a look at the discussion of yonggun's blog here: http://yonggun.tistory.com/66
Thank you for the advice. It WORKS PEFECTLY!!!

So you got the whole setup working on your c1000?  What are the distros on your akita?


pdaXromb3 on Nand, debian 2.6.24 on 4GB SD partitioned into two partition (95% ext3 5% swap)
c1000 with debian eabi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #16 on: March 07, 2008, 05:49:47 pm »
I ran into a strange problem:

In the beginning of testing dualbooting, my 3200 could load the yonggun sd kernel (mmcblk0p1) and boot up the Debian rootfs on SD. But after fiddling with flashing pdaXrom and Cacko for a few times, somehow the Z cannot boot off SD, both in the simple way (kexec -l & kexec -e) and with my boot script. The system freezes after kexec -e.

Has anyone run into the same case or succeeded in booting off SD?

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]

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Dualbooting/multiplebooting With Kexec!
« Reply #17 on: March 13, 2008, 08:05:39 am »
I wanted to try to do the MAKEDEV console thing to be able to boot back into sharp rom, but how do I mount the ramfs?

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #18 on: March 23, 2008, 07:55:47 am »
Another question about using the yonggun kernel (sharp bootloader version): since they are made to boot the rootfs off /dev/hda1, /dev/mmcblk0p1 or /dev/mmcblk0p2, does it still work if I repartition the internal disk back into the Sharp/Cacko fashion? The rootfs would then live in /dev/hdd3, can the kernel for hda1 boot up the system from there?

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]

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #19 on: March 23, 2008, 11:06:38 am »
Quote from: ZDevil
Another question about using the yonggun kernel (sharp bootloader version): since they are made to boot the rootfs off /dev/hda1, /dev/mmcblk0p1 or /dev/mmcblk0p2, does it still work if I repartition the internal disk back into the Sharp/Cacko fashion? The rootfs would then live in /dev/hdd3, can the kernel for hda1 boot up the system from there?

I think it is possible to boot /dev/hda3 if the option is properly given before building the kernel.  
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #20 on: March 23, 2008, 11:36:12 am »
So will there be new yonggun kernels for this?  
Both hda3 and hda4 will be good, as it may be nice if Sharp/Cacko users can install additional stuff on hdd3, while leaving hdd4 for Debian.  
BTW I saw this japanese page hosting kernel 2.6.24 with fastfpe and cpufreq enabled:
http://www.bigbridgezau.sakura.ne.jp/wiki....2F2008%2D3%2D21

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
Dualbooting/multiplebooting With Kexec!
« Reply #21 on: March 23, 2008, 01:37:28 pm »
Quote from: ZDevil
BTW I saw this japanese page hosting kernel 2.6.24 with fastfpe and cpufreq enabled:
http://www.bigbridgezau.sakura.ne.jp/wiki....2F2008%2D3%2D21


Thanks for the great find ZDevil. I tried it on my c1000 and it resulted, as expected,  in a kernel panic as it tries to load from hda1 ( i have my rootfs on sd).I just wish now some1 can do the same for us c1000 users! (auto boot rootfs from mmcblkp1 and supporting fastfpe and cpufreq). I really want to be able to overclock in debian specifically for  compiling and/or installing software.
C1000 yonggun kernel and andromeda
Ambicom/dell/canon wifi cards

jocasmi

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #22 on: March 24, 2008, 05:57:19 pm »
It's an interesting site.

Thanks
SL-C3200 Sharp Rom, Meanie's X/QT and Pocket Workstation
Wifi Linksys WCF12, SD 1GB Kingston (Ellite Pro)

SL-5500S Cacko Crow 30/30 home on SD
SD 1GB Kingston (the good one)
CF 1GB Kingston


Juanjo Santiso
Barcelona
EU

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #23 on: March 26, 2008, 06:06:37 pm »
Just updated the first post with instructions to setting up dualbooting Sharp/Cacko and Debian. Have fun!

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]

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Dualbooting/multiplebooting With Kexec!
« Reply #24 on: March 26, 2008, 06:29:03 pm »
Thanks for the update!

2 Comments:
- is there a way to avoid re-installing sharp/cacko for those already using it?
- in the last section your explanation seems to mix cacko and pdaXrom together  

I can't wait to dualboot!

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Dualbooting/multiplebooting With Kexec!
« Reply #25 on: March 26, 2008, 06:57:58 pm »
Quote from: matthis
2 Comments:
- is there a way to avoid re-installing sharp/cacko for those already using it?
- in the last section your explanation seems to mix cacko and pdaXrom together  
Actually you don't have to reinstall sharp/cacko in NAND if they are already working. Just make sure the Debian rootfs is placed properly on the internal disk, and then reflash a kexec-friendly kernel for Debian (yonggun, angstrom, poky). Reboot, and you have a dualbooting setup.  
btw what is mixed up and where? There are two separate sample scripts for booting pdaX and sharp/cacko. I've only updated the notes up to section 3. I am still having issues with accessing the NAND space in Debian (simply put, the mtd modules seem to handle NAND differently than then roms -- a partitioning issue? Also in Sharp/Cacko /dev/hda1 is mounted as read-only. Any solution?)
Quote
I can't wait to dualboot!
Of course! With sharp bootloader and kexec, the Z is now capable of juggling different distros with great ease.  
« Last Edit: March 26, 2008, 07:00:55 pm 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://
Dualbooting/multiplebooting With Kexec!
« Reply #26 on: March 26, 2008, 10:01:33 pm »
Does anyone have cacko/debian dualbooting smoothly?
Any chance you could add a gmail with qtmail howto?
Really nice thread btw:)
« Last Edit: March 26, 2008, 10:05:36 pm by adf »
**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://
Dualbooting/multiplebooting With Kexec!
« Reply #27 on: March 27, 2008, 01:19:15 am »
Here is taken from my old notes on Sharp rom (hope it still works):

Adding Gmail support in qtmail:

#1 Install the stunnel package

#2 Edit /etc/inetd.conf. Add these two lines:
Code: [Select]
pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/stunnel -r pop.gmail.com:995 -c
smtp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/stunnel -r smtp.gmail.com:465 -c
#3 Reboot

Or here: https://www.oesf.org/forum/index.php?showtopic=14283

===========
Back to the topic:
Debian/Cacko dualboots very smoothly. The two systems exist side by side and do not interfere with each other. A good alternative to the Pocketworkstation solution.
Still there is an issue to resolve: the two filesystems cannot access of each other. In debian there is a problem with mounting the jffs2 mtdblocks, and in sharp/cacko /dev/hda1 (where my debian rootfs is) is mounted as a read-only partition.
« Last Edit: March 27, 2008, 01:22:12 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://
Dualbooting/multiplebooting With Kexec!
« Reply #28 on: March 27, 2008, 02:40:01 am »
Quote from: ZDevil
Here is taken from my old notes on Sharp rom (hope it still works):

Adding Gmail support in qtmail:

#1 Install the stunnel package

#2 Edit /etc/inetd.conf. Add these two lines:
Code: [Select]
pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/stunnel -r pop.gmail.com:995 -c
smtp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/stunnel -r smtp.gmail.com:465 -c
#3 Reboot

Or here: https://www.oesf.org/forum/index.php?showtopic=14283

===========
Back to the topic:
Debian/Cacko dualboots very smoothly. The two systems exist side by side and do not interfere with each other. A good alternative to the Pocketworkstation solution.
Still there is an issue to resolve: the two filesystems cannot access of each other. In debian there is a problem with mounting the jffs2 mtdblocks, and in sharp/cacko /dev/hda1 (where my debian rootfs is) is mounted as a read-only partition.
keep all your data on some additional extended partition accesable by both?
**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://
Dualbooting/multiplebooting With Kexec!
« Reply #29 on: March 27, 2008, 04:50:05 am »
Actually it is pretty flexible to set up dualbooting like this.
For example, if you already have a working Sharp/Cacko or pdaXrom or Angstrom and do not want to fiddle with the partitions on the internal disk, you can choose to run debian on SD instead of the internal disk.
Things are even simpler in this case: just flash the yonggun kernel for booting from SD to make the debian rootfs on the SD the main system. Then use kexec or the attached booting scripts to boot the subsystems in NAND and on the internal disk. That should be a clean and safe way.
« Last Edit: March 27, 2008, 04:51: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]