mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
configs/rock4se: new defconfig
Signed-off-by: Patrik Olsson <johan.patrik.olsson@gmail.com> [Julien: - add Patrik Signed-off-by - regenerate defconfig with "make savedefconfig" ] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
ea8dcb2288
commit
11c11b9a24
@@ -2564,6 +2564,10 @@ F: support/testing/tests/package/test_lxc/
|
||||
N: Patrick Oppenlander <patrick.oppenlander@gmail.com>
|
||||
F: package/minisign/
|
||||
|
||||
N: Patrik Olsson <johan.patrik.olsson@gmail.com>
|
||||
F: board/radxa/rock4se
|
||||
F: configs/rock4se_defconfig
|
||||
|
||||
N: Paul Cercueil <paul@crapouillou.net>
|
||||
F: package/libiio/
|
||||
F: package/lightning/
|
||||
|
||||
4
board/radxa/rock4se/extlinux.conf
Normal file
4
board/radxa/rock4se/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label Radxa ROCK 4SE Linux
|
||||
kernel /boot/Image
|
||||
devicetree /boot/rk3399-rock-4se.dtb
|
||||
append root=/dev/mmcblk1p1 rw rootfstype=ext4 earlycon rootwait
|
||||
22
board/radxa/rock4se/genimage.cfg
Normal file
22
board/radxa/rock4se/genimage.cfg
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
1
board/radxa/rock4se/patches/linux-headers/linux-headers.hash
Symbolic link
1
board/radxa/rock4se/patches/linux-headers/linux-headers.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/radxa/rock4se/patches/linux/linux.hash
Normal file
2
board/radxa/rock4se/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 4a516e5ed748537a73cb42ec47fbbeb6df8b1298e8892c29c0e91de79095b297 linux-6.12.10.tar.xz
|
||||
2
board/radxa/rock4se/patches/uboot/uboot.hash
Normal file
2
board/radxa/rock4se/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0 u-boot-2024.10.tar.bz2
|
||||
5
board/radxa/rock4se/post-build.sh
Executable file
5
board/radxa/rock4se/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
|
||||
37
board/radxa/rock4se/readme.txt
Normal file
37
board/radxa/rock4se/readme.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This default configuration will allow you to start experimenting with the
|
||||
buildroot environment for the Radxa ROCK 4SE. With the current configuration
|
||||
it will bring-up the board, and allow access through the serial console.
|
||||
|
||||
Radxa ROCK 4SE link:
|
||||
https://radxa.com/products/rock4/4se/
|
||||
|
||||
Wiki link:
|
||||
https://forum.radxa.com/c/rockpi4
|
||||
|
||||
GPIO connector pinout link:
|
||||
https://wiki.radxa.com/Rockpi4/hardware/gpio
|
||||
|
||||
This configuration uses mainline ATF, U-Boot and kernel.
|
||||
|
||||
How to build
|
||||
============
|
||||
|
||||
$ make rock4se_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
|
||||
$ sudo sync
|
||||
|
||||
Insert the micro SDcard in your Radxa ROCK 4SE and power it up. The console
|
||||
is available on UART2 on the GPIO connector, 1500000bps 8N1.
|
||||
43
configs/rock4se_defconfig
Normal file
43
configs/rock4se_defconfig
Normal file
@@ -0,0 +1,43 @@
|
||||
BR2_aarch64=y
|
||||
BR2_cortex_a72_a53=y
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/radxa/rock4se/patches"
|
||||
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
|
||||
BR2_TARGET_GENERIC_HOSTNAME="rock-4se"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for Radxa ROCK 4SE"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/radxa/rock4se/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/radxa/rock4se/genimage.cfg"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.10"
|
||||
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="rockchip/rk3399-rock-4se"
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
|
||||
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
|
||||
BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_10_VERSION=y
|
||||
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3399"
|
||||
BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES=""
|
||||
BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.10"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rock-4se-rk3399"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y
|
||||
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
|
||||
BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
|
||||
BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
|
||||
BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="idbloader.img"
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
Reference in New Issue
Block a user