WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline GAI

  • Newbie
  • *
  • Posts: 30
I insmod 8152. Ko, but my USB network card still can't drive
« on: March 28, 2021, 10:54:08 PM »
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 28, 2021, 11:05:54 PM »
Ifconfig has only local loopback

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #2 on: March 28, 2021, 11:17:08 PM »
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: 714
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #3 on: March 28, 2021, 11:21:25 PM »
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 28, 2021, 11:38:38 PM »
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 28, 2021, 11:48:30 PM »
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: 14516
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #6 on: March 29, 2021, 12: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, 12: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, 01: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: 714
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #9 on: March 29, 2021, 01: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, 01: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, 02: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: 14516
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #12 on: March 29, 2021, 02:16:14 AM »
If you make a personal extension out of the module it might load itself.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: I insmod 8152. Ko, but my USB network card still can't drive
« Reply #13 on: March 29, 2021, 02: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, 03: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