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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« on: April 02, 2004, 11:58:39 pm »
Using the scripts provided by derekp in this thread I\'ve been working on dual booting pdaX from a SD card on the C760.

I\'ve gotten pdax to boot and I can run ts_calibrate, but it and X runs in portrait mode rather than landscape mode. tc_calibrate is fine, but the display for X is munlged and unusable.

I\'m sure I\'ve missed something simple but as yet I\'ve been unable to get X working.

Ideas, suggestions greatfully accepted

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

Bebe

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #1 on: April 03, 2004, 12:31:25 am »
I\'m also having problems with the mangled display but under different circumstances.  I attempted to use the kernel that came with the latest Cacko Qt rom (for faster SD writes) under pdaXrom.  The display would automatically become mangled after running startx. However, if I put the zaurus in suspend mode and turn it back on, it would dipslay the desktop perfectly in portrait mode for about a second or two, then the display would become garbled.   Any suggestions would be appreciated.

Bebe
C860 pdaXrom
PNY 512 SD | Lexar 48 CF | Lexar 256 CF
Linksys WCF12 | Targus IR Keyboard
SuSE 9.1 x86_64 Kernel 2.6.7 | FreeBSD 5.2.1 | WinXp

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #2 on: April 03, 2004, 01:05:18 am »
Quote
Using the scripts provided by derekp in this thread I\'ve been working on dual booting pdaX from a SD card on the C760.

I\'ve gotten pdax to boot and I can run ts_calibrate, but it and X runs in portrait mode rather than landscape mode. tc_calibrate is fine, but the display for X is munlged and unusable. 

Great work Stu!  

Can you share how you got as far as you did? That might help others trouble shoot why the display is rotated. I know maslovky was interested in working on the dual boot method.

I tried the renaming of telinit method you posted in the OZ thread, but it didn\'t kick off the card.init.

Thanks & good luck,
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 #3 on: April 03, 2004, 07:09:47 am »
Quote
Great work Stu! 

Can you share how you got as far as you did? That might help others trouble shoot why the display is rotated. I know maslovky was interested in working on the dual boot method.

I tried the renaming of telinit method you posted in the OZ thread, but it didn\'t kick off the card.init.

Thanks & good luck,
Jerry

Just got home from work, so I can now copy the scripts off the Z and zip them up. I\'ll post them over on the main dual boot thread for continuity sake.

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 #4 on: April 03, 2004, 07:32:52 am »
Quote
I\'m also having problems with the mangled display but under different circumstances.  I attempted to use the kernel that came with the latest Cacko Qt rom (for faster SD writes) under pdaXrom.  The display would automatically become mangled after running startx. However, if I put the zaurus in suspend mode and turn it back on, it would dipslay the desktop perfectly in portrait mode for about a second or two, then the display would become garbled.   Any suggestions would be appreciated.

Bebe

Hmm, Maybe the pdaXrom needs the jernel that comes with it - possibly they tweaked something in the kernel, but my guess is a mixed up config file somewhere.

I tried starting X manually by itself but still got mangled display, will try to capture the error messages X puts out to file if I can to help debug.

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 #5 on: April 03, 2004, 08:51:07 am »
Quote
Quote
I\'m also having problems with the mangled display but under different circumstances.  I attempted to use the kernel that came with the latest Cacko Qt rom (for faster SD writes) under pdaXrom.  The display would automatically become mangled after running startx. However, if I put the zaurus in suspend mode and turn it back on, it would dipslay the desktop perfectly in portrait mode for about a second or two, then the display would become garbled.   Any suggestions would be appreciated.

Bebe

Hmm, Maybe the pdaXrom needs the jernel that comes with it - possibly they tweaked something in the kernel, but my guess is a mixed up config file somewhere.

I tried starting X manually by itself but still got mangled display, will try to capture the error messages X puts out to file if I can to help debug.

Stu
A while back I asked sashz if the Cacko kernel would work with pdaXrom and said it would, but it does sound like it\'s the X server that\'s not working right, makes wonder if it is indeed something in the kernel. If I can get this to work, I may try using the pdaXrom kernel to see if that fixes the problem.
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 #6 on: April 03, 2004, 01:55:27 pm »
Stu:
I\'m posting this back here because it seems to belong in this area as it has nothing to do with OZ.
I tried your scripts but couldn\'t see what was happening during boot due to the damn Sharp banner, but it failed and booted back into Qtopia.
Next I flashed the pdaXrom kernel into my Z figuring at least I could see the errors. Although the pdaXrom kernel is not in verbose mode it does echo some messages
Code: [Select]
tar: Error opening \'/root/.dev_default.tar\':no such file

mount: mounting /dev/mmcda1 on /usr/mnt.rom/card failed: no such file or directory



Chainloading rom init

In reading through your script, it looks like it was successful in launching the init.card but not sure where it goes bad after that. The .dev_default.tar is there in the /root/ directory on the card. Perhaps I too had errors from extracting the fs from a mounted ROM. I\'m going to try extracting it directly from a flashed ROM to see it that makes a difference.

Also, it is looking more like there is something different in the pdaXrom kernel. Once it loaded Qtopia, the calibration was all screwed up, touching the upper left hand corner opened the app launch menu. Tried to recalibrate but it wouldn\'t take it. The x just traveled to all five points then started over, had to cancel out of the app. The pdaXrom kernel doesn\'t appear to support the Cacko Qt ROM.

We may need help from maslovsky & sashz if the kernel is doing something different to the digitizer. Hopefully it won\'t require a custom kernel.

Jerry

maslovsky & sashz: care to weigh in?
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Bebe

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #7 on: April 03, 2004, 02:16:58 pm »
Quote
Quote
I\'m also having problems with the mangled display but under different circumstances.  I attempted to use the kernel that came with the latest Cacko Qt rom (for faster SD writes) under pdaXrom.  The display would automatically become mangled after running startx. However, if I put the zaurus in suspend mode and turn it back on, it would dipslay the desktop perfectly in portrait mode for about a second or two, then the display would become garbled.   Any suggestions would be appreciated.

Bebe

Hmm, Maybe the pdaXrom needs the jernel that comes with it - possibly they tweaked something in the kernel, but my guess is a mixed up config file somewhere.

I tried starting X manually by itself but still got mangled display, will try to capture the error messages X puts out to file if I can to help debug.

Stu

Capturing the error messages from X would help greatly.  I was hoping that the pdaXrom kernel was not too different from the cacko QT kernel.   I tried recompiling the original Sharp kernel with CONFIG_FS_SYNC turned off, but that didn\'t work either.
C860 pdaXrom
PNY 512 SD | Lexar 48 CF | Lexar 256 CF
Linksys WCF12 | Targus IR Keyboard
SuSE 9.1 x86_64 Kernel 2.6.7 | FreeBSD 5.2.1 | WinXp

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Dual Booting pdaX from SD
« Reply #8 on: April 05, 2004, 04:25:27 am »
Kernes for the Qtopia and X ROM are different. You can\'t substitute one with another. That\'s the main problems preventing sual boot setup now. I hope to get it resolved, but we can\'t promise anything now...

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #9 on: April 05, 2004, 07:26:35 am »
Quote
Kernes for the Qtopia and X ROM are different. You can\'t substitute one with another. That\'s the main problems preventing sual boot setup now. I hope to get it resolved, but we can\'t promise anything now...
Thanks for responding, hope you\'re able to standardize the kernel across pdaXrom & Cacko.

Can you tell us what the differences are or post the diff. I might try rolling my own.

Thanks again,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Dual Booting pdaX from SD
« Reply #10 on: April 05, 2004, 05:06:25 pm »
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.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #11 on: April 05, 2004, 08:19:14 pm »
derekp,
thanks for the tip, when I get the chance I\'ll reflash pdaX and get the ksyms.

On another note I\'ve gotten X to run correctly - I pulled the Xfbdev out of x11zaurus and replaced the one on pdaX, viola X runs correctly (although calibration is slightly off on the right side of the screen)

Apps start time is lsow, but that is due to the old, slow SD card I\'ve been using to test dual booting. If anyone wants it I can create a tar ball of my pdaX SD card for testing.
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 #12 on: April 05, 2004, 08:26:56 pm »
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
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 #13 on: April 05, 2004, 08:54:30 pm »
Quote
derekp,
thanks for the tip, when I get the chance I\'ll reflash pdaX and get the ksyms.

On another note I\'ve gotten X to run correctly - I pulled the Xfbdev out of x11zaurus and replaced the one on pdaX, viola X runs correctly (although calibration is slightly off on the right side of the screen)

Apps start time is lsow, but that is due to the old, slow SD card I\'ve been using to test dual booting. If anyone wants it I can create a tar ball of my pdaX SD card for testing.

Stu,

I\'ll test.  Just let me know what you want me to flash to my main rom first.  I currently have pdaxrom installed, which obviously will not be suitable for full testing of your project.

Corey

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Dual Booting pdaX from SD
« Reply #14 on: April 05, 2004, 11:15:42 pm »
Quote
Stu,

I\'ll test.  Just let me know what you want me to flash to my main rom first.  I currently have pdaxrom installed, which obviously will not be suitable for full testing of your project.

Corey

Corey,

I\'m assuming that any Qtopia based rom will work but I\'m using the standard Sharp rom.

I\'ll create the tarball when I get home from work and I\'ll find somewhere to post it.

Note this has only been tested on my C760 so far and currently doesn\'t work for Qtopia based roms on the SD - they keep seg faulting.

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