WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: I insmod 8152. Ko, but my USB network card still can't drive  (Read 5084 times)

Offline GAI

  • Newbie
  • *
  • Posts: 30
I insmod 8152. Ko, but my USB network card still can't drive
« on: March 29, 2021, 01:54:08 AM »
hardware:  raspberry  cm3+

OS : Tiny core 13.03



I want to drive my USB port,
 I insmod 8152. Ko, but my USB network card still can't drive.  when i input  lsusb  ,it  show me   -sh  not found usb

What modules are missing

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #1 on: March 29, 2021, 02:05:54 AM »
Ifconfig has only local loopback

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #2 on: March 29, 2021, 02:17:08 AM »
Does:
Code: [Select]
$ lsmod | grep 8152..show that the module is loaded?

Does:
Code: [Select]
$ modinfo r8152..show any dependencies?

Does:
Code: [Select]
$ dmesg | grep 8152..show any error messages?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #3 on: March 29, 2021, 02:21:25 AM »
when i input  lsusb  ,it  show me   -sh  not found usb

You're looking for usbutils.tcz, and all the required dependencies.
Code: [Select]
bzip2-lib.tcz
gamin.tcz
gcc_libs.tcz
glib2.tcz
libelf.tcz
libudev.tcz
libusb.tcz
pcre.tcz
usbutils.tcz

Ifconfig has only local loopback

What does dmesg say when you plug the card ?

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #4 on: March 29, 2021, 02:38:38 AM »
Does:
Code: [Select]
$ lsmod | grep 8152..show that the module is loaded?

Does:
Code: [Select]
$ modinfo r8152..show any dependencies?

Does:
Code: [Select]
$ dmesg | grep 8152..show any error messages?

$ lsmod | grep 8152
       r8152          77824   0

$ modinfo r8152
       modinfo:  module  lib/modules/5.10.16-picore-v7/r8152  not found

$ dmesg | grep 8152[
      new usb device found.  idVendor=0bda,idProduct=8152, bcdDDevice=20.00
      usecore:  registered  new interface driver r8152
      r8152 1-1.102:1.0: skip request  fireware
      r8152 1-1.1.1:1.0 eth0: v1.11.11


Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #5 on: March 29, 2021, 02:48:30 AM »
when i input  lsusb  ,it  show me   -sh  not found usb

You're looking for usbutils.tcz, and all the required dependencies.
Code: [Select]
bzip2-lib.tcz
gamin.tcz
gcc_libs.tcz
glib2.tcz
libelf.tcz
libudev.tcz
libusb.tcz
pcre.tcz
usbutils.tcz

Ifconfig has only local loopback

What does dmesg say when you plug the card ?

 $lsmod | grep 8152
       r8152          77824   0

$ modinfo r8152
       modinfo:  module  lib/modules/5.10.16-picore-v7/r8152  not found

$ dmesg | grep 8152[
      new usb device found.  idVendor=0bda,idProduct=8152, bcdDDevice=20.00
      usecore:  registered  new interface driver r8152
      r8152 1-1.102:1.0: skip request  fireware
      r8152 1-1.1.1:1.0 eth0: v1.11.11


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #6 on: March 29, 2021, 03:15:47 AM »
Does this help:
Code: [Select]
$ sudo ifconfig eth0 up

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #7 on: March 29, 2021, 03:37:23 AM »
Does this help:
Code: [Select]
$ sudo ifconfig eth0 up

You are wonderful

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #8 on: March 29, 2021, 04:18:00 AM »
Does this help:
Code: [Select]
$ sudo ifconfig eth0 up


In  ubuntu  ,It   automatially strat  moules  and   program   in  etc  mkdir file

What is recommended in this system

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #9 on: March 29, 2021, 04:53:08 AM »
If you're looking for a way to run a command as root onboot.

Simply append the file /opt/bootlocal.sh

Note that you won't need "sudo" in that file.

Just "ifconfig eth0 up"

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #10 on: March 29, 2021, 04:59:06 AM »
If you're looking for a way to run a command as root onboot.

Simply append the file /opt/bootlocal.sh

Note that you won't need "sudo" in that file.

Just "ifconfig eth0 up"


If it's a software, I can   . /xxx  ?

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #11 on: March 29, 2021, 05:02:00 AM »
If you're looking for a way to run a command as root onboot.

Simply append the file /opt/bootlocal.sh

Note that you won't need "sudo" in that file.

Just "ifconfig eth0 up"

How to load. Ko file, insmod xx.ko ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #12 on: March 29, 2021, 05:16:14 AM »
If you make a personal extension out of the module it might load itself.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #13 on: March 29, 2021, 05:20:09 AM »
If it's a software, I can   . /xxx  ?

Use full path to prevent unwanted behavior.

How to load. Ko file, insmod xx.ko

Simply add the required files to the backup.
Code: [Select]
vi /opt/.filetool.lst

Note that you'll need to drop the leading "/"

Offline GAI

  • Newbie
  • *
  • Posts: 30
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #14 on: March 29, 2021, 06:01:45 AM »
If you make a personal extension out of the module it might load itself.


When I load successfully and restart, I need to reload. What should I do to let it load automatically and run my program