netio and g_files_storage.ko for ES 6300

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

cmuc05
SamyGO Project Donor
Posts: 84
Joined: Tue Jan 13, 2015 1:39 pm

netio and g_files_storage.ko for ES 6300

Post by cmuc05 »

Hi,
I have two questions about TV ES 6300 with FW T-MST10PDEUC_2004.1:

1, Does anyone has a netio binary for it?
2, Does anyone has a working g_files_storage.ko, that creates a virtual usb, when called? I have a running g_files_storage.ko, but it does not create a vusb....

bye
UE50ES6300, UE32D5700
cmuc05
SamyGO Project Donor
Posts: 84
Joined: Tue Jan 13, 2015 1:39 pm

Re: netio and g_files_storage.ko for ES 6300

Post by cmuc05 »

Ok, i set up a toolchain and compiled netio for ES6300.

What is the difference between f_mass_storage and g_file_storage? When i compile f_mass_storage can this be used for the virtual usb in ES6300, because g_file_storage is not making a virtual usb on my ES 6300?
You do not have the required permissions to view the files attached to this post.
UE50ES6300, UE32D5700
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: netio and g_files_storage.ko for ES 6300

Post by juusso »

Yes, you can use mass storage, if it works then what is the problem?
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
cmuc05
SamyGO Project Donor
Posts: 84
Joined: Tue Jan 13, 2015 1:39 pm

Re: netio and g_files_storage.ko for ES 6300

Post by cmuc05 »

No, you misunderstood.
g_file_storage is not working on my es6300.
I haven't compiled f_mass_storage right now. I want to to it and therefore I asked, if it worth to do it.

do you know the make command for building that module?

I can type "make SUBDIRS=fs/rfs modules" and the rfs module is bulding
But what do I have to type in for the usb_gadget stuff?

I am not firm in the use of makefiles. I have to read and learn ....
UE50ES6300, UE32D5700
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: netio and g_files_storage.ko for ES 6300

Post by juusso »

Try attached here. If fail, give the output to dmesg|tail right after each module insmod
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
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: netio and g_files_storage.ko for ES 6300

Post by juusso »

cmuc05 wrote: I can type "make SUBDIRS=fs/rfs modules" and the rfs module is bulding
But what do I have to type in for the usb_gadget stuff?
1. setup toolchain (download, extract from archive, add path to $PATH). Let`s say you`ve done.
2. download and extract correct sources for your TV. cd to root directory of your kernel tree
3. make oldconfig

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- oldconfig
4. prepare scripts

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- prepare scripts
i perform the prepare, no idea if it needed, but just in case :)

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- prepare
5. start menuconfig

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- menuconfig
6. Navigate to Device Drivers->MST Platform Configuration->USB Support-
  • set to <M> on USB Gadget Support and enter
  • press enter on USB Peripheral Controller (Dummy HCD (DEVELOPEMENT))
  • set <M> Dummy HCD (DEVELOPEMENT)
  • navigate down and set to <M> your required drivers
Selection is performed by pressing whitespace keyboard key.
now press on exit until you get question to save your config. Press on yes.
7. start compiling kernel

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- uImage
8. If kernel finished without errors, then compile modules:

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- modules
9. Strip your module (remove debug strings = less size, sometimes this prevents from "unknown symbol" error while insmoding:

Code: Select all

arm-v7a8v2r2-linux-gnueabi-strip -g path_to_module/module.ko
for example, tun.ko:

Code: Select all

arm-v7a8v2r2-linux-gnueabi-strip -g drivers/net/tun.ko
10. If you need some particular module, you can repeat menuconfig, set that module to <M> and execute:

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- M=path_to_module/module.ko
for example with tun.ko:

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-v7a8v2r2-linux-gnueabi- M=drivers/net/tun.ko
EOF
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
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: netio and g_files_storage.ko for ES 6300

Post by zoelechat »

When sorting this new file I just found that I already had a supposedly suitable compiled version for more than 1 year. :D
As report, the result seems to be the same, dummy_hcd is inserted with no problem, but not g_file_storage:

Code: Select all

/mnt # insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko
insmod: can't insert '/mnt/lib/modules/2.6.35.13/kernel/drivers/usb/gadget/g_file_storage.ko': invalid parameter
I do NOT receive any PM. Please use forum.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: netio and g_files_storage.ko for ES 6300

Post by juusso »

dmesg | tail
and try g_mass_storage.ko
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
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: netio and g_files_storage.ko for ES 6300

Post by zoelechat »

Code: Select all

drivers/mstar/usb/core/inode.c: creating file '001'
dummy_hcd mod ld
hub 4-0:1.0: state 7 ports 1 chg 0000 evt 0000
g_file_storage gadget: no file given for LUN0
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: netio and g_files_storage.ko for ES 6300

Post by zoelechat »

juuso wrote:and try g_mass_storage.ko
It's well inserted but obviously fails (?) too:

Code: Select all

g_mass_storage gadget: g_mass_storage ready
g_mass_storage mod ld
hub 4-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 4-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 4-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
==9==> hub_port_init 1
hub 4-0:1.0: unable to enumerate USB device on port 1
hub 4-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 4-0:1.0: reset change on port 1
hub 4-0:1.0: state 7 ports 1 chg 0000 evt 0002
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[E] Support”