Author Topic: Native sdk  (Read 4999 times)

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« on: September 29, 2004, 06:34:46 pm »
Downloaded http://mirror1.pdaxrom.org/zgcc-3.3.2.img .

Instructions:

Quote
Quick install instructions: Put the file in /home/root and reboot

Sounds too good to be true and sure enough nothing happened.

Quote
or manually mount the file to /opt/arm/3.3.2

#mount /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: /home/root/zgcc-3.3.2.img is not a block device (maybe try '-o loop')

#mount -o loop /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: you must specify a filesystem type

#mount -o loop -t cramfs /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: wrong fs type

What next?

Sorry if I'm being really dense.

Cheers

Dan

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« Reply #1 on: September 30, 2004, 06:46:05 pm »
tryed adding
/home/root/zgcc-3.3.2.img /opt/arm/3.3.2 cramfs auto,loop 0 0

to

/etc/fstab

can't mount it, still no joy... :-(

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« Reply #2 on: October 01, 2004, 07:35:42 am »
After some more reading I'm guessing I need to install the gcc and gcc-headers package.

Thanks for telling me everyone!

bruce

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://bruce.howard.org
Native sdk
« Reply #3 on: October 01, 2004, 09:09:59 pm »
So is it working for you?  Can you please summarize what you needed to do?

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« Reply #4 on: October 04, 2004, 08:33:21 am »
Nope, still not working. Here's what I have tried and worked out:

Mounting Zazz's zsdk is really easy and as far as I could tell worked, short of me exporting a few paths.

The only think I didn't like is that the compiler is configured as an arm cross compiler for arm, if that makes any sense. Functionally it should be identical to a native compiler, it just might take a bit more work configuring things to be built with it.

The binutils, gcc and gcc-headers packages in feed2 all seem work, I just couldn't find the space to install them. I tried to symlink my /opt/ directory to a directory on my SD card, but ipkg just trashed the symlink and installed to internal flash. I need to work out how to install them on my SD card.

I'm pretty sure the zgcc-3.3.2.img is a version of the above packages and would be ideal if I could work out how to mount it. Anyone?

Cheers

Dan

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« Reply #5 on: October 04, 2004, 03:11:27 pm »
Got it with a bit of hex editing. http://mirror1.pdaxrom.org/zgcc-3.3.2.img is actually a gziped cramfs image. So to mount it we need to do something like this...

#mv zgcc-3.3.2.img zgcc-3.3.2.img.gz
#gunzip zgcc-3.3.2.img.gz
#mkdir -p /opt/arm/3.3.2
#mount -o loop,ro -t cramfs /mnt/card/zgcc-3.3.2.img /opt/arm/3.3.2

And to check it's pathed and 'working'
#gcc -v

Thank god for that!

Now if only the file had been named zgcc-3.3.2.cramfs.gz , I wouldn't have had nearly as much fun!

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Native sdk
« Reply #6 on: October 04, 2004, 08:51:40 pm »
Well done djtreble. You've probably saved a lot of people from the same issues.

 - Bundabrg
« Last Edit: October 04, 2004, 08:56:21 pm by Bundabrg »
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

djtreble

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Native sdk
« Reply #7 on: October 09, 2004, 12:34:41 pm »
For rc5

http://mirror1.pdaxrom.org/rc5/zgcc-3.3.2.img

is NOT gzipped.

it wants mounting to a slightly different directory though

#mkdir -p /opt/arm/3.3.2-vfp
#mount -o loop,ro -t cramfs /mnt/card/zgcc-3.3.2.img /opt/arm/3.3.2-vfp

Hope this helps someone.

Cheers

Dan

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Native sdk
« Reply #8 on: October 19, 2004, 04:58:48 pm »
I have some problem however with the IPK making. The SDK tutorial on the pdaXrom site says:
Quote
# Compile/Install the program there using, make DESTDIR=ipkg_tmp install
This usually gives me an error. With hnb it says it can't find the program called "install" and gnuplot doesn't install in that directory, only in the system, as it would normally. (I wanted to recompile them with the new VFP thingie)
Please, I want to contribute IPKs, but I can't pack them if they don't install nicely in this dir.

I searched for the "install" program and the package called coreutils has it on my Debian system. Any suggestion how to get it in pdaXrom. (I'm using RC5 native SDK)

I tried to crosscompile things with SDKs before, but I got too many errors at the configure scripts and so...  So I tried the native SDK and it's as easy to use as to compile programs for my desktop Linux system. Give it a go if you felt similar before!

Zumi, the compiler
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Native sdk
« Reply #9 on: October 20, 2004, 03:14:24 am »
I have started a new thread for install and coreutils.

As a general note you will often need other small tools that are not in the sdk
or in the base rom.

Compiling various thing I found configure and  install script required for instance:

make (of course)
file
diffutils
coreutils (install program)
SLC-860 cacko / senao wifi

igorekk

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://
Native sdk
« Reply #10 on: October 22, 2004, 07:43:11 am »
Can i recompile with NativeSDK some pdaXrom programs (mb-applet-power)?
c3200(1.1beta3) + IceWM
Zavrik.ru - Russian Zaurus Portal.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Native sdk
« Reply #11 on: October 22, 2004, 08:02:26 am »
Though I didn't try, i think so. At least matchbox header files are included.
SLC-860 cacko / senao wifi

igorekk

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://
Native sdk
« Reply #12 on: October 22, 2004, 09:21:54 am »
Quote
Though I didn't try, i think so. At least matchbox header files are included.
1. When I try to compile little program:

Code: [Select]
#include

int main()
{
 Â return 0;
}

there are a lot of errors

2. When I try to compile this program:

Code: [Select]
#include

int main()
{
 Â return 0;
}

compiler couldn't find file "iostream"
« Last Edit: October 22, 2004, 09:22:37 am by igorekk »
c3200(1.1beta3) + IceWM
Zavrik.ru - Russian Zaurus Portal.

pgas2

  • Newbie
  • *
  • Posts: 31
    • View Profile
Native sdk
« Reply #13 on: October 22, 2004, 11:58:16 am »
1.
try gcc -I/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/include/freetype2/ -o main  main.c

2.
#include <iostream> is a c++ notation if i am not mistaken
try with g++