Initial Commit
- initial default booting image
This commit is contained in:
4
board/coolpi/coolpi-4b/extlinux.conf
Normal file
4
board/coolpi/coolpi-4b/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label coolpi-4b-buildroot
|
||||
kernel /Image.gz
|
||||
devicetree /rk3588s-coolpi-4b.dtb
|
||||
append root=/dev/mmcblk1p2 rw rootfstype=ext4 earlycon earlyprintk console=ttyS2,1500000n8 rootwait
|
||||
35
board/coolpi/coolpi-4b/genimage.cfg
Normal file
35
board/coolpi/coolpi-4b/genimage.cfg
Normal file
@@ -0,0 +1,35 @@
|
||||
# SD card image for Cool PI 4b
|
||||
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"Image.gz",
|
||||
"rk3588s-coolpi-4b.dtb",
|
||||
"extlinux"
|
||||
}
|
||||
}
|
||||
size = 32M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "hybrid"
|
||||
}
|
||||
|
||||
partition uboot {
|
||||
in-partition-table = "false"
|
||||
image = "u-boot-rockchip.bin"
|
||||
offset = 32K
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = "0xC"
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext2"
|
||||
}
|
||||
}
|
||||
1
board/coolpi/coolpi-4b/patches/linux-headers/linux-headers.hash
Symbolic link
1
board/coolpi/coolpi-4b/patches/linux-headers/linux-headers.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/coolpi/coolpi-4b/patches/linux/linux.hash
Normal file
2
board/coolpi/coolpi-4b/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 de8b97cfeae74c22f832ee4ca2333c157cc978d98baa122f0ee9c01796a2fe43 linux-6.14.10.tar.xz
|
||||
2
board/coolpi/coolpi-4b/patches/uboot/uboot.hash
Normal file
2
board/coolpi/coolpi-4b/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718 u-boot-2025.04.tar.bz2
|
||||
7
board/coolpi/coolpi-4b/post-image.sh
Executable file
7
board/coolpi/coolpi-4b/post-image.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
BOARD_DIR="$(dirname "$0")"
|
||||
gzip -fk "${BINARIES_DIR}/Image"
|
||||
install -m 0644 -D "$BOARD_DIR/extlinux.conf" "$BINARIES_DIR/extlinux/extlinux.conf"
|
||||
support/scripts/genimage.sh -c board/coolpi/coolpi-4b/genimage.cfg
|
||||
57
board/coolpi/coolpi-4b/readme.txt
Normal file
57
board/coolpi/coolpi-4b/readme.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
Cool Pi 4B
|
||||
==============
|
||||
https://www.cool-pi.com/product/cp4b/
|
||||
|
||||
Build:
|
||||
======
|
||||
$ make coolpi_4b_defconfig
|
||||
$ make
|
||||
|
||||
Files created in output directory
|
||||
=================================
|
||||
|
||||
output/images
|
||||
.
|
||||
output/images/
|
||||
├── boot.vfat
|
||||
├── extlinux
|
||||
│ └── extlinux.conf
|
||||
├── Image
|
||||
├── Image.gz
|
||||
├── rk3588_bl31_v1.40.elf
|
||||
├── rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin
|
||||
├── rk3588s-coolpi-4b.dtb
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── u-boot.bin
|
||||
└── u-boot-rockchip.bin
|
||||
|
||||
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:
|
||||
========
|
||||
|
||||
Serial console:
|
||||
---------------
|
||||
The Cool Pi 4B has a 40-pin GPIO header.
|
||||
|
||||
The Uart pins are as follows:
|
||||
|
||||
pin 6: gnd
|
||||
pin 8: tx
|
||||
pin 10: rx
|
||||
|
||||
Baudrate for this board is 1500000.
|
||||
|
||||
Login:
|
||||
------
|
||||
Enter 'root' as login user, and the prompt is ready.
|
||||
Reference in New Issue
Block a user