DM9601 support with ANGSTROM

Hi all,

I have bought a USB-to-Ethernet Adapter (Davicom DM9601), and tried
connecting it to my beagleboard. Unfortunately, its not picking it up!
I assume its not natively supported, and i should enable it in the
kernel config.... so i tried:
I got the kernel source from:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
and did:
make distclean
make omap3_beagle_defconfig
make menuconfig

in menuconfig, i navigated to drivers, network, usb, and enabled the
framework and enabled the Davicom DM9601 one (as * not a Module - i
originally tried as a module but it errored when i tried lsmod saying
it was invalid)
then:
make uImage

The resulting uImage i then put in place of my old one on the first
partition of my SDcard.
Now what results is that the kernel loads and runs fine.... but
nothing appears on screen (only through serial - i can logon etc). as
part of the output during booting it states:
Error opening /dev/fb0: no such device

Regardless of this... in the serial terminal, i try pinging as the
drivers should be enabled with this... and nothing! lsusb doesnt even
print anything! and ifconfig only displays lo, no eth or usb.... even
trying to do, ifconfig eth0 inet... (or eth1 etc) errors saying no
such device

im no linux expert, so sorry if this is stupendously easy to do! I
tried searching everywhere and havent had any luck.

Thanks for any help anyone can give in this matter! cheers!

Hi all,

I have bought a USB-to-Ethernet Adapter (Davicom DM9601), and tried
connecting it to my beagleboard. Unfortunately, its not picking it up!
I assume its not natively supported, and i should enable it in the
kernel config.... so i tried:
I got the kernel source from:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
and did:
make distclean
make omap3_beagle_defconfig
make menuconfig

For someone new to Linux, you are headed in the right direction. There is a mailing list for that kernel and searching the archives might give you some answers. Our shared goal is to make that kernel run well "out-of-the-box" for you, but there are a few things still in flux at the "head" of the tree. Best to follow all of the on-going development discussion to reuse that kernel as-is. I suspect you might still have some issues with your configuration choices, despite starting with 'omap3_beagle_defconfig'.

in menuconfig, i navigated to drivers, network, usb, and enabled the
framework and enabled the Davicom DM9601 one (as * not a Module - i
originally tried as a module but it errored when i tried lsmod saying
it was invalid)
then:
make uImage

Can you provide the specific captured output?

The resulting uImage i then put in place of my old one on the first
partition of my SDcard.
Now what results is that the kernel loads and runs fine.... but
nothing appears on screen (only through serial - i can logon etc). as
part of the output during booting it states:
Error opening /dev/fb0: no such device

It seems that you aren't likely configuring your display driver properly when you did the menuconfig. I recommend you work with either a community distribution, such as the ones with pre-built kernels in Angstrom, Debian, Ubuntu, Maemo, Android, ..., or go with a commercial Linux such as from MontaVista, RidgeRun, WindRiver, TimeSys, ...

I believe the kernel module in Angstrom is called kernel-module-dm9601, so you could 'opkg update; opkg install kernel-module-dm9601' to install and enable the driver.

Regardless of this... in the serial terminal, i try pinging as the
drivers should be enabled with this... and nothing! lsusb doesnt even
print anything! and ifconfig only displays lo, no eth or usb.... even
trying to do, ifconfig eth0 inet... (or eth1 etc) errors saying no
such device

With no results from lsusb, I'm curious if you have the right USB cable and a powered hub.

Update:
I tried the source code from bitbake and openembedded. This was more
what i am looking for (even though it took a day to compile etc) and
ive now got a duplicate working kernel+fs of the original angstrom
demo images.
Unfortunately this has not resolved my issue with the ethernet
adapter... i shall explain further:

Can you provide the specific captured output?

lsusb gives this output:
# Bus 002 Device 006: ID 0a46:9601 Davicom Semiconductor, Inc.
so it had found it!
I even did lsmod, and dm9601 is one listed (with size 7680 and used by
0)
modinfo gives some info - none i think will help so i wont type it.
Looks good right? eth0 even appears when i do ifconfig too.
But i cant ping (locally or google).
I set it up as such:
ifconfig eth0 inet 10.1.71.100 netmask 255.255.255.0
route add default gw 10.1.71.1 eth0
and still nothing... (even after making sure resolv.conf had correct
dns details in)
all it does is sends a packet, but gets nothing back from what im
pinging.
Anyone can shed some light on this???

To answer your other questions:

I believe the kernel module in Angstrom is called kernel-module-
dm9601, so you could 'opkg update; opkg install kernel-module-dm9601'
to install and enable the driver.

Ah, this is very helpful. unfortunately, I did so and its already
installed :frowning:
obviously opkg update didnt work as i have no network... but this is
the errror it gives when i try installing:
Package kernel-module-dm9601 (2.6.28-r13.1) installed in root is up to
date.

With no results from lsusb, I'm curious if you have the right USB
cable and a powered hub.

The hub and cables are fine as it all works fine (i.e i have a
keyboard and mouse attached, and when im running a kernel+fs that has
a gui, it all works.

Thanks for the help!

You could check the kernel log with the “dmesg” command to see if anything is printed in there that might be of relevance…

Sorry all,

I have discovered the problem... It was nothing to do with the
adapter, or angstrom etc... but my network switch!
I got a friend to try it and it worked instantly with his... which
made me think it was something to do with my setup, and after testing
everything, it turned out to be the switch!
Very weird though cuz everything else works fine on this switch, some
other USB-to-Ethernet adapters, normal desktop/laptop ethernet ports,
etc... just certain kinda of adapters like this Davicom one wont work
with this 1 particular switch... go figure!

Wasted 3 days on a none-existant problem! lol.

Thanks anyways!

same scenario as u for last coupla days. Had flirting thought about
changing the cable but could see beagle ping on Wireshark. Your post
made me change the cable and net is ON now. maybe your switch is ok.
you may recheck.

thanks.