6939b5cacf
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> |
||
---|---|---|
.. | ||
aarch64-efi | ||
acmesystems | ||
altera/socrates_cyclone5 | ||
amarula | ||
andes/ae350 | ||
arcturus | ||
arm | ||
armadeus | ||
arrow/avenger96 | ||
aspeed | ||
asus/tinker | ||
atmel | ||
avnet/s6lx9_microboard | ||
bananapi | ||
beagleboardx15 | ||
beaglebone | ||
beagleboneai | ||
beaglev | ||
beelink/gs1 | ||
boundarydevices/common | ||
canaan/k210-soc | ||
chromebook | ||
ci20 | ||
csky | ||
cubietech/cubieboard2 | ||
embest/riotboard | ||
engicam | ||
firefly/roc-rk3399-pc | ||
freescale | ||
friendlyarm | ||
globalscale/espressobin | ||
grinn | ||
hardkernel | ||
intel/galileo | ||
kontron | ||
lego/ev3 | ||
lemaker/bananapro | ||
librecomputer/lafrite | ||
licheepi | ||
linksprite/pcduino | ||
microchip | ||
minnowboard | ||
nexbox/a95x | ||
nezha | ||
octavo | ||
olimex | ||
olpc | ||
openblocks/a6 | ||
orangepi | ||
pandaboard | ||
pc | ||
pcengines/apu2 | ||
pine64 | ||
qemu | ||
qmtech/zynq | ||
radxa | ||
raspberrypi | ||
riscv/nommu/patches/linux | ||
roseapplepi | ||
seeed/stm32mp157c-odyssey | ||
sheevaplug | ||
sifive/hifive-unleashed | ||
sinovoip | ||
solidrun | ||
spike/riscv64 | ||
stmicroelectronics | ||
synopsys | ||
technexion | ||
technologic | ||
terasic/de10nano_cyclone5 | ||
toradex/apalis-imx6 | ||
udoo | ||
uevm5432 | ||
wandboard | ||
warp7 | ||
zynq | ||
zynqmp | ||
raspberrypi0 | ||
raspberrypi0w | ||
raspberrypi2 | ||
raspberrypi3 | ||
raspberrypi3-64 | ||
raspberrypi4 | ||
raspberrypi4-64 | ||
raspberrypicm4io | ||
raspberrypicm4io-64 | ||
raspberrypizero2w |