OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: protechk on November 17, 2007, 06:10:19 am

Title: Pdaxrom And Kernel Module
Post by: protechk on November 17, 2007, 06:10:19 am
Hi,

  I make my own rom with pdaX86. It works like a charm whith a 2.6.16 kernel.
  But now I would like to add a kernel module on my Z. I would like dm9601 so I download souce but own can I compile it for my Z whith pdaX86 ?
Title: Pdaxrom And Kernel Module
Post by: Capn_Fish on November 17, 2007, 12:37:02 pm
It's already compiled. My post with it seems to have disappeared, though. Here's scrapheap's build, which ought to be just as good or better (even an IPK)

https://www.oesf.org/forum/index.php?showto...0&hl=dm9601 (https://www.oesf.org/forum/index.php?showtopic=24970&hl=dm9601)

If you're set on building modules, just copy the built kernel sources to your Z, and then point the module to them when you build it.
Title: Pdaxrom And Kernel Module
Post by: protechk on November 17, 2007, 03:19:30 pm
Thanks !!

But would like to know how to compile a module with pdaXrom builder. If someone can explain to me or give me a tutorial !!!
Title: Pdaxrom And Kernel Module
Post by: protechk on November 18, 2007, 08:49:34 am
Quote from: Capn_Fish
It's already compiled. My post with it seems to have disappeared, though. Here's scrapheap's build, which ought to be just as good or better (even an IPK)

https://www.oesf.org/forum/index.php?showto...0&hl=dm9601 (https://www.oesf.org/forum/index.php?showtopic=24970&hl=dm9601)

If you're set on building modules, just copy the built kernel sources to your Z, and then point the module to them when you build it.


I try your ipk, I install it, I could modprobe it. when I do lsmod I can see dm9601 but when I plug my dongle I don't have any new device when I do ifconfig -a
My dongle works on pdaXii13 whith this pakage : http://www.tyrannozaurus.com/feed/beta3/cu...20_armv5tel.ipk (http://www.tyrannozaurus.com/feed/beta3/custom/dm9601_2.4.20_armv5tel.ipk)

Have you got an idea?
Title: Pdaxrom And Kernel Module
Post by: protechk on November 18, 2007, 11:34:31 am
In your pakage you use an old version of dm9601 that's why it doesn't work... I must compile the last...
Title: Pdaxrom And Kernel Module
Post by: Capn_Fish on November 18, 2007, 11:56:08 am
Try doing an "ifconfig eth0 up" and then see if you can see it. I know it didn't appear for me until I did that (mabe it was wth1).
Title: Pdaxrom And Kernel Module
Post by: protechk on November 18, 2007, 12:15:40 pm
Quote from: Capn_Fish
Try doing an "ifconfig eth0 up" and then see if you can see it. I know it didn't appear for me until I did that (mabe it was wth1).

I doesn't work...I compile the last version of dm9601 and it doesn't work too...
My dongle only work with 2.4 kernel :-/
I don't understand why !!!

When I do lsmod I have got that :
Module          Size      Used by
dm9601       15752        0

I think the module could be used no??
Title: Pdaxrom And Kernel Module
Post by: protechk on November 18, 2007, 12:29:06 pm
I found the solution !!!!!!!!

When I do lsusb I have got this line :
Bus 001 Device 002: ID 0a46:6688 Davicom Semiconductor, Inc

So I look the dm9601.h file and I don't know why I don't find any DM9601_DEV entry with 0a46:6688 so I add this line at the end of the file :
DM9601_DEV( "USB Ethernet", 0x0a46, 0x6688, DEFAULT_GPIO_RESET )

After this modification It works !!!!
Title: Pdaxrom And Kernel Module
Post by: Capn_Fish on November 18, 2007, 12:50:04 pm
I will have to look into that. It has never really worked for me, so I'll see if I can get it to work now.

Thanks!