Opened 5 years ago

Last modified 2 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
Component: Servers/net_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no 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 5 years ago.

Download all attachments as: .zip

Change History (16)

Changed 5 years ago by diger

Attachment: syslog added

comment:1 Changed 5 years ago by korli

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 Changed 5 years ago by diver

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

comment:3 Changed 5 years ago by diger

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

comment:4 Changed 5 years ago by axeld

Wow, you just blew my mind :-)

comment:5 Changed 5 years ago by waddlesplash

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.

comment:6 in reply to:  5 Changed 5 years ago by diver

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 Changed 5 years ago by waddlesplash

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.

comment:8 in reply to:  5 Changed 5 years ago by anevilyak

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 Changed 5 years ago by waddlesplash

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

comment:10 Changed 5 years ago by diver

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 Changed 5 years ago by axeld

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 Changed 5 years ago by waddlesplash

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 Changed 5 years ago by axeld

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 Changed 2 years ago by vidrep

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 Changed 2 years ago by pulkomandy

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.

Note: See TracTickets for help on using tickets.