image-builder/device/rockchip/ok3568c/config

51 lines
1.9 KiB
Text
Raw Normal View History

2024-11-15 12:55:24 +03:00
ARCH="aarch64"
2024-11-18 21:58:37 +03:00
BOOT_SOC="rk3568"
# kernel section
KERNEL="https://github.com/armbian/linux-rockchip.git#rk-6.1-rkr4.1"
PRESET_CONFIG="kernel_ok3568_defconfig"
DTB="dtbs/rockchip/rk3568-ok3568c"
2024-11-18 21:58:37 +03:00
# u-boot section
2024-11-15 12:55:24 +03:00
UBOOT="https://github.com/radxa/u-boot.git"
UBOOT_VERSION="next-dev-v2024.03"
2024-11-18 21:58:37 +03:00
UBOOT_CONFIG="rk3568-ok3568c_defconfig"
# cmdline
# root=/dev/mmcblk1p2 rootwait rootfstype=ext4 splash=verbose console=ttyS2,1500000 console=tty1 consoleblank=0 loglevel=1 earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 cma=256M androidboot.fwver=bl31-v1.44,uboot-rmbian-201-11/11/2024
CMDLINE="earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 console=tty1 consoleblank=0"
2024-11-20 00:01:33 +03:00
EXTRA_PKGS="uboot-tools dracut"
2024-11-16 01:21:57 +03:00
2024-11-18 21:58:37 +03:00
# disk section
# /boot is vfat partition
BOOT_FSTYPE="vfat"
BOOT_SIZE="256MB"
# / is ext4 partition
ROOT_SIZE="1500MB"
2024-11-16 01:21:57 +03:00
ROOT_FSTYPE="ext4"
2024-11-18 21:58:37 +03:00
# platform section
# # put it in blobs dir
2024-11-25 14:46:18 +03:00
RK_DDR="rk3568_ddr_1560MHz_v1.23.bin"
2024-11-18 21:58:37 +03:00
BL31="rk3568_bl31_v1.44.elf"
2024-11-25 14:46:18 +03:00
UBOOT_BUILD="make KCFLAGS='-Wno-error' BL31={BL31} spl/u-boot-spl.bin u-boot.dtb u-boot.itb CROSS_COMPILE='{ARCH}-linux-gnu-'"
2024-11-18 21:58:37 +03:00
MKIMAGE_CMD="tools/mkimage -n {BOOT_SOC} -T rksd -d {RK_DDR}:spl/u-boot-spl.bin idbloader.img"
2024-11-25 14:46:18 +03:00
# url to download rockchip bootloader blobs
BLOBS_URL="https://github.com/rockchip-linux/rkbin/raw/refs/heads/master/bin/rk35/"
2024-11-27 14:55:18 +03:00
BOOT_IDB="idbloader.img"
BOOT_ITB="u-boot.itb"
UINITRD="yes"
2024-11-18 21:58:37 +03:00
2024-11-25 14:46:18 +03:00
# make BL31=rk3568_bl31_v1.44.elf spl/u-boot-spl.bin u-boot.dtb u-boot.itb CROSS_COMPILE="aarch64-linux-gnu-"
2024-11-27 14:55:18 +03:00
#
2024-11-18 21:58:37 +03:00
# dd if=idbloader.img of=/dev/loop1 seek=64 conv=notrunc status=none
# dd if=u-boot.itb of=/dev/loop1 seek=16384 conv=notrunc status=none
2024-11-27 14:55:18 +03:00
#
# sgdisk --zap-all /dev/loop0
# sgdisk --new=1:15M:+256M --typecode=1:8300 /dev/loop0
# sgdisk --new=2:0:0 --typecode=2:8300 /dev/loop0
2024-11-27 14:55:18 +03:00
#
# dracut --regenerate-all --force
2024-11-27 14:55:18 +03:00
# mkimage -A arm64 -O linux -T ramdisk -C gzip -n uInitrd -d /boot/initramfs-6.1.75.img /boot/uInitrd
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr