[Buildroot] [PATCH 1/1] board: add support for Banana Pro

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Mar 5 22:38:59 UTC 2017


Hello,

On Fri, 13 Jan 2017 19:54:24 +0100, Jörg Krause wrote:
> The board support package includes the following components:
>  - U-Boot 2016.11
>  - Linux 4.9.3
>  - packages:
>    - resize2fs to expand the minimal rootfs

We're not doing this in other defconfigs, so I've removed this. Note
that the ext2 options allow you to request the filesystem to be larger
than the amount of files to store in it (but we also don't use that in
our defconfigs).

>  board/lemaker/bananapro/boot.cmd                   |  5 ++
>  board/lemaker/bananapro/genimage.cfg               | 37 ++++++++++
>  board/lemaker/bananapro/linux-wifi.fragment        | 23 ++++++
>  ...ts-sun7i-Enable-audio-codec-on-Banana-Pro.patch | 35 +++++++++
>  ...-dts-sun7i-Add-wifi-dt-node-on-Banana-Pro.patch | 85 ++++++++++++++++++++++
>  board/lemaker/bananapro/post-build.sh              | 12 +++
>  board/lemaker/bananapro/post-image.sh              | 16 ++++
>  board/lemaker/bananapro/readme.txt                 | 71 ++++++++++++++++++
>  .../lib/firmware/brcm/brcmfmac43362-sdio.txt       | 56 ++++++++++++++
>  configs/bananapro_defconfig                        | 80 ++++++++++++++++++++
>  10 files changed, 420 insertions(+)

You forgot to add yourself in the DEVELOPERS file, so I've added that.

>  create mode 100644 board/lemaker/bananapro/patches/linux/0001-ARM-dts-sun7i-Enable-audio-codec-on-Banana-Pro.patch
>  create mode 100644 board/lemaker/bananapro/patches/linux/0002-ARM-dts-sun7i-Add-wifi-dt-node-on-Banana-Pro.patch

Don't forget to send a follow-up patch when those are merged upstream,
and available in a stable kernel release :)


> +Resizing the roof filesystem
> +============================
> +
> +By default Buildroot creates a minimal root file system with very
> +little free space. You can expand the filesystem using the resize2fs
> +tool on the target:
> +
> +  # resize2fs /dev/mmcblk0p2

I've dropped this paragraph.

> +# Toolchain
> +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> +BR2_TOOLCHAIN_BUILDROOT_CXX=y

I didn't see why C++ was needed, so I dropped it. wchar is indeed
needed for alsa.

> +# For expanding the root filesystem
> +BR2_PACKAGE_E2FSPROGS=y
> +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y

And I've dropped this.

Applied with those fixes. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list