[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Not able to compile new driver

Not able to compile new driver

Hardware related problems and workarounds

Not able to compile new driver

Postby umashankar » Sun Jun 15, 2014 4:35 pm

Hi,

Using the latest 14-Jun OS version. The issue is that am unable to get the wifi working. The dongle am using is a Tenda w311m, which apparently uses a ra5370 chip. Following the advice given elsewhere in the forums, am trying to compile the driver off the sources downloaded from the mediatek website. It is failing in the beginning itself saying it's unable to locate the build file in the lib/modules folder. The OS (uname -r) is 3.12.0-g0bc9c3a-dirty, and it's not able to locate this folder in the lib/modules. Cannot build the folder also, as apt is not able to locate the package 3.12.0-g0bc9c3a-dirty. Please explain how to proceed.

linaro-nano:~> uname -r
3.12.0-g0bc9c3a-dirty

linaro-nano:~/Downloads> cd DPO_RT5572_LinuxSTA_2.6.1.3_20121022 --> This is the folder with the source files

linaro-nano:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022> ls
Makefile RT2870STACard.dat include/ rate_ctrl/ tools/
README_STA_usb chips/ iwpriv_usage.txt sta/
RT2870STA.dat common/ os/ sta_ate_iwpriv_usage.txt

linaro-nano:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022> sudo make
make -C tools
make[1]: Entering directory `/home/linaro/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/linaro/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/linaro/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/linaro/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.12.0-g0bc9c3a-dirty/build SUBDIRS=/home/linaro/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make: *** /lib/modules/3.12.0-g0bc9c3a-dirty/build: No such file or directory. Stop.
make: *** [LINUX] Error 2
linaro-nano:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022> ls /lib/modules
3.13.0-24-generic/ --> Does not list the modules/build file corresponding to the OS
linaro-nano:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022>

Other info:
[*]iwconfig doesn't mention the wlan0 or ra0 etc at all:
linaro-nano:~> iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
linaro-nano:~>

[*]ifconfig shows ethernet (on which am typing this)
linaro-nano:~> ifconfig
eth0 Link encap:Ethernet HWaddr 04:4f:8b:00:07:0b
inet addr:192.168.0.120 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1900 errors:0 dropped:0 overruns:0 frame:0
TX packets:2395 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:157747 (157.7 KB) TX bytes:337701 (337.7 KB)
Interrupt:54 Base address:0xb000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4614 (4.6 KB) TX bytes:4614 (4.6 KB)

Any other alternative (without compiling etc) to get the wifi working is also fine.
umashankar
 
Posts: 6
Joined: Mon Dec 17, 2012 3:22 am

Re: Not able to compile new driver

Postby umashankar » Tue Jun 17, 2014 6:17 am

Bump
umashankar
 
Posts: 6
Joined: Mon Dec 17, 2012 3:22 am

Re: Not able to compile new driver

Postby AlbertoGP » Tue Jun 17, 2014 9:07 am

Hi, the 14-03-06 system image is from 2014-03-06, that is, 6th of March. The important thing is the uname output you posted anyway.
Edit: I meant the 14.03.06 SD card image file from ; there is a rootfs image (not the whole card that has both the /boot and /root partitions) at that has the timestamp 140603 which is 3rd of June.

You can build an updated disk image as documented here: https://github.com/parallella/parallella-ubuntu
That would be based on Ubuntu 14.04 which apparently includes the RT5572 driver: https://bugs.launchpad.net/ubuntu/+sour ... ug/1020650
You mention the RA5372 but since you are compiling the RT5572 driver I suppose it's the same.

If you still need to compile the module there, you'll probably need to install the kernel-headers-generic package. This won't work in the 14-03-06 because the kernel version (3.12) does not match the packages (3.11).

I have compiled USB wireless drivers in other systems like the GK802 but I don't use one in the Parallella so I can't give you more than the general advice above.
Last edited by AlbertoGP on Thu Jun 19, 2014 10:00 am, edited 1 time in total.
AlbertoGP
 
Posts: 41
Joined: Sat May 10, 2014 10:17 am
Location: Saarbrücken, Germany

Re: Not able to compile new driver

Postby 9600 » Tue Jun 17, 2014 9:42 am

Andrew Back
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: Not able to compile new driver

Postby umashankar » Tue Jun 17, 2014 11:53 am

Thank you, Alberto and Andrew. Can you please suggest how I make the usb wifi work?
umashankar
 
Posts: 6
Joined: Mon Dec 17, 2012 3:22 am

Re: Not able to compile new driver

Postby AlbertoGP » Tue Jun 17, 2014 3:23 pm

Oh, I see. Well, then I would create that modules directory by hand, then see what's missing next and get those things from the git repository.

You can get a copy of the Parallella kernel files with git: `git clone https://github.com/parallella/parallella-linux-adi.git`
Another way is to use the "Download ZIP" button in the GitHub page that Andrew mentioned. It's on the right-hand side and would be faster because it does not contain all the changes, just the current version.
The file is called "xcomm_zynq.zip" because that's the branch name in the repository.
AlbertoGP
 
Posts: 41
Joined: Sat May 10, 2014 10:17 am
Location: Saarbrücken, Germany

Re: Not able to compile new driver

Postby umashankar » Tue Jun 17, 2014 3:55 pm

Thank you Alberto. Will try it and let you know how it goes.
umashankar
 
Posts: 6
Joined: Mon Dec 17, 2012 3:22 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 9 guests

cron