mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
7
board/solidrun/mx6cubox/boot.scr.txt
Normal file
7
board/solidrun/mx6cubox/boot.scr.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
setenv finduuid "part uuid mmc 0:1 uuid"
|
||||
run finduuid
|
||||
run findfdt
|
||||
setenv bootargs "console=ttymxc0,115200 root=PARTUUID=${uuid} rootwait rootfstype=ext4"
|
||||
load mmc 0:1 ${fdt_addr} boot/${fdtfile}
|
||||
load mmc 0:1 ${loadaddr} boot/zImage
|
||||
bootz ${loadaddr} - ${fdt_addr}
|
||||
29
board/solidrun/mx6cubox/genimage.cfg
Normal file
29
board/solidrun/mx6cubox/genimage.cfg
Normal file
@@ -0,0 +1,29 @@
|
||||
# Minimal SD card image for the MX6 Cubox/Hummingboard
|
||||
#
|
||||
# U-Boot SPL and u-boot.img are flashed in the first 1MB raw partition.
|
||||
# A single root filesystem partition is used (Ext4 in this case).
|
||||
#
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition spl {
|
||||
in-partition-table = "no"
|
||||
image = "SPL"
|
||||
offset = 1K
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot.img"
|
||||
offset = 69K
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
offset = 1M
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
8
board/solidrun/mx6cubox/post-build.sh
Executable file
8
board/solidrun/mx6cubox/post-build.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none \
|
||||
-n "boot script" -d $BOARD_DIR/boot.scr.txt $BOARD_DIR/boot.scr
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr
|
||||
14
board/solidrun/mx6cubox/post-image.sh
Executable file
14
board/solidrun/mx6cubox/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}"
|
||||
18
board/solidrun/mx6cubox/readme.txt
Normal file
18
board/solidrun/mx6cubox/readme.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
Solidrun's MX6 Cubox/Hummingboard
|
||||
|
||||
https://www.solid-run.com/freescale-imx6-family/hummingboard/
|
||||
|
||||
https://www.solid-run.com/freescale-imx6-family/cubox-i/
|
||||
|
||||
To build a minimal support for these boards:
|
||||
|
||||
$ make mx6cubox_defconfig
|
||||
$ make
|
||||
|
||||
Buildroot prepares a bootable "sdcard.img" image in the output/images/
|
||||
directory, ready to be dumped on an SD card:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
|
||||
|
||||
For details about the medium image layout, see the definition in
|
||||
board/solidrun/mx6cubox/genimage.cfg.
|
||||
Reference in New Issue
Block a user