|
|
2007-04-16
, 17:09
|
|
Posts: 437 |
Thanked: 90 times |
Joined on Nov 2006
|
#12
|

|
|
2007-04-16
, 17:56
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#13
|
Sorry, I dont mean to ignore your suggestion. I am pretty new to Linux system and I dont have any idea how to check those things and set them up in 770 without detail instruction(yes I know I should learn more linux skill)
FS_MODULES="ext2 jbd mbcache ext3"
USB_HOST_MODULES="ohci-hcd usbhid usbnet usbserial scsi_mod sd_mod \
usb-storage pl2303 net1080 cdc_ether asix"
MODULE_PATH=/lib/modules/current
load_usb_host_modules()
{
for mod in $USB_HOST_MODULES $FS_MODULES ; do
if [ -f $MODULE_PATH/$mod.ko ]; then
insmod $MODULE_PATH/$mod.ko
fi
done
}
usb_host_mode=$(cal-tool --get-usb-host-mode 2> /dev/null)
if [ "$usb_host_mode" = "enabled" ]; then
echo "USB host mode enabled"
load_usb_host_modules
echo host > /sys/devices/platform/tahvo-usb/otg_mode
else
echo peripheral > /sys/devices/platform/tahvo-usb/otg_mode
fi
insmod /mnt/initfs/lib/modules/current/ohci-hcd.ko insmod /mnt/initfs/lib/modules/current/scsi_mod.ko insmod /mnt/initfs/lib/modules/current/sd_mod.ko insmod /mnt/initfs/lib/modules/current/usb-storage.ko
| The Following User Says Thank You to fanoush For This Useful Post: | ||
|
|
2007-04-16
, 18:25
|
|
Posts: 125 |
Thanked: 1 time |
Joined on Aug 2006
|
#14
|
|
|
2007-04-16
, 18:52
|
|
Posts: 18 |
Thanked: 1 time |
Joined on Feb 2007
|
#15
|
From your first post it looked like you can run dmesg command and gain root so I guessed you are up to this task. Well as I said I haven't this tested I only know what system does on boot. linuxrc file contains this
Code:FS_MODULES="ext2 jbd mbcache ext3" USB_HOST_MODULES="ohci-hcd usbhid usbnet usbserial scsi_mod sd_mod \ usb-storage pl2303 net1080 cdc_ether asix" MODULE_PATH=/lib/modules/currentCode:load_usb_host_modules() { for mod in $USB_HOST_MODULES $FS_MODULES ; do if [ -f $MODULE_PATH/$mod.ko ]; then insmod $MODULE_PATH/$mod.ko fi done }this means you need to do the same thing as this script which may mean inserting those modules in shell by hand by running something like this as root (should be enough for usb disk)Code:usb_host_mode=$(cal-tool --get-usb-host-mode 2> /dev/null) if [ "$usb_host_mode" = "enabled" ]; then echo "USB host mode enabled" load_usb_host_modules echo host > /sys/devices/platform/tahvo-usb/otg_mode else echo peripheral > /sys/devices/platform/tahvo-usb/otg_mode fi
or writing similar script and running it.Code:insmod /mnt/initfs/lib/modules/current/ohci-hcd.ko insmod /mnt/initfs/lib/modules/current/scsi_mod.ko insmod /mnt/initfs/lib/modules/current/sd_mod.ko insmod /mnt/initfs/lib/modules/current/usb-storage.ko
And then enabling the host mode via echo command.
But as you said you want to attach camera and don't have driver, it may be a bit pointless anyway :-)
|
|
2007-04-16
, 19:08
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#16
|
Currently I really dont have the camera driver yet but I will have one soon. At the moment I only want the n770 detect the usb hub first.
[426.703460] Selected HOST mode: no host controller, powering off.
|
|
2007-04-16
, 20:50
|
|
Posts: 437 |
Thanked: 90 times |
Joined on Nov 2006
|
#17
|
|
|
2007-04-16
, 21:09
|
|
Posts: 18 |
Thanked: 1 time |
Joined on Feb 2007
|
#18
|
One other thing. I am not an expert in any IT or electronics related field, but from my own post-mortem of the WSOD I suffered I have come to the following conclusion: Windows XP + vmWare workstation 5 + Ubuntu + Flasher = bad idea. For some reason vmWare throws a blue screen of death (heh) on XP whenever Flasher is used. This may cause the Windows PC to send some sort of signal on the USB lines, interrupting the rebooting of the 770 and causing a WSOD. This info does not really belong here I guess, but I just wanted to warn others so that they may not go through the same experience...
|
|
2007-04-16
, 21:47
|
|
Posts: 437 |
Thanked: 90 times |
Joined on Nov 2006
|
#19
|
|
|
2007-04-17
, 03:55
|
|
Posts: 18 |
Thanked: 1 time |
Joined on Feb 2007
|
#20
|
There's lots of pros and cons for each way, but about the only method I could really help you with is with building your own USB power injector.
Also, once you finally *do* get hostmode working, mounting external storage, memory cards, etc is a bit too much of a pain to do it all the time. My injector's been sitting unused for a while now.