This commit is contained in:
TriForceX
2021-03-13 22:13:38 -03:00
parent c77595adbd
commit b3ecc6e32d
7043 changed files with 119377 additions and 73694 deletions

View File

@@ -1,4 +1,4 @@
label RockPro64 linux
kernel /boot/Image
devicetree /boot/rk3399-rockpro64.dtb
append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p1 rootwait
label RK3399_ROCKPRO64 linux
kernel /Image
devicetree /rk3399-rockpro64.dtb
append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p4 rw rootwait

View File

@@ -1,18 +1,35 @@
image boot.vfat {
vfat {
files = {
"Image",
"rk3399-rockpro64.dtb",
"extlinux"
}
}
size = 64M
}
image sdcard.img {
hdimage {
gpt = true
}
partition u-boot-tpl-spl-dtb {
in-partition-table = "no"
image = "u-boot-tpl-spl-dtb.img"
partition loader1 {
image = "idbloader.img"
offset = 32K
}
partition u-boot-dtb {
in-partition-table = "no"
partition loader2 {
image = "u-boot.itb"
offset = 8M
size = 30M
}
partition boot {
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
offset = 16M
}
partition rootfs {

View File

@@ -1,9 +1,5 @@
#!/bin/sh
MKIMAGE=$HOST_DIR/bin/mkimage
BOARD_DIR="$(dirname $0)"
$MKIMAGE -n rk3399 -T rksd -d $BINARIES_DIR/u-boot-tpl-dtb.bin $BINARIES_DIR/u-boot-tpl-dtb.img
cat $BINARIES_DIR/u-boot-tpl-dtb.img $BINARIES_DIR/u-boot-spl-dtb.bin > $BINARIES_DIR/u-boot-tpl-spl-dtb.img
install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf

View File

@@ -1,19 +1,10 @@
Intro
=====
Pine64 RockPro64 is a RK3399 SoC based ARM64 board.
Wiki: https://wiki.pine64.org/index.php/ROCKPro64_Main_Page
Build
=====
Run Pine64 RockPro64 configuration
$ make pine64_rockpro64_defconfig
To build, run make comamnd.
PINE64 ROCKPro64
================
https://www.pine64.org/rockpro64/
Build:
======
$ make rockpro64_defconfig
$ make
Files created in output directory
@@ -21,8 +12,10 @@ Files created in output directory
output/images
├── bl31.bin
├── bl31.elf
├── boot.vfat
├── extlinux
├── idbloader.img
├── Image
├── rk3399-rockpro64.dtb
├── rootfs.ext2
@@ -30,22 +23,38 @@ output/images
├── rootfs.tar
├── sdcard.img
├── u-boot.bin
── u-boot.itb
├── u-boot-spl-dtb.bin
├── u-boot-tpl-dtb.bin
├── u-boot-tpl-dtb.img
└── u-boot-tpl-spl-dtb.img
── u-boot.itb
Creating bootable SD card:
=========================
==========================
Simply invoke (as root)
# dd if=output/images/sdcard.img of=/dev/sdX && sync
sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
Where X is your SD card device
Where X is your SD card device.
Serial console
--------------
Booting:
========
RockPro64 has a 40-pin PI-2 GPIO Bus.
Baudrate for this board is 1500000
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