Re: [DNG] Weird problem with every kernel update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 27/7/19 8:29 pm, Pontus Goffe via Dng wrote: > On 2019-07-27 03:44, Andrew McGlashan wrote: >> Okay, it turns out that Devuan Jessie includes two extra modules >> that needed to be added to the Devuan Ascii >> /etc/initramfs-tools/modules file. . > Thank you very much! Excellent, glad I could help. I had quit a few USB modules for various things, including "special" keyboards that wouldn't work with standard modules. > Now I can remote reboot my custom kernel again without first > unplugging the wireless USB mouse/keyboard transmitter. My .config > already had evdev, but not CONFIG_USB_XHCI_PCI. I never suspected > the kernel. I've still got a server that won't reboot fully, and won't WOL either, if I am physically near the server, it seems to work every time though... some kind of painful Murphy's law going on. I was hoping that machine would reboot properly with the extra USB modules as it is similar (same box model) as the other one that /needed/ the rescue stick to fix Cheers A. -BEGIN PGP SIGNATURE- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXTxiqwAKCRCoFmvLt+/i +zCHAQDVZyV7zCHZVm6fnIPsLE4bi4GQKGUMiuCIIZ0D0UysiwEAsBcVvW7byr4Q hZm9oEqu0cbg4CGHIFSSz5s6e0vDVT0= =8wFE -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
Hi, On 2019-07-27 03:44, Andrew McGlashan wrote: Okay, it turns out that Devuan Jessie includes two extra modules that needed to be added to the Devuan Ascii /etc/initramfs-tools/modules file. I'm not sure exactly when those two modules become necessary (to add to the modules file), but until they were added the only way I could successfully get a working boot was via the rescue method using the older Devuan Jessie USB stick which always worked. This is the modinfo for these two extra modules: # modinfo evdev filename: /lib/modules/4.9.0-9-amd64/kernel/drivers/input/evdev.ko license:GPL description:Input driver event char devices author: Vojtech Pavlik alias: input:b*v*p*e*-e*k*r*a*m*l*s*f*w* depends: retpoline: Y intree: Y vermagic: 4.9.0-9-amd64 SMP mod_unload modversions # modinfo xhci_pci filename: /lib/modules/4.9.0-9-amd64/kernel/drivers/usb/host/xhci-pci.ko license:GPL description:xHCI PCI Host Controller Driver alias: pci:v*d*sv*sd*bc0Csc03i30* depends:usbcore,xhci-hcd retpoline: Y intree: Y vermagic: 4.9.0-9-amd64 SMP mod_unload modversions Kind Regards AndrewM Thank you very much! Now I can remote reboot my custom kernel again without first unplugging the wireless USB mouse/keyboard transmitter. My .config already had evdev, but not CONFIG_USB_XHCI_PCI. I never suspected the kernel. //PG ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 27/6/19 10:00 am, Gregory Nowak wrote: > On Wed, Jun 26, 2019 at 01:10:20AM +1000, Andrew McGlashan wrote: >> On 25/6/19 10:23 am, Gregory Nowak wrote: >>> On Mon, Jun 24, 2019 at 06:50:48AM +1000, Andrew McGlashan >>> wrote: Hardware NUC6i7KYK. Every time I do a kernel upgrade (Devuan ASCII), rebooting loses USB devices shortly after grub kicks in. >>> >>> Do you have the necessary module entries for your USB >>> controller/hub in /etc/initramfs-tools/modules? >> >> Yes, I'm sure I actually have some extra modules in there just in >> case that won't hurt to be there and the rescue boot picks up the >> chroot environment copy of the modules file okay. > > Even though the kernel upgrade scripts generate a new initramfs, > have you tried generating them by hand with update-initramfs -u -k > all after the upgrade process? What about creating them from > scratch with the -c flag instead of -u? I don't see why either of > those would make a difference, but it wouldn't hurt to check if > they do for some reason. That's all I can think of for now. Okay, it turns out that Devuan Jessie includes two extra modules that needed to be added to the Devuan Ascii /etc/initramfs-tools/modules file. I'm not sure exactly when those two modules become necessary (to add to the modules file), but until they were added the only way I could successfully get a working boot was via the rescue method using the older Devuan Jessie USB stick which always worked. This is the modinfo for these two extra modules: # modinfo evdev filename: /lib/modules/4.9.0-9-amd64/kernel/drivers/input/evdev.ko license:GPL description:Input driver event char devices author: Vojtech Pavlik alias: input:b*v*p*e*-e*k*r*a*m*l*s*f*w* depends: retpoline: Y intree: Y vermagic: 4.9.0-9-amd64 SMP mod_unload modversions # modinfo xhci_pci filename: /lib/modules/4.9.0-9-amd64/kernel/drivers/usb/host/xhci-pci.ko license:GPL description:xHCI PCI Host Controller Driver alias: pci:v*d*sv*sd*bc0Csc03i30* depends:usbcore,xhci-hcd retpoline: Y intree: Y vermagic: 4.9.0-9-amd64 SMP mod_unload modversions Kind Regards AndrewM -BEGIN PGP SIGNATURE- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXTusfQAKCRCoFmvLt+/i +13lAPwKuYZzYsnZW+/N39rmDKCwQ8GNlKFvzumrUnHDb2zW4gD+N0UUZOHZN1S+ o23RI/5AusrgcfUE0H6/a8s6g3NEYhg= =X58/ -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
Hello Although update-initramfs should be done automatically after installing a new kernel, a update-initramfs -u -k all && update-grubdone manually just after installing a new kernel version and before shutting down / rebooting should prevent you from having that problem. It seems that update-initramfs does not recognize the newly installed kernel. A problem identifying which is the most current kernel version would cause what a wrong update-initramfs without using "all"... but with "all"? It is important that next time you inspect in detail the installation of the new kernel: see possible APT/DPKG errors when you upgrade, check that there is enough space in the partitions, see if an initramfs of the newly installed kernel is generated or not ( ls /var/lib/initramfs-tools ; ls /boot ; cat /etc/initramfs-tools/update-initramfs.conf ) both automatically and after a manual "update-initramfs -u -k all", see grub entries ( cat /boot/grub/grub.cfg ) both automatically and after a manual "update-grub". Best regards! De: Andrew McGlashan Para: Devuan DNG Enviado: Domingo 23 de junio de 2019 23:08 Asunto: [DNG] Weird problem with every kernel update -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, Hardware NUC6i7KYK. Every time I do a kernel upgrade (Devuan ASCII), rebooting loses USB devices shortly after grub kicks in. I have to boot a USB stick, which (Devuan Jessie Live), start a rescue session and do all the following steps: 1. auto-detect RAID devices 2. enter a shell 3. unlock lvms LUKS encrypted volume (which has root and swap) 4. vgchange -ay 5. exit shell Back to the rescue: 6. start root shell choosing root volume from lv (mounting /boot). 7. /bin/bash 8. update-initramfs -u -k all Then, every single time I perform these steps, the NUC device will continue to find USB properly until the next kernel update and I've got to go through these specific steps again, every single time. If I do the update and perform step 8 above before rebooting, I still have a problem; I have to go via the USB live ISO to fix it. There are external USB disks that are a mirror, when these don't come up in the dropbear environment, then I know I have the problem. So, attaching a USB keyboard, I can see it turn off (lights out) when it gets past the grub stage of boot... so that's when I pull out the USB live ISO from Devuan Jessie. It has happened for quite a while now, but I know exactly how to fix it, but not why it is happening. - -- Kind Regards AndrewM -BEGIN PGP SIGNATURE- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXQ/mIgAKCRCoFmvLt+/i +/gZAP9v6QR3Cmvj331jkkknofxfUh+W6dnSu0BjDMUMnTeXSQEAnMm+GzpVaXnu +cyesqom1c/hIGUV+tqe8MuqxMeo1HY= =kOpl -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
On Wed, Jun 26, 2019 at 01:10:20AM +1000, Andrew McGlashan wrote: > Hi, > > On 25/6/19 10:23 am, Gregory Nowak wrote: > > On Mon, Jun 24, 2019 at 06:50:48AM +1000, Andrew McGlashan wrote: > >> Hi, > >> > >> Hardware NUC6i7KYK. > >> > >> Every time I do a kernel upgrade (Devuan ASCII), rebooting loses > >> USB devices shortly after grub kicks in. > > > > Do you have the necessary module entries for your USB > > controller/hub in /etc/initramfs-tools/modules? > > Yes, I'm sure I actually have some extra modules in there just in case > that won't hurt to be there and the rescue boot picks up the chroot > environment copy of the modules file okay. Even though the kernel upgrade scripts generate a new initramfs, have you tried generating them by hand with update-initramfs -u -k all after the upgrade process? What about creating them from scratch with the -c flag instead of -u? I don't see why either of those would make a difference, but it wouldn't hurt to check if they do for some reason. That's all I can think of for now. Greg -- web site: http://www.gregn.net gpg public key: http://www.gregn.net/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) If we haven't been in touch before, e-mail me before adding me to your contacts. -- Free domains: http://www.eu.org/ or mail dns-mana...@eu.org ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 25/6/19 10:23 am, Gregory Nowak wrote: > On Mon, Jun 24, 2019 at 06:50:48AM +1000, Andrew McGlashan wrote: >> Hi, >> >> Hardware NUC6i7KYK. >> >> Every time I do a kernel upgrade (Devuan ASCII), rebooting loses >> USB devices shortly after grub kicks in. > > Do you have the necessary module entries for your USB > controller/hub in /etc/initramfs-tools/modules? Yes, I'm sure I actually have some extra modules in there just in case that won't hurt to be there and the rescue boot picks up the chroot environment copy of the modules file okay. Thanks AndrewM -BEGIN PGP SIGNATURE- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXRI5WAAKCRCoFmvLt+/i +0O6AP9oeitwtxVVsbx6Y6j7BQCtR1juGjm/PBTUJjvXjtUlpwD9F5YnbK87doXr lsw/BNgACn70Zv2BnAt9jTG8nHnQ/8I= =cGIb -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Weird problem with every kernel update
On Mon, Jun 24, 2019 at 06:50:48AM +1000, Andrew McGlashan wrote: > Hi, > > Hardware NUC6i7KYK. > > Every time I do a kernel upgrade (Devuan ASCII), rebooting loses USB > devices shortly after grub kicks in. Do you have the necessary module entries for your USB controller/hub in /etc/initramfs-tools/modules? Greg -- web site: http://www.gregn.net gpg public key: http://www.gregn.net/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) If we haven't been in touch before, e-mail me before adding me to your contacts. -- Free domains: http://www.eu.org/ or mail dns-mana...@eu.org ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] Weird problem with every kernel update
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, Hardware NUC6i7KYK. Every time I do a kernel upgrade (Devuan ASCII), rebooting loses USB devices shortly after grub kicks in. I have to boot a USB stick, which (Devuan Jessie Live), start a rescue session and do all the following steps: 1. auto-detect RAID devices 2. enter a shell 3. unlock lvms LUKS encrypted volume (which has root and swap) 4. vgchange -ay 5. exit shell Back to the rescue: 6. start root shell choosing root volume from lv (mounting /boot). 7. /bin/bash 8. update-initramfs -u -k all Then, every single time I perform these steps, the NUC device will continue to find USB properly until the next kernel update and I've got to go through these specific steps again, every single time. If I do the update and perform step 8 above before rebooting, I still have a problem; I have to go via the USB live ISO to fix it. There are external USB disks that are a mirror, when these don't come up in the dropbear environment, then I know I have the problem. So, attaching a USB keyboard, I can see it turn off (lights out) when it gets past the grub stage of boot... so that's when I pull out the USB live ISO from Devuan Jessie. It has happened for quite a while now, but I know exactly how to fix it, but not why it is happening. - -- Kind Regards AndrewM -BEGIN PGP SIGNATURE- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXQ/mIgAKCRCoFmvLt+/i +/gZAP9v6QR3Cmvj331jkkknofxfUh+W6dnSu0BjDMUMnTeXSQEAnMm+GzpVaXnu +cyesqom1c/hIGUV+tqe8MuqxMeo1HY= =kOpl -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng