Skip to contentSkip to conversation

board/boundarydevices: update platforms support

PATCH New Gary Bisson 2 participants 4 messages Mar 3, 2016

lore
Share & tools
lore
#0 lore raw

cover board/boundarydevices: update platforms support

Hi all,

Since the Nitrogen7 defconfig came in, someone pointed out that the bootscript hasn't been updated accordingly so the first patch is taking care of that.

While doing it, I realized it didn't really make sense to have all our scripts in a 'nitrogen6x' folder whereas they also apply to other configs. So the second patch renames the folder and also updates the readme so it is (hopefully) clearer which config should be used depending on the platform being used.

Regards,
Gary

Gary Bisson (2):
board/boundarydevices: update u-boot scripts for i.MX7 support board/boundarydevices: rename folder and update readme

 .../{nitrogen6x => common}/6x_bootscript.txt       | 33 +++++++++++-----------
 .../{nitrogen6x => common}/6x_upgrade.txt          |  2 +-
 .../{nitrogen6x => common}/genimage.cfg            |  0
 .../{nitrogen6x => common}/post-build.sh           |  0
 .../{nitrogen6x => common}/post-image.sh           |  0
 board/boundarydevices/common/readme.txt            | 30 ++++++++++++++++++++
 board/boundarydevices/nitrogen6x/readme.txt        | 13 ---------
 configs/nitrogen6sx_defconfig                      |  4 +--
 configs/nitrogen6x_defconfig                       |  4 +--
 configs/nitrogen7_defconfig                        |  4 +--
 10 files changed, 54 insertions(+), 36 deletions(-)
 rename board/boundarydevices/{nitrogen6x => common}/6x_bootscript.txt (87%)
 rename board/boundarydevices/{nitrogen6x => common}/6x_upgrade.txt (95%)
 rename board/boundarydevices/{nitrogen6x => common}/genimage.cfg (100%)
 rename board/boundarydevices/{nitrogen6x => common}/post-build.sh (100%)
 rename board/boundarydevices/{nitrogen6x => common}/post-image.sh (100%)
 create mode 100644 board/boundarydevices/common/readme.txt
 delete mode 100644 board/boundarydevices/nitrogen6x/readme.txt
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/2 board/boundarydevices: update u-boot scripts for i.MX7 support

Also remove useless tfp410 enablement since a basic kernel driver has been added.

---
 board/boundarydevices/nitrogen6x/6x_bootscript.txt | 33 +++++++++++-----------
 board/boundarydevices/nitrogen6x/6x_upgrade.txt    |  2 +-
 2 files changed, 18 insertions(+), 17 deletions(-)
board/boundarydevices/nitrogen6x/6x_bootscript.txt +17 -16
index 4a9be0b..e8a08aa 100644
@@ -1,8 +1,19 @@
 setenv bootargs ''
 
-a_script=0x10800000
-a_zImage=0x10800000
-a_fdt=0x13000000
+if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
+	a_script=0x80800000
+	a_zImage=0x80800000
+	a_fdt=0x83000000
+	m4=''
+	if itest.s "x1" == "x$m4enabled" ; then
+		run m4boot;
+		m4='-m4';
+	fi
+else
+	a_script=0x10800000
+	a_zImage=0x10800000
+	a_fdt=0x13000000
+fi
 
 setenv initrd_high 0xffffffff
 if itest.s "x" == "x${dtbname}" ; then
@@ -13,15 +24,9 @@ if itest.s "x" == "x${dtbname}" ; then
 	elif itest.s x6QP == "x${cpu}" ; then
 		dtbname=imx6qp-${board}.dtb;
 	elif itest.s x6SX == "x${cpu}" ; then
-		if itest.s "x1" != "x$m4enabled" ; then
-			dtbname=imx6sx-${board}.dtb;
-		else
-			run m4boot;
-			dtbname=imx6sx-${board}-m4.dtb;
-		fi
-		a_script=0x80800000
-		a_zImage=0x80800000
-		a_fdt=0x83000000
+		dtbname=imx6sx-${board}${m4}.dtb;
+	elif itest.s x7D == "x${cpu}" ; then
+		dtbname=imx7d-${board}${m4}.dtb;
 	else
 		dtbname=imx6q-${board}.dtb;
 	fi
@@ -47,10 +52,6 @@ else
 	exit;
 fi
 
-# first enable tfp410
-i2c dev 1
-i2c mw 38 8.1 bd
-
 cmd_xxx_present=
 fdt resize
 if itest.s "x" != "x${cmd_custom}" ; then
board/boundarydevices/nitrogen6x/6x_upgrade.txt +1 -1
index 9715f16..e012ff9 100644
@@ -7,7 +7,7 @@ offset=0x400
 a_uImage1=0x12000000
 a_uImage2=0x12400000
 
-if itest.s x6SX == "x$cpu" ; then
+if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
 	a_uImage1=0x82000000
 	a_uImage2=0x82400000
 fi
Signature · 1 line
2.7.0
#2 lore raw

PATCH 2/2 board/boundarydevices: rename folder and update readme

In reply to Gary Bisson

It didn't make sense to keep the U-Boot scripts and post build/image scripts under the nitrogen6x folder since they apply for all our platforms.

Also update the readme.txt to make it clearer which defconfig should be used depending on the platform targeted.

---
 .../{nitrogen6x => common}/6x_bootscript.txt       |  0
 .../{nitrogen6x => common}/6x_upgrade.txt          |  0
 .../{nitrogen6x => common}/genimage.cfg            |  0
 .../{nitrogen6x => common}/post-build.sh           |  0
 .../{nitrogen6x => common}/post-image.sh           |  0
 board/boundarydevices/common/readme.txt            | 30 ++++++++++++++++++++++
 board/boundarydevices/nitrogen6x/readme.txt        | 13 ----------
 configs/nitrogen6sx_defconfig                      |  4 +--
 configs/nitrogen6x_defconfig                       |  4 +--
 configs/nitrogen7_defconfig                        |  4 +--
 10 files changed, 36 insertions(+), 19 deletions(-)
 rename board/boundarydevices/{nitrogen6x => common}/6x_bootscript.txt (100%)
 rename board/boundarydevices/{nitrogen6x => common}/6x_upgrade.txt (100%)
 rename board/boundarydevices/{nitrogen6x => common}/genimage.cfg (100%)
 rename board/boundarydevices/{nitrogen6x => common}/post-build.sh (100%)
 rename board/boundarydevices/{nitrogen6x => common}/post-image.sh (100%)
 create mode 100644 board/boundarydevices/common/readme.txt
 delete mode 100644 board/boundarydevices/nitrogen6x/readme.txt
board/boundarydevices/common/6x_bootscript.txt renamed from board/boundarydevices/nitrogen6x/6x_bootscript.txt +0 -0
similarity index 100%
rename from board/boundarydevices/nitrogen6x/6x_bootscript.txt
rename to board/boundarydevices/common/6x_bootscript.txt
board/boundarydevices/common/6x_upgrade.txt renamed from board/boundarydevices/nitrogen6x/6x_upgrade.txt +0 -0
similarity index 100%
rename from board/boundarydevices/nitrogen6x/6x_upgrade.txt
rename to board/boundarydevices/common/6x_upgrade.txt
board/boundarydevices/common/genimage.cfg renamed from board/boundarydevices/nitrogen6x/genimage.cfg +0 -0
similarity index 100%
rename from board/boundarydevices/nitrogen6x/genimage.cfg
rename to board/boundarydevices/common/genimage.cfg
board/boundarydevices/common/post-build.sh renamed from board/boundarydevices/nitrogen6x/post-build.sh +0 -0
similarity index 100%
rename from board/boundarydevices/nitrogen6x/post-build.sh
rename to board/boundarydevices/common/post-build.sh
board/boundarydevices/common/post-image.sh renamed from board/boundarydevices/nitrogen6x/post-image.sh +0 -0
similarity index 100%
rename from board/boundarydevices/nitrogen6x/post-image.sh
rename to board/boundarydevices/common/post-image.sh
board/boundarydevices/common/readme.txt new file +30 -0
new file mode 100644
index 0000000..0625dee
@@ -0,0 +1,30 @@
+Buildroot for Boundary Devices platforms:
+
+https://boundarydevices.com/product-category/popular-sbc-and-som-modules/
+
+Here is the list of targeted platforms per defconfig:
+
+- nitrogen6x_defconfig
+  - BD-SL-i.MX6 (SABRE-Lite)
+  - Nitrogen6X
+  - Nitrogen6_Lite
+  - Nitrogen6_MAX
+  - Nitrogen6_VM
+  - Nitrogen6_SOM
+  - Nitrogen6_SOMv2
+
+- nitrogen6sx_defconfig
+  - Nitrogen6_SoloX
+
+- nitrogen7_defconfig
+  - Nitrogen7
+
+To install, simply copy the image to a uSD card:
+
+$ sudo dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD partition.
+
+To upgrade u-boot, cancel autoboot and type:
+
+> run upgradeu
board/boundarydevices/nitrogen6x/readme.txt deleted +0 -13
deleted file mode 100644
index 6c723f1..0000000
@@ -1,13 +0,0 @@
-Buildroot for Boundary Devices Nitrogen6X:
-
-http://boundarydevices.com/products/nitrogen6x-board-imx6-arm-cortex-a9-sbc/
-
-To install, simply copy the image to a uSD card:
-
-sudo dd if=output/images/sdcard.img of=/dev/sdX
-
-Where 'sdX' is the device node of the uSD partition.
-
-To upgrade u-boot, cancel autoboot and type:
-
-run upgradeu
configs/nitrogen6sx_defconfig +2 -2
index e69fafc..fcc74c9 100644
@@ -5,8 +5,8 @@ BR2_cortex_a9=y
 # system
 BR2_TARGET_GENERIC_GETTY=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
-BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh"
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/nitrogen6x/post-image.sh"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/common/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/common/post-image.sh"
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_UBOOT_TOOLS=y
 
configs/nitrogen6x_defconfig +2 -2
index d8da188..7b95988 100644
@@ -5,8 +5,8 @@ BR2_cortex_a9=y
 # system
 BR2_TARGET_GENERIC_GETTY=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
-BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh"
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/nitrogen6x/post-image.sh"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/common/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/common/post-image.sh"
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_UBOOT_TOOLS=y
 
configs/nitrogen7_defconfig +2 -2
index 91529e8..d8c3975 100644
@@ -5,8 +5,8 @@ BR2_cortex_a7=y
 # system
 BR2_TARGET_GENERIC_GETTY=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
-BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh"
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/nitrogen6x/post-image.sh"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/common/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/common/post-image.sh"
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_UBOOT_TOOLS=y
 
Signature · 1 line
2.7.0
#3 lore raw

cover board/boundarydevices: update platforms support

In reply to Gary Bisson
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gary" == Gary Bisson <[email protected]> writes:

Hi all,
Since the Nitrogen7 defconfig came in, someone pointed out that the bootscript hasn't been updated accordingly so the first patch is taking care of that.

Quoted 5 lines

While doing it, I realized it didn't really make sense to have all our scripts in a 'nitrogen6x' folder whereas they also apply to other configs. So the second patch renames the folder and also updates the readme so it is (hopefully) clearer which config should be used depending on the platform being used.

Committed both, thanks.

Signature · 1 line
Bye, Peter Korsgaard