"ra0 no private ioctls" - HELP!

This forum for information that related with C series hardware instead of firmware/software.
Post Reply

alemaratv
Posts: 3
Joined: Sun Jun 25, 2017 10:27 pm

"ra0 no private ioctls" - HELP!

Post by alemaratv » Sun Jun 25, 2017 11:04 pm

Hello everybody,
I am trying to change PID/VID values of my Edimax EW-7711UAn V2 WiFi Dongle to make it compatible to a Samsung C Serie TV.
I followed the guide as in https://wiki.samygo.tv/index.php?title= ... es_with_TV
I am stuck at this point:

Code: Select all

ale@beast:~$ lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0763:4008 Midiman 
Bus 003 Device 002: ID 058f:6364 Alcor Micro Corp. AU6477 Card Reader Controller
Bus 003 Device 006: ID 7392:7710 Edimax Technology Co., Ltd 
Bus 003 Device 005: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]
Bus 003 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ale@beast:~$ sudo iwpriv ra0 e2p 208=04E8
ra0       no private ioctls.

ale@beast:~$ 
What is the problem?
What can I do?

User avatar
juusso
SamyGO Moderator
Posts: 9775
Joined: Sun Mar 07, 2010 6:20 pm

Re: "ra0 no private ioctls" - HELP!

Post by juusso » Mon Jun 26, 2017 5:37 am

This is the topic, where you can inform yourself. viewtopic.php?t=14&start=200#p18528
Please consider in reading the whole topic. Solution is there.
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

alemaratv
Posts: 3
Joined: Sun Jun 25, 2017 10:27 pm

Re: "ra0 no private ioctls" - HELP!

Post by alemaratv » Tue Jun 27, 2017 5:45 pm

Message cancelled.
Last edited by alemaratv on Thu Jun 29, 2017 7:31 pm, edited 2 times in total.

User avatar
juusso
SamyGO Moderator
Posts: 9775
Joined: Sun Mar 07, 2010 6:20 pm

Re: "ra0 no private ioctls" - HELP!

Post by juusso » Tue Jun 27, 2017 6:17 pm

So what exactly is unclear?
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

alemaratv
Posts: 3
Joined: Sun Jun 25, 2017 10:27 pm

Re: "ra0 no private ioctls" - HELP!

Post by alemaratv » Thu Jun 29, 2017 7:41 pm

Hello juusso and thank you again for answerring me.
I spent the last 3 days trying to figure out what is not working with me, but I really need your help.
WiFi Dongle is up and running smoothly.

Here is where I get stuck:

Code: Select all

sudo make

[...big cut...]

/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c:6035:1: warning: the frame size of 1344 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: set di istruzioni per l'obiettivo "/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o" non riuscito
make[2]: *** [/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o] Errore 1
Makefile:1420: set di istruzioni per l'obiettivo "_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux" non riuscito
make[1]: *** [_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.4.0-83-generic"
Makefile:243: set di istruzioni per l'obiettivo "LINUX" non riuscito
make: *** [LINUX] Errore 2
of course, sudo make install doesn't work.

on the web forum linked in the SamyGo Using Non Samsung USB Dongles wiki, I read that:

Code: Select all

Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 .. so if during the next (make && make install) step it fails with this error:

Quote

    make[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
    make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
    make: *** [LINUX] Error 2


or similar.

The fix is to cd to the driver source directory (eg. 2010_0709_RT2870_Linux_STA_v2.4.0.1), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:

Code: [Select]

make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"

(hitting enter after each line)

Or, I've uploaded a pre-modified version of the driver that WILL compile on kernels >= 2.6.35 here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2

Then carry on with the "sudo su" and "make && make install", as per the instructions below.
but even after running those three commands one by one, can't make and make install.
Can you help me please?
The big problem is that I cannot see any .ko files as well

Post Reply

Return to “[C] Hardware”