§2023-08-27
This is to setup boot partition
¶1. copy from compiled kerner
(chroot) hc4Gentoo /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 7.5G 0 part
├─sda3 8:3 0 60G 0 part /
└─sda4 8:4 0 155.6G 0 part
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 28.3G 0 disk
├─mmcblk0p1 179:1 0 457.8M 0 part
└─mmcblk0p2 179:2 0 27.9G 0 part
zram0 253:0 0 5.4G 0 disk [SWAP]
(chroot) hc4Gentoo /boot # ls
Image Image.gz boot.ini dts initramfs-6.1.46-gentoo.img u-boot.bin
(chroot) hc4Gentoo /boot # cp -v /usr/src/linux-6.1.46-gentoo/arch/arm64/boot/Image ./
(chroot) hc4Gentoo /boot # cp -v /usr/src/linux-6.1.46-gentoo/arch/arm64/boot/Image.gz ./
(chroot) hc4Gentoo /boot # cp -Rv /usr/src/linux-6.1.46-gentoo/arch/arm64/boot/dts/ ./
(chroot) hc4Gentoo /boot # ls
Image Image.gz dts initramfs-6.1.46-gentoo.img
(chroot) hc4Gentoo /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 7.5G 0 part
├─sda3 8:3 0 60G 0 part /
└─sda4 8:4 0 155.6G 0 part
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 28.3G 0 disk
├─mmcblk0p1 179:1 0 457.8M 0 part
└─mmcblk0p2 179:2 0 27.9G 0 part
zram0 253:0 0 5.4G 0 disk [SWAP]
(chroot) hc4Gentoo /boot # mount /dev/mmcblk0p1 /mnt
(chroot) hc4Gentoo /boot # ls /mnt/
Image Image.gz boot.ini dtbs initramfs-linux.img initramfs-linux.uimg initramfs-linux.uimg.old u-boot.bin
(chroot) hc4Gentoo /boot # cp -v /mnt/boot.ini /boot/
(chroot) hc4Gentoo /boot # cp -v /mnt/u-boot.bin /boot/ ---> I flush u-boot.bin before
'/mnt/u-boot.bin' -> '/boot/u-boot.bin'
(chroot) hc4Gentoo /boot # blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_MNJRO" LABEL="BOOT_MNJRO" UUID="DDBA-9480" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="6319cfe2-01"
/dev/mmcblk0p2: LABEL="ROOT_MNJRO" UUID="c116cbd4-ed1c-408d-88c7-6901ccb65d60" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6319cfe2-02"
/dev/sda4: PARTUUID="69ed71c7-04"
/dev/sda2: UUID="f4e47b4d-3ecc-4e27-83ec-4b9aafa71882" TYPE="swap" PARTUUID="69ed71c7-02"
/dev/sda3: UUID="1c455a50-8861-46a2-817f-2fb6c6cf1de0" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="69ed71c7-03"
/dev/sda1: SEC_TYPE="msdos" UUID="00D0-1B24" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="69ed71c7-01"
/dev/zram0: LABEL="zram0" UUID="6f8a0831-d920-46ac-b260-219db39673a8" TYPE="swap"
- boot.init