(1) Getting src with
kiyohara version.
cd /export
mkdir orion_nas
cd orion_nas
wget ftp://ftp.jp.netbsd.org/pub/NetBSD/misc/kiyohara/orion_nas/orion_nas-20081107.diff
wget ftp://ftp.jp.netbsd.org/pub/NetBSD/misc/kiyohara/orion_nas/orion_nas-20081107.tar.gz
The shell commands issued are:
pts/1:makoto@t-105 9:50:03/090403(/export/src)>
cvs -Q -d ${REPOSITORY} co -D 20081107 src && cd src && cvs -Q update -dP .
patch -s -p0 < ../orion_nas/orion_nas-20081107.diff
tar zxf ../orion_nas/orion_nas-20081107.tar.gz
time sudo ./build.sh -m evbarm -j 4 release > & ../log-release
9239.373u 1268.966s 56:42.20 308.8% 0+0k 4311+1844659io 5685pf+0w
By this build, the kernel KUROBOX_PRO KUROBOX_TERA are not
automatically build. So build kernel manually.
pts/0:makoto@t-105 17:23:23/090504(/export/src)> \
time sudo ./build.sh -j 8 -m evbarm \
-T /export/src/tooldir.NetBSD-5.0_BETA-i386 \
kernel=KUROBOX_PRO > & ../KUROBOX_PRO-log
Here I've got an error like:
src/sys/arch/arm/marvell/if_oriongbe.c:504: error: 'status' undeclared (first use in this function)
Edit the file
src/sys/arch/arm/marvell/if_oriongbe.c
and adding the line 462:
455 static int
456 oriongbe_intr(void *arg)
457 {
458 struct oriongbe_softc *sc = arg;
459 struct ifnet *ifp = &sc->sc_ethercom.ec_if;
460 uint32_t ic, ice;
461 int claimed = 0;
462 int status = 0;
With this change, the kernel is built, and