Author Topic: Dual Booting pdaX from SD  (Read 30165 times)

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #30 on: April 09, 2004, 03:20:39 pm »
Stu,

I\'m not getting the pivot_root error.  I copied the tarball from my CF card to my ext2 formatted SD card and then extracted it.

I will try using gtar and post my results

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #31 on: April 11, 2004, 07:58:15 am »
Sorry for the delay, took more testing than I anticipated. Cacko roms also have a usr.bin in /boot which is a cramfs of the normal /usr dir. Took me a whole day wondering why I kept getting errors on \"mount /dev/mmcda1 /usr/mnt.rom/card\" till I found this out.

This init script works form me on Sharp Qtopia, Cacko 1.21 roms, haven\'t had time to test on anything else yet.

Still can\'t dual boot into a Qtopia rom - the normal /sbin/init and all other apps give sig faults - any ideas anyone??

Here is the improved init script for C760 dual booting
Code: [Select]
#!/bin/sh

if [ "$1" != "" ]

then

    exec /sbin/sys/init $@

fi

mount none /proc -t proc

mount none /dev -t tmpfs

if [ -f /root/.dev_default.tar.gz ]

then

    echo "Cacko style"

    gzip -dc /root/.dev_default.tar.gz | tar xf -

    mount -n -r -t cramfs /boot/usr.bin /usr -o loop

else

    echo "Sharp style"

    tar xf /root/.dev_default.tar

fi

insmod /lib/modules.rom/2.4.18-rmk7-pxa3-embedix/kernel/drivers/block/sharp_mmcsd_m.o

mount -oasync,noatime /dev/mmcda1 /usr/mnt.rom/card



if [ -f /usr/mnt.rom/card/init.card ]

then

    echo ""

    echo "Executing init on SD card"

    cp /usr/mnt.rom/card/init.card /dev/.

    exec /dev/init.card

else

    echo ""

    echo "Chainloading rom init"

    umount /usr/mnt.rom/card >/dev/null 2>&1

    umount /dev >/dev/null 2>&1

    umount /proc >/dev/null 2>&1

    rmmod sharp_mmcsd_m.o >/dev/null 2>&1

    exec /sbin/sys/init

fi


hope this helps

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #32 on: April 21, 2004, 02:44:32 pm »
Has anyone been able to get Stu\'s script above to work?

I keep getting errors after it echos \"Cacko style\" . The first error is when it tries to insmod the SD driver and throws \"no such file or directory\"; then it throws about 6 modprobe errors complaining about not finding /lib/modules/2.4.18-rmk7-pxa-embedix/modules.dep.
This is occurring with the Cacko 1.21 ROM and pdaXrom on the SD. (I\'m using Stu\'s extraction of the pdaXrom which includes the init.card & fb fix) I can\'t believe it\'s a difference between the 760 & my 750.

Any ideas would be welcomed.
Thanks
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #33 on: April 21, 2004, 04:34:51 pm »
Quote
Has anyone been able to get Stu\'s script above to work?  
OK, I found updated instructions on the OZ dual boot thread and installed the gtar ipk. Evidently, the -p switch was not working, so now I\'ve gotten further  but have hit a different error.  :cry:

the init.card runs but when it tries to exec the sbin/init, I get
Code: [Select]
/dev/init.card: cannot open dev/console: no such file

Kernel panic: Attempted to kill init!


Stu, what\'s your secret that makes this work for you?
Thanks,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #34 on: April 21, 2004, 08:49:27 pm »
Jerry,

From a terminal on the Z,

cd /mnt/card
tar xf root/.dec_defaul.tar

This will untar all the dev files again to /mnt/card/dev

cd /mnt/card/dev  and check that /mnt/card/dev/console is there. Looks like the /dev/ file perms or something didn\'t get packaged properly - sorry.

Will post a tarball of cacko-1.21 on SD later for people to try if they like. Just getting a few bug out.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #35 on: April 21, 2004, 09:58:11 pm »
YES! Thanks Stu, now I\'ve made it to the pdaXrom login.  The X server seems to be a bit twitchy as after login I ran startx and the screnn went blank, backlight still on but no calibration screen. At lesast I\'ve got the text version working.
Thanks again Stu,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #36 on: April 22, 2004, 03:12:16 am »
It takes a while (30 secs+) from typing startx and getting the matchbox desktop. My SD card is old and slow though.

Cacko 1.21 on SD takes even longer - about 4 minutes to boot

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Dual Booting pdaX from SD
« Reply #37 on: April 22, 2004, 03:31:08 am »
sash is working on creating an IPK from Sharp Qtopia, so that it can be installed on top of pdaxrom. If everything works, you should be able to start Qtopia without rebooting and maybe even without exiting X.

ChrisEBoy

  • Newbie
  • *
  • Posts: 47
    • View Profile
Dual Booting pdaX from SD
« Reply #38 on: April 22, 2004, 04:19:25 am »
god that would be excellent. IT would give full sync with kopi as well, this is one execellent tool and and even better community :-)
Chris

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #39 on: April 22, 2004, 10:16:41 am »
Quote
It takes a while (30 secs+) from typing startx and getting the matchbox desktop. My SD card is old and slow though.  

Cacko 1.21 on SD takes even longer - about 4 minutes to boot

Stu
Well, I gave it more than 15 mins no luck. Then I switched back to the original Xfbdev and it loaded the matchbox desktop but of course it was all garbled. So I\'m guessing it has something to do with the Xfbdev. I noticed that it belonged to \"users\" and the original was root so I chown it to root but still no joy. Next I\'ll try and down the version from this thread to see if that helps.

maslovsky- great news about the potential of having Qtopia on top of the Xrom. I really need and want both, they each have their strengths & weaknesses. To have both will make the Z the ultimate \"Personal Mobile Tool\"
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #40 on: April 22, 2004, 12:16:00 pm »
Jerry,

Can you run ts_calibrate (I think that\'s the name, I used on another page of this thread) from the console using the Xfbdev I posted?

If so then it might be something that needs to run before - the calibration should already have ben done when I made the tarball (Currently have cacko 1.21 on SD so can\'t check)

After I get Cacko working properly, I\'m going to try to get pdaX to run with Q/X11 so I don\'t have to reboot to run pdaX

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #41 on: April 22, 2004, 01:23:11 pm »
Quote
Jerry,  

Can you run ts_calibrate (I think that\'s the name, I used on another page of this thread) from the console using the Xfbdev I posted?
That did the trick!    Very cool to finally have pdaXrom without having to reflash the Cacko ROM.

I mounted the initrd.bin from the pdaXrom1.05 on my linux box and extracted a tar ball. My next step is to see if I can get this to work with the current release.
A million thanks to Stu for helping me get this to work.
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #42 on: April 23, 2004, 07:51:17 am »
Stu:
The tar ball I extracted from the initrd.bin doesn\'t seem to work, it hangs after
Code: [Select]
exec init If I remember correctly you had similar problems with extracting from the image too. So I flashed the ROM and extracted the tar ball from the Z, I did it by excluding /mnt/cf. That tar ball worked but I get segmentation errors when I try and run startx. Any tips to extracting the file system from the Z?
Thanks,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #43 on: April 23, 2004, 10:53:58 am »
Jerry,

From /mnt/card/ do
tar xf /mnt/card/root/.dev_default.tar
tar xf /mnt/card/root/.home_default.tar
cd /mnt/card/home/system/var
tar xf /mnt/card/root/.var_default.tar

then cd /mnt/card/root/etc and edit fstab to remove / and /mnt/card entries
cd /mnt/card/root/etc/rc.d and edit rc.rofilesys to only mount the tmp filesystem

Basically you need to make sure that the rom on the SD doesn\'t try to mount the zaurus filesystem or SD - have a look at the pdaX-SD tarball for examples - I may be missing something.

I have a 4 hour return shinkansen trip next week, I hope to write a SD card rom filesystem cleanup script then, but look at the scripts that Derek posted for the 5500 for ideas - they\'re not quite the same but you can get an idea what to change

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #44 on: April 23, 2004, 02:34:10 pm »
Thanks Stu:
For those trying this too, the other steps are
Code: [Select]
cd /mnt/card/etc/

mv sdcontrol _sdcontrol

cd /mnt/card/etc/rc.d/init.d

mv sd _sd


So now I\'ve got it working with one major problem & one minor:
init is throwing cardmgr error relating to hda1, so I can\'t access the CF,
and suspend doesn\'t work so you can\'t turn it off (PITA to have to use halt & reboot)
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF