Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2013 23:48:17 +0100
From:      Monthadar Al Jaberi <monthadar@gmail.com>
To:        Stefan Kooman <stefan@kooman.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: kernel build fails for Routerboard 450g
Message-ID:  <CA%2BsBSoJ_vPrWOqyqMH6rzfmAndGJ5v%2Bf6irSihKe9k6Ew4Ej%2Bw@mail.gmail.com>
In-Reply-To: <20130107214419.GB16119@archie.kooman.org>
References:  <20130107214419.GB16119@archie.kooman.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Try not using setenv. but modify the kernel config to have

machine mips mips

in the begining.

br,

On Mon, Jan 7, 2013 at 10:44 PM, Stefan Kooman <stefan@kooman.org> wrote:
> Dear List,
>
> I'm trying to build a kernel for Routerboard 450G. I'm following this
> guide [1]. The build process fails with "Specify machine type, e.g.
> ``machine i386'". I have added the "MACHINE" type to the environment
> (e.g. setenv MACHINE mips in the build script) but to no avail. Can someb=
ody
> with more experience help me out.
>
> -- snip: build starts (kernel toolchain compilation went fine btw) ---
>
> --------------------------------------------------------------
>>>> Kernel build for RB4XX started on Mon Jan  7 22:23:36 CET 2013
> --------------------------------------------------------------
> =3D=3D=3D> RB4XX
> mkdir -p /data/mips/obj/mips.mips/data/mips/src/sys
>
> --------------------------------------------------------------
>>>> stage 1: configuring the kernel
> --------------------------------------------------------------
> cd /data/mips/src/sys/mips/conf;
> PATH=3D/data/mips/obj/mips.mips/data/mips/src/tmp/legacy/usr/sbin:/data/m=
ips/obj/mips.mips/data/mips/src/tmp/legacy/usr/bin:/data/mips/obj/mips.mips=
/data/mips/src/tmp/legacy/usr/games:/data/mips/obj/mips.mips/data/mips/src/=
tmp/usr/sbin:/data/mips/obj/mips.mips/data/mips/src/tmp/usr/bin:/data/mips/=
obj/mips.mips/data/mips/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
> config  -d /data/mips/obj/mips.mips/data/mips/src/sys/RB4XX
> /data/mips/src/sys/mips/conf/RB4XX
> Specify machine type, e.g. ``machine i386''
> *** [buildkernel] Error code 1
>
> Stop in /data/mips/src.
> *** [buildkernel] Error code 1
>
> Stop in /data/mips/src.
> "/data/mips/src/Makefile", line 147: warning: "TARGET_BIG_ENDIAN is no
> longer necessary for MIPS.  Big-endian is not the default."
> --------------------------------------------------------------
>>>> Installing kernel RB4XX
> --------------------------------------------------------------
> cd /data/mips/obj/mips.mips/data/mips/src/sys/RB4XX;
> MAKEOBJDIRPREFIX=3D/data/mips/obj/mips.mips  MACHINE_ARCH=3Dmips
> MACHINE=3Dmips  CPUTYPE=3Dmips32
> GROFF_BIN_PATH=3D/data/mips/obj/mips.mips/data/mips/src/tmp/legacy/usr/bi=
n
> GROFF_FONT_PATH=3D/data/mips/obj/mips.mips/data/mips/src/tmp/legacy/usr/s=
hare/groff_font
> GROFF_TMAC_PATH=3D/data/mips/obj/mips.mips/data/mips/src/tmp/legacy/usr/s=
hare/tmac
> PATH=3D/data/mips/obj/mips.mips/data/mips/src/tmp/legacy/usr/sbin:/data/m=
ips/obj/mips.mips/data/mips/src/tmp/legacy/usr/bin:/data/mips/obj/mips.mips=
/data/mips/src/tmp/legacy/usr/games:/data/mips/obj/mips.mips/data/mips/src/=
tmp/usr/sbin:/data/mips/obj/mips.mips/data/mips/src/tmp/usr/bin:/data/mips/=
obj/mips.mips/data/mips/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
> make KERNEL=3Dkernel install
> cd: /data/mips/obj/mips.mips/data/mips/src/sys/RB4XX: No such file or
> directory
> *** [installkernel] Error code 2
>
> Stop in /data/mips/src.
> *** [installkernel] Error code 1
>
> Stop in /data/mips/src.
>
> --- snap: build stopped ---
>
> Any help is kindly appreciated,
>
> Stefan
>
> [1]: http://loos.no-ip.org/routerboard/
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"



--=20
Monthadar Al Jaberi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSoJ_vPrWOqyqMH6rzfmAndGJ5v%2Bf6irSihKe9k6Ew4Ej%2Bw>