All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09
@ 2018-11-03 12:56 Jagan Teki
  2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Jagan Teki @ 2018-11-03 12:56 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 boot/uboot/Config.in  | 4 ++--
 boot/uboot/uboot.hash | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 9e40c11fa1..ac6f8bc8c1 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -39,7 +39,7 @@ choice
 	  Select the specific U-Boot version you want to use
 
 config BR2_TARGET_UBOOT_LATEST_VERSION
-	bool "2018.07"
+	bool "2018.09"
 
 config BR2_TARGET_UBOOT_CUSTOM_VERSION
 	bool "Custom version"
@@ -87,7 +87,7 @@ endif
 
 config BR2_TARGET_UBOOT_VERSION
 	string
-	default "2018.07"	if BR2_TARGET_UBOOT_LATEST_VERSION
+	default "2018.09"	if BR2_TARGET_UBOOT_LATEST_VERSION
 	default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
 		if BR2_TARGET_UBOOT_CUSTOM_VERSION
 	default "custom"	if BR2_TARGET_UBOOT_CUSTOM_TARBALL
diff --git a/boot/uboot/uboot.hash b/boot/uboot/uboot.hash
index 97d0bd0b5f..ea07fb584d 100644
--- a/boot/uboot/uboot.hash
+++ b/boot/uboot/uboot.hash
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256  9f10df88bc91b35642e461217f73256bbaeeca9ae2db8db56197ba5e89e1f6d4  u-boot-2018.07.tar.bz2
+sha256  839bf23cfe8ce613a77e583a60375179d0ad324e92c82fbdd07bebf0fd142268  u-boot-2018.09.tar.bz2
-- 
2.18.0.321.gffc6fa0e3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support
  2018-11-03 12:56 [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Jagan Teki
@ 2018-11-03 12:56 ` Jagan Teki
  2018-11-03 19:27   ` Baruch Siach
  2018-12-16 15:00   ` Thomas Petazzoni
  2018-11-03 12:56 ` [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support Jagan Teki
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: Jagan Teki @ 2018-11-03 12:56 UTC (permalink / raw)
  To: buildroot

Add initial support for Orangepi One Plus board
with below features:
- U-Boot 2018.09
- Linux 4.19.0-rc8
- Default packages from buildroot

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- Use mainline u-boot
- Use tag in Linux

 .gitlab-ci.yml                                |  1 +
 DEVELOPERS                                    |  2 +
 .../orangepi/orangepi-one-plus/extlinux.conf  |  4 ++
 board/orangepi/orangepi-one-plus/genimage.cfg | 33 +++++++++++++
 .../orangepi/orangepi-one-plus/post-build.sh  |  4 ++
 board/orangepi/orangepi-one-plus/readme.txt   | 37 +++++++++++++++
 configs/orangepi_one_plus_defconfig           | 46 +++++++++++++++++++
 7 files changed, 127 insertions(+)
 create mode 100644 board/orangepi/orangepi-one-plus/extlinux.conf
 create mode 100644 board/orangepi/orangepi-one-plus/genimage.cfg
 create mode 100755 board/orangepi/orangepi-one-plus/post-build.sh
 create mode 100644 board/orangepi/orangepi-one-plus/readme.txt
 create mode 100644 configs/orangepi_one_plus_defconfig

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b9a1f175c..f670e3dbb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -185,6 +185,7 @@ olimex_imx233_olinuxino_defconfig: *defconfig
 openblocks_a6_defconfig: *defconfig
 orangepi_lite_defconfig: *defconfig
 orangepi_one_defconfig: *defconfig
+orangepi_one_plus_defconfig: *defconfig
 orangepi_pc2_defconfig: *defconfig
 orangepi_pc_defconfig: *defconfig
 orangepi_pc_plus_defconfig: *defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index a3d97eb390..401e0cb770 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -954,6 +954,7 @@ F:	board/engicam/
 F:	board/friendlyarm/nanopi-a64/
 F:	board/friendlyarm/nanopi-neo2/
 F:	board/olimex/a64-olinuxino/
+F:	board/orangepi/orangepi-one-plus
 F:	board/orangepi/orangepi-pc2/
 F:	board/orangepi/orangepi-prime/
 F:	board/orangepi/orangepi-win/
@@ -971,6 +972,7 @@ F:	configs/engicam_imx6ul_isiot_defconfig
 F:	configs/friendlyarm_nanopi_a64_defconfig
 F:	configs/friendlyarm_nanopi_neo2_defconfig
 F:	configs/olimex_a64_olinuxino_defconfig
+F:	configs/orangepi_one_plus_defconfig
 F:	configs/orangepi_pc2_defconfig
 F:	configs/orangepi_prime_defconfig
 F:	configs/orangepi_win_defconfig
diff --git a/board/orangepi/orangepi-one-plus/extlinux.conf b/board/orangepi/orangepi-one-plus/extlinux.conf
new file mode 100644
index 0000000000..eae328449c
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/extlinux.conf
@@ -0,0 +1,4 @@
+label linux-4.18.0-rc3
+  kernel /Image
+  devicetree /sun50i-h6-orangepi-one-plus.dtb
+  append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
diff --git a/board/orangepi/orangepi-one-plus/genimage.cfg b/board/orangepi/orangepi-one-plus/genimage.cfg
new file mode 100644
index 0000000000..ebb07e8b26
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/genimage.cfg
@@ -0,0 +1,33 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"sun50i-h6-orangepi-one-plus.dtb",
+			"extlinux"
+		}
+	}
+	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"
+	}
+}
diff --git a/board/orangepi/orangepi-one-plus/post-build.sh b/board/orangepi/orangepi-one-plus/post-build.sh
new file mode 100755
index 0000000000..ec20fca7d9
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/post-build.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
diff --git a/board/orangepi/orangepi-one-plus/readme.txt b/board/orangepi/orangepi-one-plus/readme.txt
new file mode 100644
index 0000000000..87f6de8510
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/readme.txt
@@ -0,0 +1,37 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Orangepi One Plus. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Orangepi One Plus link:
+http://www.orangepi.org/OrangePiOneplus/
+
+Wiki link:
+https://openedev.amarulasolutions.com/display/ODWIKI/Orangepi+One+Plus
+
+This configuration uses U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+    $ make orangepi_one_plus_defconfig
+    $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called "sdcard.img"
+in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+  $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+  $ sudo sync
+
+Insert the micro SDcard in your Orangepi One Plus and power it up. The console
+is on the serial line, 115200 8N1.
diff --git a/configs/orangepi_one_plus_defconfig b/configs/orangepi_one_plus_defconfig
new file mode 100644
index 0000000000..d950f16610
--- /dev/null
+++ b/configs/orangepi_one_plus_defconfig
@@ -0,0 +1,46 @@
+BR2_aarch64=y
+BR2_cortex_a53=y
+BR2_ARM_FPU_VFPV4=y
+
+# Linux headers same as kernel, a 4.18 series
+BR2_KERNEL_HEADERS_4_18=y
+
+# Firmware
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/ARM-software/arm-trusted-firmware.git"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.0"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_h6"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
+
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.09"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_one_plus"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,amarula,linux-amarula,h6-v1.0b)/linux-amarula_h6-v1.0b.tar.gz"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-h6-orangepi-one-plus"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+
+# Filesystem
+BR2_TARGET_GENERIC_ISSUE="Welcome to Orangepi One+"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/orangepi/orangepi-one-plus/genimage.cfg"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/orangepi-one-plus/post-build.sh"
-- 
2.18.0.321.gffc6fa0e3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support
  2018-11-03 12:56 [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Jagan Teki
  2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
@ 2018-11-03 12:56 ` Jagan Teki
  2018-12-16 15:00   ` Thomas Petazzoni
  2018-11-03 12:56 ` [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support Jagan Teki
  2018-11-03 14:56 ` [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Thomas Petazzoni
  3 siblings, 1 reply; 9+ messages in thread
From: Jagan Teki @ 2018-11-03 12:56 UTC (permalink / raw)
  To: buildroot

Add initial support for Orangepi Lite2 board
with below features:
- U-Boot 2018.09
- Linux 4.19.0-rc8
- Default packages from buildroot

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 .gitlab-ci.yml                              |  1 +
 DEVELOPERS                                  |  2 +
 board/orangepi/orangepi-lite2/extlinux.conf |  4 ++
 board/orangepi/orangepi-lite2/genimage.cfg  | 33 +++++++++++++++
 board/orangepi/orangepi-lite2/post-build.sh |  4 ++
 board/orangepi/orangepi-lite2/readme.txt    | 35 +++++++++++++++
 configs/orangepi_lite2_defconfig            | 47 +++++++++++++++++++++
 7 files changed, 126 insertions(+)
 create mode 100644 board/orangepi/orangepi-lite2/extlinux.conf
 create mode 100644 board/orangepi/orangepi-lite2/genimage.cfg
 create mode 100755 board/orangepi/orangepi-lite2/post-build.sh
 create mode 100644 board/orangepi/orangepi-lite2/readme.txt
 create mode 100644 configs/orangepi_lite2_defconfig

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f670e3dbb7..ad077c84f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -184,6 +184,7 @@ olimex_a64_olinuxino_defconfig: *defconfig
 olimex_imx233_olinuxino_defconfig: *defconfig
 openblocks_a6_defconfig: *defconfig
 orangepi_lite_defconfig: *defconfig
+orangepi_lite2_defconfig: *defconfig
 orangepi_one_defconfig: *defconfig
 orangepi_one_plus_defconfig: *defconfig
 orangepi_pc2_defconfig: *defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index 401e0cb770..497b18e396 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -954,6 +954,7 @@ F:	board/engicam/
 F:	board/friendlyarm/nanopi-a64/
 F:	board/friendlyarm/nanopi-neo2/
 F:	board/olimex/a64-olinuxino/
+F:	board/orangepi/orangepi-lite2/
 F:	board/orangepi/orangepi-one-plus
 F:	board/orangepi/orangepi-pc2/
 F:	board/orangepi/orangepi-prime/
@@ -972,6 +973,7 @@ F:	configs/engicam_imx6ul_isiot_defconfig
 F:	configs/friendlyarm_nanopi_a64_defconfig
 F:	configs/friendlyarm_nanopi_neo2_defconfig
 F:	configs/olimex_a64_olinuxino_defconfig
+F:	configs/orangepi_lite2_defconfig
 F:	configs/orangepi_one_plus_defconfig
 F:	configs/orangepi_pc2_defconfig
 F:	configs/orangepi_prime_defconfig
diff --git a/board/orangepi/orangepi-lite2/extlinux.conf b/board/orangepi/orangepi-lite2/extlinux.conf
new file mode 100644
index 0000000000..610e864373
--- /dev/null
+++ b/board/orangepi/orangepi-lite2/extlinux.conf
@@ -0,0 +1,4 @@
+label linux-4.18.0-rc3
+  kernel /Image
+  devicetree /sun50i-h6-orangepi-lite2.dtb
+  append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
diff --git a/board/orangepi/orangepi-lite2/genimage.cfg b/board/orangepi/orangepi-lite2/genimage.cfg
new file mode 100644
index 0000000000..97251b483f
--- /dev/null
+++ b/board/orangepi/orangepi-lite2/genimage.cfg
@@ -0,0 +1,33 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"sun50i-h6-orangepi-lite2.dtb",
+			"extlinux"
+		}
+	}
+	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"
+	}
+}
diff --git a/board/orangepi/orangepi-lite2/post-build.sh b/board/orangepi/orangepi-lite2/post-build.sh
new file mode 100755
index 0000000000..ec20fca7d9
--- /dev/null
+++ b/board/orangepi/orangepi-lite2/post-build.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
diff --git a/board/orangepi/orangepi-lite2/readme.txt b/board/orangepi/orangepi-lite2/readme.txt
new file mode 100644
index 0000000000..abca9da6da
--- /dev/null
+++ b/board/orangepi/orangepi-lite2/readme.txt
@@ -0,0 +1,35 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Orangepi Lite2. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Orangepi Lite2 link:
+http://www.orangepi.org/Orange%20Pi%20Lite%202/
+
+Wiki link:
+https://openedev.amarulasolutions.com/display/ODWIKI/Orangepi+Lite2
+
+How to build
+============
+
+    $ make orangepi_lite2_defconfig
+    $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called "sdcard.img"
+in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+  $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+  $ sudo sync
+
+Insert the micro SDcard in your Orangepi Lite2 and power it up. The console
+is on the serial line, 115200 8N1.
diff --git a/configs/orangepi_lite2_defconfig b/configs/orangepi_lite2_defconfig
new file mode 100644
index 0000000000..29e648c9b0
--- /dev/null
+++ b/configs/orangepi_lite2_defconfig
@@ -0,0 +1,47 @@
+BR2_aarch64=y
+BR2_cortex_a53=y
+BR2_ARM_FPU_VFPV4=y
+
+# Linux headers same as kernel, a 4.18 series
+BR2_KERNEL_HEADERS_4_18=y
+
+# Firmware
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/ARM-software/arm-trusted-firmware.git"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.0"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_h6"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
+
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/amarula/u-boot-amarula"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="h6-v1.0a"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_lite2"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,amarula,linux-amarula,h6-v1.0b)/linux-amarula_h6-v1.0b.tar.gz"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-h6-orangepi-lite2"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+
+# Filesystem
+BR2_TARGET_GENERIC_ISSUE="Welcome to Orangepi Lite2"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/orangepi/orangepi-lite2/genimage.cfg"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/orangepi-lite2/post-build.sh"
-- 
2.18.0.321.gffc6fa0e3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support
  2018-11-03 12:56 [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Jagan Teki
  2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
  2018-11-03 12:56 ` [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support Jagan Teki
@ 2018-11-03 12:56 ` Jagan Teki
  2018-12-16 15:00   ` Thomas Petazzoni
  2018-11-03 14:56 ` [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Thomas Petazzoni
  3 siblings, 1 reply; 9+ messages in thread
From: Jagan Teki @ 2018-11-03 12:56 UTC (permalink / raw)
  To: buildroot

Orangepi lite2 board has AP6356S WiFi/BT combo, but does
not have ethernet port. So it makes sense to enable wireless
networking by default:
- add broadcom wireless firmware package to image
- add basic wireless tools to image
- add rootfs overlay with proper NVRAM file for on-board AP6356S chip
- add mdev to image to enable module autoloading
- update readme.txt to test wifi

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 board/orangepi/orangepi-lite2/readme.txt      |  9 ++
 .../lib/firmware/brcm/brcmfmac43455-sdio.txt  | 82 +++++++++++++++++++
 configs/orangepi_lite2_defconfig              | 13 +++
 3 files changed, 104 insertions(+)
 create mode 100755 board/orangepi/orangepi-lite2/rootfs_overlay/lib/firmware/brcm/brcmfmac43455-sdio.txt

diff --git a/board/orangepi/orangepi-lite2/readme.txt b/board/orangepi/orangepi-lite2/readme.txt
index abca9da6da..bed561b562 100644
--- a/board/orangepi/orangepi-lite2/readme.txt
+++ b/board/orangepi/orangepi-lite2/readme.txt
@@ -33,3 +33,12 @@ Copy the bootable "sdcard.img" onto an SD card with "dd":
 
 Insert the micro SDcard in your Orangepi Lite2 and power it up. The console
 is on the serial line, 115200 8N1.
+
+WiFi
+====
+
+ # wpa_passphrase ACCESSPOINTNAME >> /etc/wpa_supplicant.conf
+   (type password and enter)
+ # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
+ # udhcpc -i wlan0
+ # ping google.com
diff --git a/board/orangepi/orangepi-lite2/rootfs_overlay/lib/firmware/brcm/brcmfmac43455-sdio.txt b/board/orangepi/orangepi-lite2/rootfs_overlay/lib/firmware/brcm/brcmfmac43455-sdio.txt
new file mode 100755
index 0000000000..c1cc4c3c2e
--- /dev/null
+++ b/board/orangepi/orangepi-lite2/rootfs_overlay/lib/firmware/brcm/brcmfmac43455-sdio.txt
@@ -0,0 +1,82 @@
+#AP6255_NVRAM_V1.0_29052015
+
+NVRAMRev=$Rev: 498373 $
+sromrev=11
+vendid=0x14e4
+devid=0x43ab
+manfid=0x2d0
+prodid=0x06e4
+macaddr=00:90:4c:c5:12:38
+nocrc=1
+boardtype=0x6e4
+boardrev=0x1304
+xtalfreq=37400
+#boardflags: 5GHz eTR switch by default
+#2.4GHz eTR switch by default
+#bit1 for btcoex
+boardflags=0x00080201
+boardflags2=0x40000000
+boardflags3=0x48200100
+rxgains2gelnagaina0=0
+rxgains2gtrisoa0=0
+rxgains2gtrelnabypa0=0
+rxgains5gelnagaina0=0
+rxgains5gtrisoa0=0
+rxgains5gtrelnabypa0=0
+rxchain=1
+txchain=1
+aa2g=1
+aa5g=1
+tssipos5g=1
+tssipos2g=1
+femctrl=0
+AvVmid_c0=0,157,1,126,1,126,1,126,1,126
+pa2ga0=-112,6296,-662
+pa2ga1=-165,3699,-515
+pa5ga0=-143,6016,-683,-141,6013,-678,-137,5988,-670,-136,5982,-670
+pa5ga1=-161,3544,-499,-166,3543,-497,-169,3569,-497,-171,3598,-498
+itrsw=1
+pdoffset2g40ma0=10
+pdoffset40ma0=0xaaaa
+pdoffset80ma0=0xaaaa
+extpagain5g=2
+extpagain2g=2
+tworangetssi2g=1
+tworangetssi5g=1
+# LTECX flags
+# WCI2
+ltecxmux=0
+ltecxpadnum=0x0504
+ltecxfnsel=0x22
+ltecxgcigpio=0x32
+
+maxp2ga0=64
+ofdmlrbw202gpo=0x0033
+dot11agofdmhrbw202gpo=0x1553
+mcsbw202gpo=0x99355533
+
+maxp5ga0=80,82,76,77
+
+mcsbw205glpo=0x99755000
+mcsbw205gmpo=0x9df55000
+mcsbw205ghpo=0x99855000
+
+mcsbw405glpo=0xb8555000
+mcsbw405gmpo=0xed955000
+mcsbw405ghpo=0xd9755000
+
+mcsbw805glpo=0xc8555000
+mcsbw805gmpo=0xe9555000
+mcsbw805ghpo=0xd9555000
+
+swctrlmap_2g=0x00040004,0x00020002,0x00040004,0x010a02,0x1ff
+swctrlmap_5g=0x00100010,0x00200020,0x00100010,0x010a02,0x2f4
+swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000
+swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000
+
+vcodivmode=1
+deadman_to=481500000
+ed_thresh2g=-54
+ed_thresh5g=-54
+
+muxenab=0x10
diff --git a/configs/orangepi_lite2_defconfig b/configs/orangepi_lite2_defconfig
index 29e648c9b0..16d73e14ae 100644
--- a/configs/orangepi_lite2_defconfig
+++ b/configs/orangepi_lite2_defconfig
@@ -42,6 +42,19 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/orangepi/orangepi-lite2/genimage.cfg"
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/orangepi-lite2/post-build.sh"
+BR2_ROOTFS_OVERLAY="board/orangepi/orangepi-lite2/rootfs_overlay"
+
+# wireless firmware
+BR2_PACKAGE_LINUX_FIRMWARE=y
+BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX=y
+
+# wireless tools
+BR2_PACKAGE_IW=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y
+BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
+BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
-- 
2.18.0.321.gffc6fa0e3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09
  2018-11-03 12:56 [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Jagan Teki
                   ` (2 preceding siblings ...)
  2018-11-03 12:56 ` [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support Jagan Teki
@ 2018-11-03 14:56 ` Thomas Petazzoni
  3 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2018-11-03 14:56 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  3 Nov 2018 18:26:05 +0530, Jagan Teki wrote:
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
>  boot/uboot/Config.in  | 4 ++--
>  boot/uboot/uboot.hash | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support
  2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
@ 2018-11-03 19:27   ` Baruch Siach
  2018-12-16 15:00   ` Thomas Petazzoni
  1 sibling, 0 replies; 9+ messages in thread
From: Baruch Siach @ 2018-11-03 19:27 UTC (permalink / raw)
  To: buildroot

Hi Jagan,

Jagan Teki writes:
> diff --git a/board/orangepi/orangepi-one-plus/extlinux.conf b/board/orangepi/orangepi-one-plus/extlinux.conf
> new file mode 100644
> index 0000000000..eae328449c
> --- /dev/null
> +++ b/board/orangepi/orangepi-one-plus/extlinux.conf
> @@ -0,0 +1,4 @@
> +label linux-4.18.0-rc3

This doesn't match the actual kernel version. I think you can just drop
the version from the label. It is easy to forget keeping it in sync with
the kernel version.

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 v2 2/4] board: orangepi: Add Orangepi One Plus support
  2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
  2018-11-03 19:27   ` Baruch Siach
@ 2018-12-16 15:00   ` Thomas Petazzoni
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 15:00 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  3 Nov 2018 18:26:06 +0530, Jagan Teki wrote:
> Add initial support for Orangepi One Plus board
> with below features:
> - U-Boot 2018.09
> - Linux 4.19.0-rc8
> - Default packages from buildroot
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
> Changes for v2:
> - Use mainline u-boot
> - Use tag in Linux

Applied to master after fixing the extlinux.conf to drop the version of
the Linux kernel.

Also, is this board now supported in upstream U-Boot and Linux? If so,
it would be nice to use that.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support
  2018-11-03 12:56 ` [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support Jagan Teki
@ 2018-12-16 15:00   ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 15:00 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  3 Nov 2018 18:26:07 +0530, Jagan Teki wrote:
> Add initial support for Orangepi Lite2 board
> with below features:
> - U-Boot 2018.09
> - Linux 4.19.0-rc8
> - Default packages from buildroot
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
>  .gitlab-ci.yml                              |  1 +
>  DEVELOPERS                                  |  2 +
>  board/orangepi/orangepi-lite2/extlinux.conf |  4 ++
>  board/orangepi/orangepi-lite2/genimage.cfg  | 33 +++++++++++++++
>  board/orangepi/orangepi-lite2/post-build.sh |  4 ++
>  board/orangepi/orangepi-lite2/readme.txt    | 35 +++++++++++++++
>  configs/orangepi_lite2_defconfig            | 47 +++++++++++++++++++++
>  7 files changed, 126 insertions(+)
>  create mode 100644 board/orangepi/orangepi-lite2/extlinux.conf
>  create mode 100644 board/orangepi/orangepi-lite2/genimage.cfg
>  create mode 100755 board/orangepi/orangepi-lite2/post-build.sh
>  create mode 100644 board/orangepi/orangepi-lite2/readme.txt
>  create mode 100644 configs/orangepi_lite2_defconfig

Applied to master after adjusting extlinux.conf as well. Also, please
send an update to the defconfig once this board is supported in
upstream U-Boot and Linux.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support
  2018-11-03 12:56 ` [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support Jagan Teki
@ 2018-12-16 15:00   ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 15:00 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  3 Nov 2018 18:26:08 +0530, Jagan Teki wrote:
> Orangepi lite2 board has AP6356S WiFi/BT combo, but does
> not have ethernet port. So it makes sense to enable wireless
> networking by default:
> - add broadcom wireless firmware package to image
> - add basic wireless tools to image
> - add rootfs overlay with proper NVRAM file for on-board AP6356S chip
> - add mdev to image to enable module autoloading
> - update readme.txt to test wifi
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
>  board/orangepi/orangepi-lite2/readme.txt      |  9 ++
>  .../lib/firmware/brcm/brcmfmac43455-sdio.txt  | 82 +++++++++++++++++++
>  configs/orangepi_lite2_defconfig              | 13 +++
>  3 files changed, 104 insertions(+)
>  create mode 100755 board/orangepi/orangepi-lite2/rootfs_overlay/lib/firmware/brcm/brcmfmac43455-sdio.txt

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-12-16 15:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 12:56 [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Jagan Teki
2018-11-03 12:56 ` [Buildroot] [PATCH v2 2/4] board: orangepi: Add Orangepi One Plus support Jagan Teki
2018-11-03 19:27   ` Baruch Siach
2018-12-16 15:00   ` Thomas Petazzoni
2018-11-03 12:56 ` [Buildroot] [PATCH 3/4] board: orangepi: Add Orangepi Lite2 support Jagan Teki
2018-12-16 15:00   ` Thomas Petazzoni
2018-11-03 12:56 ` [Buildroot] [PATCH 4/4] board: orangepi: lite2: Add WiFi support Jagan Teki
2018-12-16 15:00   ` Thomas Petazzoni
2018-11-03 14:56 ` [Buildroot] [PATCH 1/4] uboot: bump to version 2018.09 Thomas Petazzoni

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.