difference between buildkernel and release.sh for BBB

Ian Lepore ian at freebsd.org
Fri Dec 28 17:21:57 UTC 2018


On Fri, 2018-12-28 at 21:54 +0900, SAITOU Toshihide wrote:
> What is a difference in kernel between these two?
> 
>   make buildkernel TARGET=arm TARGET_ARCH=armv7 KERNCONF=BEAGLEBONE
> 
>   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 {
>                 spi0_pins: pinmux-spi0-pins {
>                         pinctrl-single,pins = <
>                                 0x150 0x0
>                                 0x154 0x0
>                                 0x158 0x0
>                                 0x15c 0x0
>                         >;
>                 };
> };
> 
> &spi0 {
>                 status = "okay";
>                 pinctrl-names = "default";
>                 pinctrl-0 = <&spi0_pins>;
>                 spigen0 {
>                         compatible = "freebsd,spigen";
>                         reg = <0x0>;
>                         status = "okay";
>                 };
> };
> 

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

-- Ian



More information about the freebsd-arm mailing list