USB Ethernet Dongle Driver Compiling

Here for general support for B series TVs, request and problem solve area.

frmys
Posts: 25
Joined: Thu Mar 04, 2010 2:11 pm

USB Ethernet Dongle Driver Compiling

Post by frmys »

Hi ,

Can someone help me for compiling the usb ethernet dongle? I have B550 and i want to use this usb ethernet adaptor for wired dlna connection.

Link of the USB Ethernet Dongle Linux kernel 2.6.x driver v1.11 :
http://www.asix.com.tw/FrootAttach/driv ... _v1.11.zip

Thanks.

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: USB Ethernet Dongle Driver Compiling

Post by marcelru »

Hi, I think we already have that one.

The module is called mcs7830.ko, compiled for kernel 2.6.18-SELP_ARM,
Please checkout the download area:
http://sourceforge.net/projects/samygo/files/Others/
Unzip zith gunzip and install.
HTH,

marcelru

frmys
Posts: 25
Joined: Thu Mar 04, 2010 2:11 pm

Re: USB Ethernet Dongle Driver Compiling

Post by frmys »

Thanks for your answer and the link.
Could you please help me for the necessary commands? I tired on my own and made some google search for necessary command. I am not very familiar with Linux , i only try my experiences from DOS and trt to manuplate commands.

I tried many command and i always get errors " No such file" and the usb dongle does not seem to be recognized by tv. I have somehow copied the file " mcs7830.ko" to in "mtd_rwarea/modules/" but i always get errors.

I first copied mcs7830.ko to usb disk
run tv
from hyperterminal i type debug and 1198282 and CTL +C and i get command prompt for tv
i type :
insmod /mtd_rwarea/modules/mcs7830.ko
or i cd to dtv>>>usb>>>sda1 and run command : insmod mcs7830.ko but no success.

Some of the error i get:

# insmod mcs7830.ko
insmod: cannot insert `mcs7830.ko': File exists (-1): File exists

# insmod /dtv/usb/sda1/mcs7830.ko
insmod: cannot insert `/dtv/usb/sda1/mcs7830.ko': File exists (-1): File exists
mkdir: Cannot create directory `2.6.18_SELP-ARM': Read-only file system

# insmod dtv/usb/sda1/mcs7830.ko
insmod: /lib/modules/2.6.18_SELP-ARM: No such file or directory
insmod: mcs7830.ko: no module by that name found

Could you please help for necessary comamands to run on tv step by step.

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: USB Ethernet Dongle Driver Compiling

Post by marcelru »

Hi,

Three questions:

What is the firmware name and version of your TV?
Is networking enabled in the TV menu?
What output do you get when you issue the command

Code: Select all

ifconfig
?
From my TV I get:

Code: Select all

# ifconfig   
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:350 errors:0 dropped:0 overruns:0 frame:0
          TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:18514 (18.0 KiB)  TX bytes:18514 (18.0 KiB)

ra11n0    Link encap:Ethernet  HWaddr AA:BB:CC:DD:EE:FF  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1731 errors:0 dropped:0 overruns:0 frame:0
          TX packets:284 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:459958 (449.1 KiB)  TX bytes:57127 (55.7 KiB)

You should at least have the loopback device (lo)

grtz,

marcelr

frmys
Posts: 25
Joined: Thu Mar 04, 2010 2:11 pm

Re: USB Ethernet Dongle Driver Compiling

Post by frmys »

Thanks again for your answer .

I had 2009 ( restiricted version) and i have succesfully reverted back to 2008 firmware as described in forum by juuso. So now i have 2008 firmware. T-CHL5DEUC 2008 , tv is B550

In the manual of firmware revert operation , it was stated that the tv kernel is now " network enabled". One step changes or modifes the tv and makes it to have "network enabled kernel".

I have tried your command and the result is:
Debug + 1198282
CTRL + C

# ifconfig

No result.

I have enabled network from service menu "NOT SUPPORTED/CABLE/WIRELESS" both Cable and Wireless and the result is same. There is not and answer from tv when i enter "ifconfig" command.
------------------------------------------------
Additional information 1:

I press MENU from Remote control and enter Setup >>> Network>>> Networksetup , but the is not a new menu for netwok configuration (IP adress etc.). I get below result and nothing happens:

##### [CTaskManager::ActivateApplication]
{callthread = 1637700752, from =
3, app = 63 , cApp = 3, bActivateTVViewer = 0, pActiveData = 0x0, pDeactiveData
= 0x0} ####
---------------------------------------------------------
Additional information 2:

I have made below steps too :
Debug ,1198282 , CTRL C

# insmod mcs7830.ko
insmod: /lib/modules/2.6.18_SELP-ARM: No such file or directory

so i have "cd" to mtd_rwarea" but there was not "modules" directory. I have mkdir "modues" and copied mcs7830.ko to modules directory.

# cp /dtv/usb/sda1/mcs7830.ko /mtd_rwarea/modules/mcs7830.ko

# insmod /mtd_rwarea/modules/mcs7830.ko

and entered. No errors or no confirmation of succes..

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: USB Ethernet Dongle Driver Compiling

Post by marcelru »

Hi,

Insmod, when successful, does not report anything.

You can check the presence of your module by issuing the command

lsmod

This gives you a listing of the loaded (and possibly active) modules.
When your module loads successfully, you should be able to get network up and running. That bit is described in the thread network enabled B550, B6000 IIRC. Haven't played with that myself, so my expertise there is limited.

grtz,

marcelr

frmys
Posts: 25
Joined: Thu Mar 04, 2010 2:11 pm

Re: USB Ethernet Dongle Driver Compiling

Post by frmys »

Hi again ,

# lsmod
Module Size Used by Tainted: P
usb_fault 4380 0 - Live 0xbf3fc000
samdrv 3876404 0 - Live 0xbf048000
rfs 70312 2 - Live 0xbf035000
xsr_stl 76888 4 - Live 0xbf021000
xsr 128216 1 xsr_stl, Live 0xbf000000

is the return for lsmod command. I tried to insmod mcs7830.ko again and the result is :

# insmod /mtd_rwarea/modules/mcs7830.ko
# lsmod
Module Size Used by Tainted: P
mcs7830 21479 0 - Live 0xbf3ff000
usb_fault 4380 0 - Live 0xbf3fc000
samdrv 3876404 0 - Live 0xbf048000
rfs 70312 2 - Live 0xbf035000
xsr_stl 76888 4 - Live 0xbf021000
xsr 128216 1 xsr_stl, Live 0xbf000000

now "mcs7830" seems to be loaded. I tried "#ifcongif" but nothing happens

So what should i do next? As i am in console mode i have no chance to operate tv with remote control and check if i can access to Network Setup

--------------------------
Edit : I've read the pages related with enabling internet for B550 and B6000 again . I think i must add a script that runs automatically during tv starts up. In this script i must add necessary codes for running usb ethernet dongle and IP/Network configuration so that the tv will detect usb ethernet dongle find PC in the network. For this i can not do anything. This is more than my experience/knowlegde.

-------------------------

The drivers in samygo is older than the link i have writen in the first post. how must i " #sudo make" and make new drivers compiled? You have any idea?

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: USB Ethernet Dongle Driver Compiling

Post by marcelru »

frmys wrote:
# insmod /mtd_rwarea/modules/mcs7830.ko
# lsmod
Module Size Used by Tainted: P
mcs7830 21479 0 - Live 0xbf3ff000

now "mcs7830" seems to be loaded. I tried "#ifcongif" but nothing happens

So what should i do next? As i am in console mode i have no chance to operate tv with remote control and check if i can access to Network Setup
....
The drivers in samygo is older than the link i have writen in the first post. how must i " #sudo make" and make new drivers compiled? You have any idea?
Good: the driver loads. now please checkout the dmesg command:
This should give you some information about the success/failure of the module loading process, somewhere at the far end of its output.

About compiling a new module: you will need the toolchain for your TV for that. See the B-series wiki, look for the keywords cross-compilation toolchain. I will have a go at this particular module later today, and try and compile it for kernel 2.6.18-SELP_ARM.

The scripts: I do not know what they look like exactly, but will search for them. They should be available for download, or described in the forum pages. (will need them myself, since I recently acquired a UE40B6000, CI+. The + means a new challenge in itself ;-) )

grtz,

marcelr

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: USB Ethernet Dongle Driver Compiling

Post by marcelru »

Hi,

Had a look at the driver code you supplied. It's identical to the code I used to compile the driver you downloaded. Right now my toolchain is screwed up, so i can't test things, but the kernel module should be OK.

grtz,

marcelr

frmys
Posts: 25
Joined: Thu Mar 04, 2010 2:11 pm

Re: USB Ethernet Dongle Driver Compiling

Post by frmys »

I have entered "dmesg" command. I get a long list as ans answer and the last line is :

<6>usbcore: registered new driver MOSCHIP usb-ethernet driver

I think the driver is loaded successfully. This is a good news. :)

The file in mcs7830.ko.gz that i have downloaded from samygo is 15.03.2011 dated , the manufacturer website drivers (mcs7830.c) are dated 24.06.2011. This was the reason why i think that there is a new driver in the manufacturer website.

As i do not have the source drivers that is compiled by samygo , i can not make crc32 or md5 check. If you say that they are the same so i agree and accept. ;)

Code: Select all

File Name      MD5					                 CRC32		Size	  DATE                                                             
mcs7830.c	   422F08D950653A3A531A85A253801C8F	9288AC26	88.965	24.06.2011 17:12:04	
mcs7830.h	   EBB07C04DCFDDFB81B2A4D8C06B1EABB	9CE75A82	11.074	30.04.2011 22:41:14	
mosinst.c	   FC9D8126D1BAB62DA514B6D96737A33E	22A53165	   888	26.09.2006 14:42:02	
mosuninst.c	 F6294114E4D5E6D8D78365FD7CF7815D	4C6597FC	 1.047	26.09.2006 14:42:18	
README	      78D45F28BA0D00C6AFFD6B99A2A1FCDB	67DB0D41	   939	24.06.2011 16:57:24	
ReleaseNotes	F524FDB819A8339AFBA9EB5A56505717	BBED8A4C	 1.981	29.06.2011 17:16:04	
Makefile	    B20008B3A6AD007A7EE547658D68AC1D	3C0484FC	   482	30.04.2011 22:44:52	


Post Reply

Return to “[B] Support”