Hi! Some general question + Wifi USB Realtek RTL8191S

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby Jocko » Fri Jun 13, 2014 9:34 am

Hi matzi,

Indeed you need to add a sleep command between the bring up command for wlan0 and udhcpc : required time to update the system files.

But I think that 30'' is too big. You believe that it is the right value because udhcpc has a default wait between two attempts :
-A,--tryagain N Wait N seconds after failure (default 20)
So 20''

For example, if you set a sleep of 3" and I assume that the bring-up doesn't yet end to update the system files, udhcpc will fail to get an IP. Then it will wait until 20" to try again.
So 3" + udchcp first try + 20" => ~25"

So increase the sleep time with a small step and I am pretty sure that you get a smaller value than 30"
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby matzi » Tue Jun 17, 2014 7:14 pm

I did some more trials and indeed the important delay is between lan0 up and udhcpc. If a delay of about 30 sec is used, then udhcpc gets a lease at the very first try. If the delay is shorter it goes to background and connects later. For me I will stick to 30 sec because then I have an actual entry in my log file. And it will take this time to connect anyway .
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby matzi » Fri Jan 02, 2015 10:08 pm

Hi fvdw and Jocko! Happy new year!
Upgrade to 16.0 on 5big2 went fine. As usual I have to ask for a new driver for the RTL819S wifi dongle...
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby fvdw » Sat Jan 03, 2015 11:43 am

Hi Matzi,
sorry for overlooking this
I needed to review my archive. I think I found the right setup for compiling it

Try this one and please let us know if it works
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby matzi » Sat Jan 03, 2015 3:44 pm

Doesn not rund on first trial. I uploaded the older version 8712u.ko through the web interface under attached devices - usb devices. It gave me an error message but still loaded the driver. How do i remove that version?
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby fvdw » Sat Jan 03, 2015 3:58 pm

login via ssh, go to the folder /lib/modules/3.14.2 and remove it, or better replace it by the new version as the insert modules script will still have a line to try to load it.
Be sure it has executable rights (chmod 755)
Then reboot
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby fvdw » Sat Jan 03, 2015 5:29 pm

I tested the module on my 5big2 with the new kernel 3.14.2 and it loaded ok, wlan adapter is up
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby matzi » Sun Jan 04, 2015 8:31 pm

Mine is not yet running. One thing I found is that my scripts expect simple.script in folder /etc but it was not there in the new 16.0. Do you have a different default location?
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby fvdw » Sun Jan 04, 2015 9:32 pm

no it is not standard included in the firmware, so you must added in the folder /etc (and make it executable)
I will put it in the 16.1 update
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi! Some general question + Wifi USB Realtek RTL8191S

Postby matzi » Mon Jan 05, 2015 8:07 pm

Think I could locate the problem:

wpa_cli says it can not connect to wpa_supplicant. Whne I call wpa_supplicant by putty terminal and then ask wpa_cli for status its all OK. So it seem that it does not execute the call of wpa_supplicant in rcS.

I have it near the end of rcS
/usr/sbin/wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B



echo "------------------------"
echo "rcS finished"
echo "rcS finished" >> boot.log
echo "------------------------"
echo " list boot.log file"
cat /boot.log



Do you see a reason why it is not executed?
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 9 guests