Skip to contentSkip to conversation

imx6sabresd: rename to imx6sabre

PATCH Superseded Vincent Stehlé 4 participants 10 messages Mar 20, 2015 – Apr 1, 2015 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 imx6sabresd: rename to imx6sabre

Rename imx6sabresd board folder to imx6sabre, to prepare for Sabre Auto addition. Update doc, link and defconfigs accordingly.

Cc Eric B?nard <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Gilles Talis <[email protected]>
Cc Gary Bisson <[email protected]>
---
 board/freescale/imx53loco/create-boot-sd.sh        |  2 +-
 board/freescale/imx6sabre/create-boot-sd.sh        | 93 ++++++++++++++++++++++
 ...ommon-boot-Linux-to-init-in-mfgtools-mode.patch | 36 +++++++++
 board/freescale/imx6sabre/readme.txt               | 68 ++++++++++++++++
 board/freescale/imx6sabresd/create-boot-sd.sh      | 93 ----------------------
 ...ommon-boot-Linux-to-init-in-mfgtools-mode.patch | 36 ---------
 board/freescale/imx6sabresd/readme.txt             | 67 ----------------
 configs/freescale_imx6dlsabresd_defconfig          |  2 +-
 configs/freescale_imx6qsabresd_defconfig           |  2 +-
 9 files changed, 200 insertions(+), 199 deletions(-)
 create mode 100755 board/freescale/imx6sabre/create-boot-sd.sh
 create mode 100644 board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
 create mode 100644 board/freescale/imx6sabre/readme.txt
 delete mode 100755 board/freescale/imx6sabresd/create-boot-sd.sh
 delete mode 100644 board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
 delete mode 100644 board/freescale/imx6sabresd/readme.txt
board/freescale/imx53loco/create-boot-sd.sh +1 -1
index 3083fd2..b1ce208 120000
@@ -1 +1 @@
-../imx6sabresd/create-boot-sd.sh
\ No newline at end of file
+../imx6sabre/create-boot-sd.sh
\ No newline at end of file
board/freescale/imx6sabre/create-boot-sd.sh new file +93 -0

93 lines not on this page · raw message

board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch new file +36 -0
new file mode 100644
index 0000000..c01df4e
@@ -0,0 +1,36 @@
+From 4a7cd7c5b165317dccf45cfc235da3e14bc339e8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= <[email protected]>
+Date: Tue, 12 Aug 2014 10:17:31 +0200
+Subject: [PATCH] mx6qsabre_common: boot Linux to /init in mfgtools mode
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Buildroot supplies a nice /init wrapper script to use when booting from a
+ramdisk.
+
+This patch tells u-boot to tell the kernel to boot into /init (instead of
+/linuxrc) on i.MX6, when booting in mfgtools mode. This way we can boot a
+buildroot system entirely through USB.
+
+Signed-off-by: Vincent Stehl? <[email protected]>
+---
+ include/configs/mx6qsabre_common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/configs/mx6qsabre_common.h b/include/configs/mx6qsabre_common.h
+index 69ff0df..ec7b665 100644
+--- a/include/configs/mx6qsabre_common.h
++++ b/include/configs/mx6qsabre_common.h
+@@ -129,7 +129,7 @@
+ 
+ #define CONFIG_MFG_ENV_SETTINGS \
+ 	"mfgtool_args=setenv bootargs console=" CONFIG_CONSOLE_DEV ",115200 " \
+-		"rdinit=/linuxrc " \
++		"rdinit=/init " \
+ 		"g_mass_storage.stall=0 g_mass_storage.removable=1 " \
+ 		"g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
+ 		"g_mass_storage.iSerialNumber=\"\" "\
+-- 
+2.0.1
+
board/freescale/imx6sabre/readme.txt new file +68 -0

68 lines not on this page · raw message

board/freescale/imx6sabresd/create-boot-sd.sh deleted +0 -93

93 lines not on this page · raw message

board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch deleted +0 -36
deleted file mode 100644
index c01df4e..0000000
@@ -1,36 +0,0 @@
-From 4a7cd7c5b165317dccf45cfc235da3e14bc339e8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= <[email protected]>
-Date: Tue, 12 Aug 2014 10:17:31 +0200
-Subject: [PATCH] mx6qsabre_common: boot Linux to /init in mfgtools mode
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Buildroot supplies a nice /init wrapper script to use when booting from a
-ramdisk.
-
-This patch tells u-boot to tell the kernel to boot into /init (instead of
-/linuxrc) on i.MX6, when booting in mfgtools mode. This way we can boot a
-buildroot system entirely through USB.
-
-Signed-off-by: Vincent Stehl? <[email protected]>
----
- include/configs/mx6qsabre_common.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/include/configs/mx6qsabre_common.h b/include/configs/mx6qsabre_common.h
-index 69ff0df..ec7b665 100644
---- a/include/configs/mx6qsabre_common.h
-+++ b/include/configs/mx6qsabre_common.h
-@@ -129,7 +129,7 @@
- 
- #define CONFIG_MFG_ENV_SETTINGS \
- 	"mfgtool_args=setenv bootargs console=" CONFIG_CONSOLE_DEV ",115200 " \
--		"rdinit=/linuxrc " \
-+		"rdinit=/init " \
- 		"g_mass_storage.stall=0 g_mass_storage.removable=1 " \
- 		"g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
- 		"g_mass_storage.iSerialNumber=\"\" "\
--- 
-2.0.1
-
board/freescale/imx6sabresd/readme.txt deleted +0 -67

67 lines not on this page · raw message

configs/freescale_imx6dlsabresd_defconfig +1 -1
index 680031d..a13d2b9 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
configs/freescale_imx6qsabresd_defconfig +1 -1
index f2f702e..95f29d7 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 configs: add Freescale SABRE Auto board support

SABRE Board for Automotive Infotainment (SABRE Auto, a.k.a. SABRE-AI) is Freescale's evaluation board based on the i.MX 6 ARM Cortex-A9 applications processor.

Those defconfigs are an adaptation of freescale_imx6{q,dl}sabresd_defconfig for SABRE Auto, and are thus based on Freescale "official" git repo on git.freescale.com and SW release 3.10.17_1.0.0_ga.

Cc Gilles Talis <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Gary Bisson <[email protected]>

---

Hi,

I would like to "revive" a bit this proposal to add SABRE Auto defconfigs into buildroot.

I have verified that all four freescale_imx6*sabre*_defconfig build properly, and I could verify that the two freescale_imx6qsabre*_defconfig will boot from SD card, using Luca's script.

Sadly, I cannot test that the two freescale_imx6dlsabre*_defconfig still run correctly. Testers welcome! :)

Best regards,

V.

Changes since v1:

- Re-create from latest freescale_imx6{q,dl}sabresd_defconfig files.

 board/freescale/imx6sabre/readme.txt        | 39 ++++++++++++++++++++++++++++-
 configs/freescale_imx6dlsabreauto_defconfig | 35 ++++++++++++++++++++++++++
 configs/freescale_imx6qsabreauto_defconfig  | 35 ++++++++++++++++++++++++++
 3 files changed, 108 insertions(+), 1 deletion(-)
 create mode 100644 configs/freescale_imx6dlsabreauto_defconfig
 create mode 100644 configs/freescale_imx6qsabreauto_defconfig
board/freescale/imx6sabre/readme.txt +38 -1
index 4287a4a..8d0c34c 100644
@@ -3,11 +3,16 @@ Freescale i.MX6Q and i.MX6DL SABRESD development boards
 *******************************************************
 
 This file documents the Buildroot support for the Freescale SABRE Board for
-Smart Devices Based on the i.MX 6 Series (SABRESD).
+Smart Devices Based on the i.MX 6 Series (SABRESD), as well as the Freescale
+SABRE Board for Automotive Infotainment.
 
 Read the SABRESD Quick Start Guide for an introduction to the board:
 http://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.pdf
 
+Read the SABRE for Automotive Infotainment Quick Start Guide for an
+introduction to the board:
+http://cache.freescale.com/files/32bit/doc/user_guide/IMX6SABREINFOQSG.pdf
+
 Build
 =====
 
@@ -20,6 +25,14 @@ For i.MX6DL SABRE SD board:
 
   make freescale_imx6dlsabresd_defconfig
 
+For i.MX6Q SABRE Auto board:
+
+  make freescale_imx6qsabreauto_defconfig
+
+For i.MX6DL SABRE Auto board:
+
+  make freescale_imx6dlsabreauto_defconfig
+
 Build all components:
 
   make
@@ -58,6 +71,30 @@ Quick Start Guide for guidance):
   at 115200 bps, 8n1;
 - power on the board.
 
+To boot your newly created system on a SABRE Auto Board (refer to the SABRE for
+Automotive Infotainment Quick Start Guide for guidance):
+- insert the SD card in the CPU card SD card socket J14;
+- Set the S1, S2 and S3 DIP switches and J3 jumper to boot from SD on CPU card.
+  Reference configuration:
+
+    S1
+     1  2   3   4  5   6   7   8   9  10
+    off ON off off ON off off off off off
+
+    S2
+     1   2  3   4
+    off off ON off
+
+    S3
+     1   2  3  4
+    off off ON ON
+
+    J3: 1-2
+
+- connect an RS-232 UART cable to CPU card debug port J18 and connect using a
+  terminal emulator at 115200 bps, 8n1;
+- power on the board.
+
 Enjoy!
 
 References
configs/freescale_imx6dlsabreauto_defconfig new file +35 -0
new file mode 100644
index 0000000..f4fc48a
@@ -0,0 +1,35 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a9=y
+
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
+
+# toolchain
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.10.17"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
+
+# system
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
+
+# kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v7"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6dl-sabreauto"
+
+# filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx6dlsabreauto"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
configs/freescale_imx6qsabreauto_defconfig new file +35 -0
new file mode 100644
index 0000000..0831d24
@@ -0,0 +1,35 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a9=y
+
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
+
+# toolchain
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.10.17"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
+
+# system
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
+
+# kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v7"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabreauto"
+
+# filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx6qsabreauto"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 configs: add Freescale SABRE Auto board support

Quoted 13 lines · Vincent Stehl?

SABRE Board for Automotive Infotainment (SABRE Auto, a.k.a. SABRE-AI) is Freescale's evaluation board based on the i.MX 6 ARM Cortex-A9 applications processor.

Those defconfigs are an adaptation of freescale_imx6{q,dl}sabresd_defconfig for SABRE Auto, and are thus based on Freescale "official" git repo on git.freescale.com and SW release 3.10.17_1.0.0_ga.

Cc Gilles Talis <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Gary Bisson <[email protected]>

[snip]

board/freescale/imx6sabre/readme.txt Quick Start Guide for guidance): · line 75

Quoted 6 lines
board/freescale/imx6sabre/readme.txt +2 -0
@@ -58,6 +71,30 @@ Quick Start Guide for guidance):
   at 115200 bps, 8n1;
 - power on the board.
 
+To boot your newly created system on a SABRE Auto Board (refer to the SABRE for
+Automotive Infotainment Quick Start Guide for guidance):

I would introduce subheadings here for the two boards, so

Boot the SABRE board
====================

SABRE SD
--------
...

SABRE Auto
----------
...

Quoted 9 lines
board/freescale/imx6sabre/readme.txt +9 -0
+- insert the SD card in the CPU card SD card socket J14;
+- Set the S1, S2 and S3 DIP switches and J3 jumper to boot from SD on CPU card.
+  Reference configuration:
+
+    S1
+     1  2   3   4  5   6   7   8   9  10
+    off ON off off ON off off off off off
+
+    S2

board/freescale/imx6sabre/readme.txt Quick Start Guide for guidance): · line 94

Quoted 10 lines
board/freescale/imx6sabre/readme.txt +10 -0
+     1   2  3   4
+    off off ON off
+
+    S3
+     1   2  3  4
+    off off ON ON
+
+    J3: 1-2
+
+- connect an RS-232 UART cable to CPU card debug port J18 and connect using a

Shouldn't that be Debug UART DB9? I'm just looking at the quick start guide here...

board/freescale/imx6sabre/readme.txt Quick Start Guide for guidance): · line 100

Quoted 6 lines
board/freescale/imx6sabre/readme.txt +3 -0
+  terminal emulator at 115200 bps, 8n1;
+- power on the board.
+
 Enjoy!
 
 References

I don't suppose you've created similar pages for the auto?

Regards,
Arnout

[snip]

Signature · 6 lines
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#3 lore raw

PATCH 2/2 configs: add Freescale SABRE Auto board support

On 03/21/2015 04:37 PM, Arnout Vandecappelle wrote:
(board/freescale/imx6sabre/readme.txt)
..

Quoted 5 lines

I would introduce subheadings here for the two boards, so

Boot the SABRE board
====================

Quoted 7 lines

SABRE SD
--------
...

SABRE Auto
----------
...

Hi Arnout,

Thank you for your review; I will add the headings in v2 of both patches then.

(readme.txt)
..

Quoted 2 lines
Quoted 1 line

+- connect an RS-232 UART cable to CPU card debug port J18 and connect using a

Shouldn't that be Debug UART DB9? I'm just looking at the quick start guide here...

You are right, J18 is indeed the DB9. I will mention both in the readme.txt in v2, so that it be completely unambiguous.

(Freescale community webpages on buildroot on Sabre SD) ..

Quoted 1 line

I don't suppose you've created similar pages for the auto?

For the moment I do not have any page about Sabre Auto, sorry. Probably I should rather update and re-title the existing pages. This way, the DOC numbers referenced in the readme.txt would stay the same.

Best regards,

V.

#4 lore raw

PATCH v2 1/2 imx6sabresd: rename to imx6sabre

In reply to Arnout Vandecappelle

Rename imx6sabresd board folder to imx6sabre, to prepare for Sabre Auto addition. Update doc, link and defconfigs accordingly.

---

Changes since v1:

- Move the create-boot-sd.sh script under board/freescale and update imx6sabre/readme.txt accordingly.

- Remove erroneous mention of Sabre Auto from that patch and move it to the next patch.

- Add a "SABRE SD" section in the doc paragraph "Boot the SABRE board".

 board/freescale/{imx6sabresd => }/create-boot-sd.sh   |  0
 board/freescale/imx53loco/create-boot-sd.sh           |  2 +-
 ...e_common-boot-Linux-to-init-in-mfgtools-mode.patch |  0
 board/freescale/{imx6sabresd => imx6sabre}/readme.txt | 19 +++++++++++--------
 configs/freescale_imx6dlsabresd_defconfig             |  2 +-
 configs/freescale_imx6qsabresd_defconfig              |  2 +-
 6 files changed, 14 insertions(+), 11 deletions(-)
 rename board/freescale/{imx6sabresd => }/create-boot-sd.sh (100%)
 rename board/freescale/{imx6sabresd => imx6sabre}/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch (100%)
 rename board/freescale/{imx6sabresd => imx6sabre}/readme.txt (82%)
board/freescale/create-boot-sd.sh renamed from board/freescale/imx6sabresd/create-boot-sd.sh +0 -0
similarity index 100%
rename from board/freescale/imx6sabresd/create-boot-sd.sh
rename to board/freescale/create-boot-sd.sh
board/freescale/imx53loco/create-boot-sd.sh +1 -1
index 3083fd2..b1ce208 120000
@@ -1 +1 @@
-../imx6sabresd/create-boot-sd.sh
\ No newline at end of file
+../imx6sabre/create-boot-sd.sh
\ No newline at end of file
board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch renamed from board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch +0 -0
similarity index 100%
rename from board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
rename to board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
board/freescale/imx6sabre/readme.txt renamed from board/freescale/imx6sabresd/readme.txt +11 -8
similarity index 82%
rename from board/freescale/imx6sabresd/readme.txt
rename to board/freescale/imx6sabre/readme.txt
index 583ef40..6c1a5b5 100644
@@ -11,12 +11,12 @@ http://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.p
 Build
 =====
 
-First, configure Buildroot for your SABRESD board.
-For i.MX6Q:
+First, configure Buildroot for your SABRE board.
+For i.MX6Q SABRE SD board:
 
   make freescale_imx6qsabresd_defconfig
 
-For i.MX6DL:
+For i.MX6DL SABRE SD board:
 
   make freescale_imx6dlsabresd_defconfig
 
@@ -44,13 +44,16 @@ and copy the bootloader, kernel, DTBs and root filesystem as needed.
 
 *** WARNING! The script will destroy all the card content. Use with care! ***
 
-  ./board/freescale/imx6sabresd/create-boot-sd.sh <your-sd-device>
+  ./board/freescale/create-boot-sd.sh <your-sd-device>
 
-Boot the SABRESD board
-======================
+Boot the SABRE board
+====================
 
-To boot your newly created system (refer to the SABRESD Quick Start Guide for
-guidance):
+SABRE SD
+--------
+
+To boot your newly created system on a SABRE SD Board (refer to the SABRE SD
+Quick Start Guide for guidance):
 - insert the SD card in the SD3 slot of the board;
 - locate the BOOT dip switches (SW6), set dips 2 and 7 to ON, all others to OFF;
 - connect a Micro USB cable to Debug Port and connect using a terminal emulator
configs/freescale_imx6dlsabresd_defconfig +1 -1
index 680031d..a13d2b9 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
configs/freescale_imx6qsabresd_defconfig +1 -1
index f2f702e..95f29d7 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
Signature · 1 line
2.1.4
#5 lore raw

PATCH v2 2/2 configs: add Freescale SABRE Auto board support

SABRE Board for Automotive Infotainment (SABRE Auto, a.k.a. SABRE-AI) is Freescale's evaluation board based on the i.MX 6 ARM Cortex-A9 applications processor.

Those defconfigs are an adaptation of freescale_imx6{q,dl}sabresd_defconfig for SABRE Auto, and are thus based on Freescale "official" git repo on git.freescale.com and SW release 3.10.17_1.0.0_ga.

Cc Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Cc Gilles Talis <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Gary Bisson <[email protected]>

---

Changes since v1:

- Move erroneous mention of Sabre Auto from previous patch into this one.

- Add a "SABRE AUTO" section in the doc paragraph "Boot the SABRE board". Add a mention of the DB9 connector for the Sabre Auto debug UART.

 board/freescale/imx6sabre/readme.txt               | 45 +++++++++++++++++++++-
 ...fconfig => freescale_imx6dlsabreauto_defconfig} |  6 +--
 ...efconfig => freescale_imx6qsabreauto_defconfig} |  6 +--
 3 files changed, 49 insertions(+), 8 deletions(-)
 copy configs/{freescale_imx6qsabresd_defconfig => freescale_imx6dlsabreauto_defconfig} (85%)
 copy configs/{freescale_imx6qsabresd_defconfig => freescale_imx6qsabreauto_defconfig} (86%)
board/freescale/imx6sabre/readme.txt +43 -2
index 6c1a5b5..6850885 100644
@@ -3,11 +3,16 @@ Freescale i.MX6Q and i.MX6DL SABRESD development boards
 *******************************************************
 
 This file documents the Buildroot support for the Freescale SABRE Board for
-Smart Devices Based on the i.MX 6 Series (SABRESD).
+Smart Devices Based on the i.MX 6 Series (SABRESD), as well as the Freescale
+SABRE Board for Automotive Infotainment.
 
 Read the SABRESD Quick Start Guide for an introduction to the board:
 http://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.pdf
 
+Read the SABRE for Automotive Infotainment Quick Start Guide for an
+introduction to the board:
+http://cache.freescale.com/files/32bit/doc/user_guide/IMX6SABREINFOQSG.pdf
+
 Build
 =====
 
@@ -20,12 +25,21 @@ For i.MX6DL SABRE SD board:
 
   make freescale_imx6dlsabresd_defconfig
 
+For i.MX6Q SABRE Auto board:
+
+  make freescale_imx6qsabreauto_defconfig
+
+For i.MX6DL SABRE Auto board:
+
+  make freescale_imx6dlsabreauto_defconfig
+
 Build all components:
 
   make
 
 You will find in ./output/images/ the following files:
-  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb
+  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb or imx6q-sabreauto.dtb or
+    imx6dl-sabreauto.dtb
   - rootfs.ext2
   - rootfs.tar
   - u-boot.imx
@@ -60,6 +74,33 @@ Quick Start Guide for guidance):
   at 115200 bps, 8n1;
 - power on the board.
 
+SABRE Auto
+----------
+
+To boot your newly created system on a SABRE Auto Board (refer to the SABRE for
+Automotive Infotainment Quick Start Guide for guidance):
+- insert the SD card in the CPU card SD card socket J14;
+- Set the S1, S2 and S3 DIP switches and J3 jumper to boot from SD on CPU card.
+  Reference configuration:
+
+    S1
+     1  2   3   4  5   6   7   8   9  10
+    off ON off off ON off off off off off
+
+    S2
+     1   2  3   4
+    off off ON off
+
+    S3
+     1   2  3  4
+    off off ON ON
+
+    J3: 1-2
+
+- connect an RS-232 UART cable to CPU card debug port J18 UART DB9 and
+  connect using a terminal emulator at 115200 bps, 8n1;
+- power on the board.
+
 Enjoy!
 
 References
configs/freescale_imx6dlsabreauto_defconfig renamed from configs/freescale_imx6qsabresd_defconfig +3 -3
similarity index 85%
copy from configs/freescale_imx6qsabresd_defconfig
copy to configs/freescale_imx6dlsabreauto_defconfig
index 95f29d7..f4fc48a 100644
@@ -11,7 +11,7 @@ BR2_DEFAULT_KERNEL_VERSION="3.10.17"
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
 
 # system
-BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
 
 # kernel
 BR2_LINUX_KERNEL=y
@@ -21,14 +21,14 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v7"
 BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabresd"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6dl-sabreauto"
 
 # filesystem
 BR2_TARGET_ROOTFS_EXT2=y
 
 # bootloader
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="mx6qsabresd"
+BR2_TARGET_UBOOT_BOARDNAME="mx6dlsabreauto"
 BR2_TARGET_UBOOT_FORMAT_IMX=y
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
configs/freescale_imx6qsabreauto_defconfig renamed from configs/freescale_imx6qsabresd_defconfig +3 -3
similarity index 86%
copy from configs/freescale_imx6qsabresd_defconfig
copy to configs/freescale_imx6qsabreauto_defconfig
index 95f29d7..0831d24 100644
@@ -11,7 +11,7 @@ BR2_DEFAULT_KERNEL_VERSION="3.10.17"
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
 
 # system
-BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
 
 # kernel
 BR2_LINUX_KERNEL=y
@@ -21,14 +21,14 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v7"
 BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabresd"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabreauto"
 
 # filesystem
 BR2_TARGET_ROOTFS_EXT2=y
 
 # bootloader
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="mx6qsabresd"
+BR2_TARGET_UBOOT_BOARDNAME="mx6qsabreauto"
 BR2_TARGET_UBOOT_FORMAT_IMX=y
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
Signature · 1 line
2.1.4
#6 lore raw

PATCH v2 1/2 imx6sabresd: rename to imx6sabre

In reply to Vincent Stehlé

Dear Vincent Stehl?,

Quoted 10 lines · Vincent Stehl?

Rename imx6sabresd board folder to imx6sabre, to prepare for Sabre Auto addition. Update doc, link and defconfigs accordingly.

Both patches applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

PATCH 1/2 imx6sabresd: rename to imx6sabre

In reply to Vincent Stehlé
Quoted 2 lines · Vincent Stehl?

Rename imx6sabresd board folder to imx6sabre, to prepare for Sabre Auto addition. Update doc, link and defconfigs accordingly.

One annoying thing: the SABRELite is quite different from the AI and SD, so the
readme wouldn't be such a good fit for it. But that's a problem for whoever adds SABRELite :-)

Quoted 1 line

I have a few comments but nothing major, so

Quoted 5 lines
Cc Eric B?nard <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Gilles Talis <[email protected]>
Cc Gary Bisson <[email protected]>
Quoted 8 lines
---
 board/freescale/imx53loco/create-boot-sd.sh        |  2 +-
 board/freescale/imx6sabre/create-boot-sd.sh        | 93 ++++++++++++++++++++++
 ...ommon-boot-Linux-to-init-in-mfgtools-mode.patch | 36 +++++++++
 board/freescale/imx6sabre/readme.txt               | 68 ++++++++++++++++
 board/freescale/imx6sabresd/create-boot-sd.sh      | 93 ----------------------
 ...ommon-boot-Linux-to-init-in-mfgtools-mode.patch | 36 ---------
 board/freescale/imx6sabresd/readme.txt             | 67 ----------------

That's a big diffstat for just moving some files around, and it hides the fact
that you actually did change something in the readme. In the future, please use the -M option to git format-patch (and even -C for the second patch to make the similarity between the boards more explicit). In fact, there's no reason why -M and -C shouldn't be the default in git, so please add them to your git config:

git config --global --bool format.find-renames true git config --global --bool format.find-copies true

And you probably also want that for diffs, so:

git config --global diff.renames copies

So to simplify the review, I've replaced your mail below with the result of git
format-patch -M

Quoted 17 lines
---
 board/freescale/imx53loco/create-boot-sd.sh           |  2 +-
 .../{imx6sabresd => imx6sabre}/create-boot-sd.sh      |  0
 ...e_common-boot-Linux-to-init-in-mfgtools-mode.patch |  0
 board/freescale/{imx6sabresd => imx6sabre}/readme.txt | 19 ++++++++++---------
 configs/freescale_imx6dlsabresd_defconfig             |  2 +-
 configs/freescale_imx6qsabresd_defconfig              |  2 +-
 6 files changed, 13 insertions(+), 12 deletions(-)
 rename board/freescale/{imx6sabresd => imx6sabre}/create-boot-sd.sh (100%)
 rename board/freescale/{imx6sabresd => imx6sabre}/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch (100%)
 rename board/freescale/{imx6sabresd => imx6sabre}/readme.txt (78%)
board/freescale/imx53loco/create-boot-sd.sh +0 -0
index 3083fd2..b1ce208 120000

board/freescale/imx53loco/create-boot-sd.sh line 1

Quoted 3 lines
board/freescale/imx53loco/create-boot-sd.sh +1 -1
@@ -1 +1 @@
-../imx6sabresd/create-boot-sd.sh
\ No newline at end of file
+../imx6sabre/create-boot-sd.sh

Since it is also used by imx53loco, perhaps it's better to put this script in
the freescale directory instead?

Quoted 33 lines

\ No newline at end of file

board/freescale/imx6sabre/create-boot-sd.sh renamed from board/freescale/imx6sabresd/create-boot-sd.sh +0 -0
similarity index 100%
rename from board/freescale/imx6sabresd/create-boot-sd.sh
rename to board/freescale/imx6sabre/create-boot-sd.sh
board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch renamed from board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch +0 -0
similarity index 100%
rename from board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
rename to board/freescale/imx6sabre/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
board/freescale/imx6sabre/readme.txt renamed from board/freescale/imx6sabresd/readme.txt +3 -3
similarity index 78%
rename from board/freescale/imx6sabresd/readme.txt
rename to board/freescale/imx6sabre/readme.txt
index 583ef40..4287a4a 100644
@@ -11,12 +11,12 @@ http://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.p
 Build
 =====
 
-First, configure Buildroot for your SABRESD board.
-For i.MX6Q:
+First, configure Buildroot for your SABRE board.
+For i.MX6Q SABRE SD board:
 
   make freescale_imx6qsabresd_defconfig
 
-For i.MX6DL:
+For i.MX6DL SABRE SD board:
 
   make freescale_imx6dlsabresd_defconfig
 

board/freescale/imx6sabre/readme.txt Build all components: · line 29

Quoted 6 lines
board/freescale/imx6sabre/readme.txt renamed from board/freescale/imx6sabresd/readme.txt +2 -1
@@ -25,7 +25,8 @@ Build all components:
   make
 
 You will find in ./output/images/ the following files:
-  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb
+  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb or imx6q-sabreauto.dtb or
+    imx6dl-sabreauto.dtb

The auto things are only added by the second patch...

Quoted 48 lines
board/freescale/imx6sabre/readme.txt renamed from board/freescale/imx6sabresd/readme.txt +5 -5
   - rootfs.ext2
   - rootfs.tar
   - u-boot.imx
@@ -44,13 +45,13 @@ and copy the bootloader, kernel, DTBs and root filesystem as needed.
 
 *** WARNING! The script will destroy all the card content. Use with care! ***
 
-  ./board/freescale/imx6sabresd/create-boot-sd.sh <your-sd-device>
+  ./board/freescale/imx6sabre/create-boot-sd.sh <your-sd-device>
 
-Boot the SABRESD board
-======================
+Boot the SABRE board
+====================
 
-To boot your newly created system (refer to the SABRESD Quick Start Guide for
-guidance):
+To boot your newly created system on a SABRE SD Board (refer to the SABRE SD
+Quick Start Guide for guidance):
 - insert the SD card in the SD3 slot of the board;
 - locate the BOOT dip switches (SW6), set dips 2 and 7 to ON, all others to OFF;
 - connect a Micro USB cable to Debug Port and connect using a terminal emulator
configs/freescale_imx6dlsabresd_defconfig +1 -1
index 680031d..a13d2b9 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
configs/freescale_imx6qsabresd_defconfig +1 -1
index f2f702e..95f29d7 100644
@@ -3,7 +3,7 @@ BR2_arm=y
 BR2_cortex_a9=y
 
 # patches
-BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabre/patches"
 
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
Signature · 6 lines
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#8 lore raw

PATCH 1/2 imx6sabresd: rename to imx6sabre

Hi Arnout,

Quoted 8 lines · Arnout Vandecappelle
Quoted 2 lines · Vincent Stehl?

Rename imx6sabresd board folder to imx6sabre, to prepare for Sabre Auto addition. Update doc, link and defconfigs accordingly.

One annoying thing: the SABRELite is quite different from the AI and SD, so the
readme wouldn't be such a good fit for it. But that's a problem for whoever adds SABRELite :-)

SABRELite is already present, though somewhat hidden.

The nitrogen6x board support contains support for SABRE Lite, since the only real difference is added WiFi on Nitrogen6x:
http://boundarydevices.com/differences-sabre-lite-nitrogen6x-and-som/

The boards run the same U-Boot and kernel, though they do have different device trees.

Regards,

Eric

#9 lore raw

PATCH 1/2 imx6sabresd: rename to imx6sabre

In reply to Arnout Vandecappelle

On 03/21/2015 04:24 PM, Arnout Vandecappelle wrote:
..

Quoted 1 line

Hi Arnout,

Thank you very much for reviewing!

(too big a patch)
..

Quoted 2 lines

So to simplify the review, I've replaced your mail below with the result of git format-patch -M

Thanks for the tips. I updated my git config as per your comments; my next patches should be better.

(create-boot-sd.sh)
..

Quoted 2 lines

Since it is also used by imx53loco, perhaps it's better to put this script in
the freescale directory instead?

That makes sense; I will send a v2 patch with the create-boot-sd.sh script in board/freescale/ then.

(readme.txt mentioning sabre auto)
..

Quoted 3 lines

board/freescale/imx6sabre/readme.txt line 29

Quoted 2 lines
board/freescale/imx6sabre/readme.txt new file +2 -0
+  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb or imx6q-sabreauto.dtb or
+    imx6dl-sabreauto.dtb

The auto things are only added by the second patch...

Sorry, this is a mistake; thank you for spotting that.

Best regards,

V.