SamyGo virtual drive MOD

Here is information about customize your D series firmware..:!:This forum is NOT FOR USER questions or problems but DEVELOPER.

rope
Posts: 11
Joined: Sat Feb 11, 2012 2:46 pm

Re: SamyGo virtual drive MOD

Post by rope » Fri Feb 22, 2013 7:12 pm

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!

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Fri Feb 22, 2013 8:13 pm

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.

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Fri Feb 22, 2013 8:22 pm

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.

rope
Posts: 11
Joined: Sat Feb 11, 2012 2:46 pm

Re: SamyGo virtual drive MOD

Post by rope » Fri Feb 22, 2013 8:32 pm

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 :)

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Fri Feb 22, 2013 8:51 pm

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.
Last edited by pohybel on Fri Feb 22, 2013 10:55 pm, edited 1 time in total.

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Fri Feb 22, 2013 9:46 pm

OK rope, last chance. I've build module with new toolchain and it looks promissing. Check module from attachment.
You do not have the required permissions to view the files attached to this post.

User avatar
juusso
SamyGO Moderator
Posts: 10125
Joined: Sun Mar 07, 2010 6:20 pm

Re: SamyGo virtual drive MOD

Post by juusso » Sat Feb 23, 2013 6:22 am

hi, am I to late? :-)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

rope
Posts: 11
Joined: Sat Feb 11, 2012 2:46 pm

Re: SamyGo virtual drive MOD

Post by rope » Sat Feb 23, 2013 8:48 am

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? :)

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Sat Feb 23, 2013 11:02 am

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?

User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: SamyGo virtual drive MOD

Post by pohybel » Sat Feb 23, 2013 11:45 am

rope, could you please attach your oryginal g_file_storage.ko. I want to take a look on it

Post Reply

Return to “[D] Firmware”