Monday, March 1, 2010

Dingux kernel with CDC/ECM Support

Original Dingoonity thread:

Re: Rndis usb ethernet gadget problem on 64 bit Vista and up systems

« Reply #6 on: February 24, 2010, 10:29:31 PM »


Well, I decided to fetch and compile dingux kernel. I use "andLinux", and I had to overcome some config issues (e.g. neither "make menuconfig", "make gconfig" or "make xconfig" worked, and I didn't want to use naked "make config"), but let's leave my personal  system problems aside.
First of all, I fetched the Boukichi's version of kernel:
svn checkout http://dingux-code.googlecode.com/svn/linux-2.6.24.3-dingux/trunk/ dingux-code-read-only
(it took some time)
Then I ran "make a320_defconfig" and "make menuconfig" from dingux-code-read-only dir (the kernel's source root), and set my LCD driver to 9331 using procedure described in README.A320.
After that I went in the kernel menu to
Device Drivers->USB Support->USB Gadget Support
and
1) disabled "RNDIS Support (EXPERIMENTAL)"
2) entered "USB Gadget Drivers" and picked "Ethernet Gadget (with CDC Ethernet support)"
Then I compiled the kernel with "make zImage" and voila - now I have a kernel with CDC/ECM support and without RNDIS.
So I copied it to the root of my SD card.
Then I downloaded driver you mentioned, but it wasn't enough. In order to use it I had to modify one line in file
<path>\Thesycon\CdcEcm\V1.8.0_Demo\idisk\x86\cdcecm_demo.inf
The line
%S_DeviceDesc%=_Install,USB\VID_VVVV&PID_PPPP
should be replaced with:
%S_DeviceDesc%=_Install,USB\VID_0525&PID_A4A1
Now I connect my Dingoo to PC, install the driver using the inf file above, and voila - the connection works, it's rock stable
Of course, for file transfer don't forget to use FileZilla (at IP 10.1.0.2) and nothing else - it's the only known working FTP client.
As for driver that works only 4 hours and requires PC restart after - I think it's not that critical. My development sessions are much shorter, and I don't mind to reboot sometimes to restart the driver.
Joyrider, thank you a lot for this idea !!
I think we should let booboo know about your findings.
P.S. After researching the net and booboo's blog I see that RNDIS driver is indeed broken, and various workarounds didn't help, or at least didn't help to everybody. This makes CDC/ECM a great replacement and I am really happy. Thank you again !

« Last Edit: February 24, 2010, 10:34:33 PM by borus »

Grab it here:

http://www.mediafire.com/file/yyeyryhzdnn/zImage-9325
http://www.mediafire.com/file/m3qizwninbm/zImage-9331

Thank you to Borus/Joyrider!

4 comments :

  1. And Syscon CDC/ECM Windows driver should be taken from:

    http://www.thesycon.com/eng/usb_cdcecm.shtml

    And then it should be installed and patched for Dingux, as stated above, before usage.
    (and don't forget it's a demo driver and that's why you should reboot every 4 hours)

    ReplyDelete
  2. Dingoo on German CT'Magazin :-D

    http://img706.imageshack.us/img706/9412/clipboard01ijp.jpg

    http://pastebin.com/embed_js.php?i=kLGEjmZ4

    ReplyDelete
  3. Please put google translator in this blog

    ReplyDelete