board: Add a13_olinuxino Support
PATCH v3 1/1 board: Add a13_olinuxino Support
Add initial support for a13_olinuxino board
with below features
- U-Boot 2017.05
- Linux 4.11.5
- Default packages from buildroot
---
Changes for v2:
- Add missing readme.txt
Changes for v3:
- Updating missed DEVELOPERS file changes
.gitlab-ci.yml | 1 + DEVELOPERS | 4 +++ board/olimex/a13_olinuxino/boot.cmd | 7 +++++ board/olimex/a13_olinuxino/genimage.cfg | 34 +++++++++++++++++++++++ board/olimex/a13_olinuxino/post-build.sh | 9 ++++++ board/olimex/a13_olinuxino/readme.txt | 43 +++++++++++++++++++++++++++++ configs/olimex_a13_olinuxino_defconfig | 44 ++++++++++++++++++++++++++++++ 7 files changed, 142 insertions(+) create mode 100644 board/olimex/a13_olinuxino/boot.cmd create mode 100644 board/olimex/a13_olinuxino/genimage.cfg create mode 100755 board/olimex/a13_olinuxino/post-build.sh create mode 100644 board/olimex/a13_olinuxino/readme.txt create mode 100644 configs/olimex_a13_olinuxino_defconfig
.gitlab-ci.yml +1 -0
@@ -127,6 +127,7 @@ nitrogen6sx_defconfig: *defconfig nitrogen6x_defconfig: *defconfig nitrogen7_defconfig: *defconfig odroidc2_defconfig: *defconfig +olimex_a13_olinuxino_defconfig: *defconfig olimex_a20_olinuxino_lime2_defconfig: *defconfig olimex_a20_olinuxino_lime_defconfig: *defconfig olimex_a20_olinuxino_lime_mali_defconfig: *defconfig
DEVELOPERS +4 -0
@@ -328,6 +328,10 @@ F: package/libdvbsi/ F: package/libsvg/ F: package/libsvg-cairo/ +N: Chakra <[email protected]> +F: board/olimex/a13_olinuxino +F: configs/olimex_a13_olinuxino_defconfig + N: Chris Packham <[email protected]> F: package/eventlog/ F: package/micropython/
board/olimex/a13_olinuxino/boot.cmd new file +7 -0
@@ -0,0 +1,7 @@ +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait + +mmc dev 0 +fatload mmc 0 $kernel_addr_r zImage +fatload mmc 0 $fdt_addr_r sun5i-a13-olinuxino.dtb + +bootz $kernel_addr_r - $fdt_addr_r
board/olimex/a13_olinuxino/genimage.cfg new file +34 -0
@@ -0,0 +1,34 @@ +image boot.vfat { + vfat { + files = { + "zImage", + "sun5i-a13-olinuxino.dtb", + "boot.scr" + } + } + size = 64M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8192 + size = 1040384 # 1MB - 8192 + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/olimex/a13_olinuxino/post-build.sh new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh +# args from BR2_ROOTFS_POST_SCRIPT_ARGS +# $4 path of boot.cmd + +MKIMAGE=$HOST_DIR/usr/bin/mkimage +BOOT_CMD="${4}" +BOOT_CMD_H="${BINARIES_DIR}/boot.scr" + +$MKIMAGE -A arm -O linux -T script -C none -d "${BOOT_CMD}" "${BOOT_CMD_H}"
board/olimex/a13_olinuxino/readme.txt new file +43 -0
43 lines not on this page · raw message
configs/olimex_a13_olinuxino_defconfig new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v3 1/1 board: Add a13_olinuxino Support
Quoted 7 lines · Chakra Divi
Add initial support for
a13_olinuxinoboard
with below features
- U-Boot 2017.05
- Linux 4.11.5
- Default packages from buildrootSigned-off-by Chakra Divi <[email protected]>
thanks!
Signature · 4 lines
Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India.
Thomas Petazzoni
AppliedPATCH v3 1/1 board: Add a13_olinuxino Support
In reply to Chakra DiviHello,
Quoted 6 lines · Chakra Divi
Add initial support for
a13_olinuxinoboard
with below features
- U-Boot 2017.05
- Linux 4.11.5
- Default packages from buildroot
Quoted 6 lines
Signed-off-by Chakra Divi <[email protected]>---
Changes for v2:
- Add missing readme.txt
Changes for v3:
- Updating missed DEVELOPERS file changes
Applied to master, with the following changes:
[Thomas:
- use full name in DEVELOPERS file
- remove parametrization of the post-build.sh script, just hardcode the boot.cmd file used as input
- add missing dosfstools and mtools host packages in defconfig, needed because a vfat partition is defined in the genimage.cfg file
- minor tweaks to readme.txt file.]
Could you please check that what I have committed continues to work fine for you? Thanks a lot!
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com