Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
From 6d298b0fcacfc555f93864fa45fb612140902388 Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Estevam <festevam@gmail.com>
|
||||
Date: Tue, 5 Jun 2018 22:12:48 -0300
|
||||
Subject: [PATCH] pico-imx7d: Adjust the dtb name
|
||||
|
||||
Since kernel commit 41bbeadceb03 ("ARM: dts: imx7d-pico-pi: Separate
|
||||
into cpu and baseboard dts") the dtb name has changed.
|
||||
|
||||
Fix it accordingly.
|
||||
|
||||
Signed-off-by: Fabio Estevam <festevam@gmail.com>
|
||||
---
|
||||
include/configs/pico-imx7d.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h
|
||||
index b208d7f..d2ffa70 100644
|
||||
--- a/include/configs/pico-imx7d.h
|
||||
+++ b/include/configs/pico-imx7d.h
|
||||
@@ -41,7 +41,7 @@
|
||||
"console=ttymxc4\0" \
|
||||
"fdt_high=0xffffffff\0" \
|
||||
"initrd_high=0xffffffff\0" \
|
||||
- "fdt_file=imx7d-pico.dtb\0" \
|
||||
+ "fdt_file=imx7d-pico-pi.dtb\0" \
|
||||
"fdt_addr=0x83000000\0" \
|
||||
"ip_dyn=yes\0" \
|
||||
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -20,9 +20,63 @@ You will find in output/images/ the following files:
|
||||
- rootfs.ext4
|
||||
- rootfs.tar
|
||||
- sdcard.img
|
||||
- u-boot.imx
|
||||
- u-boot-dtb.img
|
||||
- SPL
|
||||
- zImage
|
||||
|
||||
Flash U-Boot and SPL
|
||||
=====
|
||||
|
||||
Note: This method is convenient for development purposes.
|
||||
If the eMMC has already a U-Boot flashed with DFU support then
|
||||
the user can go to step 2 below in order to update U-Boot.
|
||||
|
||||
Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
|
||||
page 3)
|
||||
|
||||
Connect a USB to serial adapter between the host PC and pico.
|
||||
|
||||
Connect a USB cable between the OTG pico port and the host PC.
|
||||
|
||||
Note: Some computers may be a bit strict with USB current draw and will
|
||||
shut down their ports if the draw is too high. The solution for that is
|
||||
to use an externally powered USB hub between the board and the host computer.
|
||||
|
||||
Open a terminal program such as minicom.
|
||||
|
||||
Copy SPL and u-boot-dtb.img to the imx_usb_loader folder.
|
||||
|
||||
Load the SPL binary via USB:
|
||||
|
||||
$ sudo ./imx_usb SPL
|
||||
|
||||
Load the u-boot-dtb.img binary via USB:
|
||||
|
||||
$ sudo ./imx_usb u-boot-dtb.img
|
||||
|
||||
Then U-Boot starts and its messages appear in the console program.
|
||||
|
||||
Use the default environment variables:
|
||||
|
||||
=> env default -f -a
|
||||
=> saveenv
|
||||
|
||||
Run the DFU agent so we can flash the new images using dfu-util tool:
|
||||
|
||||
=> dfu 0 mmc 0
|
||||
|
||||
Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC:
|
||||
|
||||
$ sudo dfu-util -D SPL -a spl
|
||||
|
||||
$ sudo dfu-util -D u-boot-dtb.img -a u-boot
|
||||
|
||||
Remove power from the pico board.
|
||||
|
||||
Put pico board into normal boot mode.
|
||||
|
||||
Power up the board and the new updated U-Boot should boot from eMMC.
|
||||
|
||||
Flash the eMMC
|
||||
==============
|
||||
|
||||
@@ -56,4 +110,15 @@ To boot your newly created system:
|
||||
emulator at 115200 bps, 8n1;
|
||||
- power on the board.
|
||||
|
||||
Using Wifi
|
||||
==========
|
||||
|
||||
# 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!
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
Label imx7d-pico-buildroot
|
||||
kernel /boot/zImage
|
||||
devicetree /boot/imx7d-pico-pi.dtb
|
||||
append root=PARTUUID=${uuid} rootwait rw console=${console},${baudrate}
|
||||
@@ -0,0 +1,99 @@
|
||||
#AP6335_NVRAM_V1.5_03112014
|
||||
NVRAMRev=$Rev: 410316 $
|
||||
sromrev=11
|
||||
boardrev=0x1203
|
||||
boardtype=0x06c5
|
||||
boardflags=0x00000c01
|
||||
boardflags2=0x00002000
|
||||
boardflags3=0x101188
|
||||
macaddr=00:90:4c:c5:12:38
|
||||
ccode=0
|
||||
regrev=0
|
||||
antswitch=0
|
||||
pdgain2g=7
|
||||
pdgain5g=7
|
||||
tworangetssi2g=0
|
||||
tworangetssi5g=0
|
||||
femctrl=7
|
||||
pcieingress_war=15
|
||||
vendid=0x14e4
|
||||
devid=0x43ae
|
||||
manfid=0x2d0
|
||||
nocrc=1
|
||||
otpimagesize=502
|
||||
xtalfreq=37400
|
||||
extpagain2g=2
|
||||
pdetrange2g=2
|
||||
extpagain5g=2
|
||||
pdetrange5g=2
|
||||
rxgains2gelnagaina0=0
|
||||
rxgains2gtrisoa0=7
|
||||
rxgains2gtrelnabypa0=0
|
||||
rxgains5gelnagaina0=0
|
||||
rxgains5gtrisoa0=11
|
||||
rxgains5gtrelnabypa0=0
|
||||
rxchain=1
|
||||
txchain=1
|
||||
aa2g=1
|
||||
aa5g=1
|
||||
tssipos5g=0
|
||||
tssipos2g=0
|
||||
pa2ga0=-161,6269,-723
|
||||
pa2gccka0=-116,7568,-852
|
||||
pa5ga0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D
|
||||
pa5gbw40a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D
|
||||
pa5gbw80a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D
|
||||
pdoffset40ma0=0
|
||||
pdoffset80ma0=0
|
||||
pdoffsetcckma0=0
|
||||
maxp2ga0=75
|
||||
maxp5ga0=64,64,72,72
|
||||
cckbw202gpo=0x0000
|
||||
cckbw20ul2gpo=0x0
|
||||
mcsbw202gpo=0x99445533
|
||||
mcsbw402gpo=0x99775533
|
||||
dot11agofdmhrbw202gpo=0x2233
|
||||
ofdmlrbw202gpo=0x0000
|
||||
tssifloor2g=500
|
||||
mcsbw205glpo=0x66333330
|
||||
mcsbw405glpo=0x66665530
|
||||
mcsbw805glpo=0xAA555530
|
||||
mcsbw1605glpo=0x99555530
|
||||
mcsbw205gmpo=0x99BB5530
|
||||
mcsbw405gmpo=0x99BB5530
|
||||
mcsbw805gmpo=0xEE555530
|
||||
mcsbw1605gmpo=0x99555530
|
||||
mcsbw205ghpo=0x99995530
|
||||
mcsbw405ghpo=0x99BB5530
|
||||
mcsbw805ghpo=0xEE555530
|
||||
mcsbw1605ghpo=0x99555530
|
||||
mcslr5glpo=0x0000
|
||||
mcslr5gmpo=0x0000
|
||||
mcslr5ghpo=0x0000
|
||||
sb20in40hrrpo=0x0
|
||||
sb20in80and160hr5glpo=0x0
|
||||
sb40and80hr5glpo=0x0
|
||||
sb20in80and160hr5gmpo=0x0
|
||||
sb40and80hr5gmpo=0x0
|
||||
sb20in80and160hr5ghpo=0x0
|
||||
sb40and80hr5ghpo=0x0
|
||||
sb20in40lrpo=0x0
|
||||
sb20in80and160lr5glpo=0x0
|
||||
sb40and80lr5glpo=0x0
|
||||
sb20in80and160lr5gmpo=0x0
|
||||
sb40and80lr5gmpo=0x0
|
||||
sb20in80and160lr5ghpo=0x0
|
||||
sb40and80lr5ghpo=0x0
|
||||
dot11agduphrpo=0x0
|
||||
dot11agduplrpo=0x0
|
||||
phycal_tempdelta=25
|
||||
cckdigfilttype=2
|
||||
pacalidx2g=65
|
||||
dacrate2g=160
|
||||
swctrlmap_5g=0x00000008,0x00000010,0x00000008,0x000000,0x038
|
||||
swctrlmap_2g=0x00000001,0x00000002,0x00000001,0x040002,0x0ff
|
||||
swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000
|
||||
swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000
|
||||
rssicorrnorm_c0=3,3
|
||||
rssicorrnorm5g_c0=2,3,4,2,3,3,0,1,2,0,1,2
|
||||
muxenab=0x10
|
||||
96
buildroot/board/technexion/imx8mmpico/readme.txt
Normal file
96
buildroot/board/technexion/imx8mmpico/readme.txt
Normal file
@@ -0,0 +1,96 @@
|
||||
*********************************
|
||||
Technexion i.MX8M Mini Pico board
|
||||
*********************************
|
||||
|
||||
This file documents the Buildroot support for the Technexion i.MX8M
|
||||
Mini Pico board. The Pico i.MX8M Mini system-on-module [1] is present
|
||||
in development kits like the Pico Pi i.MX8M Mini [2].
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
First, configure Buildroot for the i.MX8M Mini Pico board:
|
||||
|
||||
make imx8mmpico_defconfig
|
||||
|
||||
Build all components:
|
||||
|
||||
make
|
||||
|
||||
You will find in output/images/ the following files:
|
||||
- bl31.bin
|
||||
- boot.vfat
|
||||
- Image
|
||||
- imx8-boot-sd.bin
|
||||
- imx8mm-pico-pi.dtb
|
||||
- imx8mm-pico-pi-ili9881c.dtb
|
||||
- imx8mm-pico-pi-sn65dsi84-hj070na.dtb
|
||||
- lpddr4_pmu_train_fw.bin
|
||||
- rootfs.ext2
|
||||
- rootfs.ext4
|
||||
- sdcard.img
|
||||
- u-boot.imx
|
||||
|
||||
Flashing sdcard.img on the eMMC
|
||||
===============================
|
||||
|
||||
i.MX8M Mini Pico board does not have a SD card slot. The storage is an
|
||||
eMMC. An easy way to flash the eMMC is to use the u-boot ums
|
||||
command. The boards are sold pre-flashed with such a u-boot. It is
|
||||
assumed here that the board has already a working u-boot on eMMC and
|
||||
jumpers are set to boot on eMMC. See [3].
|
||||
|
||||
Jumper configuration for eMMC boot:
|
||||
J1: jumper on pins 4 and 6.
|
||||
J2: jumper on pins 2 and 4.
|
||||
|
||||
In case the board was flashed with a wrong u-boot, or the eMMC is
|
||||
erased, u-boot can be loaded by USB Serial Download boot mode, using
|
||||
imx-usb-loader. See [3] and [4].
|
||||
|
||||
For flashing:
|
||||
- Plug the micro USB cable from the Debug USB Port, to your computer
|
||||
- Plug the USB Type C to your computer, this will power up the board
|
||||
|
||||
In the U-Boot prompt launch:
|
||||
|
||||
=> ums 0 mmc 1
|
||||
|
||||
This will mount the eMMC content in the host PC as a mass storage device.
|
||||
|
||||
To determine the device associated to the eMMC card have a look in the
|
||||
/proc/partitions file:
|
||||
|
||||
cat /proc/partitions
|
||||
|
||||
If your system automatically mount some device partitions, make sure
|
||||
to unmount them.
|
||||
|
||||
Buildroot prepares a bootable "sdcard.img" image in the output/images/
|
||||
directory, ready to be dumped on the eMMC. Launch the following
|
||||
command as root:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-sd-device>
|
||||
|
||||
*** WARNING! This will destroy all the eMMC content. Use with care! ***
|
||||
|
||||
This operation can take several minutes, depending on the image
|
||||
size. When tested, a 2MB/s transfer rate was observed.
|
||||
|
||||
For details about the medium image layout, see the definition in
|
||||
board/freescale/common/imx/genimage.cfg.template.
|
||||
|
||||
Boot the i.MX8M Mini Pico board
|
||||
===============================
|
||||
|
||||
To boot your newly created system:
|
||||
- put a micro USB cable into the Debug USB Port and connect using a terminal
|
||||
emulator at 115200 bps, 8n1;
|
||||
- power on the board, with USB Type C connector.
|
||||
|
||||
Enjoy!
|
||||
|
||||
[1]. https://www.technexion.com/products/system-on-modules/pico/pico-compute-modules/detail/PICO-IMX8M-MINI
|
||||
[2]. https://www.technexion.com/products/pico-evaluation-kits/detail/PICOPIIMX8MM1GDEV
|
||||
[3]. https://www.technexion.com/support/knowledgebase/boot-configuration-settings-for-pico-baseboards/
|
||||
[4]. https://www.technexion.com/support/knowledgebase/loading-bootable-software-images-onto-the-emmc-of-picosom-on-pico-pi/
|
||||
95
buildroot/board/technexion/imx8mpico/readme.txt
Normal file
95
buildroot/board/technexion/imx8mpico/readme.txt
Normal file
@@ -0,0 +1,95 @@
|
||||
****************************
|
||||
Technexion i.MX8M Pico board
|
||||
****************************
|
||||
|
||||
This file documents the Buildroot support for the Technexion i.MX8M
|
||||
Pico board. The Pico i.MX8M system-on-module [1] is present in
|
||||
development kits like the Pico Pi i.MX8M [2].
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
First, configure Buildroot for the i.MX8M Pico board:
|
||||
|
||||
make imx8mpico_defconfig
|
||||
|
||||
Build all components:
|
||||
|
||||
make
|
||||
|
||||
You will find in output/images/ the following files:
|
||||
- bl31.bin
|
||||
- boot.vfat
|
||||
- Image
|
||||
- imx8-boot-sd.bin
|
||||
- lpddr4_pmu_train_fw.bin
|
||||
- pico-8m-dcss-ili9881c.dtb
|
||||
- pico-8m.dtb
|
||||
- rootfs.ext4
|
||||
- sdcard.img
|
||||
- signed_hdmi_imx8m.bin
|
||||
- u-boot.imx
|
||||
|
||||
Flashing sdcard.img on the eMMC
|
||||
===============================
|
||||
|
||||
i.MX8M Pico board does not have a SD card slot. The storage is an
|
||||
eMMC. An easy way to flash the eMMC is to use the u-boot ums
|
||||
command. The boards are sold pre-flashed with such a u-boot. It is
|
||||
assumed here that the board has already a working u-boot on eMMC and
|
||||
jumpers are set to boot on eMMC. See [3].
|
||||
|
||||
Jumper configuration for eMMC boot:
|
||||
J1: jumper on pins 4 and 6.
|
||||
J2: jumper on pins 2 and 4.
|
||||
|
||||
In case the board was flashed with a wrong u-boot, or the eMMC is
|
||||
erased, u-boot can be loaded by USB Serial Download boot mode, using
|
||||
imx-usb-loader. See [3] and [4].
|
||||
|
||||
For flashing:
|
||||
- Plug the micro USB cable from the Debug USB Port, to your computer
|
||||
- Plug the USB Type C to your computer, this will power up the board
|
||||
|
||||
In the U-Boot prompt launch:
|
||||
|
||||
=> ums 0 mmc 0
|
||||
|
||||
This will mount the eMMC content in the host PC as a mass storage device.
|
||||
|
||||
To determine the device associated to the eMMC card have a look in the
|
||||
/proc/partitions file:
|
||||
|
||||
cat /proc/partitions
|
||||
|
||||
If your system automatically mount some device partitions, make sure
|
||||
to unmount them.
|
||||
|
||||
Buildroot prepares a bootable "sdcard.img" image in the output/images/
|
||||
directory, ready to be dumped on the eMMC. Launch the following
|
||||
command as root:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-sd-device>
|
||||
|
||||
*** WARNING! This will destroy all the eMMC content. Use with care! ***
|
||||
|
||||
This operation can take several minutes, depending on the image
|
||||
size. When tested, a 2MB/s transfer rate was observed.
|
||||
|
||||
For details about the medium image layout, see the definition in
|
||||
board/freescale/common/imx/genimage.cfg.template.
|
||||
|
||||
Boot the i.MX8M Pico board
|
||||
==========================
|
||||
|
||||
To boot your newly created system:
|
||||
- put a micro USB cable into the Debug USB Port and connect using a terminal
|
||||
emulator at 115200 bps, 8n1;
|
||||
- power on the board, with USB Type C connector.
|
||||
|
||||
Enjoy!
|
||||
|
||||
[1]. https://www.technexion.com/products/system-on-modules/pico/pico-compute-modules/detail/PICO-IMX8M
|
||||
[2]. https://www.technexion.com/products/system-on-modules/pico-evaluation-kits/detail/PICO-PI-IMX8M-BASIC
|
||||
[3]. https://www.technexion.com/support/knowledgebase/boot-configuration-settings-for-pico-baseboards/
|
||||
[4]. https://www.technexion.com/support/knowledgebase/loading-bootable-software-images-onto-the-emmc-of-picosom-on-pico-pi/
|
||||
Reference in New Issue
Block a user