USB Nic 인식안됨. Realtek r8152

Post Reply
boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

USB Nic 인식안됨. Realtek r8152

Post by boshue »

안녕하세요?

Odroid C2에서 인식 잘되던 Realtek chipset r8152 USB Nic가 Odroid C4에서 인식안됩니다.
어떻게 해야하는 지 알려주시면 감사하겠습니다.

감사합니다.

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

OS version : Linux odroid 4.9.277-76

감사합니다.

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

커널 설정(.config) 파일에 해당 드라이버를 모듈'm'로 변경하고 직접 빌드하시면 됩니다.
혹시 직접 빌드가 버거로우실것 같아 3~4일 뒤에 릴리즈 예정인 다음 커널 업데이트에 추가하도록 하겠습니다.
These users thanked the author odroid for the post:
boshue (Mon Dec 20, 2021 1:33 pm)

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

관리자님! 정말 감사합니다!!!

행복한 하루 되세요~~~

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

확인해보니 r8152 드라이버는 이미 모듈로 설정되어 있습니다. command line에서 modprobe를 해보시길 바랍니다.
https://github.com/hardkernel/linux/blo ... nfig#L2724

USB Ethernet 동글을 연결하기 전/후에 lsusb와 lsmod출력도 답글로 올려봐 주세요.

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

이 글을 포스트 할 때는 lsusb로 RTL8153 Gigabit Ethernet Adapter가 안 잡혔었는데 오늘 해보니 잡혔습니다.(?!)
C2에서는 IP 자동 할당되었던 것으로 기억하는데 IP 할당이 안됩니다.
modprobe 명령으로 할 수 있는 건가요?
미리 감사인사 드립니다.
그리고 마지막 부분에 ifconfig 명령으로 출력된 내용 보내드립니다.

== before connect USB NIC
odroid@odroid:~$ lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 03f0:0941 HP, Inc X500 Optical Mouse
Bus 001 Device 004: ID 05a3:62c9 ARC International
Bus 001 Device 005: ID 14a4:0104
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
odroid@odroid:~$

odroid@odroid:~$ lsmod
Module Size Used by
fuse 110592 2
squashfs 49152 0
cpufreq_ondemand 20480 0
cpufreq_powersave 16384 0
cpufreq_userspace 16384 0
cpufreq_conservative 16384 0
uvcvideo 102400 0
i2c_meson_master 20480 0
videobuf2_vmalloc 16384 1 uvcvideo
amvdec_ports 196608 0
sch_fq_codel 20480 2
amvdec_vp9 122880 0
amvdec_vc1 65536 0
amvdec_real 45056 0
amvdec_mmpeg4 40960 0
amvdec_mpeg4 65536 0
amvdec_mpeg12 106496 0
amvdec_mmjpeg 28672 0
amvdec_mjpeg 40960 0
amvdec_h265 147456 0
amvdec_h264mvc 57344 0
amvdec_mh264 159744 0
amvdec_h264 147456 0
amvdec_avs 69632 0
stream_input 180224 9 amvdec_h265,생략
decoder_common 188416 15 amvdec_h265,생략
firmware 28672 15 amvdec_h265,생략
media_clock 45056 10 amvdec_h265,생략
ip_tables 28672 0
x_tables 49152 1 ip_tables
ipv6 466944 47
spidev 20480 0
spi_meson_spicc 20480 0
odroid@odroid:~$

== after connect USB NIC
odroid@odroid:~$ lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 03f0:0941 HP, Inc X500 Optical Mouse
Bus 001 Device 004: ID 05a3:62c9 ARC International
Bus 001 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 001 Device 005: ID 14a4:0104
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
odroid@odroid:~$

odroid@odroid:~$ lsmod
Module Size Used by
cdc_ether 16384 0
usbnet 40960 1 cdc_ether
r8152 49152 0
fuse 110592 2
squashfs 49152 0
cpufreq_ondemand 20480 0
cpufreq_powersave 16384 0
cpufreq_userspace 16384 0
cpufreq_conservative 16384 0
uvcvideo 102400 0
i2c_meson_master 20480 0
videobuf2_vmalloc 16384 1 uvcvideo
amvdec_ports 196608 0
sch_fq_codel 20480 2
amvdec_vp9 122880 0
amvdec_vc1 65536 0
amvdec_real 45056 0
amvdec_mmpeg4 40960 0
amvdec_mpeg4 65536 0
amvdec_mpeg12 106496 0
amvdec_mmjpeg 28672 0
amvdec_mjpeg 40960 0
amvdec_h265 147456 0
amvdec_h264mvc 57344 0
amvdec_mh264 159744 0
amvdec_h264 147456 0
amvdec_avs 69632 0
stream_input 180224 9 amvdec_h265, 생략
decoder_common 188416 15 amvdec_h265, 생략
firmware 28672 15 amvdec_h265, 생략
media_clock 45056 10 amvdec_h265, 생략
ip_tables 28672 0
x_tables 49152 1 ip_tables
ipv6 466944 47
spidev 20480 0
spi_meson_spicc 20480 0
odroid@odroid:~$

== ifconfig
odroid@odroid:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.25 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::5645:f258:800a:74b8 prefixlen 64 scopeid 0x20<link>
ether 00:1e:06:48:12:f3 txqueuelen 1000 (Ethernet)
RX packets 4995 bytes 1380594 (1.3 MB)
RX errors 0 dropped 262 overruns 0 frame 0
TX packets 905 bytes 94299 (94.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 21

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 1314 bytes 102165 (102.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1314 bytes 102165 (102.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

odroid@odroid:~$

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

혹시 도움이 될까 해서 USB NIC 연결한 상태에서 재부팅 후 dmesg 올려봅니다.

odroid@odroid:~$ sudo dmesg | grep r8152
[sudo] password for odroid:
[ 9.679857] usbcore: registered new interface driver r8152
[ 9.945415] r8152 1-1.2.4:1.0 (unnamed net_device) (uninitialized): Unknown version 0x6010
[ 9.945418] r8152 1-1.2.4:1.0 (unnamed net_device) (uninitialized): Unknown Device
odroid@odroid:~$

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

드라이버는 잘 올라온것 같습니다만 네트웍 장치 활성화가 안된것 같습니다.
dmesg | grep enxdmesg | grep -i r815 명령어로 추가 단서를 찾아 볼 수 있을까요?
사용하시는 동글일 USB 3.0 RTL8153 칩셋인가요?

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

dmesg | grep enx 로는 아무 것도 출력되지 않습니다.
dmesg | grep -i r815 명령으로는 위의 올린 그대로 출력됩니다.

lsusb 하면
C2에서는 ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter 라고 출력되고
N2에서는 ID 0bda:8153 Realtek Semiconductor Corp. 까지만 출력됩니다.


현재 이 현상은 Odroid N2 에서도 똑같습니다.
Odroid C2는 USB에 이 동글을 꼽으면 바로 IP 자동 할당되는데요,,, C4, N2에서만 같은 증상입니다.

저희가 C2에서 C4로 전환 테스트 중인데 해결을 해야하는데...

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

ImageImage

저희가 사용중인 시중에 판매되는 USB Ethernet 동글입니다.

lsusb 명령어로 r8153 칩셋으로 나옵니다.

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

동일한 제품을 주문하였습니다.
받는대로 원인을 찾아 보도록 하겠습니다.
These users thanked the author odroid for the post:
boshue (Tue Dec 28, 2021 4:32 pm)

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

아! 감사합니다.

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

디바이스 드라이버를 새로운 칩(RTL8153B)을 지원하기 위해 변경해 보았습니다.
"sudo apt update", "sudo apt upgrade", "sudo reboot"으로 커널 패키지를 업데이트한 뒤 테스트 해봐 주시길 바랍니다.
저희도 주문한 장치가 도착하는대로 확인해 보겠습니다.

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

알겠습니다.
테스트 후 결과를 올리겠습니다.

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

odroid님 IP 할당 잘됩니다.
그리고 한가지 질문이 있습니다.
sudo apt upgrade 시 출력되는 error 메시지 ifconfig 출력문 뒤에 첨부합니다.
이 에러는 무시해도 되는 건지요?

Code: Select all

odroid@odroid:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:1e:06:48:12:f3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 21  

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.20  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::f9c2:cfd4:ea4a:24f  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:4c:69:00:bd  txqueuelen 1000  (Ethernet)
        RX packets 194  bytes 46505 (46.5 KB)
        RX errors 0  dropped 39  overruns 0  frame 0
        TX packets 87  bytes 14180 (14.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
<<< sudo apt upgrade 시 error 문 >>>>

Code: Select all

Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-4.9.241-70
W: missing /lib/modules/4.9.241-70
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.9.241-70: No such file or
 directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_iW1DSc/lib/modules/4.9.241-70/modules.builtin: No such  file or directory
depmod: WARNING: could not open modules.order at /var/tmp/mkinitramfs_iW1DSc/lib/modules/4.9.241-70: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/mkinitramfs_iW1DSc/lib/modules/4.9.241-70: No such file or directory
...
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-4.9.241-70
W: missing /lib/modules/4.9.241-70
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.9.241-70: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_a7zzD3/lib/modules/4.9.241-70/modules.builtin: No such file or directory
depmod: WARNING: could not open modules.order at /var/tmp/mkinitramfs_a7zzD3/lib/modules/4.9.241-70: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/mkinitramfs_a7zzD3/lib/modules/4.9.241-70: No such file or directory
감사합니다.

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

확인 감사합니다. 정상 동작한다니 다행입니다.

해당 ERROR는 무시해도 되는 Message 입니다. N2와 C4 시리즈의 업데이트 패키지를 겸용으로 사용하다보니 발생하는 현상으로 알고 있습니다.
다음 업데이트에는 관련 Message가 안나오도록 해보겠습니다.

그런데 업데이트 후 현재 커널 버전을 확인해 주실 수 있을까요?
가능하다면 "uname -a" 출력을 올려봐 주세요.
These users thanked the author odroid for the post:
boshue (Wed Dec 29, 2021 2:07 pm)

boshue
Posts: 22
Joined: Tue Jun 23, 2020 11:32 am
languages_spoken: Korean
ODROIDs: C2, N2, C4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by boshue »

odroid@odroid:~$ uname -a
Linux odroid 4.9.277-78 #1 SMP PREEMPT Tue Dec 28 22:30:16 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
odroid@odroid:~$

이렇게 나옵니다.
다시 한 번 더 감사말씀 드립니다. 행복하세요~~~

User avatar
odroid
Site Admin
Posts: 38528
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2211 times
Been thanked: 1295 times
Contact:

Re: USB Nic 인식안됨. Realtek r8152

Post by odroid »

네, 확인 감사합니다.
참고로 동일한 패치가 적용된 N2용 커널 업데이트 패키지(4.9.277-119)도 릴리즈 하였습니다.

Post Reply

Return to “C4/HC4”

Who is online

Users browsing this forum: No registered users and 2 guests