Author Topic: Dualboot Idiot Guide  (Read 34003 times)

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« on: April 21, 2005, 04:56:33 pm »
For those who want to stick with Cacko 1.22 but also want to have a taste on pdaXrom without touching NAND or whatsoever (It's me   ), here are some sharings on how I dualboot my Zaurus C760.

--------------------
Firstly, for sure, you need to have Cacko 1.22 with hotfix installed: Get Cacko here

Secondly, get an ext2 or ext3 formatted SD card. To obtain, simply follow this guide: Step-by-step CF/SD fdisk/formatting for newbies. Remember to unplug and plug the SD again to remount.

Then, download the scripts required: Dual_C760.zip. Unzip and place them on the machine, for instance, I place all the extracted files at /home/zaurus/Documents

Download the pdaXrom tarball: either pdaX-SD.tar.gz or pdaX-1.0.5-SD.tar.gz. I am not sure whether the latter is the real 1.0.5. Let's pick this one.

Transfer and extract the tarball to the root of SD card. To do this, you need to have gtar installed in order to let the system understand the "p" flag to preserve permissions, the gtar package is included in Dual_C760.zip:

Code: [Select]
$ su
# ipkg install /home/zaurus/gtar_1.13.25-1_arm.ipk
# cd /mnt/card/
# gtar -zxvpf pdaX-1.0.5-SD.tar.gz

Next, follow these steps:

Code: [Select]
# mount -o rw,remount /
# mkdir /sbin/sys
# cp /sbin/init /sbin/sys/init
# rm /sbin/init
# cp /home/zaurus/init /sbin/init
# cp /home/zaurus/pivot_root /sbin/pivot_root
# chmod +x /sbin/init
# chmod +x /sbin/pivot_root

Since there are changes on the filesystem in Cacko 1.22, line 12 in the /sbin/init script needs to be altered:

Code: [Select]
mount -n -r -t cramfs /boot/usr.bin /usr -o loop
to

Code: [Select]
mount -n -r -t squashfs /boot/usr.bin /usr -o loop
I also attached the modified /sbin/init script, for the sake of convenience.

It's nearly the end, remount / as read-only and reboot:

Code: [Select]
# mount -o ro,remount /
# reboot

Your Zaurus should now boot into pdaXrom with SD plugged in, and boot into Cacko otherwise. When booted into pdaXrom, login as root and issue startx.
--------------------

Although this guide may looks idiot, like me, I did put a hard effort on dualbooting my Z (Stu should know, Many thanks  ). I hope someone can benefit from it. Corrections and suggestions are welcome.
« Last Edit: April 22, 2005, 04:27:06 am by penguinsam »

numeric

  • Newbie
  • *
  • Posts: 9
    • View Profile
Dualboot Idiot Guide
« Reply #1 on: April 22, 2005, 02:06:38 am »
Thanks for your guide!

I want to know where is the pivot_root located, as it does not exists in Dual_C760.zip

Thanks alot

Quote
Code: [Select]
# mount -o rw,remount /
# mkdir /sbin/sys
# cp /sbin/init /sbin/sys/init
# rm /sbin/init
# cp /home/zaurus/init /sbin/init
# cp /home/zaurus/pivot_root /sbin/pivot_root
# chmod +x /sbin/init
# chmod +x /sbin/pivot_root

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #2 on: April 22, 2005, 04:16:18 am »
Sorry I linked the wrong file and have updated. Please see the attachment in post #1 again.  

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
Dualboot Idiot Guide
« Reply #4 on: April 22, 2005, 12:55:29 pm »
This seems really cool, but I'm wondering how responsive pdaxrom and any installed apps are when running off a SD card?  Though maybe having a true dual boot environment is worth the compromise in speed.
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Dualboot Idiot Guide
« Reply #5 on: April 22, 2005, 01:18:33 pm »
well, it's load time...
I don't mind load time.

let firefox load -- it takes forever... leave it up, etc.
suspend is your friend.

Scott
ps: with that said, I haven't tried this dualboot :->

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #6 on: April 23, 2005, 03:02:42 am »
Quote
well, it's load time...
I don't mind load time.

let firefox load -- it takes forever... leave it up, etc.
suspend is your friend.

Scott
ps: with that said, I haven't tried this dualboot :->
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76441\"][{POST_SNAPBACK}][/a][/div]
Since I got my pdaXrom installed on my high-speed panasonic SD   , the bootup time is pretty short, much shorter than booting Cacko up. Another reason for that speed may be...I haven't installed any apps on it.

numeric

  • Newbie
  • *
  • Posts: 9
    • View Profile
Dualboot Idiot Guide
« Reply #7 on: April 25, 2005, 02:48:14 am »
I run pdaxrom on SD now, however the mouse pointer is offset about 20 pixels when it is on the right side of the screen.

I've tried to recalibrate :

1. run ts_calibrate

or

2. del /etc/pointercal and reboot

but doen't fix the problem.

Please advise how to fix it.

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #8 on: April 25, 2005, 04:47:19 am »
Quote
I run pdaxrom on SD now, however the mouse pointer is offset about 20 pixels when it is on the right side of the screen.

I've tried to recalibrate :

1. run ts_calibrate

or

2. del /etc/pointercal and reboot

but doen't fix the problem.

Please advise how to fix it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76694\"][{POST_SNAPBACK}][/a][/div]
Yes, this is one of the problems that we need to overcome.

It seems the apps bar on the right of the screen is taken into account. I've no idea yet  

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #9 on: April 25, 2005, 10:31:10 am »
Rather than the mouse pointer offset issue pointed out by numeric, there are still some problems to be fixed, one is that when booted to Cacko, extra mount points appear, it's better to illustrate with the aid of these screenshots:

1. Mount table before setting up dualboot
[img]http://photos8.flickr.com/10860533_ac9bf0dc6d_o.jpg\" border=\"0\" class=\"linked-image\" /]

2. Mount table after setting up dualboot
[img]http://photos5.flickr.com/10860534_26f7776af1_o.jpg\" border=\"0\" class=\"linked-image\" /]

3. Extra "Temporary Storage" in Files tab
[img]http://photos6.flickr.com/10860535_7c9b2657a7_o.jpg\" border=\"0\" class=\"linked-image\" /]

4. "Internal Flash" goes to "/home"
[img]http://photos5.flickr.com/10860536_b9d56bf11d_o.jpg\" border=\"0\" class=\"linked-image\" /]

5. "Temporary Storage" goes to "/home/zaurus/Documents"
[img]http://photos6.flickr.com/10860537_00baa8d51a_o.jpg\" border=\"0\" class=\"linked-image\" /]

I tried looking at the dualboot init script, and found that this problem may due to the unsuccess in unmounting some mount points.

I am suspecting line 30 and 31 of the init script:

Code: [Select]
umount /dev >/dev/null 2>&1
umount /proc >/dev/null 2>&1

numeric, have you got the same problem?

numeric

  • Newbie
  • *
  • Posts: 9
    • View Profile
Dualboot Idiot Guide
« Reply #10 on: April 25, 2005, 09:25:40 pm »
Yap, me too. Got exactly the same problem under CACKO 1.22 .

numeric

  • Newbie
  • *
  • Posts: 9
    • View Profile
Dualboot Idiot Guide
« Reply #11 on: April 25, 2005, 09:30:44 pm »
And one more problem. I found out that the battery will be used up very soon even after it was suspended.

I have been installed pdaxrom on the ROM few months ago. It does not have these problems:

- no cursor offset
- suspend without using up the battery life

Do you think there are ways to solve?

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #12 on: April 27, 2005, 12:33:47 am »
Quote
And one more problem. I found out that the battery will be used up very soon even after it was suspended.

I have been installed pdaxrom on the ROM few months ago. It does not have these problems:

- no cursor offset
- suspend without using up the battery life

Do you think there are ways to solve?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76851\"][{POST_SNAPBACK}][/a][/div]
Yes, that's a problem. Many problems needed to be solved...  

I am now waiting the latest tarball of pdaXrom from Laze to see if the same issues exist.

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #13 on: June 20, 2005, 06:20:37 am »
Would this work on a C1000 with the stock Sharp ROM?

Thanks,

Owen
Zaurus C-1000

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Dualboot Idiot Guide
« Reply #14 on: June 23, 2005, 04:18:07 am »
Hi there, I'm hoping this will work with my C1000 - making the attempt, if anyone already has, let me know, would be cool to compare notes
« Last Edit: June 23, 2005, 04:29:32 am by omro »
Zaurus C-1000