§2023-08-27

emerge -av sys-kernel/genkernel
(chroot) hc4Gentoo ~ # mount /dev/sda1 /boot
(chroot) hc4Gentoo ~ # 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 /etc/resolv.conf
zram0       253:0    0   5.4G  0 disk [SWAP]
(chroot) hc4Gentoo ~ # genkernel --install initramfs
* Gentoo Linux Genkernel; Version 4.3.5
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install initramfs

* Working with Linux kernel 6.1.46-gentoo for arm64
* Using kernel config file '/usr/share/genkernel/arch/arm64/generated-config' ...

* Current kernel's LOCALVERSION is set to ''; Will ignore set --kernel-localversion value '-arm64' because kernel was not built ...

* Current kernel's LOCALVERSION is set to ''; Will ignore set --kernel-localversion value '-arm64' because kernel was not built ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending modules cpio data ...
*         >> Deduping cpio ...
*         >> Pre-generating initramfs' /etc/ld.so.cache ...
*         >> Compressing cpio data (.xz) ...
xz: Reduced the number of threads from 4 to one. The automatic memory usage limit of 917 MiB is still being exceeded. 1250 MiB of memory is required. Continuing anyway.

* 
* You will find the initramfs in '/boot/initramfs-6.1.46-gentoo.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
* 
* Make sure you have the latest ~arch genkernel before reporting bugs.
* Failed to determine session leader; Will not try to stop child processes

(chroot) hc4Gentoo ~ # ls -l /boot/
total 63112
-rwxr-xr-x 1 root root 26821120 Aug 26 04:42 Image
-rwxr-xr-x 1 root root  9415577 Aug 26 04:42 Image.gz
-rwxr-xr-x 1 root root      809 Aug 26 05:14 boot.ini
drwxr-xr-x 3 root root     8192 Aug 26 04:44 dts
-rwxr-xr-x 1 root root  5355568 Aug 27 02:27 initramfs-6.1.46-gentoo.img
-rwxr-xr-x 1 root root  5355784 Aug 26 07:01 initramfs-linux.uimg
-rwxr-xr-x 1 root root 17641867 Aug 26 05:18 initramfs.img