Re: A floppy driver in the debian installer kernel
Hi Adrian, Thank you for your answer. Sorry for my -not so clear- previous message. There is an alternative between these two patches : only one of the two may be merged. Indeed, a choice should be made : to have the floppy driver built-in (in all stock kernels or in the alpha-generic flavor only ?) or to ship the module in the udeb. I am sorry that I am not able to test (and certainly correct...) these two patches presently - but I just hope that it may help to find a solution. (actually I contemplated opening a bug report some months ago, but I never found the time to test) Regards, JH Chatenet Le mardi 21 avril à 18h 59mn 43s (+0200), John Paul Adrian Glaubitz a écrit : > Hello! > > On 4/21/20 4:00 PM, jhcha54008 wrote: > > PS : it is the opportunity to thank you (and Samuel Thibault) for all your > > work on the alpha kernel and > > towards a working debian installer on alpha - and the other ports ! > > You're welcome. Although it's sometimes so frustrating that I'm considering > to stop. But I can still keep myself motivated. > > > First patch : have the floppy driver built-in > > > > diff -Naur a/linux-5.5.17/debian/config/alpha/config > > b/linux-5.5.17/debian/config/alpha/config > > --- a/linux-5.5.17/debian/config/alpha/config 2020-04-15 > > 04:35:16.0 +0200 > > +++ b/linux-5.5.17/debian/config/alpha/config 2020-04-21 > > 15:31:52.645845117 +0200 > > @@ -120,7 +120,7 @@ > > ## > > ## file: drivers/block/Kconfig > > ## > > -CONFIG_BLK_DEV_FD=m > > +CONFIG_BLK_DEV_FD=y > > CONFIG_BLK_DEV_UMEM=m > > CONFIG_BLK_DEV_SX8=m > > CONFIG_CDROM_PKTCDVD=m > > > > Second patch : ship the floppy module in the kernel udeb > > > > diff -Naur > > a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > > b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > > --- a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > > 2018-12-29 20:49:45.0 +0100 > > +++ b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > > 2020-04-21 15:36:55.527347025 +0200 > > @@ -1 +1,2 @@ > > #include > > +floppy > > I don't think it makes sense to add a floppy module when you compile floppy > support into the kernel. If it's compiled in, the driver is always present. > > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer - glaub...@debian.org > `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de > `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Updated installation images for Debian Ports 2020-04-19
John, I only provided a temporary workaround (a hack, that ugly, but will work) in case somebody really wants to try it quickly. In no way it was supposed to be 'official' or 'correct'. Obviously compiling it into installer kernel or udeb is the only option forward, and this is what I said in 'or fix the iso build scripts to include it too.'. By 'include', I meant, installer kernel compiled to include it in initrd.gz, not copy it from other package or other hack. Also, thanks for the new ISO images and your work on this! On Tue, 21 Apr 2020 at 18:04, John Paul Adrian Glaubitz wrote: > > On 4/21/20 7:59 PM, Witold Baryluk wrote: > >>> It should be relatively easy to put it there manually (unpack, > >>> repack), or fix the iso build scripts to include it too. > >> debian-installer does not use a kernel package, it boots the bare kernel > >> image > >> and loads additional modules either from the initial ramdisk or module > >> udebs > >> such as "ata-modules-5.5.0-2-alpha". > >> > >> Compiling the module into the kernel is surely the easiest approach. > > > > Yes, I know. I am just saying where one can get compatible module in > > case somebody wants to get the floppy.ko manually and use it. I did > > say it is not in the initrd or in the udeb, so obviously it is not > > working now. We all know that. > > You talked about unpacking and repacking the kernel package and also modifying > the ISO build scripts to include the floppy module which what I was answering > to. > > There is one official way of getting a module into debian-installer and those > are udebs, whether you are creating a netboot image or an installation CD > does not make a difference as both the netboot and the CD images for > debian-installer > just differ in their initrds. The former has more network drivers udebs > included > in the initrd while the CD installer initrd has more storage driver udebs > included. > > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer - glaub...@debian.org > `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de > `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Updated installation images for Debian Ports 2020-04-19
On 4/21/20 7:59 PM, Witold Baryluk wrote: >>> It should be relatively easy to put it there manually (unpack, >>> repack), or fix the iso build scripts to include it too. >> debian-installer does not use a kernel package, it boots the bare kernel >> image >> and loads additional modules either from the initial ramdisk or module udebs >> such as "ata-modules-5.5.0-2-alpha". >> >> Compiling the module into the kernel is surely the easiest approach. > > Yes, I know. I am just saying where one can get compatible module in > case somebody wants to get the floppy.ko manually and use it. I did > say it is not in the initrd or in the udeb, so obviously it is not > working now. We all know that. You talked about unpacking and repacking the kernel package and also modifying the ISO build scripts to include the floppy module which what I was answering to. There is one official way of getting a module into debian-installer and those are udebs, whether you are creating a netboot image or an installation CD does not make a difference as both the netboot and the CD images for debian-installer just differ in their initrds. The former has more network drivers udebs included in the initrd while the CD installer initrd has more storage driver udebs included. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Updated installation images for Debian Ports 2020-04-19
On Tue, 21 Apr 2020 at 17:57, John Paul Adrian Glaubitz wrote: > > On 4/21/20 7:53 PM, Witold Baryluk wrote: > > floppy.ko for alpha is in the kernel image deb file, > > > > debian-10.0-alpha-NETINST-1.iso/iso9660://pool-alpha/main/l/linux/linux-image-5.5.0-1-alpha-smp_5.5.13-2_alpha.deb/deb://CONTENTS/lib/modules/5.5.0-1-alpha-smp/kernel/drivers/block > > > > but it is not present in any udeb file, or in the > > debian-10.0-alpha-NETINST-1.iso/iso9660://boot/initrd.gz/gunzip://ucpio://lib/modules/5.5.0-1-alpha-generic/kernel/drivers/block > > > > It should be relatively easy to put it there manually (unpack, > > repack), or fix the iso build scripts to include it too. > debian-installer does not use a kernel package, it boots the bare kernel image > and loads additional modules either from the initial ramdisk or module udebs > such as "ata-modules-5.5.0-2-alpha". > > Compiling the module into the kernel is surely the easiest approach. Yes, I know. I am just saying where one can get compatible module in case somebody wants to get the floppy.ko manually and use it. I did say it is not in the initrd or in the udeb, so obviously it is not working now. We all know that.
Re: Updated installation images for Debian Ports 2020-04-19
On 4/21/20 7:53 PM, Witold Baryluk wrote: > floppy.ko for alpha is in the kernel image deb file, > > debian-10.0-alpha-NETINST-1.iso/iso9660://pool-alpha/main/l/linux/linux-image-5.5.0-1-alpha-smp_5.5.13-2_alpha.deb/deb://CONTENTS/lib/modules/5.5.0-1-alpha-smp/kernel/drivers/block > > but it is not present in any udeb file, or in the > debian-10.0-alpha-NETINST-1.iso/iso9660://boot/initrd.gz/gunzip://ucpio://lib/modules/5.5.0-1-alpha-generic/kernel/drivers/block > > It should be relatively easy to put it there manually (unpack, > repack), or fix the iso build scripts to include it too. debian-installer does not use a kernel package, it boots the bare kernel image and loads additional modules either from the initial ramdisk or module udebs such as "ata-modules-5.5.0-2-alpha". Compiling the module into the kernel is surely the easiest approach. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Updated installation images for Debian Ports 2020-04-19
floppy.ko for alpha is in the kernel image deb file, debian-10.0-alpha-NETINST-1.iso/iso9660://pool-alpha/main/l/linux/linux-image-5.5.0-1-alpha-smp_5.5.13-2_alpha.deb/deb://CONTENTS/lib/modules/5.5.0-1-alpha-smp/kernel/drivers/block but it is not present in any udeb file, or in the debian-10.0-alpha-NETINST-1.iso/iso9660://boot/initrd.gz/gunzip://ucpio://lib/modules/5.5.0-1-alpha-generic/kernel/drivers/block It should be relatively easy to put it there manually (unpack, repack), or fix the iso build scripts to include it too. On Tue, 21 Apr 2020 at 13:30, Darren Goossens wrote: > > For reference, the recipe at: > > The recipe at https://lists.debian.org/debian-alpha/2019/11/msg00033.html > > for adding firmware to the install disk did indeed work. > > I booted with the modified install disk in the SCSI CD drive and the original > in a second IDE CDROM drive that runs on a PCI card. While the installer > could not see the SCSI CDROM drive with the install disk in it once control > was handed over from the initial boot (step where it looks for install media > initially failed), it could see the IDE CDROM and then switched to that for > the rest of the install. > > Worked well. > >
Re: A floppy driver in the debian installer kernel
Hello! On 4/21/20 4:00 PM, jhcha54008 wrote: > PS : it is the opportunity to thank you (and Samuel Thibault) for all your > work on the alpha kernel and > towards a working debian installer on alpha - and the other ports ! You're welcome. Although it's sometimes so frustrating that I'm considering to stop. But I can still keep myself motivated. > First patch : have the floppy driver built-in > > diff -Naur a/linux-5.5.17/debian/config/alpha/config > b/linux-5.5.17/debian/config/alpha/config > --- a/linux-5.5.17/debian/config/alpha/config 2020-04-15 04:35:16.0 > +0200 > +++ b/linux-5.5.17/debian/config/alpha/config 2020-04-21 15:31:52.645845117 > +0200 > @@ -120,7 +120,7 @@ > ## > ## file: drivers/block/Kconfig > ## > -CONFIG_BLK_DEV_FD=m > +CONFIG_BLK_DEV_FD=y > CONFIG_BLK_DEV_UMEM=m > CONFIG_BLK_DEV_SX8=m > CONFIG_CDROM_PKTCDVD=m > > Second patch : ship the floppy module in the kernel udeb > > diff -Naur a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > --- a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > 2018-12-29 20:49:45.0 +0100 > +++ b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image > 2020-04-21 15:36:55.527347025 +0200 > @@ -1 +1,2 @@ > #include > +floppy I don't think it makes sense to add a floppy module when you compile floppy support into the kernel. If it's compiled in, the driver is always present. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
A floppy driver in the debian installer kernel
Hi Adrian and Michael, Indeed, it would be great to have a floppy driver at installation time. But it seems that the floppy-module udeb was removed. Would it be possible to ship it in the udeb kernel package instead, either built-in or as a module ? I wonder if one of the two following patches (against source package 'linux' - one patch would suffice !) would work. They are untested - but I hope it will help to find the correct solution nevertheless. Regards, JH Chatenet PS : it is the opportunity to thank you (and Samuel Thibault) for all your work on the alpha kernel and towards a working debian installer on alpha - and the other ports ! First patch : have the floppy driver built-in diff -Naur a/linux-5.5.17/debian/config/alpha/config b/linux-5.5.17/debian/config/alpha/config --- a/linux-5.5.17/debian/config/alpha/config 2020-04-15 04:35:16.0 +0200 +++ b/linux-5.5.17/debian/config/alpha/config 2020-04-21 15:31:52.645845117 +0200 @@ -120,7 +120,7 @@ ## ## file: drivers/block/Kconfig ## -CONFIG_BLK_DEV_FD=m +CONFIG_BLK_DEV_FD=y CONFIG_BLK_DEV_UMEM=m CONFIG_BLK_DEV_SX8=m CONFIG_CDROM_PKTCDVD=m Second patch : ship the floppy module in the kernel udeb diff -Naur a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image --- a/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image 2018-12-29 20:49:45.0 +0100 +++ b/linux-5.5.17/debian/installer/modules/alpha-generic/kernel-image 2020-04-21 15:36:55.527347025 +0200 @@ -1 +1,2 @@ #include +floppy
Re: Updated installation images for Debian Ports 2020-04-19
For reference, the recipe at: The recipe at https://lists.debian.org/debian-alpha/2019/11/msg00033.html for adding firmware to the install disk did indeed work. I booted with the modified install disk in the SCSI CD drive and the original in a second IDE CDROM drive that runs on a PCI card. While the installer could not see the SCSI CDROM drive with the install disk in it once control was handed over from the initial boot (step where it looks for install media initially failed), it could see the IDE CDROM and then switched to that for the rest of the install. Worked well.