Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2013 13:05:26 -0800
From:      Tim Kientzle <kientzle@freebsd.org>
To:        freebsd-arm@freebsd.org
Subject:   About board-specific files.*
Message-ID:  <FB7CD2D3-12A6-452B-BEBD-DE0B4B01A626@freebsd.org>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_C7E73846-5F7B-4D27-B3C6-E6592BD3BEBD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Now that I think I understand some of the issues in building
a GENERIC arm kernel, I'm starting to piece together
a kernel that has both RPi and BBone bits that I can
use as a testbed.

Next Problem:  A lot of the boards are using
board-specific files.* to control what files get
linked into the kernel.

This seems like a real problem for a GENERIC kernel,
so I propose merging them into sys/conf/files.arm.

Here's how I'm doing it right now for my current
experiments.  If anyone has a better idea, I'm
definitely interested.

Basically, I'm using "device bcm2835" to represent
all of the basic support for that particular SoC.
(An SoC is, after all, just another piece of hardware.)

Then the files marked "standard" in
arm/bcm2835/files.bcm2835 move to
files.arm as "optional bcm2835".

With this approach, the GENERIC arm kernel will
list the SoCs as devices:

     device bcm2835
     device am335x
     device omap4
    =85 etc =85

That will bring in the basic support for those SoCs
(e.g., interrupt handler, gpio, clock management, etc).
Additional drivers (SDHCI, UART, USB, etc) will
be separate devices.

I think this makes sense, but I'm open to other ideas.

Tim


--Apple-Mail=_C7E73846-5F7B-4D27-B3C6-E6592BD3BEBD
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)

iQEcBAEBAgAGBQJRMmmXAAoJEGMNyGo0rfFBRP4H/0yljEtP+/DSjXBRVA4Zeel7
mpedLt5ct+XzZuVyDaBcHkAVCzxJQy9JsmfoCv4FhYpnVxa9aXJ7db2n4bm/SyVN
p2Tidsbvnsm9Cf0GaKQQV51rnKCvbuT4Qy3ZnJTmup4Z93OWJluh2zpE6EV6/vng
4VOhnOiwSeQbAql7nE0MIUZy2TNaWgxhcNMd7Ua7B3dpG7Jjxuiu2fMnpWtnaIfl
/wYLBu7aad+3F5NE258P6TrAcmK/RJYYB5vgQP8joiFO3Na/6iDNOs0pMkGtUC/D
qduy1NqOqL2eIu+Gn2LmcKC3uEv0d1Hw1Buf9mvbYRxJu5IJ8gDP+is8vSSOgqc=
=oSfM
-----END PGP SIGNATURE-----

--Apple-Mail=_C7E73846-5F7B-4D27-B3C6-E6592BD3BEBD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FB7CD2D3-12A6-452B-BEBD-DE0B4B01A626>