Difference between revisions of "Dmssa51 intel i226"
From ESS-WIKI
(Created page with " We adopted the Debian 10 [https://wiki.radxa.com/Home radxa] to be our boot image.<br/> <span style="color:blue">'''rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img''...") |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | We adopted the Debian 10 [https://wiki.radxa.com/Home radxa] to be our boot image.<br/> <span style="color:blue">'''rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img'''</span> | + | === Get Source Code === |
+ | <pre>$ git clone http://172.22.31.139:30000/acg/DMS-SA51/kernel_5.16.0_RC3.git | ||
+ | </pre> | ||
+ | |||
+ | === Docker === | ||
+ | <pre>advrisc/u16.04-rklbv1:latest | ||
+ | </pre> | ||
+ | |||
+ | === Build Kernel === | ||
+ | <pre>$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_dmssa51_defconfig | ||
+ | $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 | ||
+ | </pre> | ||
+ | |||
+ | === Deploy === | ||
+ | |||
+ | We adopted the Debian 10 [https://wiki.radxa.com/Home radxa] to be our boot image.<br/> <span style="color:blue">'''rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img'''</span><br/> First, we check the partion list in this image | ||
<pre>Disk rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img: 2.8 GiB, 3000000000 bytes, 5859375 sectors | <pre>Disk rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img: 2.8 GiB, 3000000000 bytes, 5859375 sectors | ||
Units: sectors of 1 * 512 = 512 bytes | Units: sectors of 1 * 512 = 512 bytes | ||
Line 15: | Line 30: | ||
rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img5 1081344 5859341 4777998 2.3G Linux filesystem | rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img5 1081344 5859341 4777998 2.3G Linux filesystem | ||
</pre> | </pre> | ||
+ | |||
+ | The boot partition is the forth. We mount it | ||
+ | <pre>$ sudo mount -o loop,offset=16777216 rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt.img disk | ||
+ | </pre> | ||
+ | |||
+ | Read the boot menu in the extlinux.conf | ||
+ | <pre>$ vi disk/extlinux/extlinux.conf | ||
+ | </pre> | ||
+ | |||
+ | The default menu of this image | ||
+ | <pre>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 | ||
+ | </pre> | ||
+ | |||
+ | 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. | ||
+ | <pre>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 | ||
+ | </pre> | ||
+ | |||
+ | === Flash === | ||
+ | |||
+ | Please flash miniloader first or it get failed. Before flash image, please put device to maskrom status. | ||
+ | <pre>$ 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 | ||
+ | </pre> | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *The debug baudrate is <span style="color:red">'''1500000'''</span>,You may change this value [https://blog.csdn.net/kris_fei/article/details/79552426 HERE]. | ||
+ | *It get error while first boot, then it will reboot automatically. | ||
+ | *Image : \acg_dms\image\DMS_SA51\Intel-I226\rockpi4b_debian_buster_xfce4_arm64_20210608_1321-gpt_i226.img | ||
+ | *[http://ess-wiki.advantech.com.tw/view/DMS-SA51 BACK] |
Latest revision as of 03:59, 4 November 2022
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