Skip to contentSkip to conversation

configs/olimex_a10_olinuxino_lime_defconfig: new board

PATCH New Leon Anavi 2 participants 3 messages Jul 2, 2018 – Jul 5, 2018

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 configs/olimex_a10_olinuxino_lime_defconfig: new board

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

---
 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
board/olimex/a10_olinuxino/boot-mali.cmd new file +5 -0
new file mode 100644
index 0000000..9fa5d65
@@ -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
board/olimex/a10_olinuxino/boot.cmd new file +5 -0
new file mode 100644
index 0000000..44d9239
@@ -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
board/olimex/a10_olinuxino/genimage.cfg new file +17 -0
new file mode 100644
index 0000000..fc2f7f8
@@ -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
+	}
+}
board/olimex/a10_olinuxino/post-build.sh new file +8 -0
new file mode 100755
index 0000000..7a8a427
@@ -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
board/olimex/a10_olinuxino/readme.txt new file +57 -0

57 lines not on this page · raw message

configs/olimex_a10_olinuxino_lime_defconfig new file +48 -0

48 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 configs/olimex_a10_olinuxino_lime_defconfig: new board

Hello,

Quoted 8 lines · Leon Anavi

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

Thanks for this contribution!

Quoted 6 lines
 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/).

board/olimex/a10_olinuxino/boot-mali.cmd line 5

Quoted 11 lines
board/olimex/a10_olinuxino/boot-mali.cmd new file +5 -0
new file mode 100644
index 0000000..9fa5d65
@@ -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 ?

board/olimex/a10_olinuxino/post-build.sh line 7

Quoted 13 lines
board/olimex/a10_olinuxino/post-build.sh new file +7 -0
new file mode 100755
index 0000000..7a8a427
@@ -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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw

PATCH 1/1 configs/olimex_a10_olinuxino_lime_defconfig: new board

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

Quoted 56 lines · Thomas Petazzoni

Hello,

Quoted 8 lines · Leon Anavi

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

Thanks for this contribution!

Quoted 6 lines
 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/).

board/olimex/a10_olinuxino/boot-mali.cmd line 5

Quoted 11 lines
board/olimex/a10_olinuxino/boot-mali.cmd new file +5 -0
new file mode 100644
index 0000000..9fa5d65
@@ -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 ?

board/olimex/a10_olinuxino/post-build.sh line 7

Quoted 13 lines
board/olimex/a10_olinuxino/post-build.sh new file +7 -0
new file mode 100755
index 0000000..7a8a427
@@ -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

Signature · 3 lines
Leon Anavi
Software Engineer
konsulko.com