Author Topic: Sharp Zaurus Sdk The Easy Way  (Read 73230 times)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #30 on: April 06, 2006, 08:40:25 am »
p.s. google for winscp it's a really easy way to copy the files
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #31 on: April 06, 2006, 08:41:14 am »
Quote
it doesn't like ntfs partitions. do you have any fat partitions? try mounting them manually, or better yet, if you have a usb thumbdrive, stick it in when you boot and it will automatically detect and mount it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122019\"][{POST_SNAPBACK}][/a][/div]
Hmmm... It doesn't seem to be picking up the USB drive... Let's see if I have another one.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #32 on: April 06, 2006, 08:49:33 am »
Quote
have you tried using samba shares to share files between the guest system? or, install putty & pscp on the host windows machine and scp the files off the linux guest.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122020\"][{POST_SNAPBACK}][/a][/div]
Could you explain how to set up a folder or something as a samba share in WinXP, so the Qemu would see it?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #33 on: April 06, 2006, 08:54:52 am »
Quote
p.s. google for winscp it's a really easy way to copy the files
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122021\"][{POST_SNAPBACK}][/a][/div]
OK, downloaded WinScp.

Could you tell me how exactly to use it now to copy files back and forth to Qemu, i.e. before compilation to Qemu, and after compilation from?

Do I run winscp as host somehow and scp into it from the Qemu, or how?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #34 on: April 06, 2006, 10:08:38 am »
Quote
it doesn't like ntfs partitions. do you have any fat partitions? try mounting them manually, or better yet, if you have a usb thumbdrive, stick it in when you boot and it will automatically detect and mount it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122019\"][{POST_SNAPBACK}][/a][/div]
Doesn't seem to work. I've plugged in a USB stick and don't see it anywhere.

I've tried running with the -usb switch, and while it says that it's searching for USB devices etc. the disk isn't anywhere to be seen.

What's wrong?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #35 on: April 06, 2006, 10:39:17 am »
If you are running Linux through QEMU, you can mount an MSDOS file system as a loop file:

https://www.oesf.org/forums/index.php?showt...c=17106&hl=qemu

You can then use Cygwin and the mcopy command from the mtools package to copy files from the loop file to an actual hard disk:

https://www.oesf.org/forums/index.php?showtopic=3559&st=75

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #36 on: April 06, 2006, 10:55:25 am »
Quote
Quote
have you tried using samba shares to share files between the guest system? or, install putty & pscp on the host windows machine and scp the files off the linux guest.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122020\"][{POST_SNAPBACK}][/a][/div]
Could you explain how to set up a folder or something as a samba share in WinXP, so the Qemu would see it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122024\"][{POST_SNAPBACK}][/a][/div]

use explorer (open "my computer") to browse files. menu "tools->options", turn off simple file sharing.

right mouse click on a folder, e.g. myfiles, share.

on the linux machine, ensure /etc/samba/smb.conf has the correct workgroup, change if necessary and restart samba.

use "smbclient -L ipaddressofwindows" to check it can see the windows box

then mount the windows share with e.g.
   mkdir /mnt/xpfiles
   mount -t smbfs //1.2.3.4/xpfiles /mnt/xpfiles
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #37 on: April 06, 2006, 10:57:42 am »
Quote
Do I run winscp as host somehow and scp into it from the Qemu, or how?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122026\"][{POST_SNAPBACK}][/a][/div]

run winscp, and give it the IP address of the qemu virtual machine, then login.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #38 on: April 06, 2006, 11:04:03 am »
Quote
run winscp, and give it the IP address of the qemu virtual machine, then login.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122051\"][{POST_SNAPBACK}][/a][/div]
How do I determine the IP address of the Qemu VM?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #39 on: April 06, 2006, 07:21:34 pm »
Thanks to David for providing 'the easy way to develop for the Z'...sounds great!

I have briefly reviewed David's webpage on this subject and wonder what approach I should use in my situation....

In other words whether I should use

1) Run in a QEMU virtual machine

2) Run using a DSL Live CD

I have a recent small subnotebook (Averatec AV1050-EB1), that has a Pentium M ULV 733 (1.1GHz) with 1GB RAM...have set it up to dual boot WinXP or Debian....so would have liked (I think...) to install development environment in Debian....but if that's not possible without a lot of difficulty then would like to do either Option 1 or 2 above.

Also, not clear as to what size USB thumbdrive to get if I go that route. What size would be good to use??

Thanks for any and all input!

Mark
« Last Edit: April 06, 2006, 07:22:51 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #40 on: April 06, 2006, 09:07:48 pm »
There seems to be a problem with cross-compiling Zaurus binaries with the Qemu image.

I noticed when I ran ./configure while compiling Apache 2.2.0, that it said:
Code: [Select]
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

This, after I ran
Code: [Select]
. dev-arm-qpe.sh
The compiled binaries then don't run on the Z, says can't execute binary file... logically.

Where is the problem?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sharp Zaurus Sdk The Easy Way
« Reply #41 on: April 06, 2006, 09:12:31 pm »
Quote
There seems to be a problem with cross-compiling Zaurus binaries with the Qemu image.

I noticed when I ran ./configure while compiling Apache 2.2.0, that it said:
Code: [Select]
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

This, after I ran
Code: [Select]
. dev-arm-qpe.sh
The compiled binaries then don't run on the Z, says can't execute binary file... logically.

Where is the problem?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122140\"][{POST_SNAPBACK}][/a][/div]

you need to ./configure --target=armv5tel-unknown-linux-gnu

also, if you boot off the livecd directly, it will be able to mount your drives, but from within qemu, it won't be able to do that and you need to transfer the files via the network using samba, scp, ftp, etc...
i found it best to boot the livecd since it really needs the cpu power unless your pc is super powerful...
« Last Edit: April 06, 2006, 09:15:34 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #42 on: April 06, 2006, 09:13:58 pm »
Quote
There seems to be a problem with cross-compiling Zaurus binaries with the Qemu image.

I noticed when I ran ./configure while compiling Apache 2.2.0, that it said:
Code: [Select]
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

This, after I ran
Code: [Select]
. dev-arm-qpe.sh
The compiled binaries then don't run on the Z, says can't execute binary file... logically.

Where is the problem?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122140\"][{POST_SNAPBACK}][/a][/div]

you need to pass a flag like this to ./configure:  --host=arm-linux

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Sharp Zaurus Sdk The Easy Way
« Reply #43 on: April 21, 2006, 11:28:55 pm »
Thank you for your great image! Using it from Qemu on Mac ox X, works very well.
(it is slow but usable, ibook g3 900Mhz)

jens

  • Newbie
  • *
  • Posts: 3
    • View Profile
Sharp Zaurus Sdk The Easy Way
« Reply #44 on: April 24, 2006, 04:22:58 pm »
Hello!

I'm posting both to share experiences and to ask for help/info:

I'm very happy about this ready-setup environment. It's a very good way to go, not only for Zaurus development; all kinds of SDK's could ship a complete system, instead of letting people spend weeks with configuration errors before becoming productive.. I would not have done my things at all if I had to spend that meaningless time! So thanks very much for this.

I have already used the environment to fix a severe map projection error in the Zaurus qpegps GPS application (though I have not yet shipped the fix back to Sourceforge). Now I have just started with another (flight) navigation program, where I have got stuck because NOW I NEED GDB. And it's not part of the environment. Suspect it has to be some special version/release? Can anybody give instructions what/how to install?

And here's the experience list:

- QEMU newer releases can't be started exactly like described. There's some modification to sound handling, which makes it necessary to put something else in the zsdk.bat. Mine is below.

- Immediately found that 128MB memory is too little to compile most real applications. Discovered the parameter in QEMU. 192MB has been enough for all my compiles.

Here's my zsdk.bat file, which works for me:

REM Start qemu on windows.
REM @ECHO OFF
START qemu.exe -L . -m 192 -hda C:\zdev\sharp_zsdk_dsl_disk.img -hdb C:\zdev\qemu\jens.img -soundhw sb16,es1370 -localtime
CLS
EXIT

Hope it helps somebody. And please tell me how to gdb debug...

Cheers
Jens
Sweden