Hi Matt,

Thank you for the input.

The iwlfifi driver gets installed with the 5.4.49 kernel:

# lspci -v | grep iw

Kernel driver in use: iwlfifi

Kernel modules: iwlwifi

With the 4.19.48 kernel, lspci -v didn't print those two lines.

# dmesg | grep firmw

[    4.433796] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

[    4.761899] iwlwifi 0000:45:00.0: loaded firmware version 50.3e391d3e.0 op_mode iwlmvm

[    4.775457] iwlwifi 0000:45:00.0: Allocated 0x00400000 bytes for firmware monitor.

I think the first message with error -2 is not related to iwlwifi.

The iwlwifi module is getting loaded automatically.  I am not using insmod or modprobe manually (like I was doing with the 4.19.48 kernel).

ifconfig shows a "wlo1" interface (which was not shown with the 4.19.48 kernel).

This interface does not show an "inet addr", so I have more work to do, but I will figure that out later after I resolve the Nvidia driver problem.



For grub, the computer always boots up in grub command mode.

This indicates "grub-install" is working, I suppose.

The problem appears to be with grub-mkconfig:

grub-mkconfig -o /boot/grub/grub.cfg

The grub.cfg file is attached.

Here's what I type to boot from command mode:

grub> set root=(hd0,1)

grub> linux /boot/vmlinuz root=/dev/nvme0n1p1

grub> boot


The SSD disk is partitioned with MBR:

The first partition is the Linux root partition.

The second partition is not used currently.

The third partition is mounted on /home.




For the nvidia driver, I was using the installer from Nvidia's web site.

I didn't realize there was a port, so I tried it now:

# cd /usr/ports/opt/nvidia

# pkgmk -d -u

This built everything, but failed in the end because nothing was previously installed.

# pkgmk -d -i

This failed because some files existed already, and it suggested the -f option.

# pkgmk -d -f -i

This built everything again, but failed in the end, and suggested the -f option again.

# pkgmk -d -f

This built everything again, and succeeded.

At this point, I can start X, but the screen resolution is wrong.

I am using a 4K monitor, but X appears to be using 1024x768.

Previously, with the 4.19.48 kernel and Nvidia's installer, the resolution was detected properly.

Maybe the fact that I ran Nvidia's installer previously (on the 5.4.49 kernel too) messed things up?


Best regards,

Dave

On Monday, July 13, 2020, 12:15:23 PM CDT, Matt Housh <jaeger@crux.ninja> wrote:


I'm late to this thread, obviously, but a few things:

Regarding the wireless issues, usually all you need for iwlwifi cards is
the iwlwifi module and linux-firmware package. If you're missing
firmware, you can see what it's looking for with 'dmesg | grep firmw'.
The other modules are not necessary to load manually.

Regarding grub, usually you only need to do 2 things for a standard install:

1. For UEFI: grub-install /boot/efi (or wherever you mounted your ESP)
    For MBR: grub-install /dev/sda (or whichever disk you intend to boot)
2. grub-mkconfig -o /boot/grub/grub.cfg

Specifying bootloader ids or other things is generally not required.

Regarding nvidia, are you using the port 'opt/nvidia' or the upstream
installer? I'd recommend using the port as it's already tailored for
CRUX. It also seems to work just fine with 5.4.x kernels. At least for
my systems with kernel 5.4.44/5.4.49 and nvidia 450.57.

Regards,
Matt


_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
https://lists.crux.nu/mailman/listinfo/crux