AW: Building rtems-libbsd for pc686

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Dec 17 09:47:23 UTC 2019


On 17/12/2019 10:35, Jan.Sommer at dlr.de wrote:
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Joel Sherrill [mailto:joel at rtems.org]
>> Gesendet: Montag, 16. Dezember 2019 15:33
>> An: Sommer, Jan
>> Cc:rtems-users at rtems.org
>> Betreff: Re: Building rtems-libbsd for pc686
>>
>>
>>
>> On Mon, Dec 16, 2019 at 7:37 AM<Jan.Sommer at dlr.de>  wrote:
>>
>>
>> 	Hello,
>>
>> 	I tried to build the branch 5-freebsd-12 for the pc686 BSP of the current
>> RTEMS master.
>> 	The compilation stops at:
>>
>> 	[  64/1156] Compiling freebsd/sbin/sysctl/sysctl.c
>> 	../../freebsd/sbin/sysctl/sysctl.c:72:10: fatal error: machine/pc/bios.h:
>> No such file or directory
>> 	 #include <machine/pc/bios.h>
>> 	          ^~~~~~~~~~~~~~~~~~~
>> 	compilation terminated.
>>
>> 	Waf: Leaving directory `/home/somm_ja/workspace/refex/rtems-
>> libbsd/build/i386-rtems5-pc686-minimal'
>> 	Build failed
>> 	 -> task in 'objs02' failed with exit status 1 (run with -v to display more
>> information)
>>
>> 	I tried to build the default and minimal buildset with the same results.
>> 	The missing bios.h is available in the full freebsd sources.
>>
>> 	Do I need to use the freebsd-to-rtems.py script to integrate the missing
>> header into the freebsd directory or do I need to do something different?
>>
>>
>>
>> The code worked on the pc at one point.
>>
>> What is it getting from bios.h?
>>
>> My first cut at it would be to import that file. Long term, we would probably
>> be better off if the PC BSP used more infrastructure from FreeBSD. The current
>> BSP
>> is marginally supporting non-legacy PCs.
>>
> With some local changes I got rtems-libbsd to compile again, but only without the E1000 driver.
> If the driver is included I get linker errors because it depends on iflib_* functions.
> If I understand libbsd.py correctly then iflib.h is included in the build, but iflib.c is not.
> I don't really get how other BSPs get around this dependency. Or don't they use E1000 at all?

We only use libbsd on system on chips (m68k, arm and powerpc) without PCI.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the users mailing list