PDA

Bekijk de volledige versie : CH341 USB2SERIAL driver how to load it?



errhec
19-04-2012, 14:19
Hi
I found the patch that should load driver for USB2SERIAL adapter CH341.
The patch is here (http://code.google.com/p/wl500g/source/browse/branches/rt-n/kernel-2.6/805-ch341.patch?spec=svn2899&r=2899).
But i can not find how to apply the patch into a router ( WL500GP V1 dunning 1.9.2.7-d-r2624 )
Is there any tutorial how to patch it or is there any firmware that includes the CH341 driver into it ?

Thanky you.

wpte
19-04-2012, 23:05
Hi
I found the patch that should load driver for USB2SERIAL adapter CH341.
The patch is here (http://code.google.com/p/wl500g/source/browse/branches/rt-n/kernel-2.6/805-ch341.patch?spec=svn2899&r=2899).
But i can not find how to apply the patch into a router ( WL500GP V1 dunning 1.9.2.7-d-r2624 )
Is there any tutorial how to patch it or is there any firmware that includes the CH341 driver into it ?

Thanky you.

it's already in the RTN branch, so it's applied.
Download a RTN version of the firmware for your router like "WL500gp-1.9.2.7-rtn-r4051.trx"
and you should be good to go.
At the moment you're using the old d firmware with kernel 2.4, the rtn branch has kernel 2.6:)

erik_bies
10-05-2012, 22:14
Hi,

Is there any chance to get CH341 (cheap Chinese) serial adaptor working under wl-500g.
I can see for the 2.6 kernels there was success https://code.google.com/p/wl500g/source/detail?r=2899

But as far as I know the 1.9.2.7-9 (2008-03-14) is still based on 2.4.

Anyone successfully compiled a kernel module?

Thx

lly
11-05-2012, 09:04
It is impossible to just compile module from 2.6 kernel in 2.4 environment. You(or someone else) have to backport it by change use of new kernel API to older one.

For now, it is easier to replace wl-500g with RT-N10U or RT-N16...

erik_bies
21-05-2012, 19:23
For now I indeed expect that this is not possible... I don't think I'm capable of backporting this to 2.4...my coding skills are not good enough for that ;)
I compiled the modules for another linux NAS device I had (Synology) and that works fine.

Still one wonder...
Would it be possible to run one of the rtn based kernels on the good old wl500g... assuming that I can live with the fact that the wireless module will not work (as I understood that is one of the key parts that does not work in the later kernels due to a missing driver .ko)

lly
21-05-2012, 19:48
Since rtn branch with Broadcom SDK 5.x never tested on Wl500g, I suspect that some parts of old plaform support code can be removed by Broadcom stuff. Restore it(except Wi-Fi driver) not so incredible task, but also requires some skills & efforts...

Moreover, backport of CH341 driver to 1.9.2.7-d (kernel 2.4.37) much easier than 1.9.2.7-9 (kernel 2.4.20).

lly
23-05-2012, 19:31
I found a surprise in my treasury - draft of backport of CH341 driver to 2.4.37, see r4257 (http://code.google.com/p/wl500g/source/detail?r=4257). It can be compiled, but never tested on real devices. I haven't neither hardware, nor resources to improve it, so all is up to you...

erik_bies
01-06-2012, 09:21
Great!!!
Will give it a try to compile it..