Discussion:
Amiga PCMCIA ethernet on d-i
(too old to reply)
John Paul Adrian Glaubitz
2021-09-26 13:00:02 UTC
Permalink
Hello Carlos!
While a valid hd-media for current Unstable is being built by Adrian,
I though I could play around with Debian Sarge that was the latest
version with official m68k support. I got into my hands a D-Link
DE-660+ PCMCIA card that according [1] should work on Linux; I
already tested on AmigaOS and NetBSD/amiga and it's working like a
charm. The issue is that Debian Sarge doesn't detect it and there is
not even a kernel message referencing the pcmcia.
Did you check whether the necessary kernel modules are present on the
booted installer system? They should be in /lib/modules/$(VERSION)/*.

As you already know from the unstable hd-media image, not different
d-i images ship different module packages.

For a certain driver to be available in a debian-installer image, it first
must be enabled in the kernel configuration, so you have to check there
first.

Then it needs to be enabled as a debian-installer module in the directory
debian/installer/* in the kernel packaging source [1].

Then the module udeb packages generated in [1] need to be included in
the debian-installer image package list if it's a udeb that must be
included in the initrd (for example, networking drivers for the network
installer image).

The idea is that the initrd contains all the modules that are needed to
get the system up and running and access the installation medium. Thus,
the cdrom installer image needs storage drivers in its initrd while the
hd-media image needs modules for various filesystems and loopback mounting.

In the past years, I have only worked on the cdrom debian-installer images
and not touched network and hd-media installation as most people use the
standard installation CDs. That's why you ran into the problems with hd-media
when you tested it.

But we will hopefully fix the issues with the hd-media installation images the
next days. I just have to go through the module package lists and check which
of these we need for HD installation and which will actually work. Firewire
modules will certainly not work on m68k, for example.

Adrian
[1] https://salsa.debian.org/kernel-team/linux/-/tree/master/debian/installer/modules
[2] https://salsa.debian.org/installer-team/debian-installer/-/tree/master/build/pkg-lists
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Michael Schmitz
2021-09-26 22:10:01 UTC
Permalink
Hi Carlos
Hi Adrian,
Sent: domingo, 26 de septiembre de 2021 14:51
Post by John Paul Adrian Glaubitz
Did you check whether the necessary kernel modules are present on the
booted installer system? They should be in /lib/modules/$(VERSION)/*.
On Debian Sarge it lists: 8390.o, a2065.o, apne.o, ariadne.o, dummy.o, hydra.o and zorro8390.o
The apne.o is the Amiga PCMCIA NE2000-compatible driver [1]. But it won't detect the DE-660+ for some reason (it ends on a kernel dump) if I force loading it.
Post by John Paul Adrian Glaubitz
Then it needs to be enabled as a debian-installer module in the directory
debian/installer/* in the kernel packaging source [1].
The module that contains apne driver is not on hd-media initrd, but it is in a udeb package -don't know which one- read after iso-scan got the ISO from any partition with a supported filesystem. So I can test it on Sarge hd-media, but not on recent snapshots.
Also, I have seen there have been very recent kernel patches from Michael Schmitz to the Amiga PCMCIA driver [2], it looks like for probing 16-bit cards; so I think it will be better to make tests on a recent kernel snapshot rather than the old Sarge distribution. I will wait for the fixed hd-media.
Please check whether your card is indeed one of the supported 8390 or
compatible based cards (10 or 100 Mbit).

I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).

Cheers,

Michael
If I am successful, I will make a install video -like the one I did for NetBSD [3]- and write updated install and FAQ documentation :)
Regards,
Carlos
[1] https://elixir.bootlin.com/linux/v5.14.7/source/drivers/net/ethernet/8390/apne.c
[3]

Carlos Milán Figueredo | HispaMSX System Operator | http://www.hispamsx.org | | telnet://bbs.hispamsx.org | https://calnus.com
Geert Uytterhoeven
2021-09-27 08:20:01 UTC
Permalink
Hi Michael,
Post by Michael Schmitz
I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).
Thanks for your perseverance!
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.

Gr{oetje,eeting}s,

Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ***@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
John Paul Adrian Glaubitz
2021-09-27 08:30:03 UTC
Permalink
Post by Geert Uytterhoeven
Post by Michael Schmitz
I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).
Thanks for your perseverance!
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.
Yes, it would be great if these improvements could get merged. :-)

And I should finally get my X-Surf500 setup configured so we can work on
that driver as well.

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Michael Schmitz
2021-09-27 20:50:01 UTC
Permalink
Hi Adrian,

yes, and I urgently need another few weeks confined in my home office
to tackle that one ...

Cheers,
Michael

On Mon, Sep 27, 2021 at 9:28 PM John Paul Adrian Glaubitz
Post by John Paul Adrian Glaubitz
Post by Geert Uytterhoeven
Post by Michael Schmitz
I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).
Thanks for your perseverance!
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.
Yes, it would be great if these improvements could get merged. :-)
And I should finally get my X-Surf500 setup configured so we can work on
that driver as well.
Adrian
--
.''`. John Paul Adrian Glaubitz
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
John Paul Adrian Glaubitz
2021-09-28 08:20:01 UTC
Permalink
Hi Michael!
Post by Michael Schmitz
yes, and I urgently need another few weeks confined in my home office
to tackle that one ...
Yes, I definitely want to get this off my TODO list as well ;-).

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Michael Schmitz
2021-09-28 06:40:02 UTC
Permalink
Hi Geert,

thanks for your words of encouragement!
Post by Geert Uytterhoeven
Hi Michael,
Post by Michael Schmitz
I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).
Thanks for your perseverance!
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.
Quick inspection of DaveM's netdev status page confirms that it indeed is.

I've so far sent APNE patches to net, not net-next, as these are
improvements to an existing driver. Anything wrong with that?

Cheers,

Michael
Post by Geert Uytterhoeven
Gr{oetje,eeting}s,
Geert
Geert Uytterhoeven
2021-09-28 07:20:02 UTC
Permalink
Hi Michael,
Post by Michael Schmitz
Post by Geert Uytterhoeven
Post by Michael Schmitz
I wouldn't hold my breath waiting for the 16 bit / 100 Mbit patches to
be accepted into the mainstream kernel. Haven't had any feedback from
netdev, and the review process on linux-m68k wasn't too encouraging
either. That said, I have another respin of the patch series in the
pipeline (need to check that this is a good time to submit patches to
netdev first).
Thanks for your perseverance!
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.
Quick inspection of DaveM's netdev status page confirms that it indeed is.
I've so far sent APNE patches to net, not net-next, as these are
improvements to an existing driver. Anything wrong with that?
Fixes should have "[net]", new development "[net-next]".
I usually just ignore all of that, as I mainly send fixes to the netdev
maintainers ;-)

Gr{oetje,eeting}s,

Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ***@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Michael Schmitz
2021-09-28 07:30:01 UTC
Permalink
Hi Geert,
Post by Geert Uytterhoeven
Post by Michael Schmitz
Post by Geert Uytterhoeven
We're at rc3 (i.e. past merge window), so net-next should be open for
submission.
Quick inspection of DaveM's netdev status page confirms that it indeed is.
I've so far sent APNE patches to net, not net-next, as these are
improvements to an existing driver. Anything wrong with that?
Fixes should have "[net]", new development "[net-next]".
OK - patch has hopefully made it to netdev now.
Post by Geert Uytterhoeven
I usually just ignore all of that, as I mainly send fixes to the netdev
maintainers ;-)
The perks of a maintainer, I'm sure. But I may poke Arnd this time if no
review is forthcoming. He may remember ...

Cheers,

Michael
John Paul Adrian Glaubitz
2021-09-28 08:20:01 UTC
Permalink
Hi Michael!
Post by Michael Schmitz
Post by Geert Uytterhoeven
Fixes should have "[net]", new development "[net-next]".
OK - patch has hopefully made it to netdev now.
I'm not seeing it here, am I missing something?
Post by Michael Schmitz
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Michael Schmitz
2021-09-28 23:00:02 UTC
Permalink
Hi Adrian,
Post by John Paul Adrian Glaubitz
Hi Michael!
Post by Michael Schmitz
Post by Geert Uytterhoeven
Fixes should have "[net]", new development "[net-next]".
OK - patch has hopefully made it to netdev now.
I'm not seeing it here, am I missing something?
Post by Michael Schmitz
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/
Not sure - I would think that is where it'll end up once reviewed and
accepted. Wish it was that fast.

Netdev use a patchwork queue to coordinate reviews - haven't had time to
look there yet.

Cheers,

Michael
Post by John Paul Adrian Glaubitz
Adrian
John Paul Adrian Glaubitz
2021-09-28 08:20:01 UTC
Permalink
Post by Michael Schmitz
Please check whether your card is indeed one of the supported
8390 or compatible based cards (10 or 100 Mbit).
FWIW, he was testing with the Sarge image. So, chances are that the
kernel is missing some of the necessary drivers because it is too
old.

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Loading...