Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2017 14:58:26 +0200
From:      marcel <marcel.plouf@gmail.com>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Error appear while building my custom kernel
Message-ID:  <20170627145826.69ea9de8@marcel-laptop.lan>
In-Reply-To: <20170627002058.S99127@sola.nimnet.asn.au>
References:  <mailman.99.1498478402.60436.freebsd-questions@freebsd.org> <20170627002058.S99127@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Tue, 27 Jun 2017 01:02:32 +1000 (EST),
Ian Smith <smithi@nimnet.asn.au> a =C3=A9crit :

> In freebsd-questions Digest, Vol 682, Issue 1, Message: 6
> On Mon, 26 Jun 2017 12:53:12 +0200 marcel <marcel.plouf@gmail.com>
> wrote:
>  > Hi,
>  >=20
>  > I tried to build the kernel from the FreeBSD 11 stable source,
>  > following this chapter form the Handbook :
>  > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfi=
g.html
>  >=20
>  > So, I've checked the source with subversion in /usr/src and then
>  > I've edited the GENERIC config file and I have an error when I did
>  > 'make buildkernel KERNCONF=3DMYKERNEL' . =20
>=20
> I think that chapter could emphasise more the second method shown as=20
> being generally more desirable - namely creating a config file to:
>=20
> include GENERIC
> ident MYKERNEL
>=20
> options		whatever
> nooptions	this that tother
> device		something another
> nodevice	whiskers jam
>=20
> as shown in the referenced config(5)
>=20
> Especially when other people might have to look it over, rather than=20
> trying to spot everything that differs from GENERIC - and then it
> would also be of a size that you can reasonably include into a list
> message.

Okay, I take note, thanks for advice.

>=20
> For instance I noticed in passing, while skimming, that you included
>  device		umass			# Disks/Mass
> storage - Requires scbus and da for USB, but had commented out scbus
> and da in the ATA section.  Not suggesting that might be the
> particular problem here, just an example.

Yeah, that was the problem, I'm sorry to haven't read more carefully
the comments...

>=20
>  > Here is my kernel config file and the logs:
>  > https://bpaste.net/show/8d0b2e755142
>  >  =20
>  > >From line 1 to line 369 it's the kernel config file and from line
>  > >370 =20
>  > to the end it's the logs (sorry for that).  =20
>=20
> The first and last dozen or so log lines would likely be enough :)

And yeah, sorry for that too, next times I will be careful.

>=20
> No I don't know what this problem might be, just suggesting that less=20
> might be more in terms of getting some knowing eyes on the problem.
>=20
> Have you tried just 'make buildkernel KERNCONF=3DGENERIC' ? If that
> works alright, it's a config file problem.  Otherwise .. it's an
> issue :)
>=20
> FWIW, Ian

Anyway, thanks for the answer, I have a working kernel now ! ;)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170627145826.69ea9de8>