§2023-10-07
The orgpi5Jammy.yushei.ney was setup as,
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 2G 0 part /boot
├─nvme0n1p2 259:2 0 16G 0 part [SWAP]
├─nvme0n1p3 259:3 0 60G 0 part /var/log.hdd
│ / <-- ubuntu 22.04
└─nvme0n1p4 259:4 0 90G 0 part /mnt/gentoo <-- holding gentoo stage3 systemd, desktop
- arch-chroot
nano /etc/locale.gen
andlocale-gen
nano /etc/resolv.conf
ping google.com
mkdir /etc/portage/repos.conf
nano /etc/portage/repos.conf/gentoo.conf
as,
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
sync-git-verify-commit-signature = yes
emerge-webrsync
for the first time- error msgs about /var/db/repos/gentoo got the first time, it will bw created
nano /etc/portage/make.conf
# Set the number of CPU cores for parallel compilation (adjust as needed)
MAKEOPTS="-j8"
emerge --ask --verbose --update --deep --newuse @world
tail -f /var/log/emerge.log
to see the progress
sys-kernel/gentoo-kernel-bin
- frst mount boot partition
(chroot) orangepi5plus / # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 16M 0 disk
zram0 254:0 0 3.8G 0 disk [SWAP]
zram1 254:1 0 200M 0 disk
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 2G 0 part /boot
├─nvme0n1p2 259:2 0 16G 0 part [SWAP]
├─nvme0n1p3 259:3 0 60G 0 part
└─nvme0n1p4 259:4 0 90G 0 part /
(chroot) orangepi5plus / # emerge sys-kernel/gentoo-kernel-bin
1696670063: *** emerge --regex-search-auto=y sys-kernel/gentoo-kernel-bin
1696670066: >>> emerge (1 of 6) app-text/asciidoc-10.2.0 to /
1696670067: === (1 of 6) Cleaning (app-text/asciidoc-10.2.0::/var/db/repos/gentoo/app-text/asciidoc/asciidoc-10.2.0.ebuild)
1696670067: === (1 of 6) Compiling/Merging (app-text/asciidoc-10.2.0::/var/db/repos/gentoo/app-text/asciidoc/asciidoc-10.2.0.ebuild)
1696670090: === (1 of 6) Merging (app-text/asciidoc-10.2.0::/var/db/repos/gentoo/app-text/asciidoc/asciidoc-10.2.0.ebuild)
1696670092: >>> AUTOCLEAN: app-text/asciidoc:0
1696670095: === (1 of 6) Post-Build Cleaning (app-text/asciidoc-10.2.0::/var/db/repos/gentoo/app-text/asciidoc/asciidoc-10.2.0.ebuild)
1696670095: ::: completed emerge (1 of 6) app-text/asciidoc-10.2.0 to /
1696670095: >>> emerge (2 of 6) app-arch/cpio-2.14 to /
1696670095: === (2 of 6) Cleaning (app-arch/cpio-2.14::/var/db/repos/gentoo/app-arch/cpio/cpio-2.14.ebuild)
1696670096: === (2 of 6) Compiling/Merging (app-arch/cpio-2.14::/var/db/repos/gentoo/app-arch/cpio/cpio-2.14.ebuild)
1696670211: === (2 of 6) Merging (app-arch/cpio-2.14::/var/db/repos/gentoo/app-arch/cpio/cpio-2.14.ebuild)
1696670213: >>> AUTOCLEAN: app-arch/cpio:0
1696670215: === (2 of 6) Post-Build Cleaning (app-arch/cpio-2.14::/var/db/repos/gentoo/app-arch/cpio/cpio-2.14.ebuild)
1696670215: ::: completed emerge (2 of 6) app-arch/cpio-2.14 to /
1696670215: >>> emerge (3 of 6) app-alternatives/cpio-0 to /
1696670215: === (3 of 6) Cleaning (app-alternatives/cpio-0::/var/db/repos/gentoo/app-alternatives/cpio/cpio-0.ebuild)
1696670215: === (3 of 6) Compiling/Merging (app-alternatives/cpio-0::/var/db/repos/gentoo/app-alternatives/cpio/cpio-0.ebuild)
1696670221: === (3 of 6) Merging (app-alternatives/cpio-0::/var/db/repos/gentoo/app-alternatives/cpio/cpio-0.ebuild)
1696670224: >>> AUTOCLEAN: app-alternatives/cpio:0
1696670226: === (3 of 6) Post-Build Cleaning (app-alternatives/cpio-0::/var/db/repos/gentoo/app-alternatives/cpio/cpio-0.ebuild)
1696670226: ::: completed emerge (3 of 6) app-alternatives/cpio-0 to /
1696670226: >>> emerge (4 of 6) sys-kernel/dracut-059-r3 to /
1696670226: === (4 of 6) Cleaning (sys-kernel/dracut-059-r3::/var/db/repos/gentoo/sys-kernel/dracut/dracut-059-r3.ebuild)
1696670226: === (4 of 6) Compiling/Merging (sys-kernel/dracut-059-r3::/var/db/repos/gentoo/sys-kernel/dracut/dracut-059-r3.ebuild)
1696670242: === (4 of 6) Merging (sys-kernel/dracut-059-r3::/var/db/repos/gentoo/sys-kernel/dracut/dracut-059-r3.ebuild)
1696670244: >>> AUTOCLEAN: sys-kernel/dracut:0
1696670252: === (4 of 6) Post-Build Cleaning (sys-kernel/dracut-059-r3::/var/db/repos/gentoo/sys-kernel/dracut/dracut-059-r3.ebuild)
1696670252: ::: completed emerge (4 of 6) sys-kernel/dracut-059-r3 to /
1696670252: >>> emerge (5 of 6) sys-kernel/gentoo-kernel-bin-6.1.55 to /
1696670252: === (5 of 6) Cleaning (sys-kernel/gentoo-kernel-bin-6.1.55::/var/db/repos/gentoo/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.55.ebuild)
1696670253: === (5 of 6) Compiling/Merging (sys-kernel/gentoo-kernel-bin-6.1.55::/var/db/repos/gentoo/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.55.ebuild)
...
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/tegra/snd-soc-tegra30-ahub.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/ti/snd-soc-davinci-mcasp.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/tegra/snd-soc-tegra30-i2s.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/ti/snd-soc-j721e-evm.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/ti/snd-soc-ti-edma.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/ti/snd-soc-ti-sdma.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/ti/snd-soc-ti-udma.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/xilinx/snd-soc-xlnx-spdif.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/xilinx/snd-soc-xlnx-formatter-pcm.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/synth/emux/snd-emux-synth.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soundcore.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/soc/xilinx/snd-soc-xlnx-i2s.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/6fire/snd-usb-6fire.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/synth/snd-util-mem.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/bcd2000/snd-bcd2000.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/hiface/snd-usb-hiface.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/caiaq/snd-usb-caiaq.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/line6/snd-usb-line6.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/line6/snd-usb-podhd.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/line6/snd-usb-toneport.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/line6/snd-usb-pod.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/misc/snd-ua101.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/line6/snd-usb-variax.ko
/usr/src/linux-6.1.55-gentoo-dist/arch/arm64/kernel/vdso/vdso.so
/lib/modules/6.1.55-gentoo-dist/kernel/sound/virtio/virtio_snd.ko
/usr/src/linux-6.1.55-gentoo-dist/arch/arm64/kernel/vdso/vdso.so.dbg
/lib/modules/6.1.55-gentoo-dist/kernel/sound/usb/snd-usbmidi-lib.ko
>>> Installing (5 of 6) sys-kernel/gentoo-kernel-bin-6.1.55::gentoo
* Updating /usr/src/linux symlink ... [ ok ]
* Assuming you do not have a separate /boot partition.
* Building initramfs via dracut ...
dracut: Executing: /usr/bin/dracut --force --kernel-image /usr/src/linux-6.1.55-gentoo-dist/arch/arm64/boot/Image.gz /usr/src/linux-6.1.55-gentoo-dist/arch/arm64/boot/initrd 6.1.55-gentoo-dist
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/systemd-integritysetup' could not be found!
dracut: dracut module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-integritysetup-generator' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/systemd-veritysetup' could not be found!
dracut: dracut module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-veritysetup-generator' could not be found!
dracut: dracut module 'modsign' will not be installed, because command 'keyctl' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-legacy' will not be installed, because command 'dhclient' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut: dracut module 'lvmmerge' will not be installed, because command 'lvm' could not be found!
dracut: dracut module 'lvmthinpool-monitor' will not be installed, because command 'lvm' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
dracut: 90crypt: Could not find any command of '/lib/systemd/systemd-cryptsetup cryptsetup'!
dracut: dracut module 'dm' will not be installed, because command 'dmsetup' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
dracut: dracut module 'lvm' will not be installed, because command 'lvm' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'pcsc' will not be installed, because command 'pcscd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: 95nfs: Could not find any command of 'rpcbind portmap'!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Method: sha256
dracut: Files: 2338
dracut: Linked: 4 files
dracut: Compared: 0 xattrs
dracut: Compared: 489 files
dracut: Saved: 6.9 KiB
dracut: Duration: 0.042791 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/usr/src/linux-6.1.55-gentoo-dist/arch/arm64/boot/initrd' ***
dracut: Using auto-determined compression method 'gzip'
dracut: *** Creating initramfs image file '/usr/src/linux-6.1.55-gentoo-dist/arch/arm64/boot/initrd' done *** [ ok ]
* Installing the kernel via installkernel ... [ ok ]
>>> Recording sys-kernel/gentoo-kernel-bin in "world" favorites file...
>>> Completed (5 of 6) sys-kernel/gentoo-kernel-bin-6.1.55::gentoo
>>> Emerging (6 of 6) virtual/dist-kernel-6.1.55::gentoo
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/virtual/dist-kernel-6.1.55/work
>>> Preparing source in /var/tmp/portage/virtual/dist-kernel-6.1.55/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/virtual/dist-kernel-6.1.55/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/virtual/dist-kernel-6.1.55/work ...
>>> Source compiled.
>>> Test phase [not enabled]: virtual/dist-kernel-6.1.55
>>> Install virtual/dist-kernel-6.1.55 into /var/tmp/portage/virtual/dist-kernel-6.1.55/image
>>> Completed installing virtual/dist-kernel-6.1.55 into /var/tmp/portage/virtual/dist-kernel-6.1.55/image
* Final size of build directory: 4 KiB
* Final size of installed tree: 4 KiB
>>> Installing (6 of 6) virtual/dist-kernel-6.1.55::gentoo
>>> Completed (6 of 6) virtual/dist-kernel-6.1.55::gentoo
* Messages for package sys-kernel/gentoo-kernel-bin-6.1.55:
* sys-kernel/linux-firmware not found installed on your system.
* This package provides various firmware files that may be needed
* for your hardware to work. If in doubt, it is recommended
* to pause or abort the build process and install it before
* resuming.
*
* If you decide to install linux-firmware later, you can rebuild
* the initramfs via issuing a command equivalent to:
*
* emerge --config sys-kernel/gentoo-kernel-bin:6.1.55
* Messages for package app-text/asciidoc-10.2.0:
* If you are going to use a2x, please also look at a2x(1) under
* REQUISITES for a list of runtime dependencies.
*
* (Note: Above message is only printed the first time package is
* installed. Please look at /usr/share/doc/asciidoc-10.2.0/README.gentoo*
* for future reference)
* Install additional packages for optional runtime features:
* media-sound/lilypond and virtual/imagemagick-tools for music filter support
* dev-util/source-highlight and dev-python/pygments and app-text/highlight for source filter support
* dev-texlive/texlive-latex and app-text/dvipng for latex filter support
* dev-texlive/texlive-latex and app-text/dvisvgm for latex filter support
* media-gfx/graphviz for graphviz filter support
* Messages for package app-alternatives/cpio-0:
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at https://bugs.gentoo.org/ unless you report exactly
* which two packages install the same file(s). See
* https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
* to solve the problem. And once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /bin/cpio
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'app-alternatives/cpio-0' merged despite file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.
* Messages for package sys-kernel/dracut-059-r3:
* Unable to find kernel sources at /usr/src/linux
* Unable to calculate Linux Kernel version for build, attempting to use running version
*
* If the following test report contains a missing kernel
* configuration option, you should reconfigure and rebuild your
* kernel before booting image generated with this Dracut version.
*
* Install additional packages for optional runtime features:
* net-misc/networkmanager for Networking support
* sys-fs/btrfs-progs for Scan for Btrfs on block devices
* net-fs/cifs-utils for Support CIFS
* sys-fs/cryptsetup[-static-libs] for Decrypt devices encrypted with cryptsetup/LUKS
* app-shells/dash for Allows use of dash instead of default bash (on your own risk)
* sys-apps/busybox for Allows use of busybox instead of default bash (on your own risk)
* sys-block/open-iscsi for Support iSCSI
* sys-fs/lvm2[lvm] for Support Logical Volume Manager
* sys-fs/mdadm for Support MD devices, also known as software RAID devices
* sys-fs/dmraid for Support MD devices, also known as software RAID devices
* sys-fs/multipath-tools for Support Device Mapper multipathing
* >=sys-boot/plymouth-0.8.5-r5 for Plymouth boot splash
* sys-block/nbd for Support network block devices
* net-fs/nfs-utils for Support NFS
* net-nds/rpcbind for Support NFS
* app-admin/rsyslog for Enable logging with rsyslog
* sys-fs/squashfs-tools for Support Squashfs
* app-crypt/tpm2-tools for Support TPM 2.0 TSS
* net-wireless/bluez for Support Bluetooth (experimental)
* sys-apps/biosdevname for Support BIOS-given device names
* sys-apps/nvme-cli for Support network NVMe
* sys-apps/rng-tools for Enable rngd service to help generating entropy early during boot
* Regenerating GNU info directory index...
* Processed 107 info files.
* IMPORTANT: 11 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
(chroot) orangepi5plus / # emerge sys-kernel/gentoo-kernel-bin
- check the files
(chroot) orangepi5plus / # ls -l /usr/src/linux/arch/arm64/boot/
total 40236
drwxr-xr-x 35 root root 4096 Oct 7 09:20 dts
-rw-r--r-- 1 root root 12272594 Sep 23 16:51 Image.gz
-rw------- 1 root root 28914325 Oct 7 09:22 initrd
-rw-r--r-- 1 root root 1198 Dec 11 2022 Makefile
(chroot) orangepi5plus / # ls -l /boot
total 148500
-rwxr-xr-x 1 root root 230456 Jun 1 04:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 04:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Jun 1 04:15 boot.scr
-rwxr-xr-x 1 root root 219610 Jun 1 03:43 config-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 281506 Oct 7 09:22 config-6.1.55-gentoo-dist
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Oct 7 09:20 dtbs
lrwxrwxrwx 1 root root 32 Oct 7 07:21 Image -> vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 28914325 Oct 7 09:22 initramfs-6.1.55-gentoo-dist.img
-rwxr-xr-x 1 root root 20015902 Jun 1 04:16 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 04:07 logo.bmp
drwx------ 2 root root 16384 Oct 7 07:05 lost+found
-rwxr-xr-x 1 root root 226 Oct 7 08:07 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 04:13 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root 7780782 Jun 1 03:43 System.map-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 6986092 Oct 7 09:22 System.map-6.1.55-gentoo-dist
lrwxrwxrwx 1 root root 32 Oct 7 07:52 uInitrd -> uInitrd-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015966 Oct 7 07:48 uInitrd-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015966 Jun 1 04:16 uInitrd.ori
-rwxr-xr-x 1 root root 34109952 Jun 1 03:43 vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 12272594 Oct 7 09:22 vmlinuz-6.1.55-gentoo-dist <--new gentoo kernel
- edit /etc/fstab
#LABEL=boot /boot ext4 defaults 1 2
UUID=ef0394d0-a234-4bb8-a52a-c9981efb9ced /boot ext4 defaults 1 2
#LABEL=root
UUID=498c03bc-f0b2-4de8-91dd-329b95802962 / ext4 defaults 0 1
#LABEL=swap none swap sw 0 0
UUID=608531c6-aac8-4199-8241-f7662a23355f none swap sw 0 0
- exit chroot, use ubuntu 22.04 mkimage
# umount /mnt/gentoo/boot
# umount /mnt/gentoo
root@orangepi5plus:~# cd /boot
root@orangepi5plus:/boot# ls -l
total 148500
-rwxr-xr-x 1 root root 230456 Jun 1 12:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 12:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Jun 1 12:15 boot.scr
-rwxr-xr-x 1 root root 219610 Jun 1 11:43 config-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 281506 Oct 7 17:22 config-6.1.55-gentoo-dist
drwxr-xr-x 3 root root 4096 Jun 1 12:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 12:06 dtb-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Oct 7 17:20 dtbs
lrwxrwxrwx 1 root root 32 Oct 7 15:21 Image -> vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 28914325 Oct 7 17:22 initramfs-6.1.55-gentoo-dist.img
-rwxr-xr-x 1 root root 20015902 Jun 1 12:16 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 12:07 logo.bmp
drwx------ 2 root root 16384 Oct 7 15:05 lost+found
-rwxr-xr-x 1 root root 226 Oct 7 16:07 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 12:13 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root 7780782 Jun 1 11:43 System.map-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 6986092 Oct 7 17:22 System.map-6.1.55-gentoo-dist
lrwxrwxrwx 1 root root 32 Oct 7 15:52 uInitrd -> uInitrd-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015966 Oct 7 15:48 uInitrd-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015966 Jun 1 12:16 uInitrd.ori
-rwxr-xr-x 1 root root 34109952 Jun 1 11:43 vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 12272594 Oct 7 17:22 vmlinuz-6.1.55-gentoo-dist
root@orangepi5plus:/boot# mkimage -A arm64 -O linux -T ramdisk -C none -a 0 -e 0 -d initramfs-6.1.55-gentoo-dist.img uInitrd-6.1.55-gentoo-dist
Image Name:
Created: Sat Oct 7 17:38:51 2023
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 28914325 Bytes = 28236.65 KiB = 27.57 MiB
Load Address: 00000000
Entry Point: 00000000
# using gentoo u-boot-tools
(chroot) orangepi5plus /boot # mkimage -A arm64 -O linux -T ramdisk -C none -a 0 -e 0 -d initramfs-6.1.55-gentoo-dist.img uInitrd-6.1.55-gentoo-dist-01
Image Name:
Created: Sat Oct 7 11:00:13 2023
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 28914325 Bytes = 28236.65 KiB = 27.57 MiB
Load Address: 00000000
Entry Point: 00000000
(chroot) orangepi5plus /boot # ls -l
total 204980
-rwxr-xr-x 1 root root 230456 Jun 1 04:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 04:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Jun 1 04:15 boot.scr
-rwxr-xr-x 1 root root 219610 Jun 1 03:43 config-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 281506 Oct 7 09:22 config-6.1.55-gentoo-dist
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Oct 7 09:20 dtbs
lrwxrwxrwx 1 root root 32 Oct 7 10:36 Image -> vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 28914325 Oct 7 09:22 initramfs-6.1.55-gentoo-dist.img
-rwxr-xr-x 1 root root 20015902 Jun 1 04:16 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 04:07 logo.bmp
drwx------ 2 root root 16384 Oct 7 07:05 lost+found
-rwxr-xr-x 1 root root 226 Oct 7 10:40 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 04:13 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root 7780782 Jun 1 03:43 System.map-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 6986092 Oct 7 09:22 System.map-6.1.55-gentoo-dist
lrwxrwxrwx 1 root root 32 Oct 7 10:37 uInitrd -> uInitrd-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015966 Oct 7 07:48 uInitrd-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 28914389 Oct 7 09:38 uInitrd-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 28914389 Oct 7 11:00 uInitrd-6.1.55-gentoo-dist-01
-rwxr-xr-x 1 root root 20015966 Jun 1 04:16 uInitrd.ori
-rwxr-xr-x 1 root root 34109952 Jun 1 03:43 vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 12272594 Oct 7 09:22 vmlinuz-6.1.55-gentoo-dist
(chroot) orangepi5plus /boot # diff uInitrd-6.1.55-gentoo-dist uInitrd-6.1.55-gentoo-dist-01
Binary files uInitrd-6.1.55-gentoo-dist and uInitrd-6.1.55-gentoo-dist-01 differ <---
- edit orangepiEnv.txt
verbosity=1
bootlogo=true
extraargs=cma=128M
overlay_prefix=rk3588
fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
rootdev=UUID=498c03bc-f0b2-4de8-91dd-329b95802962
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u