Search
Thursday, 4th of August 2022, 14:54:09 UTC
15:23:10
fitzsim
did you change *static-configurations* in network-setup.lisp?
15:23:30
fitzsim
if not, it seems like Mezzano should try DHCP on every interface
15:27:21
fitzsim
I think to control variables, you should put an entry in *static-configurations* with ([e1000 MAC address] :static ...[see old qemu config, as per comment there])
15:29:42
fitzsim
it looks like there are nic-add and nic-rem mailboxes
15:30:00
ebrasca
mezzano.network.ip::*ipv4-interfaces* -> ((#<Mezzano.Network::Loopback-Interface 400007D8A849> #S(MEZZANO.NETWORK.IP::IPV4-ADDRESS :ADDRESS 2130706433) 8))
15:30:26
fitzsim
maybe put a debug format in nic-added to see if it's getting called
15:30:42
fitzsim
it's not clear to me how the nic add/rem mailbox stuff works
15:31:02
fitzsim
but nic-added seems like the entry point for the interface being configured
15:38:38
ebrasca
(format t "<<< ~s~%" nic) -> <<< #<Mezzano.Driver.82540em::82540em 56:34:12:00:54:52 4000004A93F9>
15:41:54
fitzsim
which of the three interfaces does this line correspond to:
15:41:55
fitzsim
Registered NIC #<4000004A93F9> with MAC F1F2F3F4F5F6
15:42:42
fitzsim
you're calling (nic:register-network-card nic) in your e1000 driver, right?
15:51:15
ebrasca
Here my makeconfig: http://ix.io/46Fj
15:51:48
ebrasca
I am trying with "make kvm" and "make e1000"
15:56:30
ebrasca
<<< #<Mezzano.Driver.82540em::82540em F1:F2:F3:F4:F5:F6 4000004A93D9>
16:03:52
ebrasca
fitzsim: I fixed the mac addres reading.
16:17:57
fitzsim
ebrasca: to me it seems like DHCP is failing; it's probably simpler to try with a static network configuration first
16:18:20
fitzsim
see *static-configurations* in network-setup.lisp
16:25:53
ebrasca
fitzsim: I will try with static!
16:29:56
fitzsim
you can see from "159DE59 Thread DHCP interaction"'s backtrace that start-dhcp-interaction is waiting for a lease
16:30:19
fitzsim
it's probably in the "wait 300 seconds" branch of the loop by that point
16:40:19
ebrasca
I am having also having problems with the static config!
16:50:06
ebrasca
I will push it to my repo
17:01:36
ebrasca
fitzsim: Here is the code https://github.com/ebrasca/Mezzano/blob/e1000/drivers/82540em.lisp
17:04:23
varjag
is dhcp still based on my contrib?
17:04:40
varjag
i vaguely remember some parts were not up to the rfc yet last time i touched it
17:05:22
ebrasca
varjag: I have no idea!
17:21:26
varjag
it appears to in the main repo
17:21:52
varjag
just be aware there could be corner cases lurking
17:22:48
fitzsim
what did you try for *static-configurations* ?
18:39:44
ebrasca
fitzsim: I tried dhcp and static!
18:40:25
fitzsim
what happens with static?
18:40:32
fitzsim
can you paste the output?
18:57:50
ebrasca
fitzsim: http://ix.io/46FZ
20:08:49
fitzsim
ebrasca: that represents progress, I think
20:10:13
fitzsim
ebrasca: can you check tcp packet rx/tx/err counts on the other end of the network cable?
20:10:38
fitzsim
it looks like a failure of the driver to transmit a packet from Mezzano do the other side, right?
20:12:04
fitzsim
you've got "-net nic,model=e1000,netdev=ethernet.0" in the QEMU arguments
20:12:34
fitzsim
and so that guest interface is connected (virtually speaking) to an interface on the host
20:12:55
fitzsim
can you run "ifconfig <host interface>" on the host to print statistics on it?
20:13:46
fitzsim
that'll show RX and TX packet counts; when Mezzano tries to TX, you should see the RX counter go up on the host interface
Friday, 5th of August 2022, 2:54:09 UTC