difference between buildkernel and release.sh for BBB

SAITOU Toshihide toshi at ruby.ocn.ne.jp
Sat Dec 29 10:34:16 UTC 2018


On Fri, 28 Dec 2018 10:21:47 -0700, Ian Lepore <ian at freebsd.org> wrote:
> 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).

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

--
SAITOU Toshihide


More information about the freebsd-arm mailing list