Initial Commit
- initial default booting image
This commit is contained in:
6
board/pine64/pine64/boot.cmd
Normal file
6
board/pine64/pine64/boot.cmd
Normal file
@@ -0,0 +1,6 @@
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
||||
|
||||
fatload mmc 0 $kernel_addr_r Image
|
||||
fatload mmc 0 $fdt_addr_r sun50i-a64-pine64.dtb
|
||||
|
||||
booti $kernel_addr_r - $fdt_addr_r
|
||||
34
board/pine64/pine64/genimage.cfg
Normal file
34
board/pine64/pine64/genimage.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"Image",
|
||||
"sun50i-a64-pine64.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8K
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
offset = 1M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 3ab7e90d6fc3364815ad7770d7aa7af9cfd68edde43da7123f5f38f80e034c44 arm-trusted-firmware-lts-v2.12.1-git4.tar.gz
|
||||
sha256 b2c79635797bafcde84c6edadadde290b9d5e05deb3ea16a847210fd2ca83669 docs/license.rst
|
||||
7
board/pine64/pine64/patches/linux/linux.hash
Normal file
7
board/pine64/pine64/patches/linux/linux.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 067dadd445578284ea6158f312f7970d8940fed3e094dbe49cff66d188d3bda4 linux-6.18.32.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 COPYING
|
||||
sha256 8780e78a1a737e127f25a65f6d95269bffd36158dc261114de7859b490bfc5aa LICENSES/preferred/GPL-2.0
|
||||
sha256 8e378ab93586eb55135d3bc119cce787f7324f48394777d00c34fa3d0be3303f LICENSES/exceptions/Linux-syscall-note
|
||||
3
board/pine64/pine64/patches/uboot/uboot.hash
Normal file
3
board/pine64/pine64/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 ac7c04b8b7004923b00a4e5d6699c5df4d21233bac9fda690d8cfbc209fff2fd u-boot-2026.04.tar.bz2
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 Licenses/gpl-2.0.txt
|
||||
38
board/pine64/pine64/readme.txt
Normal file
38
board/pine64/pine64/readme.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting with the
|
||||
buildroot environment for the Pine64. With the current configuration
|
||||
it will bring-up the board, and allow access through the serial console.
|
||||
|
||||
Pine64 link:
|
||||
https://www.pine64.org/?page_id=1194
|
||||
|
||||
Wiki link:
|
||||
https://openedev.amarulasolutions.com/display/ODWIKI/Pine64
|
||||
|
||||
This configuration uses U-Boot mainline and kernel mainline.
|
||||
|
||||
How to build
|
||||
============
|
||||
|
||||
$ make pine64_defconfig
|
||||
|
||||
$ make
|
||||
|
||||
Note: you will need access to the internet to download the required
|
||||
sources.
|
||||
|
||||
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
|
||||
$ sudo sync
|
||||
|
||||
Insert the micro SDcard in your Pine64 and power it up. The console
|
||||
is on the serial line, 115200 8N1.
|
||||
4
board/pine64/pinecube/extlinux.conf
Normal file
4
board/pine64/pinecube/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label buildroot
|
||||
kernel /zImage
|
||||
devicetree /sun8i-s3-pinecube.dtb
|
||||
append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait rw
|
||||
34
board/pine64/pinecube/genimage.cfg
Normal file
34
board/pine64/pinecube/genimage.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun8i-s3-pinecube.dtb",
|
||||
"extlinux"
|
||||
}
|
||||
}
|
||||
|
||||
size = 8M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8K
|
||||
size = 504K # 512KB - 8KB
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
2
board/pine64/pinecube/patches/linux/linux.hash
Normal file
2
board/pine64/pinecube/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 6f16ff302599f6fe34742890322cf0775703105fbd8767449682fca6af0fb782 linux-6.18.33.tar.xz
|
||||
2
board/pine64/pinecube/patches/uboot/uboot.hash
Normal file
2
board/pine64/pinecube/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 ac7c04b8b7004923b00a4e5d6699c5df4d21233bac9fda690d8cfbc209fff2fd u-boot-2026.04.tar.bz2
|
||||
5
board/pine64/pinecube/post-build.sh
Executable file
5
board/pine64/pinecube/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
|
||||
31
board/pine64/pinecube/readme.txt
Normal file
31
board/pine64/pinecube/readme.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This directory contains a Buildroot configuration for building a
|
||||
Pine64 PineCube.
|
||||
|
||||
Board homepage: https://www.pine64.org/cube/
|
||||
Board wiki: https://wiki.pine64.org/wiki/PineCube
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
$ make pine64_pinecube_defconfig
|
||||
$ make
|
||||
|
||||
Note: you will need access to the internet to download the required
|
||||
sources.
|
||||
|
||||
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
|
||||
$ sudo sync
|
||||
|
||||
Insert the micro SDcard in your PineCube and power it up. The console
|
||||
is on the serial port 2, 115200 8N1 (check Wiki for board pinout).
|
||||
43
board/pine64/rockpro64-ebbr/genimage.cfg
Normal file
43
board/pine64/rockpro64-ebbr/genimage.cfg
Normal file
@@ -0,0 +1,43 @@
|
||||
image efi-part.vfat {
|
||||
vfat {
|
||||
file EFI {
|
||||
image = "efi-part/EFI"
|
||||
}
|
||||
|
||||
file Image {
|
||||
image = "Image"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image disk.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition loader1 {
|
||||
image = "idbloader.img"
|
||||
partition-type-uuid = 8DA63339-0007-60C0-C436-083AC8230908
|
||||
offset = 32K
|
||||
}
|
||||
|
||||
partition loader2 {
|
||||
image = "u-boot.itb"
|
||||
partition-type-uuid = 8DA63339-0007-60C0-C436-083AC8230908
|
||||
offset = 8M
|
||||
}
|
||||
|
||||
partition boot {
|
||||
image = "efi-part.vfat"
|
||||
partition-type-uuid = esp
|
||||
offset = 16M
|
||||
bootable = true
|
||||
}
|
||||
|
||||
partition root {
|
||||
partition-type-uuid = root-arm64
|
||||
image = "rootfs.ext2"
|
||||
}
|
||||
}
|
||||
6
board/pine64/rockpro64-ebbr/grub.cfg
Normal file
6
board/pine64/rockpro64-ebbr/grub.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
set default="0"
|
||||
set timeout="5"
|
||||
|
||||
menuentry "Buildroot" {
|
||||
linux /Image root=PARTLABEL=root rootwait
|
||||
}
|
||||
6
board/pine64/rockpro64-ebbr/linux.fragment
Normal file
6
board/pine64/rockpro64-ebbr/linux.fragment
Normal file
@@ -0,0 +1,6 @@
|
||||
CONFIG_BLK_DEV_NVME=y
|
||||
CONFIG_DWMAC_ROCKCHIP=y
|
||||
CONFIG_PCIE_ROCKCHIP_HOST=y
|
||||
CONFIG_PHY_ROCKCHIP_PCIE=y
|
||||
CONFIG_STMMAC_ETH=y
|
||||
CONFIG_STMMAC_PLATFORM=y
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 6fd749e53c455aec3418288630544e7552bbffab4442ddc48b20ebef9aee87ff arm-trusted-firmware-v2.14-git4.tar.gz
|
||||
2
board/pine64/rockpro64-ebbr/patches/linux/linux.hash
Normal file
2
board/pine64/rockpro64-ebbr/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 f850139ca5f79c1bf6bb8b32f92e212aadca97bdaef8a83a7cf4ac4d6a525fab linux-6.18.4.tar.xz
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 464b3bf5bc4a61830357dbf81a0e5b89414d3bca1c2a752570cb0e40d2f1e637 optee-client-4.8.0.tar.gz
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 5222cd553f5edb69ae4ec7cb99b2bfec2c47a47c0be1865b49744701918e8b4d optee-os-4.8.0.tar.gz
|
||||
2
board/pine64/rockpro64-ebbr/patches/uboot/uboot.hash
Normal file
2
board/pine64/rockpro64-ebbr/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 b60d5865cefdbc75da8da4156c56c458e00de75a49b80c1a2e58a96e30ad0d54 u-boot-2026.01.tar.bz2
|
||||
6
board/pine64/rockpro64-ebbr/post-build.sh
Executable file
6
board/pine64/rockpro64-ebbr/post-build.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Copy the firmware for the SPI NOR flash into the filesystem.
|
||||
install -v -D -m 0644 "$BINARIES_DIR/u-boot-rockchip-spi.bin" \
|
||||
"$TARGET_DIR/lib/firmware/u-boot-rockchip-spi.bin"
|
||||
7
board/pine64/rockpro64-ebbr/post-image.sh
Executable file
7
board/pine64/rockpro64-ebbr/post-image.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
BOARD_DIR=$(dirname "$0")
|
||||
|
||||
# Override the default GRUB configuration file with our own.
|
||||
cp -vf "${BOARD_DIR}/grub.cfg" "${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg"
|
||||
116
board/pine64/rockpro64-ebbr/readme.txt
Normal file
116
board/pine64/rockpro64-ebbr/readme.txt
Normal file
@@ -0,0 +1,116 @@
|
||||
Introduction
|
||||
============
|
||||
|
||||
The rockpro64_ebbr_defconfig is meant to illustrate some aspects of the Arm EBBR
|
||||
specification[1] and the Arm SystemReady Devicetree band[2].
|
||||
It allows building an AArch64 disk image with a U-Boot based firmware
|
||||
implementing the subset of UEFI defined by EBBR, as well as a Linux OS booting
|
||||
with UEFI, to run on the PINE64 ROCKPro64. [3]
|
||||
|
||||
Building
|
||||
========
|
||||
|
||||
$ make rockpro64_ebbr_defconfig
|
||||
$ make
|
||||
|
||||
Generated files under output/images:
|
||||
|
||||
* disk.img: An eMMC or SD card disk image comprising TF-A, OP-TEE, the U-Boot
|
||||
bootloader, the GRUB bootloader, the Linux kernel and the root filesystem.
|
||||
|
||||
* u-boot-rockchip-spi.bin: A firmware image suitable for flashing in SPI NOR
|
||||
comprising TF-A, OP-TEE and the U-Boot bootloader (also included in the
|
||||
root filesystem).
|
||||
|
||||
Running
|
||||
=======
|
||||
|
||||
Create a bootable SD card:
|
||||
|
||||
# dd if=output/images/disk.img of=<sdcard device> ; sync
|
||||
|
||||
Connect to the UART console; the pin layout for serial console on PI-2 GPIO Bus
|
||||
is as follows:
|
||||
|
||||
Pin Signal
|
||||
--- ------
|
||||
6 GND
|
||||
8 Tx out of RK3399
|
||||
10 Rx into RK3399
|
||||
|
||||
Voltage is 3V3, baudrate is 1500000.
|
||||
|
||||
If necessary, connect a jumper between pins 23 and 25 to force SD card boot. [4]
|
||||
|
||||
Flashing the firmware to SPI NOR
|
||||
--------------------------------
|
||||
|
||||
It is possible to flash the firmware into the embedded SPI NOR, which makes the
|
||||
SD card fully available to the OS and also allows to boot from USB2 or NVMe.
|
||||
|
||||
The SPI image and the mtd tools are included in the root filesystem; flash the
|
||||
firmware from Linux with the following command:
|
||||
|
||||
# flashcp -v /lib/firmware/u-boot-rockchip-spi.bin /dev/mtd0
|
||||
|
||||
With the firmware in SPI NOR, it is possible to install or run another OS
|
||||
supporting the EBBR specification.
|
||||
|
||||
The image generated by the aarch64_efi_defconfig, the images from Linux
|
||||
distributions such as Debian, Fedora, openSUSE or Ubuntu, and the Arm ACS
|
||||
Devicetree images[5] are examples of compatible OS images.
|
||||
|
||||
Firmware details
|
||||
================
|
||||
|
||||
Noteworthy firmware features:
|
||||
|
||||
- TF-A, OP-TEE & U-Boot
|
||||
- UEFI, with EFI variables stored on disk in the ESP
|
||||
- Support for ethernet, USB2 and NVMe
|
||||
- RTC emulation
|
||||
- U-Boot environment in SPI NOR
|
||||
|
||||
Architecture diagram:
|
||||
|
||||
Non-Secure : Secure
|
||||
:
|
||||
+---------------------+ :
|
||||
EL0 | Busybox | :
|
||||
+---------------------+ : +--------+
|
||||
EL1 | U-Boot, GRUB, Linux | : | OP-TEE | S-EL1
|
||||
+---------------------+ : +--------+
|
||||
.............................:
|
||||
+----------------------------------+
|
||||
| ROM, U-Boot TPL, SPL, TF-A | EL3
|
||||
+----------------------------------+
|
||||
|
||||
Boot flow:
|
||||
|
||||
ROM -+-> TPL
|
||||
`-> SPL -> TF-A -+-> OP-TEE
|
||||
`-> U-Boot -> GRUB -> Linux -> Busybox
|
||||
|
||||
The ROM loads U-Boot TPL and SPL. [7][8]
|
||||
U-Boot TPL does the DRAM setup, goes back to the ROM, which calls SPL.
|
||||
U-Boot SPL loads the fit image with TF-A, OP-TEE, U-Boot and the Devicetree.
|
||||
OP-TEE amends the Devicetree, calls back TF-A to go to normal world.
|
||||
U-Boot loads GRUB with UEFI, boots Linux.
|
||||
|
||||
Miscellaneous
|
||||
=============
|
||||
|
||||
This configuration is inspired by the rockpro64_defconfig, the other
|
||||
configurations related with EBBR and the Arm SystemReady Devicetree Band
|
||||
Integration and Testing Guide[6].
|
||||
|
||||
Firmware update, eMMC and battery-backed RTC are currently not supported.
|
||||
|
||||
[1] https://github.com/ARM-software/ebbr
|
||||
[2] https://www.arm.com/architecture/system-architectures/systemready-compliance-program/systemready-devicetree-band
|
||||
[3] https://www.pine64.org/rockpro64/
|
||||
[4] https://pine64.org/documentation/ROCKPro64/Getting_started/
|
||||
[5] https://github.com/ARM-software/arm-systemready/tree/main/SystemReady-devicetree-band/prebuilt_images
|
||||
[6] https://developer.arm.com/documentation/DUI1101/latest/
|
||||
[7] https://wiki.pine64.org/wiki/RK3399_boot_sequence
|
||||
[8] https://opensource.rock-chips.com/wiki_Boot_option
|
||||
19
board/pine64/rockpro64-ebbr/u-boot.fragment
Normal file
19
board/pine64/rockpro64-ebbr/u-boot.fragment
Normal file
@@ -0,0 +1,19 @@
|
||||
# CONFIG_SPL_ATF_NO_PLATFORM_PARAM is not set
|
||||
CONFIG_BOOTM_OPTEE=y
|
||||
CONFIG_CMD_BOOTEFI_HELLO=y
|
||||
CONFIG_CMD_BOOTEFI_SELFTEST=y
|
||||
CONFIG_CMD_DATE=y
|
||||
CONFIG_CMD_EFIDEBUG=y
|
||||
CONFIG_CMD_NVEDIT_EFI=y
|
||||
CONFIG_CMD_RNG=y
|
||||
CONFIG_CMD_RTC=y
|
||||
CONFIG_CMD_SETEXPR=y
|
||||
CONFIG_DM_RTC=y
|
||||
CONFIG_EFI_HTTP_BOOT=y
|
||||
CONFIG_EFI_RT_VOLATILE_STORE=y
|
||||
CONFIG_EFI_SET_TIME=y
|
||||
CONFIG_OPTEE=y
|
||||
CONFIG_OPTEE_LIB=y
|
||||
CONFIG_OPTEE_TZDRAM_SIZE=0x02000000
|
||||
CONFIG_RTC_EMULATION=y
|
||||
CONFIG_TEE=y
|
||||
4
board/pine64/rockpro64/extlinux.conf
Normal file
4
board/pine64/rockpro64/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label RK3399_ROCKPRO64 linux
|
||||
kernel /Image
|
||||
devicetree /rk3399-rockpro64.dtb
|
||||
append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk1p4 rw rootwait
|
||||
39
board/pine64/rockpro64/genimage.cfg
Normal file
39
board/pine64/rockpro64/genimage.cfg
Normal file
@@ -0,0 +1,39 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"Image",
|
||||
"rk3399-rockpro64.dtb",
|
||||
"extlinux"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition loader1 {
|
||||
image = "idbloader.img"
|
||||
offset = 32K
|
||||
}
|
||||
|
||||
partition loader2 {
|
||||
image = "u-boot.itb"
|
||||
offset = 8M
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type-uuid = F
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
offset = 16M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
3
board/pine64/rockpro64/linux.fragment
Normal file
3
board/pine64/rockpro64/linux.fragment
Normal file
@@ -0,0 +1,3 @@
|
||||
CONFIG_STMMAC_ETH=y
|
||||
CONFIG_STMMAC_PLATFORM=y
|
||||
CONFIG_DWMAC_ROCKCHIP=y
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 6fd749e53c455aec3418288630544e7552bbffab4442ddc48b20ebef9aee87ff arm-trusted-firmware-v2.14-git4.tar.gz
|
||||
2
board/pine64/rockpro64/patches/linux/linux.hash
Normal file
2
board/pine64/rockpro64/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 f850139ca5f79c1bf6bb8b32f92e212aadca97bdaef8a83a7cf4ac4d6a525fab linux-6.18.4.tar.xz
|
||||
2
board/pine64/rockpro64/patches/uboot/uboot.hash
Normal file
2
board/pine64/rockpro64/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 b60d5865cefdbc75da8da4156c56c458e00de75a49b80c1a2e58a96e30ad0d54 u-boot-2026.01.tar.bz2
|
||||
5
board/pine64/rockpro64/post-build.sh
Executable file
5
board/pine64/rockpro64/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"
|
||||
59
board/pine64/rockpro64/readme.txt
Normal file
59
board/pine64/rockpro64/readme.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
PINE64 ROCKPro64
|
||||
================
|
||||
https://www.pine64.org/rockpro64/
|
||||
|
||||
Build:
|
||||
======
|
||||
$ make rockpro64_defconfig
|
||||
$ make
|
||||
|
||||
Files created in output directory
|
||||
=================================
|
||||
|
||||
output/images
|
||||
|
||||
├── bl31.elf
|
||||
├── boot.vfat
|
||||
├── extlinux
|
||||
├── idbloader.img
|
||||
├── Image
|
||||
├── rk3399-rockpro64.dtb
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── 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:
|
||||
========
|
||||
RockPro64 has a 40-pin PI-2 GPIO Bus.
|
||||
|
||||
Connect a jumper between pin 23 and pin 25 for SD card boot.
|
||||
|
||||
Serial console:
|
||||
---------------
|
||||
The pin layout for serial console on PI-2 GPIO Bus is as follows:
|
||||
|
||||
pin 6: gnd
|
||||
pin 8: tx
|
||||
pin 10: rx
|
||||
|
||||
Initially connect pin 6 and pin 8(transmit). Apply power to RockPro64, once the
|
||||
power is on then connect pin 10(receive).
|
||||
|
||||
Baudrate for this board is 1500000.
|
||||
|
||||
Login:
|
||||
------
|
||||
Enter 'root' as login user, and the prompt is ready.
|
||||
|
||||
https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/rockpro64.html
|
||||
24
board/pine64/star64/genimage.cfg
Normal file
24
board/pine64/star64/genimage.cfg
Normal file
@@ -0,0 +1,24 @@
|
||||
# SD card image for the Pine64 Star64 board
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition spl {
|
||||
image = "u-boot-spl.bin.normal.out"
|
||||
partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
|
||||
offset = 2M
|
||||
}
|
||||
|
||||
partition uboot {
|
||||
image = "u-boot.itb"
|
||||
partition-type-uuid = xbootldr
|
||||
offset = 4M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
image = "rootfs.ext4"
|
||||
bootable = true
|
||||
}
|
||||
}
|
||||
4
board/pine64/star64/overlay/boot/extlinux/extlinux.conf
Normal file
4
board/pine64/star64/overlay/boot/extlinux/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label star64
|
||||
kernel /boot/Image
|
||||
devicetree /boot/jh7110-pine64-star64.dtb
|
||||
append root=/dev/mmcblk1p3 rootwait earlycon=sbi
|
||||
2
board/pine64/star64/patches/linux/linux.hash
Normal file
2
board/pine64/star64/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 165ca1c37c4607b90e731996b7c1e3311285167d13deeedf08f3f1f0b9d2541a linux-6.12.57.tar.xz
|
||||
2
board/pine64/star64/patches/uboot/uboot.hash
Normal file
2
board/pine64/star64/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 b4f032848e56cc8f213ad59f9132c084dbbb632bc29176d024e58220e0efdf4a u-boot-2025.10.tar.bz2
|
||||
32
board/pine64/star64/readme.txt
Normal file
32
board/pine64/star64/readme.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
Pine64 Star64
|
||||
=============
|
||||
|
||||
The Star64 is a low-cost RISC-V 64-bit based platform, powered by a
|
||||
Starfive JH7110 processor.
|
||||
|
||||
https://wiki.pine64.org/wiki/STAR64
|
||||
|
||||
How to build
|
||||
============
|
||||
|
||||
$ make pine64_star64_defconfig
|
||||
$ 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 conv=fdatasync
|
||||
|
||||
Preparing the board
|
||||
===================
|
||||
|
||||
Connect a TTL UART cable to pin 6 (GND), 8 (TX) and 10 (RX).
|
||||
|
||||
Insert your SD card.
|
||||
|
||||
Power-up the board using a 12V power supply.
|
||||
Reference in New Issue
Block a user