image-builder/device/rockchip/ok3568c/config

42 lines
1.6 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
2024-11-15 12:55:24 +03:00
KERNEL="https://github.com/armbian/linux-rockchip.git#rk-6.1-rkr3"
KERNEL_CONFIG="kernel_ok3568_defconfig"
2024-11-18 21:58:37 +03:00
DTB="rockchip/rk3568-ok3568c"
# 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
2024-11-15 12:55:24 +03:00
CMDLINE="earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 console=tty1 consoleblank=0 irqchip.gicv3_pseudo_nmi=0 switolb=1 coherent_pool=2M cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1"
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
RK_DDR="rk3568_ddr_1560MHz_v1.21.bin"
BL31="rk3568_bl31_v1.44.elf"
MKIMAGE_CMD="tools/mkimage -n {BOOT_SOC} -T rksd -d {RK_DDR}:spl/u-boot-spl.bin idbloader.img"
UBOOT_BUILD="make BL31={BL31} spl/u-boot-spl.bin u-boot.dtb u-boot.itb CROSS_COMPILE='{ARCH}-linux-gnu-'"
# make BL31=rk3568_bl31_v1.44.elf spl/u-boot-spl.bin u-boot.dtb u-boot.itb CROSS_COMPILE="aarch64-linux-gnu-"
# 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
# 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
# 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
# dracut --regenerate-all --force