OpenWrt Forum Archive

Topic: after ipkg update & upgrade, i cannot find eth0 via ifconfig , why?

The content of this topic has been archived on 4 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to add webif to my router(x86) with Kamikaze built from trunk.
so use ikpg to install and by the way upgrade all pacakages
command I used are , ipkg update,  ipkge upgrade, ipkg install webif,

everything is ok, before i restart the router.

after I restart the router, I have no eth0 in ifconfig output, I tried /etc/init.d/network restart , output :
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: No such device

Does anyone have the same problem ? what I can do know?

#my ipkg.conf file
src packages http://downloads.openwrt.org/kamikaze/packages/i386
dest root /
dest ram /tmp
src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/x86-2.6/packages

no one else has the same problem?
I really don't know what to do

I did  'lsmod'
there is no module for the wired net device (I know mine is module 8139too)

but when ls /etc/module.d there is 50-8139too

and I do 'ipkg list_installed | grep kmod' there is kmod-8139too in the list

how to reintall this kernal module?

(Last edited by icyqqboy on 3 Jun 2008, 17:10)

Ipkg upgrade is most likely the problem, just don't do it. I recommend you start over--reflash the router and don't run upgrade.

Have you tried loading the module?

agaffney wrote:

Have you tried loading the module?

I tried °insmod 8139too° , but it said cannot find the file,  maybe I used the wrong argument.I don't know where the module and how to reload?

btw, there is no info about eth0 in dmesg when reboot.

robrob wrote:

Ipkg upgrade is most likely the problem, just don't do it. I recommend you start over--reflash the router and don't run upgrade.

yes, since I don't want to my router out of work for long, I re-flashed it .

Are  "ipkg intall  *" and "ipkg update *.ipkg" safe? I don't want to take the risk of re-fleshing.

icyqqboy wrote:

Are  "ipkg intall  *" and "ipkg update *.ipkg" safe? I don't want to take the risk of re-fleshing.

If you're building openwrt from trunk you shouldn't be using the already compiled packages from downloads.openwrt.org so better remove that source from ipkg.conf before using ipkg. Compile your own packages as well and either have them locally or web served. Also after installing webif, edit your ipkg.conf and remove their source as well.

pedrofaustino wrote:

Compile your own packages as well and either have them locally or web served.

How to compile my own packages?
packages inside the bin directory when building the kernel image  is what have built in the kernel, right?

package directory under trunk is what I served for my box? "have them locally " means that I have to store package in somewhere in kamikaze filesystem?

sorry if I am asking stupid questions, but thank you for your patience.

The discussion might have continued from here.