[Buildroot] [PATCH] configs/bananapi_m2_berry: new defconfig

Giulio Benetti giulio.benetti at benettiengineering.com
Sat Sep 30 15:31:21 UTC 2023


> Il giorno 30 set 2023, alle ore 11:37, Thomas Petazzoni <thomas.petazzoni at bootlin.com> ha scritto:
> 
> Hello,
> 
>> On Mon,  7 Aug 2023 00:18:21 +0200
>> Giulio Benetti <giulio.benetti at benettiengineering.com> wrote:
>> 
>> 
>> diff --git a/board/bananapi/bananapi-m2-berry/boot.cmd b/board/bananapi/bananapi-m2-berry/boot.cmd
>> new file mode 100644
>> index 0000000000..a808fa0407
>> --- /dev/null
>> +++ b/board/bananapi/bananapi-m2-berry/boot.cmd
>> @@ -0,0 +1,7 @@
>> +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait drm.debug=0xff
> 
> I dropped earlyprintk and drm.debug=0xff from there, as it's really a
> bit too much debugging oriented.
> 
> In any case, it'd be great to use extlinux.conf instead of this.
> 
>> diff --git a/configs/bananapi_m2_berry_defconfig b/configs/bananapi_m2_berry_defconfig
>> new file mode 100644
>> index 0000000000..95652e7939
>> --- /dev/null
>> +++ b/configs/bananapi_m2_berry_defconfig
>> @@ -0,0 +1,37 @@
>> +BR2_arm=y
>> +BR2_cortex_a7=y
>> +BR2_TOOLCHAIN_EXTERNAL=y
>> +BR2_TARGET_GENERIC_ISSUE="Welcome to Bananapi M2 Berry"
>> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
>> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/bananapi/bananapi-m2-berry/genimage.cfg"
>> +BR2_LINUX_KERNEL=y
>> +BR2_LINUX_KERNEL_CUSTOM_VERSION=y
>> +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.38"
>> +BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
>> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
>> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-v40-bananapi-m2-berry"
>> +BR2_PACKAGE_KMSCUBE=y
>> +BR2_PACKAGE_MESA3D=y
>> +BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA=y
>> +BR2_PACKAGE_MESA3D_OPENGL_EGL=y
>> +BR2_PACKAGE_MESA3D_OPENGL_ES=y
>> +BR2_PACKAGE_HTOP=y
> 
> I dropped kmscube, mesa3d and htop, because they don't qualify for a
> minimal configuration.
> 
> Applied with those changes.

Thank you Thomas, I’ve forgotten all those points because I was debugging Lima on V40.

Best regards
Giulio

> 
> Best regards,
> 
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com




More information about the buildroot mailing list