Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Installing realtek r8152 driver (1 reply)

$
0
0
Hi Bodhi,

I want to install a new realtek-driver for an usb-ethernetcard
It is not in firmware-realtek

It's the realtek 8152 driver
# lsusb
Bus 001 Device 004: ID aaaa:8816
Bus 001 Device 005: ID 0bda:8152 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I downloaded it from: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=55&PFid=55&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8152B(N) --> 0007-r8152.53-2.08.0.bz2

unpacked it in /root with: tar -xvjf 0007-r8152.53-2.08.0.bz2

Did instal a buiding enviroment: apt-get install build-essentials

Tryed to do a make:
cd /root/r8152-2.08.0
./make

root@Stora2:~/r8152-2.08.0# make
make -C /lib/modules/4.10.9-kirkwood-tld-1/build SUBDIRS=/root/r8152-2.08.0 modules
make[1]: *** /lib/modules/4.10.9-kirkwood-tld-1/build: No such file or directory.  Stop.
Makefile:18: recipe for target 'modules' failed
make: *** [modules] Error 2

Are missing build dir. So i thougt i install linux-source essentials

apt-get -s install linux-source
root@Stora2:~/r8152-2.08.0# apt-get -s install  linux-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  linux-source-3.16
Suggested packages:
  libncurses-dev ncurses-dev libqt4-dev pkg-config
Recommended packages:
  bc
The following NEW packages will be installed:
  linux-source linux-source-3.16
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst linux-source-3.16 (3.16.43-2 Debian:8.8/stable [all])
Inst linux-source (3.16+63 Debian:8.8/stable [all])
Conf linux-source-3.16 (3.16.43-2 Debian:8.8/stable [all])
Conf linux-source (3.16+63 Debian:8.8/stable [all])

It looks at linux source 3.16; the kernel is 4.10.9,



If i try apt-get -s install linux-source-4.10.9


root@Stora2:/usr/share/doc# apt-get -s install  linux-source-4.10.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-source-4.10.9-kirkwood-tld-1' for regex 'linux-source-4.10.9'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Can you tell me where to find package with 4.10.9 build dir:

/lib/modules/4.10.9-kirkwood-tld-1/build

Thanks

Erik

Viewing all articles
Browse latest Browse all 3247

Trending Articles