• 0
Sharat K

Zybot + USB WIFI Adapter (RALink 5370)

Question

Regarding: Zybot Project
I am having an issue getting the USB WIFI Adapter to successfully connect to the internet.
 
What is working:
        1) Micro SD card Prepared for Boot on Zybo
        2) Successfully able to boot and login to linaro
        3) Connected a 4:1 USB hub to the USB port on Zybo and all ports are working
              - Tested this by connecting 1 mouse on all 4 ports, (one at a time) and the mouse works on all 4 ports
        4) Camera is working fine, (motion is installed, server scripts copied to init.d and permissions changed)
        5) Able to view Camera feed through IP Address but that address is issued through eth0 NOT wlan0
 
Hardware:
        1) RA Link RT5370 USB Wi-Fi Adapter - linked for image
              - This adapter works flawlessly when I connect it to my PC.
        2) Zybo, powered via 5V DC wall-wart power supply
        3) Logitech C120 Webcam
Note: Instead of connecting the zybo via HDMI, I have connected it to my router via Ethernet and am using SSH to send instructions
 
In order to illustrate the problem: (lets look at the responses from terminal....)
        1) When I type 'lsusb' (utility for displaying information about USB buses in the system) --> I get screenshot 1
               - As you can see here, the WIFI adapter is detected fine
        2) When I type 'ifconfig' --> I get screenshot 2
        3) When I type 'lsmod' --> I get screenshot 3
               - No kernel modules are installed
        4) when I type 'sudo nano /etc/network/interfaces' --> I get screenshot 4
               - which is detailing how I want the network interfaces to be set up
        5) when I type 'sudo nano /etc/wpa_supplicant/wpa_supplicant.conf' --> I get screenshot 5
               - Which is detailing the credentials of my network (you can see my password, it doesn't bother me)

ISSUE:
I am able to stream from the camera successfully through the wired internet connection (screenshot 2 shows that I have a valid IP address)
The problem is getting the USB Wi-Fi Adapter to show up in 'ifconfig' so that I can use it for streaming. Doing so will allow me to detach the Zybo from the router's Ethernet connection and use it cord free on a battery pack.
 
Please tell me how to set up RT5370 USB Wi-Fi properly on Linaro (for Zybo) and also connect to any network of choice
 
 

s1.PNG

s2.PNG

s3.PNG

s4.PNG

s5.PNG

Share this post


Link to post
Share on other sites

8 answers to this question

  • 0

Hi @Sharat K,

Thank you for your input on the Zybot tutorial.  I have moved you thread to a sub-section where more experience forum members look that deals with embedded linux questions.

cheers,

Jon

Share this post


Link to post
Share on other sites
  • 0

Hi @Sharat K,

I reached out to a more experienced embedded linux engineer to look into you specific question. While we are waiting for a response I did find this thread that might help with getting your usb wifi adapter working.

thank you,

Jon

Share this post


Link to post
Share on other sites
  • 0

Dear Digilent,

Thanks for taking the time to write back. I am sorry for the delay as I was sorting out other issues in my project. Fortunately, it is nearly complete!

The last issue to resolve is the WIFI Adapter Issue. I tried to follow the procedure that you pointed me to, but I could not successfully build the kernel (new one in which the Ralink driver support is enabled)

As mentioned earlier, I am working with the Zybo Board, so after cloning the linux-digilent folder onto my local machine (see screenshot 1)

I proceeded to make the kernel by entering the command "make ARCH=arm digilent_zed_defconfig" (according to instruction) (see screenshot 2)

Since i am actually working with the Zybo i decided to enter "make ARCH=arm digilent_zybo_defconfig" (see screenshot 3)

But both commands return errors and i am unable to proceed further. I am primarily running Windows 10 Pro 64Bit, Vivado 2015.4 Webpack and I installed Ubuntu recently and don't have permission to run Vivado on this OS. (This means i can not install ARM GNU tools from Xilinx)

Since the link that you sent me in the previous post aims to build a new kernel (zImage); I am kindly requesting you to spare me the convoluted process of setting up the toolchain and building the kernel for the zybo. Please send me the kernel (built and tested) for Zybo configured to boot linaro. (as done in the zybot tutorial)

Thank you for you cooperation,

Sharat

s1.png

s2.png

s3.png

Share this post


Link to post
Share on other sites
  • 0

Hi @Sharat K,

Unfortunately, you will need to wait until next week for a response from an engineer that is more experienced in embedded linux. They are out of the office with little to no internet this week. Sorry for the inconvenience.

thank you,

Jon

Share this post


Link to post
Share on other sites
  • 0

Hello,

I just checked the kernel source, it looks like the kernel for the zybot demo should already have the correct drivers installed. Are you using the binaries included with this download?:

https://cdn.instructables.com/ORIG/F2M/U15B/IMGJA59B/F2MU15BIMGJA59B.zip

If not, please try using those binaries. If that doesn't fix the problem, please reboot the zybo (with the wifi adapter already installed) and then execute dmesg at the terminal. Copy the output into a file and please attach it to your next post. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now