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

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #15 on: April 05, 2004, 11:36:25 pm »
Quote
Jerrybeme,

For verbose messages during kernel boot I recommend tetsu special kernel 14.a (it\'s available for all models of Cxx0 series) and allows you to over/underclock cpu and video if you want too, as well as a bunch of other tweaks. You can get it here WARNING site in Japanese

With regards to the init script not finding /root.dev_default.tar - check that /root contains .dev_default.tar and not .dev_default.tar.gz or .dev-default.tar, I\'m pretty sure that one of the roms I have flashed used a tar.gz instead of tar for storing the .dev, .home, and .var files in root

Stu
Thanks for the tips, indeed the Cacko 1.20 ROM uses .tar.gz, but in reading the error, I thought it was refering to the files on the SD card which are .tar files. If I remember correctly the 1.18 version uses dev_default.tar. So maybe that\'ll work.

Any chance you could post the Xfbdev file you extracted from x11zaurus by attaching it to a posting in this thread?

Thanks for your help.

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 #16 on: April 06, 2004, 03:41:16 am »
Quote
Thanks for the tips, indeed the Cacko 1.20 ROM uses .tar.gz, but in reading the error, I thought it was refering to the files on the SD card which are .tar files. If I remember correctly the 1.18 version uses dev_default.tar. So maybe that\'ll work.

Any chance you could post the Xfbdev file you extracted from x11zaurus by attaching it to a posting in this thread?  

Thanks for your help.

Jerry

I\'ll attach Xfbdev as soon as i get home (at work I\'m don\'t have access to a machine with USB support - damm cheap company running NT still).

If you want to keep using Cacko 1.20 then change the tar line in the init script (but not the init.card script unless you are trying to boot cacko 1.20 from SD) to

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

this will pipe the gunzipped file to tar (without actually changing the file)

later

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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #17 on: April 06, 2004, 06:53:54 am »
Jerry,

Here is the Xfbdev that I\'m currently using on pdx rom on SD.

CoreyC,

I\'ve made a tarball of the pdaX on SD, just looking for somewher to host it, I\'ll let you know when I find somewhere (hopefully within a few hours)

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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #18 on: April 06, 2004, 08:28:04 am »
CoreyC,

I\'ve got a 17Mb tarball of the pdaXrom setup on my SD card, but unfortunately no where to store it online.
I can email you the tarball or drop it anywhere you want.

Maybe someone knows where I can get free online storage, all the palces I knew are now closed.

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 #19 on: April 06, 2004, 11:41:34 am »
Quote
Jerrybme,
Try the following on each kernel:
cat /proc/ksyms |awk \'{print $2}\' |sort ]somefile.kernelname

Then diff the two output files.  This should help track down what one kernel has that the other one lacks.
derekp: thanks for the tip;  the ksyms output worked slick. Now on to try flashing the different kernels.

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 #20 on: April 07, 2004, 12:44:37 pm »
With huge thanks to CoreyC, I now have a place to hold the tarball of my pdaX on SD setup.

It can be downloaded from http://zaurus.hostnic.us/ along with the scripts used for dual booting on the C760

Brief Instructions

1. remount / writeable (mount -o rw,remount /)
2. mkdir /sbin/sys
3. cp /sbin/telinit /sbin/sys/init - this was the crucial step for me, telinit didn\'t like being linked from /sbin/sys/init and gave spawning errors
4. cp init scrip to /sbin
5. chmod +x /sbin/init
6. untar pdaX-SD.tar.gz to ext2 formatted SD card
7. reboot and cross fingers

The tarball already contains the init.card and Xfbdev needed for booting from Qtopia based kernel.

Let me know if this works or not for anyone testing this, also I\'d love to hear from anyone who has dual booted a Qtopia based rom on the C760 as I\'m getting segmentation fault errors when I try.

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

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Dual Booting pdaX from SD
« Reply #21 on: April 07, 2004, 01:53:55 pm »
I\'ve been polishing up my original 5500 dualboot scripts, and have a couple things that might help.
First, I\'m setting it up to properly handle if /sbin/init is a program or a symlink to telinit.  Also, instead of using the mtdram test driver  to read a jffs2 initrd.bin image, I\'m switching to blkmtd, which is a test mtd driver you can point to a block devices (such as a loopback device pointing to the initrd.bin file).  This should help in being able to convert a larger image file (i.e., no more out of memory errors).
Finally, I\'m going to try and do a pdax2sd for the sl5500.  The main differences between this and the standard oz2sd is that oz uses a single file system, which is read-write.  The standard roms for other sharp models (5600 & above) have the flash divided into multiple partitions, with root being read-only and the user area (/home) read-write.  I\'m not sure what the pdaxrom uses, as I haven\'t looked at it that close yet, but if it\'s the same structure then there will be startup scripts along those lines to be modified accordingly.
My new 5500 dualboot stuff will be posted shortly, and I\'ll try my hand at working with the c-series rom images to see what I can do (of course, won\'t be able to test myself as I don\'t yet have one of those models).
I\'ll keep you posted on the progress.

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #22 on: April 07, 2004, 03:18:55 pm »
Stubear: Thanks for posting your tar ball, I was getting all kinds of errors when the card.init was trying to load up the file system I had extracted from the pdaXrom. Being able to test your extraction will allow me to see if it is some error in my extraction. The other possibility is the home, dev & var files being gzipped instead of tar. Need to try this on earlier Cacko ROM. I hesitate to use tKc ROM as it doesn\'t support backup-restore so it is PITA to reflash and re-install. BTW, are you going to try the latest pdaXrom? Please post your extraction if you do!

derekp: I\'ll be happy to test your scripts.

I haven\'t had a chance to reflash with the pdaXrom yet to do the ksysm diff yet but should be able to get to it soon. Damn work keeps getting in the way of playing with my toys  

Thanks to both of you for your help.
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #23 on: April 08, 2004, 12:49:41 am »
Stu,

I\'ve tried it a couple times with tkc rom with no sucess.

My error come after it attempts to sxecute init on my SD card...

It checks if the card is mounted, mounts the card and then does this:

+ cd /usr/mnt.rom.card
+ [ ! -d oldroot ]
+ pivot_root . old root
pivot_root: not found
+ sleep 5
+ exec sbin/init
/dev/init.card: cannot open dev/console: no such file
Kernel panic: Attempted to kill init!

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #24 on: April 08, 2004, 03:51:34 am »
Corey,

The problem is pivot_root. You need to get the pivot_root file from Derekp\'s dual boot script and copy it to /sbin on your zaurus -  you will need to remount the / partition writable with mount - o rw.remount /

Make sure you put it back to roead-only with mount -o ro,remount / after you\'re done

A link to derekp\'s boot script is here
You only need the pivot_root binary from it.

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

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #25 on: April 08, 2004, 11:56:38 am »
Stu,

Still no luck...

right now it seems like dev/console is a link to tty1 which for some reason is not getting extracted from the tarball.  I\'ve tried extractig the tarball serveral different ways with the same result.  (got the same error as above, \"cannot open dev/console\")

I tried manually placing the files in the tarball dev into /mnt/card/dev and I got farther in the boot process but it froze without any errors.  I forgot what the last line was when it froze, something about the monitor...

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #26 on: April 08, 2004, 01:03:19 pm »
Well, it looks like the earlier Cacko ROM -ver 1.18 might work with dual booting. I\'ve gotten farther with this ROM than previous one. I\'m running into this error now:
Code: [Select]
+ cd /usr/mnt.rom.card

+ [ ! -d oldroot ]

+ pivot_root . old root

modprobe: modprobe: Can\'t open dependencies files /lib/modules/2.4.18-rmk-pxa3-embedix/modules.dep (no such file or directory)

modprobe: modprobe: Can\'t open dependencies files /lib/modules/2.4.18-rmk-pxa3-embedix/modules.dep (no such file or directory)

Out of memory:Killed process 27 (init.card)

Terminated

+ sleep 5

+ exec sbin/sys/init

Kernel panic: attemped to kill init!

I\'m making progress. At least I know know the current scripts won\'t work with the gzipped files in /root

The file /lib/modules/2.4.18-rmk-pxa3-embedix/modules.dep does exist on both the Qt ROM and the SD card. Not sure why I\'m getting this error.

I\'ll need help from someone a lot smarter than I on how to deal with the gzipped .dev_default, .home_default and .var_default in the current Cacko ROM. Which is my goal as I want to take advantage of the updates to the ROM.

Cheers,
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 #27 on: April 09, 2004, 11:44:20 am »
Quote
Stu,

Still no luck...

right now it seems like dev/console is a link to tty1 which for some reason is not getting extracted from the tarball.  I\'ve tried extractig the tarball serveral different ways with the same result.  (got the same error as above, \"cannot open dev/console\")

I tried manually placing the files in the tarball dev into /mnt/card/dev and I got farther in the boot process but it froze without any errors.  I forgot what the last line was when it froze, something about the monitor...

Corey,

Are you still getting the error about pivot_root not found?

If so then try moving pivot root to /bin
If not then cd /mnt/card and run
tar xf /root/.dev_default.tar

This will unpack all the dev files again onto /mnt/card/dev
Where did you unpack the tarball, on the Z or from pc? If you did it from the Z then you might need to get gtar, install it and try unpacking the tarball using gtar xzpf pdaX-SD.tar.gz - the p preserves the permissions instead of creating new ones.

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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #28 on: April 09, 2004, 11:45:55 am »
Jerry,

I\'m currently tweaking my script to work on the new cacko rom 1.21, I\'ll post it as soon as I get it working

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 #29 on: April 09, 2004, 02:10:37 pm »
Quote
Jerry,

I\'m currently tweaking my script to work on the new cacko rom 1.21, I\'ll post it as soon as I get it working

Stu
Thanks Stu, I really appreciate your help.
Cheers,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF