Difference between revisions of "Dmssa51 intel i226"

From ESS-WIKI
Jump to: navigation, search
(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''...")
 
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>
 +
 
 +
Build Kernel
 +
 
 +
<pre>
 +
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_dmssa51_defconfig
 +
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
 +
</pre>
 +
 
 +
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 28:
 
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 it for our new 5.16 kernel. The boot image(Image_k5) and dtb(rk3399-rock-pi-4b.dtb) has updated. 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>
 +
 +
&nbsp;
 +
 +
&nbsp;

Revision as of 07:30, 6 October 2022

Get Source Code

$ git clone http://172.22.31.139:30000/acg/DMS-SA51/kernel_5.16.0_RC3.git

Build Kernel

$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_dmssa51_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8

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 it for our new 5.16 kernel. The boot image(Image_k5) and dtb(rk3399-rock-pi-4b.dtb) has updated. 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