Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 02-23-2011, 04:17 PM   #1
scotsman
Enthusiast
scotsman doesn't litterscotsman doesn't litter
 
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
scotsman is offline   Reply With Quote
Old 02-25-2011, 04:40 AM   #2
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
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).
dima_tr is offline   Reply With Quote
Old 03-01-2011, 04:50 AM   #3
scotsman
Enthusiast
scotsman doesn't litterscotsman doesn't litter
 
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!
scotsman is offline   Reply With Quote
Old 03-01-2011, 07:25 AM   #4
scotsman
Enthusiast
scotsman doesn't litterscotsman doesn't litter
 
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:
Originally Posted by scotsman View Post
OK, what I get is this:
execute: modprobe arcotg_usb
this gives me output
ARC USBOTG Device Controller driver (1 August 2005)
usbotg_active: usbotg_init()
and no further line in dmesg output

when I then insmod g_ether.ko,
I get a segmentation fault immediately
dmesg -c gives me

g_ether: no version for "struct_module" found: kernel tainted.
Unable to handle kernel NULL pointer dereference at virtual address 0000009c
pgd = c72cc000
[0000009c] *pgd=872b0031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
Modules linked in: g_ether(F) arcotg_udc
CPU: 0 Tainted: GF (2.6.24-irex #2000)
PC is at eth_bind+0x290/0x6cc [g_ether]
LR is at alloc_netdev_mq+0xc4/0xdc
pc : [<bf007bdc>] lr : [<c01900bc>] psr: a0000013
sp : c72bde68 ip : c72bde30 fp : c72bdeb4
r10: c72a9540 r9 : c72a94c0 r8 : c7ffda00
r7 : bf00bfc0 r6 : 00000082 r5 : c7dfd800 r4 : 00000000
r3 : 00000000 r2 : 000000a0 r1 : c025f837 r0 : c7dfd800
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 00e5387f Table: 872cc000 DAC: 00000015
Process insmod (pid: 2296, stack limit = 0xc72bc260)
Stack: (0xc72bde68 to 0xc72be000)
de60: c027bb9a bf002570 00000001 00000028 c72a9248 0000002a
de80: c72bde9c c72a9480 c007234c c72651e0 bf00bf2c bf0048c8 00000001 00000028
dea0: c72a9248 0000002a c72bded4 c72bdeb8 bf000c70 bf007958 00000001 c72651e0
dec0: 00000001 bf00c220 c72bdee4 c72bded8 bf00e014 bf000b90 c72bdfa4 c72bdee8
dee0: c00667a0 bf00e00c 00000000 00000000 00000000 00000000 00000000 00000000
df00: 00000000 00000000 0000000d 00000000 00000000 00000000 0000000a 00000000
df20: 00000000 00000000 0000000b c88f62c0 c72cb680 c88decb9 c8898000 c88df448
df40: c88df0b0 c008dcc8 00000141 00000141 c72bc000 bf00c268 00000027 c88df470
df60: bf00c22c c88df498 00000029 c01f6174 c0269080 00000000 c72bdfa4 00000000
df80: 00080000 40149008 00000080 c0022084 c72bc000 00000003 00000000 c72bdfa8
dfa0: c0021f00 c00651a0 00000000 00080000 40149008 0005ef31 00012008 40146480
dfc0: 00000000 00080000 40149008 00000080 00012008 00000000 00000003 beeaab04
dfe0: beeaad69 beeaaacc 00008e30 400e5db4 60000010 40149008 00000000 00000000
Backtrace:
[<bf00794c>] (eth_bind+0x0/0x6cc [g_ether]) from [<bf000c70>] (usb_gadget_register_driver+0xec/0x210 [arcotg_udc])
[<bf000b84>] (usb_gadget_register_driver+0x0/0x210 [arcotg_udc]) from [<bf00e014>] (init+0x14/0x1c [g_ether])
r6:bf00c220 r5:00000001 r4:c72651e0
[<bf00e000>] (init+0x0/0x1c [g_ether]) from [<c00667a0>] (sys_init_module+0x160c/0x16ac)
[<c0065194>] (sys_init_module+0x0/0x16ac) from [<c0021f00>] (ret_fast_syscall+0x0/0x2c)
Code: 0a0000d5 e5954194 e3a03000 e28420a0 (e584309c)
---[ end trace a725123fb95d8b82 ]---

when I then lsmod, I get
Module Size Used by
g_ether 25672 1
arcotg_udc 18636 1 g_ether

Note that g_ether is listed as used. I then cannot remove g_ether by rmmod g_ether, as I then get an error that the module is in use
scotsman is offline   Reply With Quote
Old 03-01-2011, 01:58 PM   #5
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by scotsman View Post
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!
The 2.0 firmware is called 4.0 in the SDK.
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).
Mackx is offline   Reply With Quote
Old 03-01-2011, 02:01 PM   #6
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by scotsman View Post
g_ether: no version for "struct_module" found: kernel tainted.
I am not sure if this link is an obvious remark or if it is usefull?
Mackx is offline   Reply With Quote
Old 03-02-2011, 04:22 PM   #7
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
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 ..
Attached Files
File Type: zip scripts.zip (8.7 KB, 395 views)

Last edited by dima_tr; 03-02-2011 at 04:31 PM.
dima_tr is offline   Reply With Quote
Old 03-03-2011, 02:22 AM   #8
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
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.
Mackx is offline   Reply With Quote
Old 03-03-2011, 03:59 PM   #9
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
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.
dima_tr is offline   Reply With Quote
Old 03-03-2011, 04:14 PM   #10
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by dima_tr View Post
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.
I misread some post, I though that you managed to build a working version.
Mackx is offline   Reply With Quote
Old 04-17-2011, 08:07 AM   #11
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
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.
rvs is offline   Reply With Quote
Old 04-18-2011, 06:08 AM   #12
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by rvs View Post
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 :-)
Here you have.

Inigo
Attached Files
File Type: txt modprobe-l.txt (1.0 KB, 329 views)
Iņigo is offline   Reply With Quote
Old 04-18-2011, 12:14 PM   #13
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Thumbs up

Thanks
rvs is offline   Reply With Quote
Old 04-18-2011, 02:00 PM   #14
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
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.
Attached Files
File Type: zip g_ether.zip (160.7 KB, 408 views)

Last edited by rvs; 04-18-2011 at 02:24 PM.
rvs is offline   Reply With Quote
Old 04-18-2011, 03:33 PM   #15
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
wow, great!
dima_tr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:53 AM.


MobileRead.com is a privately owned, operated and funded community.