Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

[SOLVED] unable to add g_cdc or g_ether to initramfs

Sun Jul 26, 2020 12:17 pm

Hello there,

I tried generating an initrd for usb gadget booting with nfs root, but I was unable to add the required modules:

Code: Select all

update-initramfs: Generating /boot/initrd.img-5.4.51+
/usr/sbin/mkinitramfs: 1: /etc/initramfs-tools/conf.d/modules: g_cdc: not found
my /etc/initramfs-tools/conf.d/modules looks like this:

Code: Select all

g_cdc
The modules exist and are working when booting from SD card.

Any ideas what might be wrong?

Regards
Aydan
Last edited by Aydan on Fri Jul 31, 2020 10:51 am, edited 1 time in total.

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: unable to add g_cdc or g_ether to initramfs

Thu Jul 30, 2020 10:23 am

Could somebody please try adding either g_cdc or g_ether to an initramfs to check if it is something generic or something on my setup?

burtyb
Posts: 40
Joined: Sat Mar 05, 2016 4:19 pm

Re: unable to add g_cdc or g_ether to initramfs

Thu Jul 30, 2020 11:01 am

Aydan wrote:Any ideas what might be wrong?
You need to add additional modules to /etc/initramfs-tools/modules (not /etc/initramfs-tools/conf.d/modules).

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: unable to add g_cdc or g_ether to initramfs

Thu Jul 30, 2020 11:07 am

burtyb wrote:
Thu Jul 30, 2020 11:01 am
You need to add additional modules to /etc/initramfs-tools/modules (not /etc/initramfs-tools/conf.d/modules).
You might be onto something there. I'll have a look tonight where I put the module names, but it looks like it's in /etc/initramfs-tools/conf.d/modules. :oops:

Thanks for the heads-up
Aydan

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: unable to add g_cdc or g_ether to initramfs

Thu Jul 30, 2020 4:52 pm

Thanks to @burtyb for removing the tomatoes from my eyes ;o)

Regards
Aydan

Return to “Advanced users”