SamyGo virtual drive MOD

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

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

Re: SamyGo virtual drive MOD

Post by juusso » Wed Nov 21, 2012 8:08 am

pohybel wrote:I've noticed that oryginal g_file_storage.ko has ~35Kb and the one compiled by me ~200Kb. Could you please write how can I make this file smaller?
Compiled from your source and attaching stripped version of module for D series.
somewhy still get some errors with c series compiler...
You do not have the required permissions to view the files attached to this post.
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

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

Re: SamyGo virtual drive MOD

Post by pohybel » Wed Nov 21, 2012 9:59 pm

juuso wrote:somewhy still get some errors with c series compiler...
I also have had errors during "make" whole image so I have compiled module this way
  1. Code: Select all

    make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le-
    compiler will generate "*.o" files and after some time throws error "arm_v7_vfp_le-ld:--defsym zreladdr=: syntax error". At this point modules haven't been compiled yet.
  2. Next step is to compile just needed module:

    Code: Select all

    make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- M=drivers/usb/gadget
    g_file_storage is ready :)

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: SamyGo virtual drive MOD

Post by arris69 » Wed Nov 21, 2012 11:00 pm

Code: Select all

--- a/arch/arm/mach-sdp/Makefile.boot   2010-11-04 19:41:05.000000000 +0100
+++ b/arch/arm/mach-sdp/Makefile.boot   2010-11-04 19:41:54.000000000 +0100
@@ -15,3 +15,9 @@
 params_phys-y   := 0x80000100
 initrd_phys-y   := 0x80800000
 endif
+
+# ifeq ($(CONFIG_DISCONTIG_MEM),y) FIXME
+zreladdr-y      := 0x60008000
+params_phys-y   := 0x60000100
+initrd_phys-y   := 0x60800000
+# endif

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

Re: SamyGo virtual drive MOD

Post by pohybel » Thu Nov 22, 2012 12:05 am

arris69 wrote:

Code: Select all

--- a/arch/arm/mach-sdp/Makefile.boot   2010-11-04 19:41:05.000000000 +0100
+++ b/arch/arm/mach-sdp/Makefile.boot   2010-11-04 19:41:54.000000000 +0100
@@ -15,3 +15,9 @@
 params_phys-y   := 0x80000100
 initrd_phys-y   := 0x80800000
 endif
+
+# ifeq ($(CONFIG_DISCONTIG_MEM),y) FIXME
+zreladdr-y      := 0x60008000
+params_phys-y   := 0x60000100
+initrd_phys-y   := 0x60800000
+# endif
Works like a charm :). Compilation successfull

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

Re: SamyGo virtual drive MOD

Post by juusso » Thu Nov 22, 2012 9:53 am

Noticed you`ve attached not stripped version of module. Here is stripped one. Anyone could check if it works?
You do not have the required permissions to view the files attached to this post.
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

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

Re: SamyGo virtual drive MOD

Post by pohybel » Thu Nov 22, 2012 7:48 pm

Yes, I did it on purpose. I don't know if stripped version is working for C-series - last time hasn't worked. I know that unstripped version is working for sure as tempinbox confirmed that. If someone confirm that your stripped version is working on C-series I will add it to package.

tempinbox
Posts: 317
Joined: Wed May 11, 2011 7:00 pm

Re: SamyGo virtual drive MOD

Post by tempinbox » Fri Nov 23, 2012 5:43 pm

juuso wrote:Noticed you`ve attached not stripped version of module. Here is stripped one. Anyone could check if it works?
It WORKS!!!!
Thanks thank thanks thanks Pohybel,juuso;arris69

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

Re: SamyGo virtual drive MOD

Post by pohybel » Mon Nov 26, 2012 12:40 am

tempinbox wrote: It WORKS!!!!
Thanks for confirmation. Package has been updated.

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

Re: SamyGo virtual drive MOD

Post by rope » Sun Feb 03, 2013 10:27 pm

hmm, on my UE40D8000 if i copy the g_file_storage.ko from the D-series directory to /mtd_rwcommon/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9/kernel/drivers/usb/gadget/ dir on the TV, and i run the 02_04_vusb.init script (from scripts dir) on the TV, it creates the vusb[1234] files /dtv, but the insmod command give the "unknown symbol in module, or unknown parameter".
is it compatible with the d8000 series too? kernel version is 2.6.30.9
thnx

EyesKiller
Posts: 6
Joined: Sun Feb 17, 2013 5:08 pm

Re: SamyGo virtual drive MOD

Post by EyesKiller » Sun Feb 17, 2013 5:15 pm

Hi, I was trying your Mod because I want connect my tv with qnap by using nfs. So I can record directly to qnap.

Unfortunatelly I believe I'm out of luck because of incompatibility. But still asking you if I'm wrong.

I have EU55D7090 with T-GAPDEUC-1015.0.

I got such error:

Code: Select all

@ 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': unknown symbol in module, or unknown parameter
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
real storage device at: /sys/block/sd?/device/model
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
real storage device at: /sys/block/sd?/device/model
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
real storage device at: /sys/block/sd?/device/model
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
cat: can't open '/sys/block/sd?/device/model': No such file or directory
real storage device at: /sys/block/sd?/device/model
mkdir: cannot create directory '/dtv/usb/samygovirt': File exists
As I see in wiki:
T-GAP* -> binaries may works from precompiled T-VAL* packages, kernel modules not (wait for samsung release of kernel sources) (custom build not planed for svn branch)
So... out of luck, am I right?

I only want to connect my tv to QNAP (no other drives needed) for timeshift/recording.

cu Floh

Post Reply

Return to “[D] Firmware”