Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -9,7 +9,9 @@ Build all components:
|
||||
|
||||
You will find in ./output/images/ the following files:
|
||||
- imx6sl-warp.dtb
|
||||
- rootfs.ext4
|
||||
- rootfs.tar
|
||||
- sdcard.img
|
||||
- u-boot.imx
|
||||
- zImage
|
||||
|
||||
@@ -29,7 +31,7 @@ Update uboot
|
||||
=> env default -f -a
|
||||
=> saveenv
|
||||
|
||||
- Run the DFU toocommand in U-Boot:
|
||||
- Run the DFU command in U-Boot:
|
||||
=> dfu 0 mmc 0
|
||||
|
||||
- Transfer U-Boot into flash by running this command in host side:
|
||||
@@ -42,14 +44,16 @@ Update uboot
|
||||
Update linux & rootfs
|
||||
=====================
|
||||
|
||||
Run the 'ums' command from the u6Boot prompt to mount the eMMC as mass
|
||||
storage and update zImage, device tree (imx6sl-warp.dtb) and rootfs
|
||||
file (rootfs.tar) :
|
||||
Run the 'ums' command from the U-Boot prompt to mount the eMMC as USB mass
|
||||
storage:
|
||||
|
||||
=> ums 0 mmc 0
|
||||
|
||||
Put the zImage and DTB files in the warp-vfat partition and extract as
|
||||
root the rootfs.tar tarball in the warp-rootfs partition.
|
||||
And then flash the sdcard.img into the eMMC:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-sd-device>
|
||||
|
||||
*** WARNING! This will destroy all the eMMC content. Use it with care! ***
|
||||
|
||||
Using bluetooth
|
||||
================
|
||||
@@ -62,4 +66,12 @@ $ hciconfig hci0 up
|
||||
Using Wifi
|
||||
==========
|
||||
|
||||
$ ifconfig wlan0 up
|
||||
# modprobe brcmfmac
|
||||
# iwconfig wlan0 essid ACCESSPOINTNAME
|
||||
# wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
|
||||
(enter the wifi password and press enter)
|
||||
# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
|
||||
# udhcpc -i wlan0
|
||||
# ping buildroot.org
|
||||
|
||||
Enjoy!
|
||||
|
||||
41
bsp/buildroot/board/freescale/warpboard/genimage.cfg
Normal file
41
bsp/buildroot/board/freescale/warpboard/genimage.cfg
Normal file
@@ -0,0 +1,41 @@
|
||||
# Minimal SD card image for the Warp board
|
||||
#
|
||||
# We mimic the .sdcard Freescale's image format for i.MX6SL:
|
||||
# * the microSD card must have 1 kB free space at the beginning,
|
||||
# * U-Boot is dumped as is,
|
||||
# * a FAT partition at offset 8 MB is containing zImage and dtbs,
|
||||
# * a single root filesystem partition is required (Ext4 in this case).
|
||||
#
|
||||
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"imx6sl-warp.dtb",
|
||||
"zImage"
|
||||
}
|
||||
}
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot.imx"
|
||||
offset = 1024
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
offset = 8M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
1
bsp/buildroot/board/freescale/warpboard/linux.fragment
Normal file
1
bsp/buildroot/board/freescale/warpboard/linux.fragment
Normal file
@@ -0,0 +1 @@
|
||||
CONFIG_CFG80211_WEXT=y
|
||||
@@ -1,34 +0,0 @@
|
||||
From f6878a437a5ba157fd087ef5e1874bdce5eca199 Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Estevam <fabio.estevam@freescale.com>
|
||||
Date: Mon, 22 Jun 2015 16:37:34 -0300
|
||||
Subject: [PATCH] ARM: imx_v6_v7_defconfig: Select HCIUART_H4
|
||||
|
||||
The old warp board revision had hardware issues that prevented
|
||||
the RTS/CTS lines to work with the Bluetooth module.
|
||||
|
||||
Tha latest rev1.12 fixes this problem, so now we should better use
|
||||
CONFIG_BT_HCIUART_H4 instead, as it provides a better throughput than
|
||||
the CONFIG_BT_HCIUART_3WIRE option.
|
||||
|
||||
Suggested-by: Arthur Lambert <arthur@dreem.com>
|
||||
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
|
||||
---
|
||||
arch/arm/configs/imx_v6_v7_defconfig | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
|
||||
index f6989fb..c864295 100644
|
||||
--- a/arch/arm/configs/imx_v6_v7_defconfig
|
||||
+++ b/arch/arm/configs/imx_v6_v7_defconfig
|
||||
@@ -73,7 +73,7 @@ CONFIG_CAN=y
|
||||
CONFIG_CAN_FLEXCAN=y
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCIUART=y
|
||||
-CONFIG_BT_HCIUART_3WIRE=y
|
||||
+CONFIG_BT_HCIUART_H4=y
|
||||
CONFIG_CFG80211=y
|
||||
CONFIG_CFG80211_WEXT=y
|
||||
CONFIG_MAC80211=y
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
From: Fabio Estevam <fabio.estevam@freescale.com>
|
||||
Date: Fri, 29 May 2015 16:19:39 -0300
|
||||
Subject: [PATCH] ARM: dts: imx6sl-warp: Add changes for rev1.12
|
||||
|
||||
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
|
||||
---
|
||||
arch/arm/boot/dts/imx6sl-warp.dts | 32 +++++++++++++++++++-------------
|
||||
1 file changed, 19 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/imx6sl-warp.dts b/arch/arm/boot/dts/imx6sl-warp.dts
|
||||
index 0da906b..bdfa82b 100644
|
||||
--- a/arch/arm/boot/dts/imx6sl-warp.dts
|
||||
+++ b/arch/arm/boot/dts/imx6sl-warp.dts
|
||||
@@ -61,7 +61,9 @@
|
||||
usdhc3_pwrseq: usdhc3_pwrseq {
|
||||
compatible = "mmc-pwrseq-simple";
|
||||
reset-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>, /* WL_REG_ON */
|
||||
+ <&gpio4 7 GPIO_ACTIVE_LOW>, /* WL_HOSTWAKE */
|
||||
<&gpio3 25 GPIO_ACTIVE_LOW>, /* BT_REG_ON */
|
||||
+ <&gpio3 27 GPIO_ACTIVE_LOW>, /* BT_HOSTWAKE */
|
||||
<&gpio4 4 GPIO_ACTIVE_LOW>, /* BT_WAKE */
|
||||
<&gpio4 6 GPIO_ACTIVE_LOW>; /* BT_RST_N */
|
||||
};
|
||||
@@ -73,16 +75,16 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&uart2 {
|
||||
+&uart3 {
|
||||
pinctrl-names = "default";
|
||||
- pinctrl-0 = <&pinctrl_uart2>;
|
||||
- fsl,uart-has-rtscts;
|
||||
+ pinctrl-0 = <&pinctrl_uart3>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&uart3 {
|
||||
+&uart5 {
|
||||
pinctrl-names = "default";
|
||||
- pinctrl-0 = <&pinctrl_uart3>;
|
||||
+ pinctrl-0 = <&pinctrl_uart5>;
|
||||
+ fsl,uart-has-rtscts;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -130,14 +132,6 @@
|
||||
>;
|
||||
};
|
||||
|
||||
- pinctrl_uart2: uart2grp {
|
||||
- fsl,pins = <
|
||||
- MX6SL_PAD_EPDC_D12__UART2_RX_DATA 0x41b0b1
|
||||
- MX6SL_PAD_EPDC_D13__UART2_TX_DATA 0x41b0b1
|
||||
- MX6SL_PAD_EPDC_D14__UART2_RTS_B 0x4130B1
|
||||
- MX6SL_PAD_EPDC_D15__UART2_CTS_B 0x4130B1
|
||||
- >;
|
||||
- };
|
||||
|
||||
pinctrl_uart3: uart3grp {
|
||||
fsl,pins = <
|
||||
@@ -146,6 +140,15 @@
|
||||
>;
|
||||
};
|
||||
|
||||
+ pinctrl_uart5: uart5grp {
|
||||
+ fsl,pins = <
|
||||
+ MX6SL_PAD_ECSPI1_SCLK__UART5_RX_DATA 0x41b0b1
|
||||
+ MX6SL_PAD_ECSPI1_MOSI__UART5_TX_DATA 0x41b0b1
|
||||
+ MX6SL_PAD_ECSPI1_MISO__UART5_RTS_B 0x4130b1
|
||||
+ MX6SL_PAD_ECSPI1_SS0__UART5_CTS_B 0x4130b1
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
pinctrl_usdhc2: usdhc2grp {
|
||||
fsl,pins = <
|
||||
MX6SL_PAD_SD2_CMD__SD2_CMD 0x417059
|
||||
@@ -158,6 +161,7 @@
|
||||
MX6SL_PAD_SD2_DAT5__SD2_DATA5 0x417059
|
||||
MX6SL_PAD_SD2_DAT6__SD2_DATA6 0x417059
|
||||
MX6SL_PAD_SD2_DAT7__SD2_DATA7 0x417059
|
||||
+ MX6SL_PAD_SD2_RST__SD2_RESET 0x417059
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -173,6 +177,7 @@
|
||||
MX6SL_PAD_SD2_DAT5__SD2_DATA5 0x4170b9
|
||||
MX6SL_PAD_SD2_DAT6__SD2_DATA6 0x4170b9
|
||||
MX6SL_PAD_SD2_DAT7__SD2_DATA7 0x4170b9
|
||||
+ MX6SL_PAD_SD2_RST__SD2_RESET 0x4170b9
|
||||
>;
|
||||
};
|
||||
|
||||
@@ -188,6 +193,7 @@
|
||||
MX6SL_PAD_SD2_DAT5__SD2_DATA5 0x4170f9
|
||||
MX6SL_PAD_SD2_DAT6__SD2_DATA6 0x4170f9
|
||||
MX6SL_PAD_SD2_DAT7__SD2_DATA7 0x4170f9
|
||||
+ MX6SL_PAD_SD2_RST__SD2_RESET 0x4170f9
|
||||
>;
|
||||
};
|
||||
|
||||
--
|
||||
1.9.1
|
||||
|
||||
14
bsp/buildroot/board/freescale/warpboard/post-image.sh
Executable file
14
bsp/buildroot/board/freescale/warpboard/post-image.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
genimage \
|
||||
--rootpath "${TARGET_DIR}" \
|
||||
--tmppath "${GENIMAGE_TMP}" \
|
||||
--inputpath "${BINARIES_DIR}" \
|
||||
--outputpath "${BINARIES_DIR}" \
|
||||
--config "${GENIMAGE_CFG}"
|
||||
Reference in New Issue
Block a user