![]() |
#1 |
Enthusiast
![]() ![]() Posts: 32
Karma: 106
Join Date: Mar 2009
Device: irex DR1000S
|
usb networking on DR1000 2.0RC3
Dear all,
some time ago, Gregor Richards has provided an awesome way to USB network with the DR800, and I am currently trying to get it working on the DR1000 with the latest firmware as well. With the largely common codebase, chances seem quite good for that. The main issue is some kernel problem with the usb gadget ethernet module which gives a segmentation fault when being inserted on the DR1000. If you know something about kernel modules and drivers and are interested in more information (esp. detailed dmesg dumps), have a look at the discussion which is held at this place: https://www.mobileread.com/forums/showthread.php?t=81699 |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
In total I've spent about 1 week trying to reproduce the binaries from Gregor Richards for my DR800S. No positive result .. I've come quite far, now I know what to select and what not in the kernel Configurator, the usb_gadget.ko compiled successfully etc., but again got segmentation fault. I can post a final kernel configuration as well as explain what were the steps (mainly following the patch from Gregor Richards).
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() Posts: 32
Karma: 106
Join Date: Mar 2009
Device: irex DR1000S
|
That would be great, please do post your configuration and explanation. What do I need to tamper around with it myself? Is there a developer kit and sources also for the firmware 2.0?
Many thanks! |
![]() |
![]() |
![]() |
#4 | |
Enthusiast
![]() ![]() Posts: 32
Karma: 106
Join Date: Mar 2009
Device: irex DR1000S
|
dmesg debugging output
Just for the record, here my post of the dmesg output after insmodding usb_gadget.ko
I have asked the people on the DR800 thread to please post their dmesg output for comparison. Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
http://developer.irexnet.com/iOn/SDK/4.0/ http://developer.irexnet.com/iOn/Sources/4.0/ Sources\4.0\Kernel\DR800S-1.x\arch\arm\configs has different versions for dr800 and dr1000 (see er0200_drxxxxx) B.t.w. I am also interested in the usbnet for DR1000. Unfortunately my kernel experience is very limited, but I try to help when I can (I might make some dumb/obvious remarks). |
|
![]() |
![]() |
Advert | |
|
![]() |
#7 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Get the kernel sources, unpack them. I've got everything stored in the folder DR800S-1.x. Get and unpack the attached archive. The main file is .config-DR800. To tackle put it to the DR800S-1.x folder under the name .config and launch ./setup-config, a dialog will appear, you will be able to drill down its branches. First browse around to understand what is where.
I've got this .config by starting from the standard one - copy one and paste it into the root directory as .config file. For me it was arch/arm/configs/er0200_dr800s_defconfig, I guess you have to start from *dr1000* file. I would say either er0200_dr1000s_defconfig or er0200_dr1000_recovery_defconfig. Then get the patch file from Gregor, read it, understand more or less and search for about the same items in the configuration dialog. Use spacebar or mouse to select the item. Sometimes an item may have three states: yes, no and M, the latter is a Module, thus a .ko will be compiled. Another script ./compile-ko does the compilation of only the needed modules, there's no need to compile the complete kernel. You'll find the g_ether.ko binary in drivers/usb/gadget folder. Good luck, guys! P.S. I'll search for the notes which I took during investigation of the kernel configuration changes. Hopefully they are smwhr on my hdd .. Last edited by dima_tr; 03-02-2011 at 04:31 PM. |
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Hi Dimitri,
Thanks for posting the tips and scripts, I will try it as soon as I find some time ('unfortunately' it is Carnaval this weekend and we tend to celebrate this in the part of the Netherlands where I live ...:-) A Question: You posted earlier that you still got a segmentation fault when you tried to reproduce the work of GregorRichards. Do you know which changes solved this issue? This would also help with further kernel changes. Thanks, Marcel. |
![]() |
![]() |
![]() |
#9 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Too bad, I don't know the solution. At least I could not get a working g_ether.ko when have been fighting with it during April 2010. Maybe a fresh view will solve this .. Will give it a try during the weekend.
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
I misread some post, I though that you managed to build a working version.
|
![]() |
![]() |
![]() |
#11 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Sorry, asked a stupid question, then realized it
![]() Also another question: could someone with a DR800 post the output from a "modprobe -l" command? It would be interesting for me to see which modules are different from the DR1000. Thanks in advance :-) Last edited by rvs; 04-17-2011 at 02:23 PM. |
![]() |
![]() |
![]() |
#12 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
Inigo |
|
![]() |
![]() |
![]() |
#13 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
![]()
Thanks
![]() |
![]() |
![]() |
![]() |
#14 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
I've got it working on my DR1000
![]() For anyone else interested, just use the instructions from Gregor Richards (https://www.mobileread.com/forums/showthread.php?t=81699), but change his g_ether.ko to the one attached here. I got it working simply by following the instructions from dima_tr and Gregor Richards. I used the config file located on the DR1000 (/proc/config.gz). To set this up on the PC (linux): (from Inigo on the other thread) $ sudo modprobe usbnet $ sudo ifconfig usb0 192.168.200.1 Then to ssh... $ ssh root@192.168.200.2 Best regards, Roderick Edit: btw, you don't need to set up a password on the DR. You can just skip through it when asked. Edit2: It might be necessary to also modprobe cdc_subset when setting things up on the host side. Last edited by rvs; 04-18-2011 at 02:24 PM. |
![]() |
![]() |
![]() |
#15 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
wow, great!
![]() ![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restore KindleDX USB networking | ebs | Kindle Developer's Corner | 256 | 01-24-2016 02:27 AM |
USB Networking on Mac OS? | DairyKnight | Kindle Developer's Corner | 19 | 07-02-2012 04:19 PM |
Hacks Kindle 3 USB Networking | n10 | Amazon Kindle | 2 | 10-11-2010 09:29 PM |
Firmware Update USB networking for 2.5? | dd_engi | Amazon Kindle | 9 | 05-09-2010 06:45 AM |
Is there any way to remove USB networking hack? | aghazi | Kindle Developer's Corner | 4 | 11-27-2009 07:35 PM |