Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2018 19:33:48 +0900 (JST)
From:      SAITOU Toshihide <toshi@ruby.ocn.ne.jp>
To:        ian@freebsd.org
Cc:        freebsd-arm@freebsd.org
Subject:   Re: difference between buildkernel and release.sh for BBB
Message-ID:  <20181229.193348.553493805484498183.toshi@ruby.ocn.ne.jp>
In-Reply-To: <1546017707.78877.88.camel@freebsd.org>
References:  <20181228.215424.1441029979323733630.toshi@ruby.ocn.ne.jp> <1546017707.78877.88.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Dec 2018 10:21:47 -0700, Ian Lepore <ian@freebsd.org> wrote:=

> On Fri, 2018-12-28 at 21:54 +0900, SAITOU Toshihide wrote:
>> What is a difference in kernel between these two?
>> =

>> =A0 make buildkernel TARGET=3Darm TARGET_ARCH=3Darmv7 KERNCONF=3DBEA=
GLEBONE
>> =

>> =A0 release.sh -c arm/BEAGLEBONE.conf
>> =

>> The former kernel can't create spigen0 node.
>> =

>> =

>> I'm using am335x-boneblack.dtb with the following additions.
>> =

>> &am33xx_pinmux {
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0spi0_pins: pinmux-sp=
i0-pins {
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0pinctrl-single,pins =3D <
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A00x150 0x0
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A00x154 0x0
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A00x158 0x0
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A00x15c 0x0
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0>;
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0};
>> };
>> =

>> &spi0 {
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0status =3D "okay";
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0pinctrl-names =3D "d=
efault";
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0pinctrl-0 =3D <&spi0=
_pins>;
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0spigen0 {
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0compatible =3D "freebsd,spigen";
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0reg =3D <0x0>;
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0status =3D "okay";
>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0};
>> };
>> =

> =

> The release.sh builds a GENERIC kernel, which contains the spigen
> driver; it looks like the BEAGLEBONE config doesn't have it. =A0Just =
add
> spigen_load=3Dyes to your /boot/loader.conf (or kldload spigen after =
it
> boots).

Oh, I see.  By kldloading spigen, /dev/spigen0.0 is generated.

--
SAITOU Toshihide



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