Initial Commit
- initial default booting image
This commit is contained in:
4
board/kontron/bl-imx8mm/extlinux.conf
Normal file
4
board/kontron/bl-imx8mm/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label buildroot
|
||||
kernel /boot/Image
|
||||
devicetree /boot/freescale/imx8mm-kontron-n801x-s.dtb
|
||||
append root=PARTUUID=%PARTUUID% rootwait rw
|
||||
18
board/kontron/bl-imx8mm/genimage.cfg
Normal file
18
board/kontron/bl-imx8mm/genimage.cfg
Normal file
@@ -0,0 +1,18 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
gpt-location = 16K
|
||||
}
|
||||
|
||||
partition imx-boot {
|
||||
in-partition-table = "no"
|
||||
image = "flash.bin"
|
||||
offset = 33K
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
image = "rootfs.ext4"
|
||||
offset = 8M
|
||||
partition-uuid = %PARTUUID%
|
||||
}
|
||||
}
|
||||
7
board/kontron/bl-imx8mm/post-build.sh
Executable file
7
board/kontron/bl-imx8mm/post-build.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
PARTUUID="$($HOST_DIR/bin/uuidgen)"
|
||||
|
||||
install -d "$TARGET_DIR/boot/extlinux/"
|
||||
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf"
|
||||
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg" > "$BINARIES_DIR/genimage.cfg"
|
||||
85
board/kontron/bl-imx8mm/readme.txt
Normal file
85
board/kontron/bl-imx8mm/readme.txt
Normal file
@@ -0,0 +1,85 @@
|
||||
Kontron BL i.MX8M Mini
|
||||
======================
|
||||
|
||||
https://www.kontron.com/produkte/baseboard-bl-i.mx8m-mini/p158549
|
||||
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure buildroot:
|
||||
|
||||
$ make kontron_bl_imx8mm_defconfig
|
||||
|
||||
Change settings to fit your needs (optional):
|
||||
|
||||
$ make menuconfig
|
||||
|
||||
Compile everything and build the rootfs image:
|
||||
|
||||
$ make
|
||||
|
||||
|
||||
Result of the build
|
||||
===================
|
||||
|
||||
After building, the output/images directory contains:
|
||||
|
||||
output/images/
|
||||
├── bl31.bin
|
||||
├── boot.scr
|
||||
├── ddr_fw.bin
|
||||
├── flash.bin
|
||||
├── Image
|
||||
├── imx8mm-kontron-n801x-s.dtb
|
||||
├── lpddr4_pmu_train_1d_dmem_201904.bin
|
||||
├── lpddr4_pmu_train_1d_dmem_202006.bin
|
||||
├── lpddr4_pmu_train_1d_dmem.bin
|
||||
├── lpddr4_pmu_train_1d_dmem_pad.bin
|
||||
├── lpddr4_pmu_train_1d_fw.bin
|
||||
├── lpddr4_pmu_train_1d_imem_201904.bin
|
||||
├── lpddr4_pmu_train_1d_imem_202006.bin
|
||||
├── lpddr4_pmu_train_1d_imem.bin
|
||||
├── lpddr4_pmu_train_1d_imem_pad.bin
|
||||
├── lpddr4_pmu_train_2d_dmem_201904.bin
|
||||
├── lpddr4_pmu_train_2d_dmem_202006.bin
|
||||
├── lpddr4_pmu_train_2d_dmem.bin
|
||||
├── lpddr4_pmu_train_2d_dmem_pad.bin
|
||||
├── lpddr4_pmu_train_2d_fw.bin
|
||||
├── lpddr4_pmu_train_2d_imem_201904.bin
|
||||
├── lpddr4_pmu_train_2d_imem_202006.bin
|
||||
├── lpddr4_pmu_train_2d_imem.bin
|
||||
├── lpddr4_pmu_train_2d_imem_pad.bin
|
||||
├── lpddr4_pmu_train_fw.bin
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── u-boot.bin
|
||||
└── u-boot-spl.bin
|
||||
|
||||
|
||||
Flashing the SD card image
|
||||
==========================
|
||||
|
||||
To install the image on a SDCard simply copy sdcard.img to the storage (e.g. SD, eMMC)
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=<your-sd-device>
|
||||
|
||||
|
||||
Preparing the board
|
||||
===================
|
||||
|
||||
* Connect a serial line to the board
|
||||
* Insert the SD card
|
||||
* Power-up the board
|
||||
|
||||
|
||||
Booting the board
|
||||
=================
|
||||
|
||||
By default the bootloader will search for the first valid image, starting
|
||||
with the internal eMMC. To make sure the bootloader loads bootscript from
|
||||
the correct location (SD card) set the boot_targets environment variable:
|
||||
|
||||
$ setenv boot_targets mmc1
|
||||
Reference in New Issue
Block a user