iamwcong / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

I need ftdi_sio.ko - please help #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

i need ftdi_sio (and probably usbserial.ko) for an usb serial reader. The 
packages on the feed dont contain these files, although I installed all libusb 
and ftdi packages.

Could you probably help me out?

Thanks in advance, regards

Original issue reported on code.google.com by manfred....@gmail.com on 24 Jan 2012 at 12:18

GoogleCodeExporter commented 9 years ago
Hi! Could you please write what are you going to do? I've understood that you 
you want to plug-in some device.. What is the device?

Original comment by d...@soulblader.com on 24 Jan 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Hi,

I want to run oscam on the optware enabled router. oscam is running fine, but i 
have got a problem with the needed smartcard readers, and without readers oscam 
is useless. I am using this device: 

http://www.hm-sat-shop.de/programmer/smartmouse-easymouse-2-usb-premium-programm
er.html

It requires insmod ftdi_sio.ko (or modprob), but after installing all packages 
I could find on the feed ftdi_sio.ko was not anywhere on the router.

I found the file from other distributions and for example for ASUS WL-500g 
custom firmware. But I can not use this on my RT-N56U with 
RT-N56U_1.0.1.7f-p9-mips32 ... insmod rejected!

Any idea? Would highly appreciate it.

Thanks in advance

Original comment by manfred....@gmail.com on 24 Jan 2012 at 1:48

GoogleCodeExporter commented 9 years ago
Ok, let me check.. Could you please compress and attach the file here?...

Original comment by d...@soulblader.com on 24 Jan 2012 at 5:49

GoogleCodeExporter commented 9 years ago
I found it in source file and I think it could be compiled... I'll let you know 
if I succeed...

Original comment by d...@soulblader.com on 24 Jan 2012 at 6:56

GoogleCodeExporter commented 9 years ago
Thank you very much!

Original comment by manfred....@gmail.com on 24 Jan 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Hi there!

It seems the module was successfully loaded! =)

# cd /
# wget -c http://dl.dropbox.com/u/44733876/utilits/usbserial.tar.gz -O- | tar 
-zx
# insmod /opt/lib/modules/2.6.21/kernel/drivers/usb/serial/usbserial.ko 
# insmod /opt/lib/modules/2.6.21/kernel/drivers/usb/serial/ftdi_sio.ko 

Actually you can put these modules to any other place on disk, but load them in 
this order. If there are any errors use:

# dmesg | tail

If you want them to be loaded on boot you need:

# mv /opt/etc/init.d/K01system /opt/etc/init.d/S01system
# ipkg install nano
(maybe already installed)
# nano /opt/etc/init.d/S01system
and add like in this example:

#!/bin/sh

mod_serial=/opt/lib/modules/2.6.21/kernel/drivers/usb/serial/usbserial.ko
mod_ftdi=/opt/lib/modules/2.6.21/kernel/drivers/usb/serial/ftdi_sio.ko

func_start()
{
    echo "Start system tweak"
    # insert your custom code below
    insmod ${mod_serial}
    insmod ${mod_ftdi}
}

func_stop()
{
    echo "Stop system tweak"
    # insert your custom code below
    rmmod ${mod_ftdi}
    rmmod ${mod_serial}
}

case "$1" in
start)
    func_start
    ;;
stop)
    func_stop
    ;;
restart)
    func_stop
    func_start
    ;;
*)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    ;;
esac

Original comment by d...@soulblader.com on 25 Jan 2012 at 12:12

GoogleCodeExporter commented 9 years ago
Amazing, many thanks for your help! I can try this evening when I get home from 
work and will give feedback then.

Original comment by manfred....@gmail.com on 25 Jan 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Hi,
I'm trying to get a newly bought Tellstick to work with the router (optware and 
telldus-core package) and I need these two files. I downloaded the files from 
the post above but all I get is the error:
cant insert -------.ko: invalid module format.

I have no clue of what to do! Think you could help me?

Original comment by jacob.sc...@gmail.com on 2 Dec 2013 at 8:15