Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: GAI on March 29, 2021, 01:54:08 AM

Title: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 02:05:54 AM
Ifconfig has only local loopback
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Juanito 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?
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: polikuo 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 ?
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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

Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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

Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Juanito on March 29, 2021, 03:15:47 AM
Does this help:
Code: [Select]
$ sudo ifconfig eth0 up
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 03:37:23 AM
Does this help:
Code: [Select]
$ sudo ifconfig eth0 up

You are wonderful
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: polikuo 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"
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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  ?
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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 ?
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Juanito on March 29, 2021, 05:16:14 AM
If you make a personal extension out of the module it might load itself.
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: polikuo 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 "/"
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI 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
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Juanito on March 29, 2021, 06:20:25 AM
If you want any extension to be loaded at boot, add it to onboot.lst:
Code: [Select]
echo myr8152.tcz >> /etc/sysconfig/tcedir/onboot.lst
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 06:23:39 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 "/"

I didn't find the Filetools folder.  are you sure
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Juanito on March 29, 2021, 07:31:38 AM
Note the "." in /opt/.filetool.lst, which makes it hidden..
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 09:35:54 PM
After I follow this setting, the restart settings are gone. Do I need to remake the file system
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Rich on March 29, 2021, 09:45:31 PM
Hi GAI
After you edit  /opt/.filetool.lst  you need to run a backup:
Code: [Select]
filetool.sh -b
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 10:28:08 PM
filetools not found
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: Rich on March 29, 2021, 10:43:29 PM
Hi GAI
It is not  filetools
It is filetool.sh -b
Title: Re: I insmod 8152. Ko, but my USB network card still can't drive
Post by: GAI on March 29, 2021, 11:32:06 PM
thaks