Bump buildroot to version 2017-02
TG-3 #closed
This commit is contained in:
8
bsp/buildroot/board/orangepi/orangepi-one/boot.cmd
Normal file
8
bsp/buildroot/board/orangepi/orangepi-one/boot.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
setenv fdt_high ffffffff
|
||||
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
||||
|
||||
fatload mmc 0 $kernel_addr_r zImage
|
||||
fatload mmc 0 $fdt_addr_r sun8i-h3-orangepi-one.dtb
|
||||
|
||||
bootz $kernel_addr_r - $fdt_addr_r
|
||||
36
bsp/buildroot/board/orangepi/orangepi-one/genimage.cfg
Normal file
36
bsp/buildroot/board/orangepi/orangepi-one/genimage.cfg
Normal file
@@ -0,0 +1,36 @@
|
||||
# Minimal SD card image for the OrangePi PC
|
||||
#
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun8i-h3-orangepi-one.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
size = 10M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8192
|
||||
size = 1040384 # 1MB - 8192
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
1
bsp/buildroot/board/orangepi/orangepi-one/post-build.sh
Symbolic link
1
bsp/buildroot/board/orangepi/orangepi-one/post-build.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../post-build.sh
|
||||
1
bsp/buildroot/board/orangepi/orangepi-one/post-image.sh
Symbolic link
1
bsp/buildroot/board/orangepi/orangepi-one/post-image.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../post-image.sh
|
||||
29
bsp/buildroot/board/orangepi/orangepi-one/readme.txt
Normal file
29
bsp/buildroot/board/orangepi/orangepi-one/readme.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
OrangePi One
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting with the
|
||||
buildroot environment for the OrangePi One. With the current configuration
|
||||
it will bring-up the board, and allow access through the serial console.
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make orangepi_one_defconfig
|
||||
|
||||
Compile everything and build the SD card image:
|
||||
|
||||
$ make
|
||||
|
||||
How to write the SD card
|
||||
========================
|
||||
|
||||
Once the build process is finished you will have an image called "sdcard.img"
|
||||
in the output/images/ directory.
|
||||
|
||||
Copy the bootable "sdcard.img" onto an SD card with "dd":
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
||||
1
bsp/buildroot/board/orangepi/orangepi-pc/post-build.sh
Symbolic link
1
bsp/buildroot/board/orangepi/orangepi-pc/post-build.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../post-build.sh
|
||||
1
bsp/buildroot/board/orangepi/orangepi-pc/post-image.sh
Symbolic link
1
bsp/buildroot/board/orangepi/orangepi-pc/post-image.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../post-image.sh
|
||||
@@ -12,7 +12,7 @@ How to build it
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make orangepipc_defconfig
|
||||
$ make orangepi_pc_defconfig
|
||||
|
||||
Compile everything and build the SD card image:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# post-build.sh for OrangePi PC taken from CubieBoard's post-build.sh
|
||||
# post-build.sh for OrangePi taken from CubieBoard's post-build.sh
|
||||
# 2013, Carlo Caione <carlo.caione@gmail.com>
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
@@ -6,17 +6,9 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
# As we now use the Linux v4.5-RC1 kernel no orangepi-pc dtb exists yet.
|
||||
# However the orangepi-plus dtb has not much content, only mmc0 and uart
|
||||
# which are equal to the pc version of the board, so we use it here.
|
||||
mv ${BINARIES_DIR}/sun8i-h3-orangepi-plus.dtb ${BINARIES_DIR}/sun8i-h3-orangepi-pc.dtb
|
||||
|
||||
|
||||
genimage \
|
||||
--rootpath "${TARGET_DIR}" \
|
||||
--tmppath "${GENIMAGE_TMP}" \
|
||||
--inputpath "${BINARIES_DIR}" \
|
||||
--outputpath "${BINARIES_DIR}" \
|
||||
--config "${GENIMAGE_CFG}"
|
||||
|
||||
exit $?
|
||||
Reference in New Issue
Block a user