Page 5 of 6

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 7:12 pm
by rope
hi pohybel!

i've tried with the new g_file_storage.ko on my UE40D8000 without success :(

the output:
@ init.d $ ./02_04_vusb.init start
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
insmod: can't insert '/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/dummy_hcd.ko': File exists
insmod: can't insert '/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko': invalid module format
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
mkdir: cannot create directory '/dtv/usb/samygovirt': File exists


if i try just insmod the module from cli:
$ insmod /mtd_rwcommon/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko file="/dtv/vusb1,/dtv/vusb2,/dtv/vusb3" model="Movies,Laptop"
insmod: can't insert '/mtd_rwcommon/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko': invalid module format

i think the parameters are right, i copy/paste from the first post :)
have u any idea, how can solve this problem?
thnx!

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 8:13 pm
by pohybel
I was afraid of it. Are you sure that your TV has ARM processor? Or maybe MSTAR?
insmod: can't insert '/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko': invalid module format
Obviously it means that file is not compiled for your TV. The reason could be processor at all (MSTAR instead of ARM) or different toolchain which I should use to build this module for your tv. Unfortunatelly I can't find such toolchain on Samsung site.

juuso, are you there? We need your help.

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 8:22 pm
by pohybel
Ok, try to execute this command on ORYGINAL samygo g_file_storage.ko and post your results:

Code: Select all

file ./g_file_storage.ko
It should show architecture of your processor.

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 8:32 pm
by rope
rope@nc6320:~/samy$ file ./g_file_storage.ko
./g_file_storage.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), BuildID[sha1]=0x833de0d48be7171abb67fb8d69cbff17ffb66d2a, not stripped

and
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 798.72
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc08
CPU revision : 2

Hardware : Samsung SDP1002 Evaluation board
Revision : 0000
Serial : 0000000000000000



thnx for your support :)

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 8:51 pm
by pohybel
Looks good. However mine is a little bit different. I mean CPU revision:

Code: Select all

Processor	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 1196.03
Features	: swp half thumb fastmult vfp edsp neon vfpv3 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc09
CPU revision	: 1

Hardware	: Samsung SDP1001 Evaluation board
Revision	: 0000
Serial		: 0000000000000000
I've just found another toolchain for ARM on Samsung site and currently I'm downloading it. I will try to recompile it today.

Re: SamyGo virtual drive MOD

Posted: Fri Feb 22, 2013 9:46 pm
by pohybel
OK rope, last chance. I've build module with new toolchain and it looks promissing. Check module from attachment.

Re: SamyGo virtual drive MOD

Posted: Sat Feb 23, 2013 6:22 am
by juusso
hi, am I to late? :-)

Re: SamyGo virtual drive MOD

Posted: Sat Feb 23, 2013 8:48 am
by rope
it's not working :(

@ init.d $ ./02_04_vusb.init start
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat 2.11 (12 Mar 2005)
insmod: can't insert '/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/dummy_hcd.ko': File exists
insmod: can't insert '/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko': invalid module format
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
real storage device at: /sys/block/sda/device/model
mkdir: cannot create directory '/dtv/usb/samygovirt': File exists


and manual insmod:
init.d $ insmod /mtd_rwcommon/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko file="/dtv/vusb1,/dtv/vusb2,/dtv/vusb3" model="Movies,Laptop"
insmod: can't insert '/mtd_rwcommon/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/g_file_storage.ko': invalid module format

juuso: too late? for what? :)

Re: SamyGo virtual drive MOD

Posted: Sat Feb 23, 2013 11:02 am
by pohybel
juuso, what could be the problem? I have used two different toolchains for ARM and it still not working. I have used:
- VDLinux-armv7a8-toolchain-lite_20100630
- VDLinux-ARMv7-4.4-202-toolchain-v2r2-20110630
- and 11_UNxxD7xx0.zip sources which is for UE40D8000 according to http://opensource.samsung.com/reception ... cation1=tv

Is there another toolchain? Should I add some magic option while executing "make" to build module for this TV?

Re: SamyGo virtual drive MOD

Posted: Sat Feb 23, 2013 11:45 am
by pohybel
rope, could you please attach your oryginal g_file_storage.ko. I want to take a look on it