Re: Crosscompiling - Olimex EP9301
Hubert Feyrer <hubert <at> feyrer.de>
2006-11-27 22:24:53 GMT
On Mon, 27 Nov 2006, Richard Kästner wrote:
> 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)
I'm not sure what you mean here - in general, the question seems like
someone on tech-kern <at> could help you further.
The general idea is that the files.* files tell what devices exist and can
be used by a certain architecture, and that the kernel config file then
tells which device drivers really to build into the kernel. For each
architecture, there's a std.<whatever> file in the 'conf' directory that
pulls in in those files.* files that the architecture supports - see all
the various std.* files in src/sys/arch/evbarm/conf as some examples.
Often, this is a bit of a maze to fine through, e.g. for gpio on
armadillo9, the way is: std.armadillo9 -> files.armadillo9 -> files.ep93xx
I'm not sure about the details behind this...
> 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 <at> epia1:/usr/obj/sys/arch/i386/compile/RFK i386