TinyBSD and CURRENT
Milan Obuch
freebsd-embedded at dino.sk
Wed Jul 1 14:42:47 UTC 2009
Hi,
does anybode use this combination? I am trying to use TinyBSD to build FreeBSD
flash based router with vimage. It seems to be not up to date in our
repository. First, I replace 'devide sio' with 'device uart' in TINYBSD
kernel config file. Then, for some reason, I must add 'options
COMPAT_FREEBSD7' into TINYBSD kernel config file (actually I replace FREEBSD4
compatibility with 7), otherwise kernel build process stops when compiling
sysv_shm.c file:
cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param
large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/sysv_shm.c
/usr/src/sys/kern/sysv_shm.c:882: error: field 'shm_perm' has incomplete type
cc1: warnings being treated as errors
/usr/src/sys/kern/sysv_shm.c: In function 'oshmctl':
/usr/src/sys/kern/sysv_shm.c:925: warning: implicit declaration of
function 'ipcperm_new2old'
/usr/src/sys/kern/sysv_shm.c:925: warning: nested extern declaration
of 'ipcperm_new2old'
/usr/src/sys/kern/sysv_shm.c:939: warning: implicit declaration of
function 'freebsd7_shmctl'
/usr/src/sys/kern/sysv_shm.c:939: warning: nested extern declaration
of 'freebsd7_shmctl'
/usr/src/sys/kern/sysv_shm.c: At top level:
/usr/src/sys/kern/sysv_shm.c:954: error: 'freebsd7_shmctl' undeclared here
(not in a function)
*** Error code 1
Stop in /usr/obj/usr/src/sys/TINYBSD.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
After fixing that, I was able to build working image (tested with WRAP), just
two small points needs to be resolved - ttyu names in /etc/ttys instead of
ttyd, which was just an easy one, but for some reason, there is no /etc/fstab
file, which provokes some noise about it when booting.
Did someone else tested TinyBSD under CURRENT? Are there any traps I did not
spot?
Regards,
Milan
More information about the freebsd-embedded
mailing list