Dmssa51 intel i226
From ESS-WIKI
Get Source Code
$ git clone http://172.22.31.139:30000/acg/DMS-SA51/kernel_5.16.0_RC3.git
Docker
advrisc/u16.04-rklbv1:latest
Build Kernel
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_dmssa51_defconfig $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
Deploy
We adopted the Debian 10 radxa to be our boot image.
rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img
First, we check the partion list in this image
Disk rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img: 2.8 GiB, 3000000000 bytes, 5859375 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 78703516-CE7D-4B45-A139-ACFFBE62762C Device Start End Sectors Size Type rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img1 64 8063 8000 3.9M Microsoft basic data rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img2 16384 24575 8192 4M Microsoft basic data rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img3 24576 32767 8192 4M Microsoft basic data rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img4 32768 1081343 1048576 512M EFI System rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img5 1081344 5859341 4777998 2.3G Linux filesystem
The boot partition is the forth. We mount it
$ sudo mount -o loop,offset=16777216 rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img disk
Read the boot menu in the extlinux.conf
$ vi disk/extlinux/extlinux.conf
The default menu of this image
label kernel-4.4.154-112-rockchip-gfdb18c8bab17 kernel /vmlinuz-4.4.154-112-rockchip-gfdb18c8bab17 initrd /initrd.img-4.4.154-112-rockchip-gfdb18c8bab17 devicetreedir /dtbs/4.4.154-112-rockchip-gfdb18c8bab17 append earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init rootfstype=ext4 rootwait root=UUID=3eff3098-0936-4a20-8e2f-f6048d96509a console=ttyS2,1500000n8
Change configuration for our new 5.16 kernel, updating boot image(Image_k5) and dtb(rk3399-rock-pi-4b.dtb). The root point to EMMC mmcblk1 and rootfs is img5.
label kernel-16.5 kernel /Image_k5 fdt /dtbs/rk3399-rock-pi-4b.dtb devicetreedir /dtbs/ append earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 log_buf_len=104857600 coherent_pool=1m earlyprintk console=ttyS2,1500000n8 rw root=/dev/mmcblk1p5 rootfstype=ext4 init=/sbin/init rootwait
Flash
Please flash miniloader first or it get failed. Before flash image, please put device to maskrom status.
$ sudo ./rkbin/tools/rkdeveloptool db rk3399_loader_v1.20.119.bin $ sudo ./rkbin/tools/rkdeveloptool wl 0 rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img $ sudo ./rkbin/tools/rkdeveloptool rd