Skip to contentSkip to conversation

configs/roc_rk3399_pc: Bring back and update the configuration for the rockchip rk3399 built by firefly.

PATCH New Roberto Medina 1 participant 2 messages Aug 12, 2023

lore
Share & tools
lore
#0 lore raw

v4 cover configs/roc_rk3399_pc: Bring back and update the configuration for the rockchip rk3399 built by firefly.

v4 -> v3:
* Fix DEVELOPERS file with path to board/firefly/roc-rk3399-pc/.
* Clean-up the commit message.

v3 -> v2:
* Several fixes after reviews from Thomas Petazzoni.
* Add myself to the DEVELOPERS file.
* Remove the binutils version from the defconfig file.
* Set custom version of Linux to 6.1.45.
* Ext2 size needs to be increased a little to produce the final image.
* Fix the tag for TFA to v2.9 instead of v2.9.0.
* Set custom version of U-Boot to 2022.04.
* Remove U-Boot host tools.

v2 -> v1:
* Use a more recent version of U-boot.
* Built-tested by Kilian Zinnecker.

Roberto Medina (1):
configs/roc_rk3399_pc: Bring back and update the configuration for the
rockchip rk3399 built by firefly.

 DEVELOPERS                                |  4 +++
 board/firefly/roc-rk3399-pc/extlinux.conf |  4 +++
 board/firefly/roc-rk3399-pc/genimage.cfg  | 22 ++++++++++++
 board/firefly/roc-rk3399-pc/post-build.sh |  5 +++
 board/firefly/roc-rk3399-pc/readme.txt    | 40 +++++++++++++++++++++
 configs/roc_pc_rk3399_defconfig           | 42 +++++++++++++++++++++++
 6 files changed, 117 insertions(+)
 create mode 100644 board/firefly/roc-rk3399-pc/extlinux.conf
 create mode 100644 board/firefly/roc-rk3399-pc/genimage.cfg
 create mode 100755 board/firefly/roc-rk3399-pc/post-build.sh
 create mode 100644 board/firefly/roc-rk3399-pc/readme.txt
 create mode 100644 configs/roc_pc_rk3399_defconfig
Signature · 6 lines
2.41.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v4 1/1 configs/roc_rk3399_pc: Bring back and update the configuration for the rockchip rk3399 built by firefly.

* Bump and set the TF-A version to v2.9. It solves the building issue for this board.
* Bump and set the U-Boot version to 2022.04.
* Bump and set the Linux version to 6.1.45.
* Increase the size of the ext2 partition to be able to create the final image.
* Some minor fixes in the post-build.sh script using shellcheck.

---
 DEVELOPERS                                |  4 +++
 board/firefly/roc-rk3399-pc/extlinux.conf |  4 +++
 board/firefly/roc-rk3399-pc/genimage.cfg  | 22 ++++++++++++
 board/firefly/roc-rk3399-pc/post-build.sh |  5 +++
 board/firefly/roc-rk3399-pc/readme.txt    | 40 +++++++++++++++++++++
 configs/roc_pc_rk3399_defconfig           | 42 +++++++++++++++++++++++
 6 files changed, 117 insertions(+)
 create mode 100644 board/firefly/roc-rk3399-pc/extlinux.conf
 create mode 100644 board/firefly/roc-rk3399-pc/genimage.cfg
 create mode 100755 board/firefly/roc-rk3399-pc/post-build.sh
 create mode 100644 board/firefly/roc-rk3399-pc/readme.txt
 create mode 100644 configs/roc_pc_rk3399_defconfig
DEVELOPERS +4 -0
index 6ffa3ee693..caff925b5f 100644
@@ -2546,6 +2546,10 @@ F:	package/mhz/
 N:	Robert Rose <[email protected]>
 F:	package/grpc/
 
+N:	Roberto Medina <[email protected]>
+F:	configs/roc_pc_rk3399_defconfig
+F:	board/firefly/roc-rk3399-pc/
+
 N:	Rodrigo Rebello <[email protected]>
 F:	package/chocolate-doom/
 F:	package/irssi/
board/firefly/roc-rk3399-pc/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..50a358fadc
@@ -0,0 +1,4 @@
+label RK3399RocPC linux
+  kernel /boot/Image
+  devicetree /boot/rk3399-roc-pc.dtb
+  append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p1 rootwait
board/firefly/roc-rk3399-pc/genimage.cfg new file +22 -0
new file mode 100644
index 0000000000..966c869273
@@ -0,0 +1,22 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition u-boot-tpl-spl-dtb {
+		in-partition-table = "no"
+		image = "idbloader.img"
+		offset = 32K
+	}
+
+	partition u-boot-dtb {
+		in-partition-table = "no"
+		image = "u-boot.itb"
+		offset = 8M
+		size = 30M
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+	}
+}
board/firefly/roc-rk3399-pc/post-build.sh new file +5 -0
new file mode 100755
index 0000000000..d84a5da0b0
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname "$0")"
+
+install -m 0644 -D "$BOARD_DIR"/extlinux.conf "$TARGET_DIR"/boot/extlinux/extlinux.conf
board/firefly/roc-rk3399-pc/readme.txt new file +40 -0
new file mode 100644
index 0000000000..8a6f1cdee6
@@ -0,0 +1,40 @@
+Libre Computer Board ROC-RK3399-PC
+===================================
+
+Build:
+
+  $ make roc_pc_rk3399_defconfig
+  $ make
+
+Files created in output directory
+=================================
+
+output/images
+
+├── bl31.elf
+├── idbloader.img
+├── Image
+├── rk3399-roc-pc.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
+
+Serial console
+--------------
+
+Baudrate for this board is 1500000
+
+Wiki link:
+https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html
configs/roc_pc_rk3399_defconfig new file +42 -0

42 lines not on this page · raw message

Signature · 6 lines
2.41.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot