WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usbcore module  (Read 3247 times)

Offline Kurvivor

  • Newbie
  • *
  • Posts: 9
usbcore module
« on: September 03, 2015, 04:24:35 AM »
Hello
I need following modules on my system:
usbcore, usbserial
While usbserial was successfully installed with tce-ab, i did not find usbcore there.
I have been checking it with `lsmod | grep usbcore`.

The system i am working on is (uname output):
Quote
Linux box 3.16.6-tinycore #777 SMP (...) i686 GNU/Linux

P.S. I need those modules to build a driver for usb-rs232/422/485 conversion device (moxa uport 1150).
In general, what do i need besides build toolss and kernel sources?
« Last Edit: September 03, 2015, 04:38:08 AM by Kurvivor »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbcore module
« Reply #1 on: September 03, 2015, 04:30:52 AM »
You did not specify TC version nor architecture :( Expect answer quality matching quality of the question.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Kurvivor

  • Newbie
  • *
  • Posts: 9
Re: usbcore module
« Reply #2 on: September 03, 2015, 04:39:37 AM »
Understood. I have added that information to question.
P.S. linux-kernel-sources-env.sh fails to execute correctly, sadly. tar fails to unpack sources archive

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: usbcore module
« Reply #3 on: September 03, 2015, 04:57:46 AM »
P.S. linux-kernel-sources-env.sh fails to execute correctly, sadly. tar fails to unpack sources archive
while I see this is an extra problem you've run into, let me check see why the script is no longer working as it used too..

Code: [Select]
+ wget -s -T 20 http://tinycorelinux.net/index.html
+ busybox wget -s -T 20 http://tinycorelinux.net/index.html
Connecting to tinycorelinux.net (89.22.99.37:80)
+ echo connection ok
connection ok
+ echo downloading linux-3.16.6-patched.txz
downloading linux-3.16.6-patched.txz
+ wget http://www.tinycorelinux.net/5.x/x86/release/src/kernel/linux-3.16.6-patched.txz
+ busybox wget http://www.tinycorelinux.net/5.x/x86/release/src/kernel/linux-3.16.6-patched.txz
Connecting to www.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
+ [ ! -f /tmp/linux-3.16.6-patched.txz ]
+ echo download error
download error
+ sleep 3


maybe I need to update my copy..?  because the installed version I just checked has wrong or old address..
« Last Edit: September 03, 2015, 05:03:30 AM by coreplayer2 »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: usbcore module
« Reply #4 on: September 03, 2015, 05:01:51 AM »
I'm wondering if usbcore isn't compiled into the kernel rather than as a separate module (there are so many usb kernel config entries that it is difficult to tell)?

Note that you can prepare the kernel sources manually rather than use linux-kernel-sources-env.sh

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817

Offline Kurvivor

  • Newbie
  • *
  • Posts: 9
Re: usbcore module
« Reply #6 on: September 03, 2015, 05:15:30 AM »
Quote
why the script is no longer working as it used to
In my case, it seems, corupted downloaded archive is to blame. Something is downloaded, but tar fails to extract from it.
If i understand correctly, replacing sources archive in /tmp with download from some other mirror (ibiblio for example) would b enough

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: usbcore module
« Reply #7 on: September 03, 2015, 06:43:06 AM »
If you "make modules" on the tinycore kernel source, it will create a file "modules.builtin", which contains "usbcore"

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: usbcore module
« Reply #8 on: September 03, 2015, 02:03:26 PM »
+ wget http://www.tinycorelinux.net/5.x/x86/release/src/kernel/linux-3.16.6-patched.txz

That should be ..6.x/x86... no?
Disregard, was testing an old version..   The current version of linux-kernel-sources-env.tcz has previously been updated and works fine

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: usbcore module
« Reply #9 on: September 08, 2015, 05:27:16 AM »