Opened 10 years ago

Last modified 4 years ago

#11139 reopened bug

Realtek 8168 network card doesn't work with haiku package installed in ~/config

Reported by: diger Owned by: nobody
Priority: normal Milestone: R1.1
Component: Servers/net_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by diver)

hrev47708-x86 gcc4 RTL8168 I cannot force this scrap to work neither in DHCP nor in static mode.

In hrev47380 network worked fine.

lisdev:

device Network controller (Ethernet controller) [2|0|0]
  vendor 10ec: Realtek Semiconductor Co., Ltd.
  device 8168: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

Attachments (1)

syslog (159.6 KB ) - added by diger 10 years ago.

Download all attachments as: .zip

Change History (17)

by diger, 10 years ago

Attachment: syslog added

comment:1 by korli, 10 years ago

I'm a bit surprised as there was no impacting change on the code after hrev47380 to explain this regression. You could maybe bisect.

comment:2 by diver, 10 years ago

Component: - GeneralDrivers/Network/rtl81xx
Description: modified (diff)
Summary: Realtek network card dont workRealtek 8168 network card doesn't work

comment:3 by diger, 10 years ago

This problem only occurs when the system package is installed in ~/config/packages

comment:4 by axeld, 10 years ago

Wow, you just blew my mind :-)

comment:5 by waddlesplash, 10 years ago

Resolution: invalid
Status: newclosed

Installing the system package in config/packages will definitely cause a problem as the kernel does not (and should not) look for drivers there. (And any other packages installed in /system/packages cannot see files from the ~/config/packages files either.)

The reasoning behind this is that eventually when we have multiple users, they should be able to install packages for themselves (hence the packages dir being in ~/config), but due to the fact that they don't have administrative access, drivers and other libraries from ~/config shouldn't be loaded into the kernel or replace system libraries as that would be a gaping security hole.

in reply to:  5 comment:6 by diver, 10 years ago

Replying to waddlesplash:

Installing the system package in config/packages will definitely cause a problem as the kernel does not (and should not) look for drivers there.

I'm not sure this is true though.

comment:7 by waddlesplash, 10 years ago

I'm not sure this is true though.

I know for a fact that system libraries cannot be loaded from there (e.g. installing Qt in ~/config and QupZilla in /system produces the error that Qt is not installed; installing QupZilla in ~/config works).

If this ticket does not prove that drivers can't be loaded from ~/config, I don't know what will.

in reply to:  5 comment:8 by anevilyak, 10 years ago

Resolution: invalid
Status: closedreopened

Replying to waddlesplash:

Installing the system package in config/packages will definitely cause a problem as the kernel does not (and should not) look for drivers there. (And any other packages installed in /system/packages cannot see files from the ~/config/packages files either.)

Please stop making up answers to things that you don't actually know. Drivers are looked for in both /system/add-ons and ~/config/add-ons, and always have been.

comment:9 by waddlesplash, 10 years ago

From what Oliver said on IRC, that's not intended behavior post-PM.

comment:10 by diver, 10 years ago

Component: Drivers/Network/rtl81xxServers/net_server

Judging from the attached syslog rtl81xx driver is being loaded and initialised correctly. Might be something to do with net_server. Switching component.

comment:11 by axeld, 10 years ago

If the system package is not supposed to be installed in ~/config, then the system should not allow to do it.

I'd assume there is also a system package installed in /system, though, as I doubt the system would otherwise be able to boot.

If installing Qt in ~/config does not work, something is broken there.

And while I'm not sure about the current status quo, drivers should not be loaded from ~/config in the future anymore.

comment:12 by waddlesplash, 10 years ago

What I meant was that having a package installed in /system depend on a package installed in ~/config does NOT work and is not intended to. Installing both Qt and Qupzilla in ~/config does work (and installing Qt in /system and Qupzilla in ~/config also wors).

comment:13 by axeld, 10 years ago

About the component switch: is it possible to configure the driver via ifconfig? If not, it's not the fault of the net_server either.

comment:14 by vidrep, 8 years ago

hrev50819 x86_gcc2 device Network controller (Ethernet controller) [2|0|0]

vendor 10ec: Realtek Semiconductor Co., Ltd. device 8168: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

This chipset is working fine in my PC.

comment:15 by pulkomandy, 8 years ago

Summary: Realtek 8168 network card doesn't workRealtek 8168 network card doesn't work with haiku package installed in ~/config

@vidrep: please read the above comments. Adjusted the ticket summary to fit.

comment:16 by pulkomandy, 4 years ago

Milestone: R1R1.1
Note: See TracTickets for help on using tickets.