• Is Broadcom BCM4401-B0 supported?

    From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to All on Wed Jul 28 21:20:02 2021
    Good evening,

    I have installed GNU/Hurd on another laptop and I'm struggling to get the network to work.

    When doing ifup /dev/eth0 (for a dhcp setup) I'm getting:

    fsysopts: /servers/socket/2: -i /dev/eth0 -a 0.0.0.0 -m 255.0.0.0: (ipc/mig) server died
    Error getting interfaces; Translator died
    Can't get list of interfaces.

    I attach the output of settrans -fga /dev/netdde /hurd/netdde

    lspci identifies the card as

    02:0e.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM4401-B0 100Base-TX (rev 02)

    and lspci -n

    02:0e.0 0200: 14e4:170c (rev 02)

    The package versions are those of the latest installer images which are from February:

    hurd 1:0.9.git20201127-5
    netdde 0.0.20200330-6
    gnumach 2:1.8+git20201129-4

    Is this ethernet card supported?

    Regards,
    João

    Initialized DDELinux 2.6
    Initializing skb subsystem
    Softirq daemon starting
    Initializing DDE page cache
    <6>Calibrating delay using timer specific routine.. 3470.48 BogoMIPS (lpj=17352437)
    <6>net_namespace: 636 bytes
    searching for dev #0<7>pci 0000:00:02.0: reg 10 32bit mmio: 0x13db8b4R
    <7>pci 0000:00:02.0: reg 14 io port: 0x13db8d0R
    <7>pci 0000:00:02.0: reg 18 32bit mmio: 0x13db8ecR
    <7>pci 0000:00:02.0: reg 1c 32bit mmio: 0x13db908R
    <7>pci 0000:00:02.1: reg 10 32bit mmio: 0x13db474R
    <7>pci 0000:00:1d.0: reg 20 io port: 0x13db0a4R
    <7>pci 0000:00:1d.1: reg 20 io port: 0x13dac64R
    <7>pci 0000:00:1d.2: reg 20 io port: 0x13da824R
    <7>pci 0000:00:1d.3: reg 20 io port: 0x13da3e4R
    <7>pci 0000:00:1d.7: reg 10 32bit mmio: 0x13d9f34R
    <6>pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
    <6>pci 0000:00:1d.7: PME# disabled
    searching for dev #1searching for dev #2searching for dev #3searching for dev #4searching for dev #5searching for dev #6searching for dev #7searching for dev #8searching for dev #9<7>pci 0000:02:04.0: reg 10 32bit mmio: 0x13d96b4R
    <6>pci 0000:02:04.0: PME# supported from D0 D3hot D3cold
    <6>pci 0000:02:04.0: PME# disabled
    <7>pci 0000:02:06.0: reg 10 32bit mmio: 0x13d9274R
    <7>pci 0000:02:06.0: supports D1 D2
    <6>pci 0000:02:06.0: PME# supported from D0 D1 D2 D3hot D3cold
    <6>pci 0000:02:06.0: PME# disabled
    <7>pci 0000:02:06.2: reg 10 32bit mmio: 0x13d8e34R
    <7>pci 0000:02:06.2: reg 14 32bit mmio: 0x13d8e50R
    <7>pci 0000:02:06.2: supports D1 D2
    <6>pci 0000:02:06.2: PME# supported from D0 D1 D2 D3hot
    <6>pci 0000:02:06.2: PME# disabled
    <7>pci 0000:02:0e.0: reg 10 32bit mmio: 0x13d89f4R
    <7>pci 0000:02:0e.0: supports D1 D2
    <6>pci 0000:02:0e.0: PME# supported from D0 D1 D2 D3hot D3cold
    <6>pci 0000:02:0e.0: PME# disabled
    searching for dev #10searching for dev #11searching for dev #12searching for dev #13searching for dev #14searching for dev #15searching for dev #16searching for dev #17searching for dev #18searching for dev #19searching for dev #20searching for dev #
    21searching for dev #22IO: name: 3c509-control, start: 110, len: 1 <6>Atheros(R) L2 Ethernet Driver - version 2.2.3
    <6>Copyright (c) 2007 Atheros Corporation.
    IO: name: de600, start: 378, len: 3
    <6>eth%d: D-Link DE-600 pocket adapter: not at I/O 0x378.
    IO: name: depca, start: 300, len: 16
    IO: name: depca, start: 200, len: 16
    <6>e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
    <6>e100: Copyright(c) 1999-2006 Intel Corporation
    <6>Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
    <6>Copyright (c) 1999-2006 Intel Corporation.
    <6>e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
    <6>e1000e: Copyright (c) 1999-2008 Intel Corporation.
    <6>Intel(R) Virtual Function Network Driver - version 1.0.0-k0
    <6>Copyright (c) 2009 Intel Corporation.
    <6>Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2-NAPI
    <6>Copyright (c) 1999-2008 Intel Corporation.
    <6>jme: JMicron JMC2XX ethernet driver version 1.0.5
    IO: name: lp486e, start: cb0, len: 16
    eth%d: i82596 initialization timed out
    <6>NetXen Network Driver version 4.0.50
    <6>ns83820.c: National Semiconductor DP83820 10/100/1000 driver. <6>pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
    <6>sky2 driver version 1.25
    <6>tehuti: Tehuti Networks(R) Network Driver, 7.29.3
    <6>tehuti: Options: hw_csum
    <6>ThunderLAN driver v1.15a
    <6>TLAN: 0 devices installed, PCI: 0 EISA: 0
    <6>uli526x: ULi M5261/M5263 net driver, version 0.9.3 (2005-7-29) <6>winbond-840.c:v1.01-e (2.4 port) Sep-11-2006 Donald Becker <becker@scyld.com>
    http://www.scyld.com/network/drivers.html
    <6>VMware vmxnet3 virtual NIC driver - version 1.0.5.0-k-NAPI
    a physical address 0xf0000 doesn't exist.
    a physical address 0x100000 doesn't exist.
    a physical address 0x100000 doesn't exist.
    l4dde26_register_rx_callback: New rx callback @ 0x103f630.
    search device eth0
    there is device dummy0, base addr: 0
    after search_netdev: cannot find eth0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jbranso@dismail.de@21:1/5 to All on Wed Jul 28 22:10:01 2021
    July 28, 2021 3:12 PM, "João Pedro Malhado" <phlogiston@sapo.pt> wrote:> Good evening,> > I have installed GNU/Hurd on another laptop and I'm struggling to get the> network to work.How easy is the installer? I'd really like to try to install it
    on a Thinkpador some such device that might work. Do you have a lot of filesystem corruption? Is it cool to be running the Hurd?Just replying because I'm bored...I've no idea what I'm talking about. I'm justa Hurd enthusiast. :)> > When doing
    ifup /dev/eth0 (for a dhcp setup) I'm getting:> > fsysopts: /servers/socket/2: -i /dev/eth0 -a 0.0.0.0 -m 255.0.0.0: (ipc/mig) server died> Error getting interfaces; Translator died> Can't get list of interfaces.> > I attach the output of settrans -
    fga /dev/netdde /hurd/netdde> > lspci identifies the card as> > 02:0e.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM4401-B0 100Base-TX (rev 02)> > and lspci -n> > 02:0e.0 0200: 14e4:170c (rev 02)> > The package versions are those of
    the latest installer images which are from> February:> > hurd 1:0.9.git20201127-5> netdde 0.0.20200330-6> gnumach 2:1.8+git20201129-4> > Is this ethernet card supported?How old is the card? I think Broadcam is not the best wifi device, but I'm
    not positive...> > Regards,> João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to jbranso@dismail.de on Thu Jul 29 11:40:03 2021
    Hello,

    On Wed, Jul 28, 2021 at 07:36:41PM +0000, jbranso@dismail.de wrote:

    How easy is the installer? I'd really like to try to install it on a Thinkpad
    or some such device that might work. Do you have a lot of filesystem corruption?
    Is it cool to be running the Hurd?

    Off course it is cool to run the Hurd! ;) You should try it out, especially if you are bored. The installer feels the same as the one for linux, so it is rather straightforward. While I had issues with some installer images, the last one from February worked pretty well (I only had some issues when choosing several
    locales).
    I have not run the system for long enough to see any file system corruption. The
    file system is ext2, so you will get the typical fsck run after a hard shutdown (I have seen X hang after some time of inactivity, and was unable to go back
    to the console).

    How old is the card? I think Broadcam is not the best wifi device, but I'm not positive...

    This is an ethernet card, not a wireless card (GNU/Hurd does not have a wireless
    stack yet). On linux it works with the b44 driver, but I don't know if that is included in netdde.

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jbranso@dismail.de@21:1/5 to All on Fri Jul 30 01:10:01 2021
    July 29, 2021 5:15 AM, "João Pedro Malhado" <phlogiston@sapo.pt> wrote:> Hello,> > On Wed, Jul 28, 2021 at 07:36:41PM +0000, jbranso@dismail.de wrote:> >> How easy is the installer? I'd really like to try to install it on a Thinkpad>> or some
    such device that might work. Do you have a lot of filesystem corruption?>> Is it cool to be running the Hurd?> > Off course it is cool to run the Hurd! ;) You should try it out, especially if> you are bored. The installer feels the same as the one
    for linux, so it is> rather straightforward. While I had issues with some installer images, the last> one from February worked pretty well (I only had some issues when choosing several> locales).I suppose that I should try to run it. I'll hunt ebay
    for an old laptop at somepoint.> I have not run the system for long enough to see any file system corruption. The> file system is ext2, so you will get the typical fsck run after a hard shutdown> (I have seen X hang after some time of inactivity,
    and was unable to go back> to the console).That's a bummer, but I suppose it is to be expected.>> How old is the card? I think Broadcam is not the best wifi device, but I'm not positive...> > This is an ethernet card, not a wireless card (GNU/Hurd
    does not have a wireless> stack yet). On linux it works with the b44 driver, but I don't know if that is> included in netdde.Gotcha.> Regards,> João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Aug 5 00:40:03 2021
    Hello,

    João Pedro Malhado, le jeu. 29 juil. 2021 11:15:09 +0200, a ecrit:
    How old is the card? I think Broadcam is not the best wifi device, but I'm not positive...

    This is an ethernet card, not a wireless card (GNU/Hurd does not have a wireless
    stack yet). On linux it works with the b44 driver, but I don't know if that is
    included in netdde.

    netdde has that driver, but it doesn't seem to be recent enough for that
    card.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Thu Aug 5 10:40:01 2021
    Hello Samuel,

    On Thu, Aug 05, 2021 at 12:24:48AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le jeu. 29 juil. 2021 11:15:09 +0200, a ecrit:
    On linux it works with the b44 driver, but I don't know if that is
    included in netdde.

    netdde has that driver, but it doesn't seem to be recent enough for that card.

    Many thanks for clarifying this. This card is quite old (around 2005?), but I guess netdde is also based on an old version of linux drivers.

    Is there any hope to get the card working without major netdde overhaul?
    I imagine it will be more complicated than just compiling a newer version of the
    b44 driver.
    If anyone one is familiar with the process or doing this sort of thing already, I would be happy to test or help out in any limited way I can.

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Aug 5 11:00:01 2021
    João Pedro Malhado, le jeu. 05 août 2021 10:20:40 +0200, a ecrit:
    On Thu, Aug 05, 2021 at 12:24:48AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le jeu. 29 juil. 2021 11:15:09 +0200, a ecrit:
    On linux it works with the b44 driver, but I don't know if that is included in netdde.

    netdde has that driver, but it doesn't seem to be recent enough for that card.

    Many thanks for clarifying this. This card is quite old (around 2005?), but I guess netdde is also based on an old version of linux drivers.

    It's version 2.6.32.65.

    Is there any hope to get the card working without major netdde overhaul?
    I imagine it will be more complicated than just compiling a newer version of the
    b44 driver.

    The problem is that a new version of a driver usually means using new
    versions of the Linux API, etc. so in the end it pulls a lot of new requirements.

    We are rather heading toward using rump drivers which are to be much
    easier to do such an upgrade.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Mon Aug 9 00:00:02 2021
    Hello Samuel,

    On Thu, Aug 05, 2021 at 12:24:48AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le jeu. 29 juil. 2021 11:15:09 +0200, a ecrit:
    On linux it works with the b44 driver, but I don't know if that is
    included in netdde.

    netdde has that driver, but it doesn't seem to be recent enough for that card.

    I'm sorry to come back to this.
    I cannot find a list of cards supported by the b44 driver, or which version supports which card, but looking through the code in kernel version 2.6.32.65, guessing from line 107, I would say that this card would be supported. https://elixir.bootlin.com/linux/v2.6.32.65/source/drivers/net/b44.c

    I don't know if netdde loops through the drivers in alphabetical order, but looking at the output of
    settrans -fga /dev/netdde /hurd/netdde
    that would be my guess. And what I see is that after testing atheros drivers, the
    e100 intel driver is tested next. Is the b44 driver being skipped?

    You mentioned the move to Rump drivers on a different message. This is interesting. I could only find some old documentation about this: https://www.gnu.org/software/hurd/community/gsoc/project_ideas/driver_glue_code.html
    Is there more recent information or a roadmap?

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Mon Aug 9 00:20:01 2021
    João Pedro Malhado, le dim. 08 août 2021 23:41:52 +0200, a ecrit:
    I cannot find a list of cards supported by the b44 driver, or which version supports which card, but looking through the code in kernel version 2.6.32.65,
    guessing from line 107, I would say that this card would be supported. https://elixir.bootlin.com/linux/v2.6.32.65/source/drivers/net/b44.c

    You mean line 108?

    #define PCI_DEVICE_ID_BCM4401B0 0x4402
    #define PCI_DEVICE_ID_BCM4401B1 0x170c

    his lspci was showing

    lspci -n
    02:0e.0 0200: 14e4:170c (rev 02)

    So yes possibly it's actually supported in that b44.

    However it seems that b44.c is in the blacklist, because it doesn't
    build.


    You mentioned the move to Rump drivers on a different message. This is interesting. I could only find some old documentation about this: https://www.gnu.org/software/hurd/community/gsoc/project_ideas/driver_glue_code.html
    Is there more recent information or a roadmap?

    Not that I'm aware of. The current focus for rump is for disk support,
    to be able to drop disk drivers, and the linux glue from the mach
    kernel.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to All on Wed Dec 29 16:20:02 2021
    Hello everyone,

    I was trying to build netdde with the b44 driver (blacklisted by default), but the compilation breaks at:

    #include <linux/ssb/ssb.h>

    About SSB I found the following on a commit message to linux:

    «The Sonics Silicon Backplane is a mini-bus used on
    various Broadcom chips and embedded devices.
    Devices using the SSB include b44, bcm43xx and various
    Broadcom based wireless routers.
    A b44 and bcm43xx port and a SSB based OHCI driver is available.»

    Would there be any hope of getting this working on the Hurd, or it depends too much on linux own driver infrastructure?

    Best regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)