View previous topic :: View next topic |
Author |
Message |
simoon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2024 Posts: 3
|
Posted: Fri Oct 25, 2024 8:11 am Post subject: Ugrd and enabling kernel modules |
|
|
Need some help with ugrd if anyone can provide assistance.
Yesterday I finally managed to do a luks and btrfs install using ugrd following this tutorial
https://www.youtube.com/watch?v=5n7GAW6dUZQ
However ugrd for some reason is ignoring a load of kernel modules and my sound card is not available due to this. Does anyone know how I can enable kernel modules with ugrd? There is a part in the video above that says to use
but I don't know how to use it. There doesn't seem to be much documentation arround ugrd, that I can find anyway.
Here is a picture of my ugrd output.
https://ibb.co/NjZYr4k |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 2021
|
Posted: Fri Oct 25, 2024 12:37 pm Post subject: |
|
|
I know nothing about this "ugrd" however it is very apparent from the picture that "ugrd.kmod.nosound" is blocking any sound modules from loading. Similar can be said for novideo for graphics modules and nonetwork for wifi and ethernet |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
simoon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2024 Posts: 3
|
Posted: Fri Oct 25, 2024 12:48 pm Post subject: |
|
|
grknight wrote: | I know nothing about this "ugrd" however it is very apparent from the picture that "ugrd.kmod.nosound" is blocking any sound modules from loading. Similar can be said for novideo for graphics modules and nonetwork for wifi and ethernet |
Thanks for the reply
I managed to make some changes by editing the config.toml like so, adding in some of the ignored modules.
Code: | modules = [
"ugrd.kmod.standard_mask",
# "ugrd.crypto.cryptsetup", # This is included by the gpg module
# "ugrd.crypto.gpg", # This is included by the smartcard module
# "ugrd.crypto.smartcard",
"ugrd.kmod.nvidia_drm",
"ugrd.kmod.rfkill",
"ugrd.kmod.nvidia",
"ugrd.kmod.snd_hda_codec_hdmi",
"ugrd.kmod.ledtrig_audio",
"ugrd.kmod.snd_hda_codec",
"ugrd.kmod.snd_hda_core",
"ugrd.kmod.rapl",
"ugrd.kmod.snd_hwdep",
"ugrd.kmod.snd_pcm",
"ugrd.kmod.video",
"ugrd.kmod.snd_timer",
"ugrd.kmod.pcspkr",
"ugrd.kmod.sp5100_tco",
"ugrd.kmod.snd",
"ugrd.kmod.k10temp",
"ugrd.kmod.i2c_piix4",
"ugrd.kmod.soundcore",
"ugrd.kmod.r8169",
"ugrd.kmod.wmi",
"ugrd.kmod.joydev",
"ugrd.kmod.nfnetlink",
"ugrd.kmod.nouveau",
"ugrd.kmod.snd_hda_codec_realtek",
"ugrd.kmod.snd_hda_codec_ca0132",
"ugrd.kmod.gigabyte_wmi",
"ugrd.kmod.wmi_bmof",
"ugrd.kmod.pcieport",
]
|
Still not getting any sound though. Do you know how I would disable the nosound option?
This is the config.toml: https://pastebin.com/jXMKadWt
But I can't see any option for it and the nosound isn't listed in there. It is mentioned in the documentation for ugrd, but it doesn't say how to change it.
https://github.com/desultory/ugrd/blob/main/docs/configuration.md
I'm fairly new to Linux so some of this stuff is a mystery to me. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 2021
|
Posted: Fri Oct 25, 2024 1:12 pm Post subject: |
|
|
According to https://github.com/desultory/ugrd/blob/main/src/ugrd/kmod/standard_mask.toml you should do the opposite. Empty out the modules option to load the modules by this tool.
ugrd.kmod.standard_mask includes no sound, video or network.
Maybe it would save this for udev later but then it is confusing on the reasoning at the same time.
Only the author could really explain this. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
simoon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2024 Posts: 3
|
Posted: Fri Oct 25, 2024 2:28 pm Post subject: |
|
|
grknight wrote: | According to https://github.com/desultory/ugrd/blob/main/src/ugrd/kmod/standard_mask.toml you should do the opposite. Empty out the modules option to load the modules by this tool.
ugrd.kmod.standard_mask includes no sound, video or network.
Maybe it would save this for udev later but then it is confusing on the reasoning at the same time.
Only the author could really explain this. |
Thanks, fount the nosound file
Code: |
kmod_ignore = [
'snd', 'soundcore', 'pcspkr', 'snd_hda_core', 'snd_hda_codec', 'snd_hda_ext_core', 'snd_hwdep', # base
#'snd_timer', 'snd_hrtimer', # alsa
#'snd_pcm', 'snd_rawmidi', 'snd_seq_device', 'snd_seq', 'snd_seq_dummy', 'snd_ump', # subtypes
#'snd_usb_audio', 'snd_usbmidi_lib', # usb
#'snd_soc_core', 'snd_soc_acpi', 'snd_acp_config', # soc
'snd_soc_acpi_intel_match', # intel soc
#'snd_sof', 'snd_sof_utils', 'snd_sof_pci', 'snd_sof_xtensa_dsp', # sof
'snd_sof_intel_hda', 'snd_sof_intel_hda_common', # intel sof
'snd_hda_intel', 'snd_intel_sdw_acpi', 'snd_intel_dspcfg', # intel
'ac97_bus', 'snd_rpl_pci_acp6x', 'snd_rn_pci_acp3x', 'snd_pci_acp3x', # AMD
#'snd_hda_codec_hdmi', # hdmi
#'soundwire_cadence', 'soundwire_bus', 'soundwire_generic_allocation', # soundwire
#'ledtrig_audio', 'ac97_bus', # misc
]
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zen_desu Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 25 Oct 2024 Posts: 137
|
Posted: Fri Oct 25, 2024 3:19 pm Post subject: Re: Ugrd and enabling kernel modules |
|
|
simoon wrote: | Need some help with ugrd if anyone can provide assistance.
Yesterday I finally managed to do a luks and btrfs install using ugrd following this tutorial
https://www.youtube.com/watch?v=5n7GAW6dUZQ
However ugrd for some reason is ignoring a load of kernel modules and my sound card is not available due to this. Does anyone know how I can enable kernel modules with ugrd? There is a part in the video above that says to use
but I don't know how to use it. There doesn't seem to be much documentation arround ugrd, that I can find anyway.
Here is a picture of my ugrd output.
https://ibb.co/NjZYr4k |
Hi,
ugrd ignoring sound/video/network kmods by default is by design. These kernel modules are not needed to mount the rootfs, and can be loaded later. Are you unable to modprobe these modules once booted, or do you expect them before the rootfs is being used?
If you want to force-load certain modules, you can add them to 'kmod_init' in /etc/ugrd/config.toml like Code: | kmod_init = ['nvidia', 'amd', 'other_random_kmod'] |
Most modules which are unnecessary to boot will be ignored by the ugrd.kmod.standard_mask module which includes a few more categorized modules for ignoring kmods.
If you don't want it to ignore any kmods, you can remove the mask modules from the modules definition in the config. You can also use the lsmodlspci autodetection which will pull modules based on what is currently loaded or detected by lspci.
---
Looking deeper at your image, was this the first time you ran it? I see it mentions the build dir is fresh, and I can't see where it wrote to, but if you didn't specify an output path it will write the image to /tmp. The other thing that is strange is that the build dir is 150mb, that seems excessive based on the kmods it pulled. What are the contents of your config.toml? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|