buildroot/board
Damien Le Moal 6939b5cacf board: Add common support for Canaan K210 SoC-based boards
The Linux environment for all boards using the Canaan Kendryte K210 SoC
can be built with the same process, using configurations that differ
only by the device tree used for the build. This patch add the
shared configurations, rootfs overlay and scripts used for all
K210-based boards.

Since the K210 SoC only has 8 MB of SRAM, a special busybox
configuration and rootfs overlay are added to save memory at runtime:
* For configurations using direct kernel boot (no boot loader), the
  default busybox configuration busybox-minimal.config is modified
  using the fragment file board/canaan/k210-soc/busybox-tiny.config.
  This reduces the size of the busybox executable to save memory when
  executing shell commands.
* Busybox init system is not used and a special init scripts is provided
  using the rootfs_overlay root file system overlay. This init script
  simply mounts devtmpfs, /proc and /sys, and exec an interactive shell
  after printing a logo. This avoids (1) boot failures due to large
  memory allocations by the regular busybox init system (these
  allocations fail on the K210 for lack of enough memory) and avoids
  (2) keeping the init process sleeping in the background (wasted
  memory).

The board/canaan/k210-soc/busybox-tiny.config and the rootfs overlay
files in board/canaan/k210-soc/rootfs_overlay are used for all Canaan
K210 SoC based boards.

For board configurations booting using the U-Boot boot loader, a common
set of linux kernel configuration parameters is provided by the file
board/canaan/k210-soc/linux-sdcard.config. In addition, the post build
script board/canaan/k210-soc/post-build.sh file and U-Boot image
generation configuration file board/canaan/k210-soc/genimage.cfg are
provided. The post-build script creates a generic "k210.dtb" symlink to
the compiled device tree file for the target board. This symlink is used
by the genimage.cfg configuration, making this file common for all
boards.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-07-23 16:38:54 +02:00
..
aarch64-efi board/*/genimage.cfg: use partition-type-uuid U where relevant 2022-07-23 15:36:22 +02:00
acmesystems board/acmesystems/arietta-g25/genimage.cfg: beautify file 2021-11-08 22:20:39 +01:00
altera/socrates_cyclone5 board/altera/socrates_cyclone5/genimage.cfg: fix offset suffix 2021-11-14 15:31:57 +01:00
amarula board/amarula/a64-relic/genimage.cfg: beautify file 2021-11-08 22:20:41 +01:00
andes/ae350 configs/andes_ae300: remove defconfig 2022-06-19 18:26:41 +02:00
arcturus board/arcturus/aarch64-ucls1012a: bump u-boot and kernel version 2022-03-10 21:39:07 +01:00
arm configs/arm_foundationv8: bump to Linux 5.9.11 2020-12-01 23:39:08 +01:00
armadeus board/armadeus: replace utf-8 graphic sympols by ascii characters 2019-05-18 23:34:18 +02:00
arrow/avenger96 configs/avenger96_defconfig: add support for Arrow Avenger96 board 2021-02-08 16:25:00 +01:00
aspeed configs/aspeed_ast2500evb: new defconfig 2022-06-27 22:59:51 +02:00
asus/tinker configs/asus_tinker_rk3288: bump to Linux kernel 5.14.13 and u-boot 2021.10 2021-10-24 16:05:00 +02:00
atmel configs/microchip_sama7g5ek: new defconfigs 2021-12-28 22:01:50 +01:00
avnet/s6lx9_microboard zynq: unify readme.txt for all Zynq boards 2016-07-30 18:15:26 +02:00
bananapi board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
beagleboardx15 board/beagleboardx15/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beaglebone configs/beaglebone: add DT for the Beaglebone Black Wireless 2021-12-14 20:56:04 +01:00
beagleboneai board/beagleboneai/patches/uboot: drop 0002-Remove-redundant-YYLOC-global-declaration.patch 2021-12-11 11:09:03 +01:00
beaglev board/*/genimage.cfg: use partition-table-type = "gpt" for genimage-15 2021-12-27 15:41:51 +01:00
beelink/gs1 board/beelink/gs1/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
boundarydevices/common board/boundarydevices: update readme.txt for nitrogen8mp 2021-04-28 23:37:00 +02:00
canaan/k210-soc board: Add common support for Canaan K210 SoC-based boards 2022-07-23 16:38:54 +02:00
chromebook configs/chromebook_elm: bump to Linux v5.10 2021-07-03 22:55:25 +02:00
ci20 board/ci20/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
csky configs/csky_gx6605s: bump kernel to 5.0 and use buildroot toolchain 2019-08-02 23:42:51 +02:00
cubietech/cubieboard2 board/cubietech/cubieboard2/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
embest/riotboard board/embest/riotboard/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
engicam board/engicam/isiot/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
firefly/roc-rk3399-pc configs/roc_rk3399_pc: new defconfig 2020-03-29 15:09:48 +02:00
freescale board/freescale/common/imx: add TEE support in imx8-bootloader-prepare 2022-05-02 23:40:23 +02:00
friendlyarm board/*/genimage.cfg: use partition-type-uuid = F for some FAT partitions 2022-07-23 15:36:22 +02:00
globalscale/espressobin configs/globalscale_espressobin: new defconfig 2020-07-25 23:01:55 +02:00
grinn board/grinn/liteboard/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
hardkernel boards/odroidc2: fix genimage execution 2021-12-18 21:59:52 +01:00
intel/galileo board/intel/galileo: fix build failure with host gcc 10 2022-02-13 13:05:05 +01:00
kontron board/kontron/pitx-imx8m: add U-Boot 2022.04 patch 2022-07-19 22:45:30 +02:00
lego/ev3 board/lego/ev3/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
lemaker/bananapro board/lemaker/bananapro/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
librecomputer/lafrite configs/lafrite: new defconfig 2019-09-15 16:00:56 +02:00
licheepi board/licheepi/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
linksprite/pcduino board/linksprite/pcduino: switch to extlinux 2022-03-10 21:39:45 +01:00
microchip configs/microchip_sama7g5ek: new defconfigs 2021-12-28 22:01:50 +01:00
minnowboard board/*/genimage.cfg: use partition-table-type = "gpt" for genimage-15 2021-12-27 15:41:51 +01:00
nexbox/a95x board/nexbox/a95x/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
nezha board/nezha/genimage.cfg: fix offset value notation 2021-11-14 15:40:54 +01:00
octavo board/*/genimage.cfg: use partition-table-type = "gpt" 2022-07-23 15:36:21 +02:00
olimex board/*/genimage.cfg: use partition-table-type = "gpt" 2022-07-23 15:36:21 +02:00
olpc board/olpc/xo-1.75: enable drivers that were added in 5.8 2020-09-11 08:51:16 +02:00
openblocks/a6 openblocks_a6_defconfig: improve/fix configuration 2017-06-17 10:48:05 +02:00
orangepi board/orangepi/orangepi-r1/genimage.cfg: use correct partition type 2022-07-23 15:36:22 +02:00
pandaboard board/pandaboard/genimage.cfg: beautify file 2021-11-08 22:59:31 +01:00
pc board/*/genimage.cfg: use partition-type-uuid U where relevant 2022-07-23 15:36:22 +02:00
pcengines/apu2 configs/pcengines_apu2: new defconfig 2020-09-03 21:06:31 +02:00
pine64 board/*/genimage.cfg: use partition-type-uuid = F for some FAT partitions 2022-07-23 15:36:22 +02:00
qemu board/*/genimage.cfg: use partition-type-uuid U where relevant 2022-07-23 15:36:22 +02:00
qmtech/zynq configs/zynq_qmtech: new defconfig 2020-04-19 21:43:35 +02:00
radxa board/*/genimage.cfg: use partition-type-uuid = F for some FAT partitions 2022-07-23 15:36:22 +02:00
raspberrypi board/raspberrypicm4io-64: enable RTC and USB overlays 2022-01-13 23:12:11 +01:00
riscv/nommu/patches/linux board/riscv/nommu: add common Linux kernel patch for RISCV NOMMU builds 2022-05-30 21:15:07 +02:00
roseapplepi configs/roseapplypi_defconfig: bump kernel to 5.15.10 2021-12-18 22:12:30 +01:00
seeed/stm32mp157c-odyssey board/*/genimage.cfg: use partition-table-type = "gpt" 2022-07-23 15:36:21 +02:00
sheevaplug configs/sheevaplug_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:54 +01:00
sifive/hifive-unleashed board/sifive/hifive-unleashed/genimage*: convert partition-type-uuid values to lower-case 2022-07-23 15:36:22 +02:00
sinovoip board/sinovoip/m2-plus/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
solidrun board/solidrun/macchiatobin/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
spike/riscv64 board/spike/riscv64/start.sh: add buildroot host dir in PATH 2022-01-13 20:38:49 +01:00
stmicroelectronics board/*/genimage.cfg: use partition-table-type = "gpt" 2022-07-23 15:36:21 +02:00
synopsys board/synopsys: remove outdated vdk boards 2022-02-12 12:51:11 +01:00
technexion configs/imx6ulpico: bump U-Boot and kernel, switch to extlinux.conf 2021-12-29 23:53:16 +01:00
technologic fix links to Technologic Systems web resources 2022-03-09 21:47:48 +01:00
terasic/de10nano_cyclone5 board/terasic/de10nano_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
toradex/apalis-imx6 board/toradex/apalis-imx6/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
udoo configs/mx6sx_udoo: bump U-Boot and kernel 2022-01-11 22:15:11 +01:00
uevm5432 board/uevm5432/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
wandboard board/wandboard: switch to extlinux.conf 2021-07-18 23:41:59 +02:00
warp7 configs/warp7: Bump kernel and U-Boot versions 2019-07-14 11:57:39 +02:00
zynq configs/zynq_xxx_defconfig: bump to Xilinx 2022.1 2022-05-06 21:18:15 +02:00
zynqmp board/zynqmp/kria/kv260/uboot.fragment: add additional uboot build options 2022-07-07 17:10:37 +02:00
raspberrypi0 boards/raspberrypi0: new board 2016-05-08 15:54:30 +02:00
raspberrypi0w configs/raspberrypi0w_defconfig: new defconfig for Raspberry Pi Zero W 2018-03-31 12:31:32 +02:00
raspberrypi2 boards/raspberrypi: update instructions for Raspberry Pi 2 2015-02-26 22:43:37 +01:00
raspberrypi3 configs: add Raspberry Pi 3 defconfig 2016-04-25 14:07:58 +02:00
raspberrypi3-64 configs: add raspberrypi3 64bits defconfig 2017-05-04 09:25:20 +02:00
raspberrypi4 board/raspberrypi: add support for the new pi4 2019-08-03 11:06:44 +02:00
raspberrypi4-64 configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00
raspberrypicm4io board/raspberrypi: add Compute Module 4/IO Board support 2021-05-20 09:53:29 +02:00
raspberrypicm4io-64 board/raspberrypi: add Compute Module 4/IO Board support (64 Bit) 2021-05-20 09:53:30 +02:00
raspberrypizero2w board/raspberrypi: add Raspberry Pi Zero 2 W 2021-11-12 23:09:58 +01:00