Network Card integrated not working in x86 | OpenWrt

Hi Everyone
I have installed in my old PC this version openwrt-19.07.3-x86-legacy-combined-ext4.img. PCI Network card is working perfect but the integrated Network Card is not working. Could you let me know what package I must install or the way to fix this. Thanks

root@OpenWrt:~# lspci; lsmod
-ash: lspci: not found
3c59x                  32768  0
8139too                20480  0
8390                   12288  1 ne2k_pci
atl1                   28672  0
crc_ccitt              12288  1 ppp_async
e100                   32768  0
e1000                  90112  0
ip_tables              16384  4 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             16384 24 ip6table_mangle,ip6table_filter
ip6t_REJECT            12288  2
ip6table_filter        12288  1
ip6table_mangle        12288  0
ipt_MASQUERADE         12288  1
ipt_REJECT             12288  2
iptable_filter         12288  1
iptable_mangle         12288  0
iptable_nat            12288  1
libphy                 32768  1 tg3
mii                    12288  8 via_rhine,sis900,r8169,pcnet32,e100,atl1,8139too                                                                                        ,3c59x
natsemi                24576  0
ne2k_pci               12288  0
nf_conntrack           53248 13 nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat                                                                                        ,xt_conntrack,xt_REDIRECT,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_                                                                                        ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4      12288 10
nf_conntrack_ipv6      12288  4
nf_conntrack_rtcache   12288  0
nf_defrag_ipv4         12288  1 nf_conntrack_ipv4
nf_defrag_ipv6         12288  1 nf_conntrack_ipv6
nf_flow_table          20480  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw       12288  1
nf_log_common          12288  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4            12288  0
nf_log_ipv6            12288  0
nf_nat                 16384  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf                                                                                        _nat_ipv4
nf_nat_ipv4            12288  1 iptable_nat
nf_nat_masquerade_ipv4   12288  1 ipt_MASQUERADE
nf_nat_redirect        12288  1 xt_REDIRECT
nf_reject_ipv4         12288  1 ipt_REJECT
nf_reject_ipv6         12288  1 ip6t_REJECT
pcnet32                32768  0
ppp_async              16384  0
ppp_generic            24576  3 pppoe,ppp_async,pppox
pppoe                  16384  0
pppox                  12288  1 pppoe
pps_core               12288  1 ptp
ptp                    16384  1 tg3
r8169                  65536  0
sis900                 20480  0
slhc                   12288  1 ppp_generic
tg3                   131072  0
via_rhine              20480  0
via_velocity           24576  0
x_tables               16384 24 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_s                                                                                        tate,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPM                                                                                        SS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,xt_CT,iptable_mangle,iptable_filter,ip_tabl                                                                                        es,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_CT                  12288  0
xt_FLOWOFFLOAD          8192  0
xt_LOG                 12288  0
xt_REDIRECT            12288  0
xt_TCPMSS              12288  0
xt_comment              8192107
xt_conntrack           12288 12
xt_limit               12288 20
xt_mac                  8192  0
xt_mark                 8192  0
xt_multiport            8192  0
xt_nat                 12288  0
xt_state               12288  0
xt_tcpudp               8192  8
xt_time                12288  0

root@OpenWrt:~# lspci; lsmod
-ash: lspci: not found

The first/failed command would be the interesting output. :smiley:

I can see that there is a 3com (3c59x) and intel (e100/e1000) driver loaded already.

So? Why is this not working?

install pciutils or use a full distro

Thanks for your asnwer. Well Could you tell me where is located the full distro? Apart from that the pciutils where is located to download?
Thanks in advanced

Beside that missing command I would not expect it will provide more information as I gave here already. And after another look at this I saw r8169 (realtek lan driver) is loaded also.

I cannot imagine OpenWrt is loading them all by its own. Realtek LAN drivers are shit on Linux. Blacklist them. If you try to use Realtek onboard LAN in a stable manner forget it get another pci(-e) card.

By full distro they mean boot up a conventional desktop Linux, which includes numerous drivers. Then check the log to see which chip/driver is in use.

If you have another supported card to connect temporarily to the Internet, that makes it easy to install pciutils.

Or you could look at the motherboard and identify the chip.

R8169 is included in builds but it is for gigabit chips, which are unlikely to be on an old 386 class machine.

Thanks all for your clear answers. You are so quick. I really appreciate this
Well I think that this is this chipset



That's an atl2 chip. You need kmod-atl2.

If there is no network working on the machine, mount the disk on another machine and download that kmod .ipk file from the kmods subdirectory of the OpenWrt server where you got the image, and copy it to /root of the OpenWrt rootfs on the drive. Then boot OpenWrt and use opkg to install the file.

Thanks I have another one card conected via PCI. I will install kmod-atl2. from there. I will let you know the results. Meantime I'm attaching another pic which could be useful

have installed as you said

root@OpenWrt:~# opkg install kmod-atl2_4.14.180-1_i386_pentium.ipk
Installing kmod-atl2 (4.14.180-1) to root...
Configuring kmod-atl2.
root@OpenWrt:~#

But I just see one port, LAN port realted to PCI card network connected to motherboard

Of course, you only installed the driver for one (i.e. the on-board NIC).

just one port is working. The port related to the network card connected to motherboard via PCI connector. The other one, I mean the network card integrated to motherboard, is no working .

I understood that. Did you install the driver for the non-integrated one too?

Edit the lan, Go to physical settings and you should find there is eth0 and eth1 now. If you put them both in the lan bridge it is a software Ethernet switch between the two.

Which isn't that exciting. In order to start actually routing you need to create another interface / network which should be named "wan" since the firewall is already set up for it.

Is not necessary. As I stated in the first message in this topic, It always works perfect.

1 Like

Ummmmm...OK...

You must still set it up in OpenWrt. As @mk24 noted; there should be an eth0 and eth1 to make use of.

not working :frowning:
look the video I made

1 Like

:man_facepalming: Maybe it's a language barrier...I do appreciate the effort in making the video though.

  • Can you try eth1?
  • Can you see if eth1 is listed from the ifconfig command?

screen85

Look