WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: WiFi stack added  (Read 122672 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
WiFi stack added
« on: December 01, 2012, 08:41:38 AM »
Added WIFi stack to piCore. Install wifi.tcz from the repo, itt will install all necessary tools and libs. I do not have an USB WiFi stick and can't test, but most priobably works :)

Let me know the result if you tried.
Béla
Ham Radio callsign: HA5DI

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

Offline Joeledmund

  • Newbie
  • *
  • Posts: 4
Re: WiFi stack added
« Reply #1 on: December 01, 2012, 09:00:07 PM »
don't have Ethernet so i put on to SD using Ubuntu this it what it looks like
but i cant get it pull up the WI-FI scan and should it be a icon
« Last Edit: August 15, 2021, 10:40:14 PM by Rich »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #2 on: December 02, 2012, 01:51:31 AM »
You need the following packages (*tcz, *.md5.txt and *.dep if exists) int tce/optional:




Add wifi,tcz to tce/onboot.lst to load it automatically at boot time. It will install all others automatically based on .dep files.

WIFI icon must appear in WBAR:

« Last Edit: December 02, 2012, 01:54:09 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline Joeledmund

  • Newbie
  • *
  • Posts: 4
Re: WiFi stack added
« Reply #3 on: December 03, 2012, 07:59:10 AM »
got it loaded but the wifi usb sticks i have must not be supported it is a linksys wireless G with speed booster it works in x86 version of tiny core i had in my think pad (with a pent2 at 384Mhz)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #4 on: December 03, 2012, 08:04:06 AM »
got it loaded but the wifi usb sticks i have must not be supported it is a linksys wireless G with speed booster it works in x86 version of tiny core i had in my think pad (with a pent2 at 384Mhz)

please provide details, like your dmesg, lsusb and lsmod output as well is ifconfig
Béla
Ham Radio callsign: HA5DI

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

Offline Joeledmund

  • Newbie
  • *
  • Posts: 4
Re: WiFi stack added
« Reply #5 on: December 03, 2012, 06:16:54 PM »
got it loaded but the wifi usb sticks i have must not be supported it is a linksys wireless G with speed booster it works in x86 version of tiny core i had in my think pad (with a pent2 at 384Mhz)

please provide details, like your dmesg, lsusb and lsmod output as well is ifconfig

i dont know where to look for that info but i have the data plate on the back

model No. WUSB54GSC
serial MOG00HB02204
IC: 3839A-WUSBGSC

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: WiFi stack added
« Reply #6 on: December 03, 2012, 06:42:32 PM »
Hi Joeledmund
Enter the following commands:
Code: [Select]
dmesg > dmesg.txt
lsmod > lsmod.txt
Attach the two text files to your next post.
If you can install  usb-utils.tcz  enter:
Code: [Select]
lsusb > lsusb.txtand attach that file too.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #7 on: January 14, 2013, 03:56:35 AM »
Updated wpa_supplicant.tcz, missing drivers added. Try and let me know the result.
Béla
Ham Radio callsign: HA5DI

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

Offline Cloudcentric

  • Newbie
  • *
  • Posts: 15
Re: WiFi stack added
« Reply #8 on: January 14, 2013, 04:22:31 AM »

SUCCESS   8) 8)

Thank you for the prompt update much appreciated, yes it works no problem from GUI.  Though have to sometimes launch the WiFi tool a couple of times to retrieve a list of nearby Routers.




tinycorearm blogspot co uk

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: WiFi stack added
« Reply #9 on: January 14, 2013, 04:31:29 AM »
Hi Cloudcentric

Could you please tell me which wifi dongle you are using?

Thanks
Steen

Offline Cloudcentric

  • Newbie
  • *
  • Posts: 15
Re: WiFi stack added
« Reply #10 on: January 14, 2013, 05:54:55 AM »

Yes, it is a cheap Ebay Chinese no brand, with a Realtek RTL8188CUS Chipset, I bought this as the chipset is supported in Raspbian.

  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x8176 RTL8188CUS 802.11n WLAN Adapter



I also have another cheap Ebay Chinese no brand, with a Ralink RT5370 Chipset, which is not recognised in piCore or Raspbian

  idVendor           0x148f Ralink Technology, Corp.
  idProduct          0x5370 RT5370 Wireless Adapter

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #11 on: January 14, 2013, 11:43:03 AM »
Yes!!! Success here too!  :)

Thank you very much bmarkus for your fast response!

I also added this line to bootlocal.sh to make it connect at startup:

/usr/local/bin/wifi.sh -a 2>&1 > /tmp/wifi.log

But that didn't work at first. I had to add the line again (so two of the same lines) to get it working.

I allready noticed when executing wifi.sh by hand it only worked the second time.

It feels like the first time it activates the wifi dongle, and the second time it's allready activated.
Any thoughts on that?

For completeness, I am using this dongle: LogiLink Wireless LAN USB 2.0 Nano Adapter


my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: WiFi stack added
« Reply #12 on: January 14, 2013, 11:52:02 AM »
Gerrelt@

Thanks for the feedback. You may look around in the forum for possible similar issue with the x86 version and solution.
Béla
Ham Radio callsign: HA5DI

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

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: WiFi stack added
« Reply #13 on: January 24, 2013, 01:00:47 PM »
Hi bmarkus,

The iwlist command doesn't always execute succesfull on the first try.
Could we change this part of the wifi.sh script:

echo "Standby for scan of available networks..."
ifconfig "$WIFI" up 2>/dev/null
sleep 2
iwlist "$WIFI" scanning |
awk -v wifi="$WIFI" -v dbfile="$DB" -v mode="$MODE" -v ptmp="$PTMP" '

To this?:

echo "Standby for scan of available networks..."
ifconfig "$WIFI" up 2>/dev/null

# try for 5 times to get a succesfull iwlist
for i in $(seq 1 5)
do
  sleep 1
  iwlist "$WIFI" scanning >/dev/null
  if [[ $? -eq 0 ]]
  then
    break
  fi
done

iwlist "$WIFI" scanning |
awk -v wifi="$WIFI" -v dbfile="$DB" -v mode="$MODE" -v ptmp="$PTMP" '

This will do a maximum tries of 5 before continuing with the rest of the script.
The auto start option might be a bit more durable with this change.

Be aware, it's been awhile since I did some unix scripting, so I'm a bit rusty..  ;D
I didn't test it either..
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: WiFi stack added
« Reply #14 on: January 24, 2013, 01:36:44 PM »
Please read http://forum.tinycorelinux.net/index.php/topic,5287.msg28016.html#msg28016
bmarkus is not the extension maker. If your reading the extension's code then you should know and respect extension rules.
10+ Years Contributing to Linux Open Source Projects.