Page 1 of 3
netio and g_files_storage.ko for ES 6300
Posted: Tue Jan 27, 2015 4:24 pm
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
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 9:34 am
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?
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 10:00 am
by juusso
Yes, you can use mass storage, if it works then what is the problem?
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 3:37 pm
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 ....
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 4:51 pm
by juusso
Try attached here. If fail, give the output to dmesg|tail right after each module insmod
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 5:10 pm
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
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 6:04 pm
by zoelechat
When sorting this new file I just found that I already had a supposedly suitable compiled version for more than 1 year.
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
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 6:10 pm
by juusso
dmesg | tail
and try g_mass_storage.ko
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 6:11 pm
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
Re: netio and g_files_storage.ko for ES 6300
Posted: Sun Feb 01, 2015 6:13 pm
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