OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: kopsis on July 18, 2005, 05:53:06 pm

Title: Sharp Zaurus Sdk The Easy Way
Post by: kopsis on July 18, 2005, 05:53:06 pm
From some of the discussion in the General topics, it's become clear that getting the Zaurus SDK up and running is a stumbling block for aspiring Zaurus developers. In an effort to lower the bar, I've created an entire development environment (based on Damn Small Linux) that has the toolchain and SDK pre-installed in a complete lightweight Linux distro and ready to run.

I've written an article that details the advantages of this approach along with download and installation instructions. You can find the article at
http://kopsisengineering.com/kopsis/SharpZaurusSdkDsl (http://kopsisengineering.com/kopsis/SharpZaurusSdkDsl)

I had initially hoped that this solution would be radically simpler than the tool installation itself. I'm not entirely certain that I've succeeded in that.  I may just be pushing the complexity into a different area (getting Damn Small Linux and possibly QEMU running) so I'm very interested in getting feedback from anyone who tries my approach.

Note that these tools are for Sharp ROM development only. They will definitely not work for OpenZaurus, and I suspect they won't work for pdaXrom either. If this approach proves to be sufficiently easy for people, then I may try to set up similar DSL based environments for those systems.

Good luck!
Title: Sharp Zaurus Sdk The Easy Way
Post by: lpotter on July 19, 2005, 01:45:02 am
hey, great idea!  We have an sdk iso that we haven't released...

I dont think qemu is really necessary (but a good idea), although. But anyway, thanks for this... will add a link over at qtopia.net. Don't forget there are developer docs over there also.
Title: Sharp Zaurus Sdk The Easy Way
Post by: daniel3000 on July 19, 2005, 08:12:11 am
Quote
hey, great idea!  We have an sdk iso that we haven't released...

I dont think qemu is really necessary (but a good idea), although. But anyway, thanks for this... will add a link over at qtopia.net. Don't forget there are developer docs over there also.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88777\"][{POST_SNAPBACK}][/a][/div]

I think QEMU is a great idea! For me it opens the door to convenient development. I have a Windows laptop at work, which must run Windows all the time (because there run tasks on it all day). I'd love to be able to do development on this machine. So running a Linux-based development system in a virtual machine is probably the best way in my situation, even if the emulation slows down things a bit.

I'll definitely try the ISO with QEMU setup.

However, must first read the instructions. Seems to be a not _that_ easy to set up though.

But many thanks for all the work!!

daniel
Title: Sharp Zaurus Sdk The Easy Way
Post by: kopsis on July 19, 2005, 12:07:13 pm
Quote
However, must first read the instructions. Seems to be a not _that_ easy to set up though.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88804\"][{POST_SNAPBACK}][/a][/div]

Actually, with QEMU it's pretty simple. The most difficult part is creating a batch file to launch QEMU with the right settings. The article explaining everything is long but that's because it includes tons of background info
Title: Sharp Zaurus Sdk The Easy Way
Post by: Orchid on July 26, 2005, 07:04:34 am
Here are my first comments about your document (which was a very nice read!),
of things I'd like to have seen:

**********************

A list of files to expect in the sharp_zsdk_dsl.zip -
and what they are for, particularly the optional directory.

**********************

A zip file of sharp_zsdk_dsl.zip that unzips under DSL.
dsl@box:~$ unzip sharp_zsdk_dsl.zip
Archive:  sharp_zsdk_dsl.zip
  inflating: Embedix.uci
unzip: Unsupported compression method 0

dsl@box:~$ gunzip sharp_zsdk.dsl.zip
gunzip: sharp_zsdk.dsl.zip.gz: No such file or directory
dsl@box:~$

**********************

A note about how to possibly find the disk if the tools do not show up:
dsl@box:~$ sudo su
root@ttyp1[sda]# dmesg | grep disk
RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0

**********************

A simple summary at the top for weary readers, like:
This is how to program Sharp Zaurus ROM applications
using a Linux bootable disk (DSL), with appropriate toolchain modules,
under a virtual machine (QEMU).

It would need appropriate links for DSL, the zip, and QEMU, for those
Linux gurus who could figure it out just from that.

**********************

I'll try actual development later today.  Thanks!!!!

- T
Title: Sharp Zaurus Sdk The Easy Way
Post by: Gondola on August 09, 2005, 04:44:27 pm
Kopsis,

I installed QEMU and the Sharp/Qtopia dev environment using your instructions, and I had the example program compiled with little problem.

I'm having one issue with keyboard focus in QEMU, however.  When I alt-tab out to Windows (XP) and then alt-tab back, it appears that there is a bug that makes the keyboard not function because the alt- part of the alt-tab sequence.  I have to alt-tab back and forth a few times in order to get the keyboard working again.

I've done some Googling on the subject and reading the QEMU forums.  *THEY* say that you just have to hit alt again to toggle the key off, but that doesn't work for me.  I have to alt-tab back and forth several times to get the keyboard working again within QEMU.

Also, any tips on how to convert a Makefile to the Sharp/Qtopia environment? I am attempting to compile an EyeToy-compatible webcam driver, but my clumsy Makefile hacking doesn't appear to be good enough.  You can check out the thread I created on this topic by clicking the link in my sig below.

Thanks in advance for any assistance!
Title: Sharp Zaurus Sdk The Easy Way
Post by: drakecoldwinter on August 17, 2005, 01:09:22 pm
Humm... I tried Suse with the rpm Zaurus tools(half working) then the demo linux distro, who doesn<t even boot... (I<m using VMWare BTW) and then I tryed this DSL... got it installed in my hd quickly, and I installed your toold in under 1 hour (the OS+ tools) everything working at the first shot.... very clean. I love DSL btw, is very crude and esential, not plenty of useless stuff lying around.

Now, I'm a linux newbie (despite having tried several distros I consider myself a beginner) so I have plenty of questions that maybe you could answer :

1 - first I did the example, and it worked, then I got the mahjongg game sources from http://www.killefiz.de/zaurus/search.php?q=mahjongg&x=21&y=9 (http://www.killefiz.de/zaurus/search.php?q=mahjongg&x=21&y=9)  (I got mahjongg, not Zmahjongg and not tkcmahjongg) then I do a tmake to create the Makefile, it works perfect, then I do a make and it begins good but then suddently I get layout_1 undeclared .... ; and layout_2 undeclared... in the end I don't get a compiled file, so I can't execute it...  What I'm doing wrong ???

2 - I have done shortcuts for QT designer and qvfb they work wonderfull, I can start the qvfb without any trouble, then I tryed to do shortcuts to change the source (x86 or arm) but they don<t seem to work... humm i dunno if I did something wrong or not, but it seems that I need to execute the source x86 in a Xterm each time I want to compile anything, they don't seem to stay permanent.... anyway, here is my shortcut just in case I did something wrong
----------------------------
table Icon
  Type: Program
  Caption: Source X86
  Command: "source /home/dsl/dev-x86-qpe.sh"
  Icon: .xtdesktop/1400.gif
  X: 78
  Y: 158
end
-----------------------------

3-I have Qt Designer to do the interfaces (mahjongg doesn<t have any UI files then I guess it generates the interfaces using something else, anyway, I would be able to do the interfaces, but what program must I use to work in the code ? is there any code editor in the Qtopia suite ?? where it is located ??

Thanks for all your answers, if you don<t give answers then thanks anyway for putting on the net this very light setting for Zaurus programming (DSL + Zaurus)



Edit:
-------------------------------------------------------------------------------------------------------------------
For the 3 point, well I'm a windows developper, used to visual studio, then in QT designer I try to double click on the controls to get access to the code or something like that, and I get nothing... ; then I guess that the code is done with another program and then linked with the UI in someway...
Title: Sharp Zaurus Sdk The Easy Way
Post by: drakecoldwinter on August 17, 2005, 01:25:14 pm
4 - DSL is installed on my hd, I have a sda1 now, how can I do so embedix.uci, qtopia.uci and gcc are loaded automatically on boot ? I have put them on the sda1 repertory is that enough ?



Edit :
--------------------------------------------------------------------------
I<m getting several times gcc command not found, then I guess the trouble is the gcc binaries not being mounted.... hummm how can I install those binaries ?



Another Edit :
--------------------------------------------------------------------------
humm... I don't see any code editors, then I'm starting to see that I must get an editor of my own, then I found Kdevelop who is integrated with QT Designer... but I don't seem to be able to install it... (kde-config not found) I think it really needs KDE and DSL doesn't have KDE installed...  Then I think that your tools package needs something very important, an editor... beaver is not powerfull enough, is very basic...
Title: Sharp Zaurus Sdk The Easy Way
Post by: magicbb on August 24, 2005, 12:21:41 pm
just install everything according to your instruction, but have some problem;

1) How can I connect the virtual linx with the host or internet? if can't how can i copy the source code to it?

2) I try your example, but it complains that there is no tmake command, i have tried to search all files but still can't find this file


any idea/

thanks
Title: Sharp Zaurus Sdk The Easy Way
Post by: slapout on August 24, 2005, 04:12:05 pm
Wow Kopsis, this sounds great. I was just about to try installing the Sharp tools for the third time. (I tried it with Red Hat 9 and with Mepis, but couldn't get either one to work. I was about to try it with Mandrake 10. I also tried the DemoLinux CD with the tools, but couldn't figure how to use it -- it keep trying to write to the CD)

I'm going to try this out as soon as I get a chance. Thanks for putting this all together.
Title: Sharp Zaurus Sdk The Easy Way
Post by: bluedevils on August 24, 2005, 04:17:52 pm
woohoo!  this might mean I can get rid of my rhat installation...not that I was doing much with it.
Title: Sharp Zaurus Sdk The Easy Way
Post by: slapout on August 26, 2005, 11:57:59 am
Great work kopsis. I was finally able to get a Z program to compile! (Kind of ironic that it was on a Windows machine.)

Just a couple of comments:

1. I'm using Windows for this. You've got links to QEMU in two different places. The first place gives links for Win/Lin/OSX versions. The second place only links to Linux version. (I was a little confused at first. Wasn't sure which site I should be getting it from. But I figured out that it was the first one.)

2. I don't remember what the other comment was. :-)

Anyway, good job. It was actually much easier to set up than I thought it would be. There's no install for QEMU--you just unzip it into a directory and it's ready to run. Then I just downloaded the Z image, changed the batch file to point to it and I was in business.

Now I have to see if I can get this thing on my jump drive....
Title: Sharp Zaurus Sdk The Easy Way
Post by: qx773 on August 27, 2005, 07:36:22 am
Thanks for the information.  

I have Windows XP.  If you have Windows, you can get the accelerated version of QEMU by downloading:

http://qemu.dad-answers.com/download/win32/qemu-0.7.1-3.zip (http://qemu.dad-answers.com/download/win32/qemu-0.7.1-3.zip)

Unzip the file to C:\qemu

Download the Sharp SDK image from one of the SourceForge mirror sites:

http://prdownloads.sourceforge.net/pyqplay...sk.zip?download (http://prdownloads.sourceforge.net/pyqplayer/sharp_zsdk_dsl_disk.zip?download)

Unzip or copy the contents of the the sharp_zsdk_ds1_disk.zip file to C:\qemu

Contrary to the instructions on Fabrice Bellard's web site, I had to navigate to the C:\qemu folder with Windows Explorer and right-click on the kqemu.inf file and select "Install" from the context menu.  After you do that, restart your computer.

Create a batch file in C:\qemu.  I called my batch file "go.bat".  This batch file will start the QEMU emulator when you execute it.

Code: [Select]
c:
cd \qemu
net start kqemu
qemu -L c:\qemu -m 128 sharp_zsdk_ds1_disk.img -enable_audio -localtime
net stop kqemu

The -L switch indicates the directory which contains the bios.bin file.  In a different version of QEMU that I tried, the bios file was located in a subdirectory.  The -m switch seems to indicate how many megabytes of memory the emulated machine should have.

The contents of my C:\qemu folder are:

Code: [Select]
             patches
 Â           65,536 bios.bin
 Â              114 go.bat
 Â            1,616 kqemu.inf
 Â           59,004 kqemu.sys
 Â            5,550 kqemu-doc.html
 Â          524,288 ppc_rom.bin
 Â          152,807 proll.elf
 Â          825,344 qemu.exe
 Â          103,241 qemu-doc.html
 Â          132,608 qemu-img.exe
 Â          451,584 qemu-system-mips.exe
 Â          666,624 qemu-system-ppc.exe
 Â          524,800 qemu-system-sparc.exe
 Â        1,025,024 qemu-system-x86_64.exe
 Â           57,013 qemu-tech.html
 Â              389 readme.txt
 Â          290,816 sdl.dll
 Â      144,113,664 sharp_zsdk_dsl_disk.img
 Â           32,768 vgabios.bin
 Â           32,768 vgabios-cirrus.bin
 Â             20 File(s)    149,065,558 bytes
Title: Sharp Zaurus Sdk The Easy Way
Post by: slapout on August 30, 2005, 02:35:13 pm
Kopsis,

  I've got a question about the bootable DSL CD. Is it possible to put the extensions on the CD itself and have it load them when it boots? I've seen some posts over at the DSL forum that hint at this being possbile, but I can't find anything telling how to do it.  (Wouldn't you need to add it to the ISO before burning?)
Title: Sharp Zaurus Sdk The Easy Way
Post by: slapout on August 30, 2005, 05:04:28 pm
OK, I think I found the answer in the DSL Forums:

http://damnsmalllinux.org/cgi-bin/forums/i...=ST;f=16;t=8356 (http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?;act=ST;f=16;t=8356)
Title: Sharp Zaurus Sdk The Easy Way
Post by: doseas on August 31, 2005, 12:31:22 am
kopsis,

I keep forgetting to ask... how does your development environment differ from the earlier Zaurus development LiveCD from Pellico Systems (zdemolinux (http://www.pellicosystems.com/zaurus/zdemolinux/))???

-David
Title: Sharp Zaurus Sdk The Easy Way
Post by: qx773 on August 31, 2005, 10:44:45 pm
If that is the Live CD that I am thinking of, then it doesn't work with a Razer mouse connected to a USB port.

I like the fact that QEMU can run under Windows.

Is anyone else having trouble using the -smb parameter of QEMU under Windows XP to make a QEMU directory available to Windows as a shared folder?  QEMU just exits to Windows without any error message when I try to use the -smb parameter.
Title: Sharp Zaurus Sdk The Easy Way
Post by: Ragnorok on October 26, 2005, 12:29:58 pm
Quote
Wow Kopsis, this sounds great. I was just about to try installing the Sharp tools for the third time. (I tried it with Red Hat 9 and with Mepis, but couldn't get either one to work.
...(geschnippt)...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93134\"][{POST_SNAPBACK}][/a][/div]
- This is really cool, Kopsis.  I mentioned this in another thread as a good way for a newbie to get going, and here you just did it.  Good Form! ™  And it does seem to be a good way to go, particularly for those poor souls who are forced to use Winbloze.  I pity them, but you've really been a saviour, and that's a Good Thing! ™  More Z developers can't be bad.
- I've had no trouble getting the original tools to work on RH9 ... that's my current dev environment.  There are plenty of clues here on the forum for getting it working, or I wouldn't have it set up.  (wink)
- Despite drakecoldwinter's woes I'm thinking of trying Suse for the next platform, which will be available One Day Real Soon.  I'll base it on my existing RH9 setup; having a working environment to refer to should make things easier.
- Time will tell, or it won't!
Title: Sharp Zaurus Sdk The Easy Way
Post by: GadgetGuy on October 26, 2005, 02:40:33 pm
I have installed QEMU and the Sharp environment on my Windows 2K PC, and it works great . Thank you kopsis for the instructions!

Before I really start using it, I wanted to figure out, how I can transfer files from the Windows environment to the Sharp environment and back? Or, asking it differently: how would I move the arm executable file to my Zaurus (which is not connected to my PC) after it has been created? Or, how would I move source code from my Windows PC into the Sharp environment?

Is there maybe a way to explore the .img file from Windows? How?

Or is there another solution?
Title: Sharp Zaurus Sdk The Easy Way
Post by: titimoby on November 10, 2005, 05:00:41 pm
In fact, I decided to register to the oesf forums just to thank you.
I'll have problem and head aches but hey, I got a compiling example !

Thanks a lot for this work !
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie on November 10, 2005, 08:03:40 pm
I think this livecd idea is great coupled with the zaurus sdk.
However, I have been thinking about a usage scenario which would be ideal for a developer with a zaurus that is constantly on the road (like me).

I was thinking about burning the live cd iso image with all the extra modules on the cd image as well so once you booted into it, all the tools are ready and the zaurus' disk where the source files are located should be mounted via smb either via ethernet or usbdnet.

I could then carry a little mini cd with me and use it to boot any PC I find and attach my Zaurus to it to start development.

Does anyone else think that this sounds like a good idea and feasible?
Title: Sharp Zaurus Sdk The Easy Way
Post by: kopsis on November 11, 2005, 07:50:43 am
One of my reasons for picking DSL is that it's relatively easy to remaster (create a new bootable LiveCD with extra modules) to do exactly as you suggest. If you have a big USB flash drive, you could also put everything on there and have a bootable Zaurus SDK pen drive. See the DSL website (http://www.damnsmalllinux.com) for details (most detailed instructions can be found in the forums).
Title: Sharp Zaurus Sdk The Easy Way
Post by: craigtyson on November 11, 2005, 11:07:01 am
Quote
One of my reasons for picking DSL is that it's relatively easy to remaster (create a new bootable LiveCD with extra modules) to do exactly as you suggest. If you have a big USB flash drive, you could also put everything on there and have a bootable Zaurus SDK pen drive. See the DSL website (http://www.damnsmalllinux.com) for details (most detailed instructions can be found in the forums).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103288\"][{POST_SNAPBACK}][/a][/div]

How about using the zaurus as a USB flash drive..........
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie on November 17, 2005, 08:41:21 pm
Quote
Quote
One of my reasons for picking DSL is that it's relatively easy to remaster (create a new bootable LiveCD with extra modules) to do exactly as you suggest. If you have a big USB flash drive, you could also put everything on there and have a bootable Zaurus SDK pen drive. See the DSL website (http://www.damnsmalllinux.com) for details (most detailed instructions can be found in the forums).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103288\"][{POST_SNAPBACK}][/a][/div]

How about using the zaurus as a USB flash drive..........
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103310\"][{POST_SNAPBACK}][/a][/div]

well, that might work, but space is precious on my Z so I rather the PC booted off the CD than my Z. Unfortunately, I am on the road still and don't have time to build such a CD yet, but when I get the time, I will definately try to build one.
Title: Sharp Zaurus Sdk The Easy Way
Post by: polito on November 17, 2005, 10:35:57 pm
Ever seen puppy linux, Meanie? Puppy Linux can boot off of most things. It loads completely into memory. If you use a CD, you can actually have Puppy Linux write everything ---back--- to the CD that was changed so you actually can --save-- your work and not lose it. Neato.

Puppy Linux (http://www.goosee.com/puppy/)
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on April 04, 2006, 08:36:51 am
Now that there's a free version of vmware, is there anyone up to the challenge of building a vmware image for zaurus developers?

This would also be an opportunity to enter the vmware "appliance" challenge!

http://www.vmware.com/vmtn/appliances/challenge/ (http://www.vmware.com/vmtn/appliances/challenge/)
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie on April 04, 2006, 08:47:33 am
Quote
Now that there's a free version of vmware, is there anyone up to the challenge of building a vmware image for zaurus developers?

This would also be an opportunity to enter the vmware "appliance" challenge!

http://www.vmware.com/vmtn/appliances/challenge/ (http://www.vmware.com/vmtn/appliances/challenge/)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121743\"][{POST_SNAPBACK}][/a][/div]

well, there already are in a way. The Kopsis livecd which is based on DSL can be booted from vmware since it is an iso image and the extra modules plus your working files can be places on a wmware virtual disk. You could transfer the files from the iso to the disk as well and have everything on a single vmware image.
pdaXrom also comes on bootable iso image for the X86 version of pdaXrom as well as a vmware image. put a crosscompiler on it and off you go.
I am currently using the DSL through vmware on my OQO but I am hoping I will be able to run pdaXrom on it soon.
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma on April 06, 2006, 07:33:29 am
This is really great, I tried to compile the test app and all's fine.

I'm running Win XP.

However I can't copy anything to/from my Harddisk, I don't see it under /mnt/

The hd and hda1 are empty.

How can I copy files back and forth, once compiled?
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie on April 06, 2006, 08:13:08 am
Quote
This is really great, I tried to compile the test app and all's fine.

I'm running Win XP.

However I can't copy anything to/from my Harddisk, I don't see it under /mnt/

The hd and hda1 are empty.

How can I copy files back and forth, once compiled?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122014\"][{POST_SNAPBACK}][/a][/div]

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.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on April 06, 2006, 08:39:41 am
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.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on April 06, 2006, 08:40:25 am
p.s. google for winscp it's a really easy way to copy the files
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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.
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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?
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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?
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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?
Title: Sharp Zaurus Sdk The Easy Way
Post by: qx773 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 (https://www.oesf.org/forums/index.php?showtopic=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 (https://www.oesf.org/forums/index.php?showtopic=3559&st=75)
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix 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
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix 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.
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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?
Title: Sharp Zaurus Sdk The Easy Way
Post by: ArchiMark 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
Title: Sharp Zaurus Sdk The Easy Way
Post by: ShiroiKuma 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?
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie 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...
Title: Sharp Zaurus Sdk The Easy Way
Post by: uth 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
Title: Sharp Zaurus Sdk The Easy Way
Post by: matthis 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)
Title: Sharp Zaurus Sdk The Easy Way
Post by: jens 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
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on May 12, 2006, 06:31:05 pm
vmware player?

I've been playing with DSL image for vmware, and the Kopsis image... is anyone interested in the results? vmware runs a bit faster than qemu, and of course with their player, is free as well.
Title: Sharp Zaurus Sdk The Easy Way
Post by: stbrock on May 12, 2006, 10:33:16 pm
Quote
vmware player?

I've been playing with DSL image for vmware, and the Kopsis image... is anyone interested in the results? vmware runs a bit faster than qemu, and of course with their player, is free as well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126819\"][{POST_SNAPBACK}][/a][/div]

Definitely interested. I was working on deglitching this setup a few months back, lost my work in a disk crash, and never got back to it. A vm for the free VM player approaches being idiot-proof for cross-compiling setup -- which seems to be what I need.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on May 16, 2006, 09:00:59 am
I found it was quite easy to run Kopsis' DSL stuff on VMWARE. I created a 1GB partition to run it all in

Briefly, as I remember it
1) install vmware
2) download the DSL vmware program from one of the mirrors - look for dsl-2.4-vmx.zip
http://www.damnsmalllinux.org/download.html (http://www.damnsmalllinux.org/download.html)
then unpack it
3) fire up vmware and open the DSL image; upgrade it to the latest vmware format
4) create a 1GB partition for the hard drive
5) start up the virtual machine and install DSL to the virtual hard drive
6) login as dsl
7) copy over Kopsis' Embedix & Qtopia UCI files, and the gcc dsl one to ~dsl/MyDSL
8) start ATerminal, cd to MyDSL, install gcc with "mydsl-load gcc-2.95.dsl"
9) Using the file explorer, Emelfm, browse to the MyDSL directory, and open the Embedix.uci and Qtopia.uci

Done! Now in the home dir of mysql just ". dev-x86-qpe.sh" to develop for x86, or ". dev-arm-qpe.sh" to develop for arm - just follow Kopsis' excellent notes.

I'll upload the resulting vmware image - but note that it's 200MB!

-- EDIT: uploaded to www.zaurus.org.uk downloads section under dev.. and it's 192 MB.
Once you start vmware, you need to "run" the UCI files as per 9 above, no need to do the load gcc bit. BTW, the root password is "dsl", there's no password for the user dsl.

I'd be grateful if a few people can mirror that file to save my bandwidth and post the locations here. thanks.
Title: Sharp Zaurus Sdk The Easy Way
Post by: lpotter on May 16, 2006, 03:29:09 pm
nice. I might be able to mirror this... after I test it of course
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on May 17, 2006, 06:27:28 am
Quote
nice. I might be able to mirror this... after I test it of course
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127318\"][{POST_SNAPBACK}][/a][/div]

Maybe you could do a specific DSL vmware install for qtopia2.2+qte2.3.x development - ready with a complete Zaurus rom build script?

Given that a vmware workstation license comes with a 30 day eval, you wouldn't even have to buy a license to do it, or, of course, install vmware server beta for free.

You can also convert between  vmware and qemu images.
Title: Sharp Zaurus Sdk The Easy Way
Post by: lpotter on May 19, 2006, 02:18:48 pm
actually, if I have time, I might do a nice vmware/iso Qtopia development package.

And Trolltech has a nice licensed copy of vmware station on my windows box at work.  How convenient.
Title: Sharp Zaurus Sdk The Easy Way
Post by: Meanie on May 20, 2006, 04:10:31 am
Quote
I found it was quite easy to run Kopsis' DSL stuff on VMWARE. I created a 1GB partition to run it all in

Briefly, as I remember it
1) install vmware
2) download the DSL vmware program from one of the mirrors - look for dsl-2.4-vmx.zip
http://www.damnsmalllinux.org/download.html (http://www.damnsmalllinux.org/download.html)
then unpack it
3) fire up vmware and open the DSL image; upgrade it to the latest vmware format
4) create a 1GB partition for the hard drive
5) start up the virtual machine and install DSL to the virtual hard drive
6) login as dsl
7) copy over Kopsis' Embedix & Qtopia UCI files, and the gcc dsl one to ~dsl/MyDSL
8) start ATerminal, cd to MyDSL, install gcc with "mydsl-load gcc-2.95.dsl"
9) Using the file explorer, Emelfm, browse to the MyDSL directory, and open the Embedix.uci and Qtopia.uci

Done! Now in the home dir of mysql just ". dev-x86-qpe.sh" to develop for x86, or ". dev-arm-qpe.sh" to develop for arm - just follow Kopsis' excellent notes.

I'll upload the resulting vmware image - but note that it's 200MB!

-- EDIT: uploaded to www.zaurus.org.uk downloads section under dev.. and it's 192 MB.
Once you start vmware, you need to "run" the UCI files as per 9 above, no need to do the load gcc bit. BTW, the root password is "dsl", there's no password for the user dsl.

I'd be grateful if a few people can mirror that file to save my bandwidth and post the locations here. thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127283\"][{POST_SNAPBACK}][/a][/div]

wow, the GUI customisation looks even better than the default DSL one which I thought was pretty impressive already.  This is just perfect. I was working on building a dual boot vmware image with DSL/Kopsis for Qtopia development and pdaXrom X86 for my OQO, but I am gonna use your vmware image for the base now instead of what I had since it looks so much nicer and the boot is much cleaner
Title: Sharp Zaurus Sdk The Easy Way
Post by: DoTheDog on May 28, 2006, 10:36:25 am
speculatrix,
Very cool stuff. I got it up and running in a couple of minutes. I do have a question. Is there a trick to getting networking running? VMWare has two network adapters in Winbloze but all I get in DSL is the localhost.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on May 29, 2006, 03:29:38 pm
Quote
speculatrix,
Very cool stuff. I got it up and running in a couple of minutes. I do have a question. Is there a trick to getting networking running? VMWare has two network adapters in Winbloze but all I get in DSL is the localhost.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128671\"][{POST_SNAPBACK}][/a][/div]

You need to configure vmware in the host...  I've used both NAT and bridging. NAT means that your PC acts as a router, and you use address/port translation (or internet connection sharing, I think, on windows)... bridging is easier in some ways as the VM appears like another network card in the PC and gets its own DHCP address.
Title: Sharp Zaurus Sdk The Easy Way
Post by: malik on July 31, 2006, 09:01:55 am
hello,

i tried the vmware image and it works great, but i have the following problem. i do not know much about the dsl uci stuff, only that particular files (embedix resp. qtopia) are added as read only to the system. as i miss for instance sdl devel packages, i do not know how to handle it. where do i get the corresponding sdl packages (and other typical ones for the zaurus develeopment) and how do i add them correctly to the system?

thanx in advance, malik
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on July 31, 2006, 10:40:21 am
Quote
dsl uci stuff
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137048\"][{POST_SNAPBACK}][/a][/div]

basically, the UCI files are a compressed ISO image which you can simply mount using loopback. When you've done so using the standard DSL tools for doing this, you just need to fix your environment.
Title: Sharp Zaurus Sdk The Easy Way
Post by: kopsis on July 31, 2006, 11:13:31 am
Quote
where do i get the corresponding sdl packages (and other typical ones for the zaurus develeopment) and how do i add them correctly to the system?[div align=\"right\"][a href=\"index.php?act=findpost&pid=137048\"][{POST_SNAPBACK}][/a][/div]

Welcome to one of the problems with stock Zaurus ROM development. There are no "standard" cross-development libraries beyond the ones included in the image. Things like SDL libs are built by the community and how they need to be integrated into your cross-dev environment depends largely on who built them and how.

Though UCI files aren't terribly difficult to modify, in most cases the easiest thing to do is just put the extra cross-dev libraries and headers somewhere under the /home directory on the virtual HD and then modify the application's Makefile to look there for them. If the app uses autoconf then there's often a ./config parameter to specify things like SDL lib location.
Title: Sharp Zaurus Sdk The Easy Way
Post by: matthis on August 22, 2006, 08:58:01 pm
I agree that having SDL cross-libs would really be a life-saver!!
Title: Sharp Zaurus Sdk The Easy Way
Post by: wrc4 on August 25, 2006, 05:08:25 am
What's the su password? Is that dsl? I tried that but it said Authentication failure.
Title: Sharp Zaurus Sdk The Easy Way
Post by: kopsis on August 25, 2006, 07:52:20 am
Quote
What's the su password? Is that dsl? I tried that but it said Authentication failure.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=139747\"][{POST_SNAPBACK}][/a][/div]

DSL (like many distros) has root logins disabled by default. To get root, do a "sudo su" (no password is required unless you've set a password for the "dsl" user).
Title: Sharp Zaurus Sdk The Easy Way
Post by: Dobby on September 28, 2006, 06:58:22 am
Thanks for this SDK. Looks great. Hopefully try it out tonight. One question: Will I need anything else other than what's mentioned in your guide to do GUI development for my C3200?

Thanks.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on September 28, 2006, 07:18:25 am
Quote
Thanks for this SDK. Looks great. Hopefully try it out tonight. One question: Will I need anything else other than what's mentioned in your guide to do GUI development for my C3200?

You're going to want to read the "getting started" and other guides from Trolltech if you've never done any QT/Qtopia work before. There's quite a few examples of qtopia applications though which are fairly easy to follow.
Title: Sharp Zaurus Sdk The Easy Way
Post by: xjqian on January 30, 2007, 06:03:32 am
Quote
4) create a 1GB partition for the hard drive
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127283\"][{POST_SNAPBACK}][/a][/div]

I followed kopsis instruction tried both QEMU and speculatrix's VMWARE. The only problem is that my hard drive is not mounted. There's nothing in /mnt/hda1 or /mnt/hda2. My hda1 is windows NTFS file system and hda2 is a ext3 partition. Does that mean I have to create 3 additional partitions: swap, ext3 and a fat32 (to help move files between WIN and DSL env).

Edit: I read the previous posts, but the sharing files par is still beyond me.
The smb and sftp method assumes the dsl env has a working network and assigned an IP. Do I have to configure them everytime since the smb.conf or the network conf file is read-only in the image?
Title: Sharp Zaurus Sdk The Easy Way
Post by: xjqian on January 30, 2007, 02:46:42 pm
Thanks kopsis for making the DSL image available.

The last mile is the most difficult part for me. But finally, I set samba up to make the embedded meet the host, following the instruction here:
http://www.damnsmalllinux.org/wiki/index.p..._Windows_system (http://www.damnsmalllinux.org/wiki/index.php/How_to_transfer_files_between_Embedded_and_host_Windows_system)

kopsis, maybe you want to add this into your instruction page.  Also the "sudo su" part + giving write access to /mnt/hda2/somewhere so the samba client can get src files and write to /mnt/hda2/somewhere.  Well, took me a while to sort all this out.

Well, I also totally misunderstood the QEMU + DSL Image. I thought the dsl disk image is read only like the live CD, but actually it's not. It can grow... Learned something new today
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on January 30, 2007, 05:09:10 pm
Quote
Well, I also totally misunderstood the QEMU + DSL Image. I thought the dsl disk image is read only like the live CD, but actually it's not. It can grow... Learned something new today
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152935\"][{POST_SNAPBACK}][/a][/div]

well, DSL can be a live CD "static" system, but the UCI stuff is a very neat way of making it powerful and flexible; if you install it onto hard drive as I did, and then incorporate the UCI images, and roll it into a full vmware app, it's pretty cool.

But, to be honest, I didn't really need it because I'd already got hold of the arm-gcc-2.95.3 tools from Guylhem's site, and built the trolltech gui tools for x11 on linux/x86.

BTW, well done for getting samba working. I think I simply used scp to copy files over.
Title: Sharp Zaurus Sdk The Easy Way
Post by: speculatrix on September 24, 2007, 04:38:40 pm
*bump*

for those who don't want to play with vmware/vmplayer!