Initial Commit
- initial default booting image
This commit is contained in:
4
board/radxa/rock5b/extlinux.conf
Normal file
4
board/radxa/rock5b/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label Radxa Rock 5b Linux
|
||||
kernel /boot/Image
|
||||
devicetree /boot/rk3588-rock-5b.dtb
|
||||
append root=PARTLABEL=rootfs earlycon rootwait
|
||||
25
board/radxa/rock5b/genimage.cfg
Normal file
25
board/radxa/rock5b/genimage.cfg
Normal file
@@ -0,0 +1,25 @@
|
||||
# SD card image for Radxa Rock 5b
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition uboot {
|
||||
in-partition-table = "false"
|
||||
image = "u-boot-rockchip.bin"
|
||||
offset = 32K
|
||||
}
|
||||
|
||||
partition uboot-env {
|
||||
partition-type-uuid = 3de21764-95bd-54bd-a5c3-4abe786f38a8
|
||||
offset = 16M
|
||||
size = 64K
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type-uuid = L
|
||||
image = "rootfs.ext2"
|
||||
bootable = true
|
||||
}
|
||||
}
|
||||
2
board/radxa/rock5b/linux.fragment
Normal file
2
board/radxa/rock5b/linux.fragment
Normal file
@@ -0,0 +1,2 @@
|
||||
CONFIG_R8169=y
|
||||
CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY=y
|
||||
1
board/radxa/rock5b/patches/linux-headers/linux-headers.hash
Symbolic link
1
board/radxa/rock5b/patches/linux-headers/linux-headers.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/radxa/rock5b/patches/linux/linux.hash
Normal file
2
board/radxa/rock5b/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 6f35f821433d8421be7167990747c7c4a0c451958fb96883446301af13d71152 linux-6.12.4.tar.xz
|
||||
2
board/radxa/rock5b/patches/uboot/uboot.hash
Normal file
2
board/radxa/rock5b/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 cdef7d507c93f1bbd9f015ea9bc21fa074268481405501945abc6f854d5b686f u-boot-2025.01.tar.bz2
|
||||
5
board/radxa/rock5b/post-build.sh
Executable file
5
board/radxa/rock5b/post-build.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname "$0")"
|
||||
|
||||
install -m 0644 -D "$BOARD_DIR"/extlinux.conf "$TARGET_DIR"/boot/extlinux/extlinux.conf
|
||||
57
board/radxa/rock5b/readme.txt
Normal file
57
board/radxa/rock5b/readme.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
RADXA ROCK 5B
|
||||
==============
|
||||
https://wiki.radxa.com/Rock5/hardware/5b
|
||||
|
||||
Build:
|
||||
======
|
||||
$ make rock5b_defconfig
|
||||
$ make
|
||||
|
||||
Files created in output directory
|
||||
=================================
|
||||
|
||||
output/images
|
||||
.
|
||||
├── Image
|
||||
├── rk3588_bl31_v1.40.elf
|
||||
├── rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin
|
||||
├── rk3588-rock-5b.dtb
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4
|
||||
├── 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 Rock 5B has a 40-pin GPIO header. Its layout can be seen here:
|
||||
https://wiki.radxa.com/Rock5/hardware/5b/gpio
|
||||
|
||||
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.
|
||||
|
||||
wiki link:
|
||||
----------
|
||||
https://forum.radxa.com/c/rock5
|
||||
5
board/radxa/rock5b/u-boot.fragment
Normal file
5
board/radxa/rock5b/u-boot.fragment
Normal file
@@ -0,0 +1,5 @@
|
||||
CONFIG_ENV_SIZE=0x10000
|
||||
CONFIG_PARTITION_TYPE_GUID=y
|
||||
# CONFIG_ENV_IS_NOWHERE is not set
|
||||
CONFIG_ENV_IS_IN_MMC=y
|
||||
CONFIG_SYS_MMC_ENV_DEV=1
|
||||
Reference in New Issue
Block a user