mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -2,4 +2,3 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
|
||||
CONFIG_REGULATOR_SY8106A=y
|
||||
CONFIG_DRM_SUN8I_DW_HDMI=y
|
||||
CONFIG_SUN8I_DE2_CCU=y
|
||||
CONFIG_SND_SUN8I_CODEC_ANALOG=y
|
||||
|
||||
4
board/orangepi/orangepi-rk3399/extlinux.conf
Normal file
4
board/orangepi/orangepi-rk3399/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label RK3399_ROCKPRO64 linux
|
||||
kernel /Image
|
||||
devicetree /rk3399-orangepi.dtb
|
||||
append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk1p4 rw rootwait
|
||||
39
board/orangepi/orangepi-rk3399/genimage.cfg
Normal file
39
board/orangepi/orangepi-rk3399/genimage.cfg
Normal file
@@ -0,0 +1,39 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"Image",
|
||||
"rk3399-orangepi.dtb",
|
||||
"extlinux"
|
||||
}
|
||||
}
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
|
||||
hdimage {
|
||||
gpt = true
|
||||
}
|
||||
|
||||
partition loader1 {
|
||||
image = "idbloader.img"
|
||||
offset = 32K
|
||||
}
|
||||
|
||||
partition loader2 {
|
||||
image = "u-boot.itb"
|
||||
offset = 8M
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
offset = 16M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
5
board/orangepi/orangepi-rk3399/post-build.sh
Executable file
5
board/orangepi/orangepi-rk3399/post-build.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
|
||||
56
board/orangepi/orangepi-rk3399/readme.txt
Normal file
56
board/orangepi/orangepi-rk3399/readme.txt
Normal file
@@ -0,0 +1,56 @@
|
||||
Orangepi Rk3399
|
||||
================
|
||||
http://www.orangepi.org/Orange%20Pi%20RK3399/
|
||||
|
||||
Build:
|
||||
======
|
||||
$ make orangepi_rk3399_defconfig
|
||||
$ make
|
||||
|
||||
Files created in output directory
|
||||
=================================
|
||||
|
||||
output/images
|
||||
|
||||
├── bl31.elf
|
||||
├── boot.vfat
|
||||
├── extlinux
|
||||
├── idbloader.img
|
||||
├── Image
|
||||
├── rk3399-orangepi.dtb
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── u-boot.bin
|
||||
└── u-boot.itb
|
||||
|
||||
Creating bootable SD card:
|
||||
==========================
|
||||
|
||||
Simply invoke (as root)
|
||||
|
||||
sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
|
||||
|
||||
Where X is your SD card device.
|
||||
|
||||
Booting:
|
||||
========
|
||||
Orangepi-RK3399 by default boots from emmc. For SD card boot to
|
||||
happen, emmc should be empty. If emmc happens to have any bootable
|
||||
image then erase emmc so that bootrom will look for a proper image in SD.
|
||||
|
||||
emmc can be erased once after booted into linux as shown in below link.
|
||||
|
||||
https://wiki.amarulasolutions.com/bsp/setup/rockchip/rk3399_emmc.html
|
||||
|
||||
Serial console:
|
||||
---------------
|
||||
|
||||
Baudrate for this board is 1500000.
|
||||
|
||||
Login:
|
||||
------
|
||||
Enter 'root' as login user, and the prompt is ready.
|
||||
|
||||
https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/orangepi.html
|
||||
Reference in New Issue
Block a user