Linux slow boot on Minisforum HX99G (hw related maybe?)

Hey Level1Tech,

I’ve recently bought Minisforum HX99G model after seeing it in Wendell’s video about it, I’ve absolutely loved it, compared to my old, large and loud Desktop, amazing mini pc. As soon as it arrived, I’ve added 2TB nvme ssd along with existing one, and got rid of pre-installed Windows. Installed Linux on it, every worked out of the box including suspend/resume. But I have a very slow boot time, according to systemd-analyze, it’s because initrd. My UEFI Bios is on optimized defaults. Did not really change anything apart from secure boot.

Startup finished in 12.229s (firmware) + 4.525s (loader) + 770ms (kernel) + 23.856s (initrd) + 2.940s (userspace) = 44.323s 
graphical.target reached after 2.571s in userspace.

Cmd line: root=UUID=a88e4ba7-XXXX-XXXX-XXXX-2d17ab78c16b rw initrd=\amd-ucode.img tsc=unstable trace_clock=local initrd=\initramfs-linux.img

╰─ systemd-analyze critical-chain 
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @2.571s
└─multi-user.target @2.571s
  └─libvirtd.service @2.410s +109ms
    └─network.target @2.371s
      └─NetworkManager.service @2.043s +327ms
        └─dbus.service @1.784s +87ms
          └─basic.target @1.737s
            └─sockets.target @1.737s
              └─virtlogd.socket @1.737s
                └─sysinit.target @1.735s
                  └─systemd-vconsole-setup.service @1.631s +101ms
                    └─systemd-journald.socket
                      └─system.slice
                        └─-.slice

What I have done so far, creating a shutdown task for systemd to fsck my pretty big EFI partition then unmount it properly. I had the impression that fsck during boot was slowing it down, but clearly not. Also added tsc=unstable as dmesg suggested, but it does not have any impact on boot time. I’ve tried linux-lts kernel and linux-amd kernel but no luck. Tried to disable xhci/usb ports from bios, PCIE power settings, did not get any result. Tried to change hooks order or even removing some of them. But so far nothing helped with 20secs delayed boot. Also I have some xhci/usb module errors that I don’t understand :confused:

My modules and hooks list:

MODULES=(amdgpu nvme usbhid)
HOOKS=(base consolefont block filesystems fsck modconf udev systemd kms keyboard keymap)

I am using refind as boot loader with manual booting with graphics on option. I have kmscon which works just fine with my HiDPI monitor. Altho amdgpudrmfb (fb0) does not really print systemd status messages or work with plymouth.

Do you have any idea where to look for this problem? Thank you in advance.

Ps: this form did not allow me to paste links here, but I will try to provide dmesg output and boot svg later.

My Dmesg output:
–pastebin.com/CfQsswBq
and systemd-analyze boot output:
–pasteboard.co/7T8tya48sgUI.jpg

I too have a HX99G. I build Ultimate Edition Arch Linux.

If you dont use lvm, encryption or dm then you can almost bypass initrd altogether.

If I remember correctly, you just have edit boot configuration to include root partition UUID and remove initrd.

It was dead easy on fedora and older ASUS + lenovo laptops.

before:


after:

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.