Subject: Crosscompiling - Olimex EP9301
To: None <tech-embed@netbsd.org>
From: Richard =?iso-8859-1?q?K=E4stner?= <richard.kaestner@kabsi.at>
List: tech-embed
Date: 11/27/2006 13:59:12
Pretty fresh into ARM and NetBSD (but experience with FreeBSD, Linux), I ha=
ve=20
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 ou=
t=20
of the box like a charm!)
The provided NetBSD Kernel uses USB-Disk.
=46rom the mail archives I can see, there is only a basic configuration (si=
milar=20
to TS7200 and to a certain extent to ARAMDILLO9).
=46rom my understanding of chip and configuration files, there should not b=
e too=20
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?=20
(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 =
=20
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 &&=20
STRIP=3D/usr/src/obj/tooldir.NetBSD-4.99.4-i386/bin/arm--netbsdelf-strip /u=
sr/src/obj/t
ooldir.NetBSD-4.99.4-i386/bin/nbinstall -N /usr/src/etc -c -r -T etc_pkg =
=2Do=20
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:=20
'./build.sh -u -m evbarm kernel=3DRFK_TS7200'
I experienced similar, compiling for i386 - it was OK after second attemp=
t.
BTW: I must have done something stupid: after reboot to new version,=20
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