Author Topic: Native Qte On-board Development Package  (Read 10449 times)

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« on: May 08, 2006, 03:00:44 pm »
I bought this tiny SL-C3100 in mid-February, and keen on studying her functionality during these couple of months...

So far, I haven't changed the original SHARP ROM, any partition in /dev/hda3, and any other ROM-related customizations (even though those awesome cacko, pdaXrom images are v. attractive)

By studying meanie's customization page and pdf, I start to understand the preliminary procedures and related stuff down here, and was wondering by the AWESOME zgcc.cramfs and java.cramfs images which are widely adopted for my compilation of gcc and java packages....  

In view of this, there is a limitation for the NATIVE compilation (i.e. non-cross-compilation) in that tiny dog owing to the swap space limitation problem. Therefore, I have started seeking 'work-around' on that for a long time.

recently, I am attracted by a forum poster in Hong Kong (my home city) saying that he can deploy a complete GNU man page package (via man.ipk package, and make use of less.ipk, and groff.ipk packages as the media for viewing the man pages directly in console) inside his dog - but that deployment was UNDER pdaXrom. I was very astonished and  frustrated when I saw that the attached .ipk (groff-1.19.2_arm.ipk, less-392_arm.ipk) was compiled using not in gcc version 2.95.2 - instead it is in later release which cause the gcc lib cannot be loaded upon arm execution. In view of this environment, some thoughts are coming out of my mind: is SHARP ROM really very not so USEFUL and needs to be abandoned?

Therefore, my gcc compilation journey starts....

I took the groff-1.19.2.tar.gz, and less-392.tar.gz source code directly from GNU ftp site, and resides them under a /hdd3 loop image for compilation - by making use of the awesome meanie's prepared zgcc.cramfs package. But this was a failure....
« Last Edit: May 08, 2006, 04:05:19 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #1 on: May 08, 2006, 03:11:23 pm »
Therefore, I trusted there is a swapfile limitation issue, and I enlarge the swapfile to be 512MB in size, and put it peacefully in /hdd3 as well. Although I have done that, the compilation was in vain.... groff cannot be compiled through.

My searching was not stopped and further investigation is coming out. In a specific web page there is an introduction of Native onboard QTE development. This is an enhanced version of the zgcc cramfs image. in which the file is called dev-image_1.5.img ...

this gcc compilation environment is exactly the same as meanie's zgcc.cramfs, but with the added full documentation on gcc env't and Qt/E documentation down there, which makes the cramfs image doubles to meanie's one. Another major difference is that it is not stationed permanently in the loop file system. Instead, it makes use of the /mnt/card/devel directory - which means the development env't is made on demand.

Therefore, after my studies on that env't, I have drafted out a bash-shell script which can create the /mnt/card/devel directory, mount the loop image to that, and notify the developer NOT TO REMOVE the SD card during the development env't is launched - otherwise the Zaurus may need to be rebooted; moreover, that shell script also does the stopping of the development env't, and prompt the developer the SD card can be removed after that. That shell script, I named it as dev-img_ctl [start | stop] ...
« Last Edit: May 08, 2006, 09:44:57 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #2 on: May 08, 2006, 03:19:21 pm »
After that development package is mounted, this link: GNU C Compiler for the Zaurus is needed to refer (as the lib version #s are different from that link) on creating manual linkages to the essential compilation libraries and includes for the environment (which can be a permanently symbolic link if you don't plan to remove so). Concerning the Qt/E documentation, which are html pages, you can directly symbolic link to the apache / lighttpd directory for the local reference, and the man pages can be man-ed out when the 'man-pages' work in Qtopia is done....  

the screen shot of that env't linkage is shown in the following picture (this is my Zaurus) :-
[img]http://img352.imageshack.us/img352/6285/scrn0022jv.jpg\" border=\"0\" class=\"linked-image\" /]
« Last Edit: May 08, 2006, 03:20:54 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #3 on: May 08, 2006, 03:22:02 pm »
Here comes with the dev-img_ctl bash-shell scripts written by me:-
Quote
#!/bin/sh -e
#
# driving the development image (dev-image_1.5.img).
# written by: Phil Lau in May 2006
# Zaurus version.
#

export PATH=/bin:/usr/bin

# Safeguard (relative paths, core dumps..)
cd /

case "$1" in
  'start')
        #
        # DEPLOY the environment
        # create /mnt/card/devel dir and mount it from dev-image_1.5.img
        #
        if test ! -f /mnt/card/devel
        then
                mkdir -p /mnt/card/devel
        fi
        echo -n "mounting the disk image and source envt vars..."
        echo
        sudo mount -o loop /hdd3/dev-image_1.5.img /mnt/card/devel
        echo -n "remember to type 'source /mnt/card/devel/devel.sh' before further proceeding!"
        echo
        echo -n "******* Plz run '"$0" stop' b4 u try to take ur SD out!!!!!!"
        echo
        echo
        ;;
       
  'stop')
        #
        # STOP the environment
        # umount /mnt/card/devel dev-image_1.5.img and rm /mnt/card/devel dir
        #
        echo -n "unmounting the disk image and remove the /mnt/card/devel..."
        echo
        echo -n "******* U can now safely take ur SD out......"
        echo
        echo -n "******* Plz 'source .profile' again to revert the console prompt"
        echo
        echo
        cd /home/zaurus
        sudo umount /mnt/card/devel
        if test ! -f /mnt/card/devel
        then
                cd /mnt/card
                rmdir devel
                echo -n "removed /mnt/card/devel"
                echo
        fi
        source /home/zaurus/dev-img_prompt
        ;;

  *)
        echo "usage: $0 [ start|stop ]"
        exit 1
        ;;
esac
« Last Edit: May 08, 2006, 09:39:07 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Native Qte On-board Development Package
« Reply #4 on: May 08, 2006, 03:32:41 pm »
good work - useful information - thanks!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #5 on: May 08, 2006, 03:38:56 pm »
When this development env't is set up, I am still v. frustrated by seeing that the groff 's and less' compilation are still backing off; So, I try to examine the underlying error message during the compilation....

The error mesgs are saying 'I/O error' when a compilation is calling off - without any previous errors shown before that. Therefore, I suspect this error is coming from the 'temporal directory disk space' problem in the /tmp directory.

passing 'ls' in the console, we can see that the /tmp is symbolicly linked to the /dev/shm/tmp directory.

passing 'df' in the console, we can see that only 1M memory is allocated to /dev/shm as well. This maybe the core reason why the gcc cannot compile harsh compilations in SHARP original ROM Qtopia environment.

if you study the /root/etc/rc.d/rc.rofilesys in detail, you can understand that the /dev/shm/tmp is in fact temporarily created inside this script, and I thought out one method on EXPANDING the /dev/shm/tmp directory size is to make use of loop file image method: we can dd a "whatever-sized" called tmp.ext2 in /hdd3 directory by this command (thanks meanie again by teaching me how to do so - this example shows creating a 512M tmp.ext2): -

Quote
# su
# dd if=/dev/zero of=/hdd3/tmp.ext2 bs=1MB count=512
# echo y|/sbin/mke2fs /hdd3/tmp.ext2

inside the rc.rofilesys, this statement can be easily spotted out:-
Quote
mkdir /dev/shm/tmp

you can add the following statement after the HDD is initialized (don't add that statement too far away since the /dev/shm/tmp may fill some temp files after the checking... )

Quote
mount -o loop -t ext2 /hdd3/tmp.ext2 /dev/shm/tmp

Please note that THERE ARE TOTALLY 3 INCIDENCES OCCURRED INSIDE this rc.rofilesys file, you need to fill the 3 incidencies out in order to achieve a permanent expansions on the /tmp directory...
« Last Edit: May 08, 2006, 04:14:33 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #6 on: May 08, 2006, 03:42:44 pm »
N.B. since rc.rofilesys file is mounted in a intrinsic read-only volume, you need to remount that volume by meanie's taught command first: -

Quote
# mount -o rw,remount /

and after modifying the rc.rofilesys file, the following command is issued again...  

Quote
# mount -o ro,remount /

And the final 'df' of my /tmp folder is shown in the following picture (i created a 128M loop image tmp.ext2 only): -

« Last Edit: May 08, 2006, 11:54:41 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #7 on: May 08, 2006, 11:52:47 pm »
A further comment: -

after this patch, the HancomWord can HancomSheet can read further complex .doc and .xls document (say, initially they can't read doc with images, but now they can...)

the JustReader can read txt file more than 1M.

Conclusion: seems the /tmp directory space plays an important role on the apps capability...  
« Last Edit: May 08, 2006, 11:53:12 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Native Qte On-board Development Package
« Reply #8 on: May 09, 2006, 12:05:51 am »
Quote
A further comment: -

after this patch, the HancomWord can HancomSheet can read further complex .doc and .xls document (say, initially they can't read doc with images, but now they can...)

the JustReader can read txt file more than 1M.

Conclusion: seems the /tmp directory space plays an important role on the apps capability... 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126228\"][{POST_SNAPBACK}][/a][/div]

just to add that setting the TMPDIR environment variable also allows you to change where the applications places its tmp files, ie

Code: [Select]
export TMPDIR=/mnt/cf/tmp
will tell the apps to use /mnt/cf/tmp instead of /tmp

however, some naughty apps have /tmp hardcoded and will ignore that variable so you will need to force it to use the alternate location by mounting over /tmp as mentioned before or just do

Code: [Select]
mount -o bind /mnt/cf/tmp /tmp
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

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Native Qte On-board Development Package
« Reply #9 on: May 09, 2006, 01:44:57 am »
after surviving my "HDD 00 Clear" dilema and managed to restore my 6gb internal hardisk back to spec, Now i am thinking of repartitioning my internal drive to run a tmp.  you seriously gaved me something to look forward to.
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Native Qte On-board Development Package
« Reply #10 on: May 30, 2006, 09:30:21 pm »
where's the ipk's or bin's?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #11 on: June 01, 2006, 01:43:25 pm »
Quote
where's the ipk's or bin's?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129076\"][{POST_SNAPBACK}][/a][/div]
posts #2 & #3, there are 2 links implicitly specified....  
« Last Edit: June 01, 2006, 01:48:27 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #12 on: June 02, 2006, 10:48:27 pm »
just a simple follow-up: -

having watched Meanie's zgcc on-board X/Qt compiler package..

https://www.oesf.org/forums/index.php?showtopic=18789&st=0

I found that package is already terrific for Qt development as well. Having attached automatically via the loop device, it is advised to use that package right away.

Moreover, for the 'qmake' function in Qt env't, this can be achieved by the 'tmake' with a little longer command: -

Code: [Select]
tmake {project name}.pro > Makefile
so that the Qt project's Makefile can be easily made out....
« Last Edit: June 02, 2006, 10:50:17 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Native Qte On-board Development Package
« Reply #13 on: June 02, 2006, 11:30:59 pm »
I spent 1 hours last night trying to install this.  I do not understand why I couldnt get the zgcc to work but I grabed a crams image and then i modified one of the installers.  Thing mounts and stays mounted with automounter.  when i launch qconsole, zgcc greats me as if it was just staying in the background waiting for me to use it.  Very nice.  automounter insures after a reboot, the zgcc stays mounted.
« Last Edit: June 02, 2006, 11:36:15 pm by Cresho »
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Native Qte On-board Development Package
« Reply #14 on: June 03, 2006, 01:16:45 am »
Quote
I spent 1 hours last night trying to install this.  I do not understand why I couldnt get the zgcc to work but I grabed a crams image and then i modified one of the installers.  Thing mounts and stays mounted with automounter.  when i launch qconsole, zgcc greats me as if it was just staying in the background waiting for me to use it.  Very nice.  automounter insures after a reboot, the zgcc stays mounted.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129545\"][{POST_SNAPBACK}][/a][/div]

actually, i have already kicked this stuff away for a period of time since i found the awesome Meanie's second edition of his zgcc-2.95-2.cramfs (which is mentioned in my previous post) which covers essentially most of the Qt development.

For further follow-up, since the dev...img has 'qmake' and 'qembed' utilities which can build an 'include' file and 'Makefile' easily by them, i strong suggest Meanie's zgcc cramfs to cover this as well as my temporal solution to Qt development is just put those stuffs inside my /usr/local/bin .

concerning the 'Standalone Qt Tutorial' which covers OpenGL library, I also found that even Meanie's second edition of zgcc cramfs cannot compile them (of coz for the previous stuff / dev...img bounces back with a horrible absentee messages...), I suspect that even this version of cramfs doesn't cover the LIB of the OpenGl (as it reports that '-lGLU' option hasn't be recognised during ld operation, that means system includes are present, but the linker libraries are evicted out...).

if that can be added in the future versions, I think this tiny little development box can be achieved in a more enhanced fashion so that the 'freshmeat' stuff can be compiled as well...  
« Last Edit: June 03, 2006, 01:19:33 am by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....