WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Questions about Network Adaptor Support  (Read 9475 times)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Questions about Network Adaptor Support
« Reply #15 on: January 15, 2011, 02:24:17 AM »
When I try to "make", I get the error  /lib/modules/2.6.33.3-tinycore/build - no such file or directory

I'd guess this would be taken care of by loading the linux-headers-2.6.33.3-tinycore extension.
...
Yes, that extension was loaded when building and a symlink was not used.
   

Offline JackBug

  • Newbie
  • *
  • Posts: 5
Re: Questions about Network Adaptor Support
« Reply #16 on: January 15, 2011, 07:15:21 PM »
OK, I've installed the linux-headers-2.6.33.3-tinycore extension and been able to successfully create a driver, 8712u.ko

Now, how do I install it and make it permanent after a reboot?

Regards.

PS.  Thank you for your help so far, SamK and Juanito.
I'm new to Tinycore and there is a lot to learn compared to the bigger Linux packages.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Questions about Network Adaptor Support
« Reply #17 on: January 15, 2011, 07:38:41 PM »
Probably the best thing to do is to make an extension out of the driver.

If you have a look at the file listing for wireless-2.6.33.3-tinycore, you can see where to put your driver and the wiki section on making extensions should help in making the extension.

Note you can also gzip the module to save some space

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Questions about Network Adaptor Support
« Reply #18 on: January 16, 2011, 12:51:14 AM »
OK, I've installed the linux-headers-2.6.33.3-tinycore extension and been able to successfully create a driver, 8712u.ko

Now, how do I install it and make it permanent after a reboot?

Regards.

PS.  Thank you for your help so far, SamK and Juanito.
I'm new to Tinycore and there is a lot to learn compared to the bigger Linux packages.


Probably the best thing to do is to make an extension out of the driver.

If you have a look at the file listing for wireless-2.6.33.3-tinycore, you can see where to put your driver and the wiki section on making extensions should help in making the extension.

Note you can also gzip the module to save some space
It is a concise description of what I did.

In a slightly more detailed form for a new user...

Reduce the Size of the Module
gzip -f rtl8712u.ko

Create a Private Extension
Install squashfs-tools-4.x.tcz from the repo  

Staying close to the description in the wiki...
Create /tmp/package/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/rtl8712u.ko.gz

Produce the extension
cd /tmp
mksquashfs  package   rtl8712u-2.6.33.3-tinycore.tcz


Optional Steps
Create a list of the files in the .tcz
cd /tmp/package
find usr -not -type d > rtl8712u-2.6.33.3-tinycore.tcz.list


Manually create a list of dependencies
Create a text file rtl8712u-2.6.33.3-tinycore.tcz.dep
Edit it to list the dependencies (none required)

Manually create an information file
Create a text file rtl8712u-2.6.33.3-tinycore.tcz.info
Edit it following the format of an existing info file in the repo

Start Extension at Boot-up  
Place rtl8712u-2.6.33.3-tinycore.tcz in /tce/optional

Add it to the list of apps started a boot-up using AppsAudit
AppsAudit->OnBoot->Maintenance
In the left-hand panel select rtl8712u-2.6.33.3-tinycore.tcz

Save the change
OnBoot->Exit OnBoot
  
« Last Edit: January 16, 2011, 12:57:18 AM by SamK »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Questions about Network Adaptor Support
« Reply #19 on: January 16, 2011, 02:00:18 AM »
Produce the extension
cd /tmp
mksquashfs package rtl8712u-2.6.33.3-tinycore.tcz


..should maybe be:
Code: [Select]
# mksquashfs package/ rtl8712u-2.6.33.3-tinycore.tcz
Nevertheless, very good description of what to do  :)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Questions about Network Adaptor Support
« Reply #20 on: January 16, 2011, 05:14:23 AM »
Produce the extension
cd /tmp
mksquashfs package rtl8712u-2.6.33.3-tinycore.tcz


..should maybe be:
Code: [Select]
# mksquashfs package/ rtl8712u-2.6.33.3-tinycore.tcz
Nevertheless, very good description of what to do  :)
I defer to greater knowledge and experience.  The command is taken directly from the wiki, which is my primary source of information on this.  It does seem to work.

Offline JackBug

  • Newbie
  • *
  • Posts: 5
Re: Questions about Network Adaptor Support
« Reply #21 on: January 17, 2011, 12:37:34 AM »
Thanks Juanito and SamK. I am now up and running with the new driver.

I did do as Juanito suggested to make an extension by following the wiki, but was at a loss as how to load it at boot time.
SamK's step by step guide confirmed what I was doing was along the right path and his instruction to copy to /tce/options and use AppsAudit to load it boot time made it all a success.

Thanks again fellows.

Regards.   

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Questions about Network Adaptor Support
« Reply #22 on: June 23, 2011, 04:18:27 PM »
I must be really green because this explanation went clean over my head!!

Quote
Staying close to the description in the wiki...
Create /tmp/package/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/rtl8712u.ko.gz

possibly = make all the above directories one at a time then place the driver in the last one??


otherwise the remaining steps are easy to follow thanks :)
« Last Edit: June 23, 2011, 04:23:26 PM by coreplayer2 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Questions about Network Adaptor Support
« Reply #23 on: June 23, 2011, 04:33:51 PM »
Hi coreplayer2

If you use  mkdir -p  you can do it all in one step.

Code: [Select]
mkdir -p /tmp/package/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Questions about Network Adaptor Support
« Reply #24 on: June 23, 2011, 04:38:10 PM »
wow I didn't know that!!  :)

thanks

pity I just made them all one at a time phew am worn out now!


I'm assuming this path is the intended destination for the driver making it a simple copy of the file to this location in the file system during loading?
« Last Edit: June 23, 2011, 04:41:21 PM by coreplayer2 »

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Questions about Network Adaptor Support
« Reply #25 on: June 23, 2011, 06:47:13 PM »
I'm assuming this path is the intended destination for the driver making it a simple copy of the file to this location in the file system during loading?

Well, the "intended" (final) directory (i.e. after the installation of the extensions) is '/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless'. Due to the 'cd /tmp' and 'mksquashfs package ...' commands this directory will then be created in the root of the SquashFS (AKA: "squashfs-root") as '/usr/local/lib/...'.

If that is what you assumed then the answer is: YES!!

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Questions about Network Adaptor Support
« Reply #26 on: June 23, 2011, 06:57:20 PM »
Thanks to SamK, Rich and maro for the learning :)