* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
@ 2018-07-05 7:58 Leon Anavi
2018-07-07 22:10 ` Arnout Vandecappelle
0 siblings, 1 reply; 9+ messages in thread
From: Leon Anavi @ 2018-07-05 7:58 UTC (permalink / raw)
To: buildroot
Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
of the A20-OLinuXino-Lime and A13-OLinuXino files.
The configurations for Olimex A10-OLinuXino-LIME feature:
- U-Boot 2018.03
- Mainline Linux kernel 4.14.26
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
DEVELOPERS | 4 ++
board/olimex/a10_olinuxino/boot.cmd | 5 +++
board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
board/olimex/a10_olinuxino/post-build.sh | 3 ++
board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
6 files changed, 134 insertions(+)
create mode 100644 board/olimex/a10_olinuxino/boot.cmd
create mode 100644 board/olimex/a10_olinuxino/genimage.cfg
create mode 100755 board/olimex/a10_olinuxino/post-build.sh
create mode 100644 board/olimex/a10_olinuxino/readme.txt
create mode 100644 configs/olimex_a10_olinuxino_lime_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index 1fa0020..52a238d 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1133,6 +1133,10 @@ F: package/aircrack-ng/
N: Lee Jones <lee.jones@linaro.org>
F: boot/afboot-stm32/
+N: Leon Anavi <leon.anavi@konsulko.com>
+F: board/olimex/a10_olinuxino
+F: configs/olimex_a10_olinuxino_lime_defconfig
+
N: Lionel Flandrin <lionel@svkt.org>
F: package/python-babel/
F: package/python-daemonize/
diff --git a/board/olimex/a10_olinuxino/boot.cmd b/board/olimex/a10_olinuxino/boot.cmd
new file mode 100644
index 0000000..44d9239
--- /dev/null
+++ b/board/olimex/a10_olinuxino/boot.cmd
@@ -0,0 +1,5 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
diff --git a/board/olimex/a10_olinuxino/genimage.cfg b/board/olimex/a10_olinuxino/genimage.cfg
new file mode 100644
index 0000000..fc2f7f8
--- /dev/null
+++ b/board/olimex/a10_olinuxino/genimage.cfg
@@ -0,0 +1,17 @@
+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 rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
new file mode 100755
index 0000000..d3f612f
--- /dev/null
+++ b/board/olimex/a10_olinuxino/post-build.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
diff --git a/board/olimex/a10_olinuxino/readme.txt b/board/olimex/a10_olinuxino/readme.txt
new file mode 100644
index 0000000..ba4bf69
--- /dev/null
+++ b/board/olimex/a10_olinuxino/readme.txt
@@ -0,0 +1,57 @@
+A10-OLinuXino-LIME
+
+Intro
+=====
+
+These are open hardware boards, all based on the Allwinner A10 SoC.
+
+for more details about the boards see the following pages:
+ - https://www.olimex.com/Products/OLinuXino/open-source-hardware
+ - https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME/
+
+The following defconfigs are available:
+ - olimex_a10_olinuxino_lime_defconfig
+ for the A10-OLinuXino-LIME board using mainline kernel
+
+(see http://linux-sunxi.org/Linux_Kernel for more details)
+
+How to build it
+===============
+
+Configure Buildroot:
+
+ $ make <board>_defconfig
+
+Compile everything and build the rootfs image:
+
+ $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+ output/images/
+ +-- boot.scr
+ +-- rootfs.ext2
+ +-- rootfs.ext4 -> rootfs.ext2
+ +-- sdcard.img
+ +-- sun4i-a10-olinuxino-lime.dtb (lime, mainline)
+ +-- u-boot.bin
+ +-- u-boot-sunxi-with-spl.bin
+ `-- zImage
+
+
+How to write the SD card
+========================
+
+The sdcard.img file is a complete bootable image ready to be written
+on the boot medium. To install it, simply copy the image to a uSD
+card:
+
+ # dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD.
+
+Eject the SD card, insert it in the A10-OLinuXino board, and power it up.
+
diff --git a/configs/olimex_a10_olinuxino_lime_defconfig b/configs/olimex_a10_olinuxino_lime_defconfig
new file mode 100644
index 0000000..0b975b0
--- /dev/null
+++ b/configs/olimex_a10_olinuxino_lime_defconfig
@@ -0,0 +1,48 @@
+# Architecture
+BR2_arm=y
+BR2_cortex_a8=y
+#BR2_ARM_EABIHF=y
+
+# Linux headers same as kernel, a 4.14 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="a10-olinuxino"
+BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a10_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a10_olinuxino/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.26"
+BR2_LINUX_KERNEL_USE_DEFCONFIG=y
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-olinuxino-lime"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Bootloaders
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A10-OLinuXino-Lime"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_FORMAT_BIN=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_BOOT_SCRIPT=y
+BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/olimex/a10_olinuxino/boot.cmd"
+
+# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-05 7:58 [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board Leon Anavi
@ 2018-07-07 22:10 ` Arnout Vandecappelle
2018-07-09 13:49 ` Leon Anavi
0 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2018-07-07 22:10 UTC (permalink / raw)
To: buildroot
Hi Leon,
Sorry to come back with still more comments...
On 05-07-18 09:58, Leon Anavi wrote:
> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
> of the A20-OLinuXino-Lime and A13-OLinuXino files.
Er, no, you copied those files, you didn't reuse them...
All the support files are identical or compatible with those in a20_olinuxino.
So I think it's better to just add to that. Perhaps, for clarity, create a
symlink from a10_olinuxino -> a20_olinuxino.
Otherwise, looks good to me. Oh, yes, one more thing: when you send a new
version, please add a patch changelog below the --- line, and also add the
version in the subject using the -v4 option to git format-patch. See [1].
Regards,
Arnout
[1] https://buildroot.org/downloads/manual/manual.html#_patch_revision_changelog
>
> The configurations for Olimex A10-OLinuXino-LIME feature:
> - U-Boot 2018.03
> - Mainline Linux kernel 4.14.26
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-07 22:10 ` Arnout Vandecappelle
@ 2018-07-09 13:49 ` Leon Anavi
0 siblings, 0 replies; 9+ messages in thread
From: Leon Anavi @ 2018-07-09 13:49 UTC (permalink / raw)
To: buildroot
Hi Arnout, All,
Thank you for the feedback. Following your recommendations I have
created sym links, add more info in the Git commit message, exported the
patch with -v4 option and submitted the 4th version of this patch:
http://lists.busybox.net/pipermail/buildroot/2018-July/225509.html
Please let me know if you have any other remarks.
Best regards,
Leon
On 8.07.2018 01:10, Arnout Vandecappelle wrote:
> Hi Leon,
>
> Sorry to come back with still more comments...
>
> On 05-07-18 09:58, Leon Anavi wrote:
>> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
>> of the A20-OLinuXino-Lime and A13-OLinuXino files.
> Er, no, you copied those files, you didn't reuse them...
>
> All the support files are identical or compatible with those in a20_olinuxino.
> So I think it's better to just add to that. Perhaps, for clarity, create a
> symlink from a10_olinuxino -> a20_olinuxino.
>
> Otherwise, looks good to me. Oh, yes, one more thing: when you send a new
> version, please add a patch changelog below the --- line, and also add the
> version in the subject using the -v4 option to git format-patch. See [1].
>
>
> Regards,
> Arnout
>
> [1] https://buildroot.org/downloads/manual/manual.html#_patch_revision_changelog
>
>> The configurations for Olimex A10-OLinuXino-LIME feature:
>> - U-Boot 2018.03
>> - Mainline Linux kernel 4.14.26
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>[snip]
--
Leon Anavi
Software Engineer
konsulko.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-05 7:37 ` Baruch Siach
@ 2018-07-05 8:00 ` Leon Anavi
0 siblings, 0 replies; 9+ messages in thread
From: Leon Anavi @ 2018-07-05 8:00 UTC (permalink / raw)
To: buildroot
Hi Baruch,
Thank you for the feedback. I have updated again my patch to keep the
alphabetical order in DEVELOPERS. Here is the new version of my patch
for A10-OLinuXino-LIME:
http://lists.busybox.net/pipermail/buildroot/2018-July/225277.html
Best regards,
Leon
On 5.07.2018 10:37, Baruch Siach wrote:
> Hi Leon,
>
> On Thu, Jul 05, 2018 at 10:25:59AM +0300, Leon Anavi wrote:
>> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
>> of the A20-OLinuXino-Lime and A13-OLinuXino files.
>>
>> The configurations for Olimex A10-OLinuXino-LIME feature:
>> - U-Boot 2018.03
>> - Mainline Linux kernel 4.14.26
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>> ---
>> DEVELOPERS | 4 ++
>> board/olimex/a10_olinuxino/boot.cmd | 5 +++
>> board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
>> board/olimex/a10_olinuxino/post-build.sh | 3 ++
>> board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
>> configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
>> 6 files changed, 134 insertions(+)
>> create mode 100644 board/olimex/a10_olinuxino/boot.cmd
>> create mode 100644 board/olimex/a10_olinuxino/genimage.cfg
>> create mode 100755 board/olimex/a10_olinuxino/post-build.sh
>> create mode 100644 board/olimex/a10_olinuxino/readme.txt
>> create mode 100644 configs/olimex_a10_olinuxino_lime_defconfig
>>
>> diff --git a/DEVELOPERS b/DEVELOPERS
>> index 1fa0020..40baa7d 100644
>> --- a/DEVELOPERS
>> +++ b/DEVELOPERS
>> @@ -2146,3 +2146,7 @@ F: package/tinc/
>>
>> N: Pierre Ducroquet <pinaraf@pinaraf.info>
>> F: package/kf5/
>> +
>> +N: Leon Anavi <leon.anavi@konsulko.com>
>> +F: board/olimex/a10_olinuxino
>> +F: configs/olimex_a10_olinuxino_lime_defconfig
> Please keep the alphabetic order of the list entries.
>
> I have just posted a patch moving Pierre's entry to its correct location.
>
> baruch
>
--
Leon Anavi
Software Engineer
konsulko.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-05 7:25 Leon Anavi
@ 2018-07-05 7:37 ` Baruch Siach
2018-07-05 8:00 ` Leon Anavi
0 siblings, 1 reply; 9+ messages in thread
From: Baruch Siach @ 2018-07-05 7:37 UTC (permalink / raw)
To: buildroot
Hi Leon,
On Thu, Jul 05, 2018 at 10:25:59AM +0300, Leon Anavi wrote:
> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
> of the A20-OLinuXino-Lime and A13-OLinuXino files.
>
> The configurations for Olimex A10-OLinuXino-LIME feature:
> - U-Boot 2018.03
> - Mainline Linux kernel 4.14.26
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
> DEVELOPERS | 4 ++
> board/olimex/a10_olinuxino/boot.cmd | 5 +++
> board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
> board/olimex/a10_olinuxino/post-build.sh | 3 ++
> board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
> configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
> 6 files changed, 134 insertions(+)
> create mode 100644 board/olimex/a10_olinuxino/boot.cmd
> create mode 100644 board/olimex/a10_olinuxino/genimage.cfg
> create mode 100755 board/olimex/a10_olinuxino/post-build.sh
> create mode 100644 board/olimex/a10_olinuxino/readme.txt
> create mode 100644 configs/olimex_a10_olinuxino_lime_defconfig
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 1fa0020..40baa7d 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2146,3 +2146,7 @@ F: package/tinc/
>
> N: Pierre Ducroquet <pinaraf@pinaraf.info>
> F: package/kf5/
> +
> +N: Leon Anavi <leon.anavi@konsulko.com>
> +F: board/olimex/a10_olinuxino
> +F: configs/olimex_a10_olinuxino_lime_defconfig
Please keep the alphabetic order of the list entries.
I have just posted a patch moving Pierre's entry to its correct location.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-02 20:29 ` Thomas Petazzoni
@ 2018-07-05 7:31 ` Leon Anavi
0 siblings, 0 replies; 9+ messages in thread
From: Leon Anavi @ 2018-07-05 7:31 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Thank you for the feedback. Following your recommendations I have update
my patch with the following changes:
- Added an entry at DEVELOPERS
- Removed boot-mali.cmd (it is not needed for building with mainline kernel)
- Removed the code snippet related to script.bin from post-build.sh
(script.bin is used in sunxi legacy kernels only, it is not needed for
building with mainline kernel)
I have already sent the new version of my patch for A10-OLinuXino-LIME:
http://lists.busybox.net/pipermail/buildroot/2018-July/225272.html
Best regards,
Leon
On 2.07.2018 23:29, Thomas Petazzoni wrote:
> Hello,
>
> On Mon, 2 Jul 2018 17:54:50 +0300, Leon Anavi wrote:
>> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
>> of the A20-OLinuXino-Lime and A13-OLinuXino files.
>>
>> The configurations for Olimex A10-OLinuXino-LIME feature:
>> - U-Boot 2018.03
>> - Mainline Linux kernel 4.14.26
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> Thanks for this contribution!
>
>> board/olimex/a10_olinuxino/boot-mali.cmd | 5 +++
>> board/olimex/a10_olinuxino/boot.cmd | 5 +++
>> board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
>> board/olimex/a10_olinuxino/post-build.sh | 8 ++++
>> board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
>> configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
> You should add an entry in the DEVELOPERS file for this board (both for
> the defconfig and the stuff in board/).
>
>> diff --git a/board/olimex/a10_olinuxino/boot-mali.cmd b/board/olimex/a10_olinuxino/boot-mali.cmd
>> new file mode 100644
>> index 0000000..9fa5d65
>> --- /dev/null
>> +++ b/board/olimex/a10_olinuxino/boot-mali.cmd
>> @@ -0,0 +1,5 @@
>> +setenv bootm_boot_mode sec
>> +setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 consoleblank=0 ${extra}
>> +ext4load mmc 0 0x43000000 /boot/script.bin
>> +ext4load mmc 0 0x48000000 /boot/zImage
>> +bootz 0x48000000
> Where is this file being used ?
>
>> diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
>> new file mode 100755
>> index 0000000..7a8a427
>> --- /dev/null
>> +++ b/board/olimex/a10_olinuxino/post-build.sh
>> @@ -0,0 +1,8 @@
>> +#!/bin/sh
>> +
>> +cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
>> +
>> +if [ -e $BINARIES_DIR/script.bin ]; then
>> + # mali requires a legacy kernel
>> + cp $BINARIES_DIR/script.bin $TARGET_DIR/boot/script.bin
> It's a bit mysterious what is happening here. Where does this
> script.bin file comes from ?
>
> Besides those questions, looks good to me.
>
> Thanks!
>
> Thomas
--
Leon Anavi
Software Engineer
konsulko.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
@ 2018-07-05 7:25 Leon Anavi
2018-07-05 7:37 ` Baruch Siach
0 siblings, 1 reply; 9+ messages in thread
From: Leon Anavi @ 2018-07-05 7:25 UTC (permalink / raw)
To: buildroot
Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
of the A20-OLinuXino-Lime and A13-OLinuXino files.
The configurations for Olimex A10-OLinuXino-LIME feature:
- U-Boot 2018.03
- Mainline Linux kernel 4.14.26
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
DEVELOPERS | 4 ++
board/olimex/a10_olinuxino/boot.cmd | 5 +++
board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
board/olimex/a10_olinuxino/post-build.sh | 3 ++
board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
6 files changed, 134 insertions(+)
create mode 100644 board/olimex/a10_olinuxino/boot.cmd
create mode 100644 board/olimex/a10_olinuxino/genimage.cfg
create mode 100755 board/olimex/a10_olinuxino/post-build.sh
create mode 100644 board/olimex/a10_olinuxino/readme.txt
create mode 100644 configs/olimex_a10_olinuxino_lime_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index 1fa0020..40baa7d 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2146,3 +2146,7 @@ F: package/tinc/
N: Pierre Ducroquet <pinaraf@pinaraf.info>
F: package/kf5/
+
+N: Leon Anavi <leon.anavi@konsulko.com>
+F: board/olimex/a10_olinuxino
+F: configs/olimex_a10_olinuxino_lime_defconfig
diff --git a/board/olimex/a10_olinuxino/boot.cmd b/board/olimex/a10_olinuxino/boot.cmd
new file mode 100644
index 0000000..44d9239
--- /dev/null
+++ b/board/olimex/a10_olinuxino/boot.cmd
@@ -0,0 +1,5 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
diff --git a/board/olimex/a10_olinuxino/genimage.cfg b/board/olimex/a10_olinuxino/genimage.cfg
new file mode 100644
index 0000000..fc2f7f8
--- /dev/null
+++ b/board/olimex/a10_olinuxino/genimage.cfg
@@ -0,0 +1,17 @@
+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 rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
new file mode 100755
index 0000000..d3f612f
--- /dev/null
+++ b/board/olimex/a10_olinuxino/post-build.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
diff --git a/board/olimex/a10_olinuxino/readme.txt b/board/olimex/a10_olinuxino/readme.txt
new file mode 100644
index 0000000..ba4bf69
--- /dev/null
+++ b/board/olimex/a10_olinuxino/readme.txt
@@ -0,0 +1,57 @@
+A10-OLinuXino-LIME
+
+Intro
+=====
+
+These are open hardware boards, all based on the Allwinner A10 SoC.
+
+for more details about the boards see the following pages:
+ - https://www.olimex.com/Products/OLinuXino/open-source-hardware
+ - https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME/
+
+The following defconfigs are available:
+ - olimex_a10_olinuxino_lime_defconfig
+ for the A10-OLinuXino-LIME board using mainline kernel
+
+(see http://linux-sunxi.org/Linux_Kernel for more details)
+
+How to build it
+===============
+
+Configure Buildroot:
+
+ $ make <board>_defconfig
+
+Compile everything and build the rootfs image:
+
+ $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+ output/images/
+ +-- boot.scr
+ +-- rootfs.ext2
+ +-- rootfs.ext4 -> rootfs.ext2
+ +-- sdcard.img
+ +-- sun4i-a10-olinuxino-lime.dtb (lime, mainline)
+ +-- u-boot.bin
+ +-- u-boot-sunxi-with-spl.bin
+ `-- zImage
+
+
+How to write the SD card
+========================
+
+The sdcard.img file is a complete bootable image ready to be written
+on the boot medium. To install it, simply copy the image to a uSD
+card:
+
+ # dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD.
+
+Eject the SD card, insert it in the A10-OLinuXino board, and power it up.
+
diff --git a/configs/olimex_a10_olinuxino_lime_defconfig b/configs/olimex_a10_olinuxino_lime_defconfig
new file mode 100644
index 0000000..0b975b0
--- /dev/null
+++ b/configs/olimex_a10_olinuxino_lime_defconfig
@@ -0,0 +1,48 @@
+# Architecture
+BR2_arm=y
+BR2_cortex_a8=y
+#BR2_ARM_EABIHF=y
+
+# Linux headers same as kernel, a 4.14 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="a10-olinuxino"
+BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a10_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a10_olinuxino/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.26"
+BR2_LINUX_KERNEL_USE_DEFCONFIG=y
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-olinuxino-lime"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Bootloaders
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A10-OLinuXino-Lime"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_FORMAT_BIN=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_BOOT_SCRIPT=y
+BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/olimex/a10_olinuxino/boot.cmd"
+
+# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
2018-07-02 14:54 Leon Anavi
@ 2018-07-02 20:29 ` Thomas Petazzoni
2018-07-05 7:31 ` Leon Anavi
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2018-07-02 20:29 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 2 Jul 2018 17:54:50 +0300, Leon Anavi wrote:
> Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
> of the A20-OLinuXino-Lime and A13-OLinuXino files.
>
> The configurations for Olimex A10-OLinuXino-LIME feature:
> - U-Boot 2018.03
> - Mainline Linux kernel 4.14.26
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Thanks for this contribution!
> board/olimex/a10_olinuxino/boot-mali.cmd | 5 +++
> board/olimex/a10_olinuxino/boot.cmd | 5 +++
> board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
> board/olimex/a10_olinuxino/post-build.sh | 8 ++++
> board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
> configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
You should add an entry in the DEVELOPERS file for this board (both for
the defconfig and the stuff in board/).
> diff --git a/board/olimex/a10_olinuxino/boot-mali.cmd b/board/olimex/a10_olinuxino/boot-mali.cmd
> new file mode 100644
> index 0000000..9fa5d65
> --- /dev/null
> +++ b/board/olimex/a10_olinuxino/boot-mali.cmd
> @@ -0,0 +1,5 @@
> +setenv bootm_boot_mode sec
> +setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 consoleblank=0 ${extra}
> +ext4load mmc 0 0x43000000 /boot/script.bin
> +ext4load mmc 0 0x48000000 /boot/zImage
> +bootz 0x48000000
Where is this file being used ?
> diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
> new file mode 100755
> index 0000000..7a8a427
> --- /dev/null
> +++ b/board/olimex/a10_olinuxino/post-build.sh
> @@ -0,0 +1,8 @@
> +#!/bin/sh
> +
> +cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
> +
> +if [ -e $BINARIES_DIR/script.bin ]; then
> + # mali requires a legacy kernel
> + cp $BINARIES_DIR/script.bin $TARGET_DIR/boot/script.bin
It's a bit mysterious what is happening here. Where does this
script.bin file comes from ?
Besides those questions, looks good to me.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board
@ 2018-07-02 14:54 Leon Anavi
2018-07-02 20:29 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Leon Anavi @ 2018-07-02 14:54 UTC (permalink / raw)
To: buildroot
Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
of the A20-OLinuXino-Lime and A13-OLinuXino files.
The configurations for Olimex A10-OLinuXino-LIME feature:
- U-Boot 2018.03
- Mainline Linux kernel 4.14.26
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
board/olimex/a10_olinuxino/boot-mali.cmd | 5 +++
board/olimex/a10_olinuxino/boot.cmd | 5 +++
board/olimex/a10_olinuxino/genimage.cfg | 17 +++++++++
board/olimex/a10_olinuxino/post-build.sh | 8 ++++
board/olimex/a10_olinuxino/readme.txt | 57 +++++++++++++++++++++++++++++
configs/olimex_a10_olinuxino_lime_defconfig | 48 ++++++++++++++++++++++++
6 files changed, 140 insertions(+)
create mode 100644 board/olimex/a10_olinuxino/boot-mali.cmd
create mode 100644 board/olimex/a10_olinuxino/boot.cmd
create mode 100644 board/olimex/a10_olinuxino/genimage.cfg
create mode 100755 board/olimex/a10_olinuxino/post-build.sh
create mode 100644 board/olimex/a10_olinuxino/readme.txt
create mode 100644 configs/olimex_a10_olinuxino_lime_defconfig
diff --git a/board/olimex/a10_olinuxino/boot-mali.cmd b/board/olimex/a10_olinuxino/boot-mali.cmd
new file mode 100644
index 0000000..9fa5d65
--- /dev/null
+++ b/board/olimex/a10_olinuxino/boot-mali.cmd
@@ -0,0 +1,5 @@
+setenv bootm_boot_mode sec
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 consoleblank=0 ${extra}
+ext4load mmc 0 0x43000000 /boot/script.bin
+ext4load mmc 0 0x48000000 /boot/zImage
+bootz 0x48000000
diff --git a/board/olimex/a10_olinuxino/boot.cmd b/board/olimex/a10_olinuxino/boot.cmd
new file mode 100644
index 0000000..44d9239
--- /dev/null
+++ b/board/olimex/a10_olinuxino/boot.cmd
@@ -0,0 +1,5 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
diff --git a/board/olimex/a10_olinuxino/genimage.cfg b/board/olimex/a10_olinuxino/genimage.cfg
new file mode 100644
index 0000000..fc2f7f8
--- /dev/null
+++ b/board/olimex/a10_olinuxino/genimage.cfg
@@ -0,0 +1,17 @@
+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 rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
new file mode 100755
index 0000000..7a8a427
--- /dev/null
+++ b/board/olimex/a10_olinuxino/post-build.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
+
+if [ -e $BINARIES_DIR/script.bin ]; then
+ # mali requires a legacy kernel
+ cp $BINARIES_DIR/script.bin $TARGET_DIR/boot/script.bin
+fi
diff --git a/board/olimex/a10_olinuxino/readme.txt b/board/olimex/a10_olinuxino/readme.txt
new file mode 100644
index 0000000..ba4bf69
--- /dev/null
+++ b/board/olimex/a10_olinuxino/readme.txt
@@ -0,0 +1,57 @@
+A10-OLinuXino-LIME
+
+Intro
+=====
+
+These are open hardware boards, all based on the Allwinner A10 SoC.
+
+for more details about the boards see the following pages:
+ - https://www.olimex.com/Products/OLinuXino/open-source-hardware
+ - https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME/
+
+The following defconfigs are available:
+ - olimex_a10_olinuxino_lime_defconfig
+ for the A10-OLinuXino-LIME board using mainline kernel
+
+(see http://linux-sunxi.org/Linux_Kernel for more details)
+
+How to build it
+===============
+
+Configure Buildroot:
+
+ $ make <board>_defconfig
+
+Compile everything and build the rootfs image:
+
+ $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+ output/images/
+ +-- boot.scr
+ +-- rootfs.ext2
+ +-- rootfs.ext4 -> rootfs.ext2
+ +-- sdcard.img
+ +-- sun4i-a10-olinuxino-lime.dtb (lime, mainline)
+ +-- u-boot.bin
+ +-- u-boot-sunxi-with-spl.bin
+ `-- zImage
+
+
+How to write the SD card
+========================
+
+The sdcard.img file is a complete bootable image ready to be written
+on the boot medium. To install it, simply copy the image to a uSD
+card:
+
+ # dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD.
+
+Eject the SD card, insert it in the A10-OLinuXino board, and power it up.
+
diff --git a/configs/olimex_a10_olinuxino_lime_defconfig b/configs/olimex_a10_olinuxino_lime_defconfig
new file mode 100644
index 0000000..0b975b0
--- /dev/null
+++ b/configs/olimex_a10_olinuxino_lime_defconfig
@@ -0,0 +1,48 @@
+# Architecture
+BR2_arm=y
+BR2_cortex_a8=y
+#BR2_ARM_EABIHF=y
+
+# Linux headers same as kernel, a 4.14 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="a10-olinuxino"
+BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a10_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a10_olinuxino/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.26"
+BR2_LINUX_KERNEL_USE_DEFCONFIG=y
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-olinuxino-lime"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Bootloaders
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A10-OLinuXino-Lime"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_FORMAT_BIN=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_BOOT_SCRIPT=y
+BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/olimex/a10_olinuxino/boot.cmd"
+
+# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-07-09 13:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-05 7:58 [Buildroot] [PATCH] configs/olimex_a10_olinuxino_lime_defconfig: new board Leon Anavi
2018-07-07 22:10 ` Arnout Vandecappelle
2018-07-09 13:49 ` Leon Anavi
-- strict thread matches above, loose matches on Subject: below --
2018-07-05 7:25 Leon Anavi
2018-07-05 7:37 ` Baruch Siach
2018-07-05 8:00 ` Leon Anavi
2018-07-02 14:54 Leon Anavi
2018-07-02 20:29 ` Thomas Petazzoni
2018-07-05 7:31 ` Leon Anavi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.