Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/freescale/imx6sabre/patches/linux/linux.hash
Normal file
2
board/freescale/imx6sabre/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 4c1147a9bbe4bf36fbcbd8b1e6b0d73ec0da3c454821c58a61d32d3879afc146 linux-imx-lf-6.12.3-1.0.0.tar.gz
|
||||
@@ -0,0 +1,40 @@
|
||||
From 221b57404b29190e0b37f03b81dd3ee6a0fc9ce0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= <vincent.stehle@freescale.com>
|
||||
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é <vincent.stehle@freescale.com>
|
||||
Signed-off-by: Julien Olivain <julien.olivain@oss.nxp.com>
|
||||
[Julien: rebased patch on lf-6.6.23-2.0.0]
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
Upstream: Not applicable, Buildroot specific.
|
||||
---
|
||||
include/configs/imx_env.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/configs/imx_env.h b/include/configs/imx_env.h
|
||||
index 1b34478fc3f..9106d59ff9f 100644
|
||||
--- a/include/configs/imx_env.h
|
||||
+++ b/include/configs/imx_env.h
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
#define CFG_MFG_ENV_SETTINGS_DEFAULT \
|
||||
"mfgtool_args=setenv bootargs console=${console},${baudrate} " \
|
||||
- "rdinit=/linuxrc " \
|
||||
+ "rdinit=/init " \
|
||||
"clk_ignore_unused "\
|
||||
"\0" \
|
||||
"kboot="MFG_BOOT_CMD"\0"\
|
||||
--
|
||||
2.45.2
|
||||
|
||||
2
board/freescale/imx6sabre/patches/uboot/uboot.hash
Normal file
2
board/freescale/imx6sabre/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 18a32d6c79538e4f90746674873b196f9c48be24caef0ab5c1bec920a1816825 uboot-imx-lf-6.12.3-1.0.0.tar.gz
|
||||
171
board/freescale/imx6sabre/readme.txt
Normal file
171
board/freescale/imx6sabre/readme.txt
Normal file
@@ -0,0 +1,171 @@
|
||||
********************************************************
|
||||
Freescale i.MX6 Q, DL and SoloX SABRE development boards
|
||||
********************************************************
|
||||
|
||||
This file documents the Buildroot support for the Freescale SABRE Board
|
||||
for Smart Devices Based on the i.MX 6 and i.MX 6SoloX Series (SABRESD),
|
||||
as well as the Freescale SABRE Board for Automotive Infotainment.
|
||||
|
||||
Read the i.MX 6 SABRESD Quick Start Guide for an introduction to the
|
||||
board:
|
||||
https://www.nxp.com/files-static/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.pdf
|
||||
|
||||
Read the i.MX 6 SoloX SABRESD Quick Start Guide for an introduction to
|
||||
the board:
|
||||
https://www.nxp.com/files-static/32bit/doc/quick_start_guide/IMX6SOLOXQSG.pdf
|
||||
|
||||
Read the SABRE for Automotive Infotainment Quick Start Guide for an
|
||||
introduction to the board:
|
||||
https://www.nxp.com/webapp/Download?colCode=IMX6SABREINFOQSG
|
||||
|
||||
Building with NXP kernel and NXP U-Boot
|
||||
=======================================
|
||||
|
||||
First, configure Buildroot for your SABRE board.
|
||||
For i.MX6Q SABRE SD board:
|
||||
|
||||
make freescale_imx6qsabresd_defconfig
|
||||
|
||||
For i.MX6DL SABRE SD board:
|
||||
|
||||
make freescale_imx6dlsabresd_defconfig
|
||||
|
||||
For i.MX6 SoloX SABRE SD board:
|
||||
|
||||
make freescale_imx6sxsabresd_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 or imx6sx-sdb.dtb or
|
||||
imx6q-sabreauto.dtb or imx6dl-sabreauto.dtb
|
||||
- rootfs.ext2
|
||||
- rootfs.tar
|
||||
- u-boot.imx
|
||||
- uImage, or zImage for i.MX6 SoloX
|
||||
|
||||
Building with mainline kernel and mainline U-Boot
|
||||
=================================================
|
||||
|
||||
Mainline U-Boot uses SPL and can support the three
|
||||
variants of mx6sabreauto boards: mx6q, mx6dl and mx6qp.
|
||||
|
||||
First, configure Buildroot for your mx6sabreauto board
|
||||
|
||||
make imx6-sabreauto_defconfig
|
||||
|
||||
Build all components:
|
||||
|
||||
make
|
||||
|
||||
You will find in output/images/ the following files:
|
||||
- imx6dl-sabresd.dtb, imx6q-sabresd.dtb, imx6q-sabresd.dtb
|
||||
- rootfs.ext2
|
||||
- SPL and u-boot.img
|
||||
- u-boot.imx
|
||||
- zImage
|
||||
|
||||
Create a bootable SD card
|
||||
=========================
|
||||
|
||||
To determine the device associated to the SD card have a look in the
|
||||
/proc/partitions file:
|
||||
|
||||
cat /proc/partitions
|
||||
|
||||
Buildroot prepares a bootable "sdcard.img" image in the output/images/
|
||||
directory, ready to be dumped on a microSD card. Launch the following
|
||||
command as root:
|
||||
|
||||
dd if=./output/images/sdcard.img of=/dev/<your-microsd-device>
|
||||
|
||||
*** WARNING! The script will destroy all the card content. Use with care! ***
|
||||
|
||||
For details about the medium image layout, see the definition in
|
||||
board/freescale/common/imx/genimage.cfg.template.
|
||||
|
||||
Boot the SABRE board
|
||||
====================
|
||||
|
||||
i.MX6 SABRE SD
|
||||
--------------
|
||||
|
||||
To boot your newly created system on an i.MX6 SABRE SD Board (refer to
|
||||
the i.MX6 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
|
||||
at 115200 bps, 8n1;
|
||||
- power on the board.
|
||||
|
||||
i.MX6 SoloX SABRE SD
|
||||
--------------------
|
||||
|
||||
To boot your newly created system on an i.MX6 SoloX SABRE SD Board
|
||||
(refer to the i.MX6 SoloX SABRE SD Quick Start Guide for guidance):
|
||||
- insert the SD card in the J4-SD4 socket at the bottom of the board;
|
||||
- Set the SW10, SW11 and SW12 DIP switches at the top of the board in
|
||||
their default position, to boot from SD card. Reference configuration:
|
||||
|
||||
SW10
|
||||
1 2 3 4 5 6 7 8
|
||||
off off off off off off off off
|
||||
|
||||
SW11
|
||||
1 2 3 4 5 6 7 8
|
||||
off off ON ON ON off off off
|
||||
|
||||
SW12
|
||||
1 2 3 4 5 6 7 8
|
||||
off ON off off off off off off
|
||||
|
||||
- connect a Micro USB cable to the J16 Debug Port at the bottom of the
|
||||
board. This is a dual UART debug port; connect to the first tty using
|
||||
a terminal emulator at 115200 bps, 8n1;
|
||||
- power on the board with the SW1-PWR switch at the top of 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
|
||||
==========
|
||||
|
||||
https://community.nxp.com/docs/DOC-95015
|
||||
https://community.nxp.com/docs/DOC-95017
|
||||
https://community.nxp.com/docs/DOC-99218
|
||||
Reference in New Issue
Block a user