Author Topic: Need help with setting up zgcc  (Read 2711 times)

Lumune

  • Newbie
  • *
  • Posts: 34
    • View Profile
Need help with setting up zgcc
« on: August 10, 2004, 11:25:04 am »
I was trying to setup zgcc on my C860, and one of the steps is to run the follow code:
Code: [Select]
mount -t cramfs /mnt/card/zgcc2Bin.cramfs /mnt/card/.zgcc -o loop
mount -t cramfs /mnt/card/zgcc2Inc.cramfs /mnt/card/.include -o loop

but I did something wrong, and I want to run these code again,
then bash said I don't have spare loop device

so, I assume I have to free the loop devices first
but I don't know how to do that, can somebody plz help me?
BIG THX~~

Original install instructions can be found in here

Eric

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Need help with setting up zgcc
« Reply #1 on: August 10, 2004, 12:02:22 pm »
Quote
Note that the Zaurus has only two loop devices (/dev/loop0 and /dev/loop1) set up in its default configuration. You can set up more -- use the command

mknod /dev/loop2 b 7 2

I just got my onboard development set up and running last Friday so this was still fresh in my mind.
SL5500, Open Zaurus 3.5.2, 128MB SD

Lumune

  • Newbie
  • *
  • Posts: 34
    • View Profile
Need help with setting up zgcc
« Reply #2 on: August 10, 2004, 09:31:57 pm »
Quote
Quote
Note that the Zaurus has only two loop devices (/dev/loop0 and /dev/loop1) set up in its default configuration. You can set up more -- use the command

mknod /dev/loop2 b 7 2

I just got my onboard development set up and running last Friday so this was still fresh in my mind.  
I know I can add extra loop device, but the problem is even I add new loop device(loop2 & loop3)
the "old" mount is still using 2 loop device(loop0 & loop1), and I wanna free those 2 loop device
but thx for the advice

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Need help with setting up zgcc
« Reply #3 on: August 10, 2004, 11:41:49 pm »
Code: [Select]
umount /mnt/card/.zgcc
umount /mnt/card/.include

You might want to read up on some linux commnds if you plan to develop with linux, otherwise you're gonig to have a hard time of it

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Need help with setting up zgcc
« Reply #4 on: August 11, 2004, 04:29:39 am »
Please follow cmisip's instruction at http://cmisip.home.insightbb.com/zaurus.htm for the installation.

Before activting tmake, you need to install Perl 5.8 on the Zaurus.

I hope the above will help.

Lumune

  • Newbie
  • *
  • Posts: 34
    • View Profile
Need help with setting up zgcc
« Reply #5 on: August 11, 2004, 05:16:12 am »
Quote
Code: [Select]
umount /mnt/card/.zgcc
umount /mnt/card/.include

You might want to read up on some linux commnds if you plan to develop with linux, otherwise you're gonig to have a hard time of it

Stu
I have tried this before, but it gave me an error, something like "/mnt/card/.zgcc: Invalid xxx" (can't remember what xxx was)

anyway, i restored a backup and start all over again
but thx for ur help~~!

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Need help with setting up zgcc
« Reply #6 on: August 24, 2004, 11:57:41 pm »
Correction: Perl 5.8.0 is already available if dev-img-1.5 is properly installed.

As tmake requires perl to be under /usr/bin, the following step help check dev-img-1.5 installaion and acitvate symbolic linkage for perl :

          - To check the installation by typing "which make", it should show "/mnt/card/.zgcc/bin/make" for my case

          - To activate symbolic linkage for perl:
           ln -s  /mnt/card/perl/perl5.8.0/bin/perl /usr/bin/perl

The following has been tested with the t1 tutorial from qt.
         
- Type "tmake t1.pro > Makefile"
- Type "make" to compile and link the program and the resultant file is t1
- Type "./t1" to activate your qt application.