tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Crosscompiling - Olimex EP9301



Pretty fresh into ARM and NetBSD (but experience with FreeBSD, Linux), I have 
some questions.
Hope to find some answers for my (hopefully not too stupid) questions:

I got the Olimex EP9301 board, booted into both Linux and NetBSD ( works out 
of the box like a charm!)
The provided NetBSD Kernel uses USB-Disk.

From the mail archives I can see, there is only a basic configuration (similar 
to TS7200 and to a certain extent to ARAMDILLO9).

From my understanding of chip and configuration files, there should not be too 
much to do to add support for GPIO and ADC (still need to study manuals!)

1.  how do I get the 'files.XY' into a configuration? 
    (Which - I think - get the GPIO-Drivers in)

    files.aramdillo9, files.tsarm:
        include "arch/arm/ep93xx/files.ep93xx"
    which should allow accessing GPIO drivers - but no devices in EP9301

2.  will it be enough to include files for GPIO in a configuration?
  ( I would copy TS7200, remove all 'pld' references and call it OLI9301)

3.  when I cross compile (running NetBSD Current)
  epia1(root) ~> uname -a
  NetBSD epia1 4.99.4 NetBSD 4.99.4 (RFK) #0: Sat Nov 25 20:27:08 CET 2006   
  root@epia1:/usr/obj/sys/arch/i386/compile/RFK i386

  I have problem doing :
  cd /usr/src
  ./build.sh -m evbarm release

#   install  /usr/src/obj/destdir.evbarm/dev/MAKEDEV
cd /usr/src/etc/obj && 
STRIP=/usr/src/obj/tooldir.NetBSD-4.99.4-i386/bin/arm--netbsdelf-strip 
/usr/src/obj/t
ooldir.NetBSD-4.99.4-i386/bin/nbinstall  -N /usr/src/etc -c  -r -T etc_pkg -o 
root -g wheel -m 555  MAKEDEV
/usr/src/obj/destdir.evbarm/dev
nbinstall: MAKEDEV: stat: No such file or directory

*** Failed target:  install-etc-files
*** Failed command: cd /usr/src/etc/obj && ...

  However: './build.sh  -m evbarm build' worked out fine!
  Compiling a kernel also works fine: 
    './build.sh -u -m evbarm kernel=RFK_TS7200'

  I experienced similar, compiling for i386 - it was OK after second attempt.

   BTW: I must have done something stupid: after reboot to new version, 
   I can't switch consoles (<ctrl><alt><F[1-4]>)


4.  How do I cross compile packages? (maybe a stupid question, but could not
     find a hint for that in the handbook ...)

5.  preferred way to put an application into a flash image:
     - compile from pkgsrc, leave files in /usr/pkg/...
     - or put into /bin, /usr/bin/ ...

Hope to find a helping hand


TIA

Richard Kaestner



Home | Main Index | Thread Index | Old Index