Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Kurvivor on September 03, 2015, 04:24:35 AM

Title: usbcore module
Post by: Kurvivor 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?
Title: Re: usbcore module
Post by: bmarkus on September 03, 2015, 04:30:52 AM
You did not specify TC version nor architecture :( Expect answer quality matching quality of the question.
Title: Re: usbcore module
Post by: Kurvivor 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
Title: Re: usbcore module
Post by: coreplayer2 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..
Title: Re: usbcore module
Post by: Juanito 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
Title: Re: usbcore module
Post by: Juanito on September 03, 2015, 05:05:09 AM
+ wget http://www.tinycorelinux.net/5.x/x86/release/src/kernel/linux-3.16.6-patched.txz

That should be ..6.x/x86... no?
Title: Re: usbcore module
Post by: Kurvivor 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
Title: Re: usbcore module
Post by: Juanito 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"
Title: Re: usbcore module
Post by: coreplayer2 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
Title: Re: usbcore module
Post by: Juanito on September 08, 2015, 05:27:16 AM
modules.builtin posted to:

http://tinycorelinux.net/6.x/x86/release/src/kernel/