Unsolved problems

From Openlgtv
Revision as of 15:57, 16 November 2011 by Hawkeye (Talk | contribs)

Jump to: navigation, search

Emulation usb drive

Vuk, author of the first version lgmod wrote the following: Tried to use virtual dummy_hcd & g_file_storage to emulate virtual USB Host bus & Storage device as SamyGO guys do but seems it does not work in our case. If I load these modules before RELEASE TV set can't see hardware USB buses at all. I think it's hardcoded in RELEASE to init and use only USB host bus #1 & #2. If I load modules after RELEASE it settles as host bus #3 but any attempts to use virtual storage thru g_file_storage failed with device enumeration error... So real hardware stick still must for us..

[ 181.857000] dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005
[ 181.857000] dummy_hcd dummy_hcd: Dummy host controller
[ 181.859000] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 3
[ 181.866000] usb usb3: configuration #1 chosen from 1 choice
[ 181.871000] hub 3-0:1.0: USB hub found
[ 181.871000] hub 3-0:1.0: 1 port detected
[ 181.978000] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 181.979000] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 181.979000] usb usb3: Product: Dummy host controller
[ 181.979000] usb usb3: Manufacturer: Linux 2.6.26 dummy_hcd
[ 181.979000] usb usb3: SerialNumber: dummy_hcd
[ 482.134000] g_file_storage gadget: File-backed Storage Gadget, version: 7 August 2007
[ 482.134000] g_file_storage gadget: Number of LUNs=1
[ 482.134000] g_file_storage gadget-lun0: ro=0, file: /mnt/lg/user/lgmod/vfat.img
[ 482.754000] hub 3-0:1.0: unable to enumerate USB device on port 1

To compile dummy_hcd.ko & g_file_storage.ko on Saturn 6 kernel, you need:

make menuconfig

go to: Device Drivers->USB support->USB Gadget Support(M)->USB Peripheral Controller->DummyHCD(X) and: Device Drivers->USB support->USB Gadget Support(M)->File-backed Storage Gadget(M)

make modules

You can find compiled *.ko modules in Drivers/USB/Gadget

RELEASE mounts connected flash drive at startup, even if it is already mounted

It always does it and it is impossible to disable it by now... 2011-11-16 udpate: This can be corrected with openrelease (Included in the LGMODS7 (for S7 and S6 plaform).