maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Block Device (https://talk.maemo.org/showthread.php?t=10215)

faithful 2007-10-04 01:34

Block Device
 
I'm new at this but I did get a power injector built, and was able to mount a flash drive yesterday.

Today, I'm told it can not mount, a block device is required ??

Using a 700, in r&d mode, usb enables, and xtrem

Any Help, or do I re-flash (not much on the 770 yet)

Thanks

mrlanrat 2007-10-04 04:35

Re: Block Device
 
Try disabling usb host mode and then reenabling it.

Quote:

Host mode short and sweet:
Code:
Enable/Disable USB host mode from Xterm

(As root)

command to put it into host mode:

echo host > /sys/devices/platform/tahvo-usb/otg_mode

command to put it into peripheral mode:

echo peripheral > /sys/devices/platform/tahvo-usb/otg_mode

faithful 2007-10-04 11:21

Re: Block Device
 
mrlanrat,

Tried it this morning (by the way thanks for the reply), did not work. Is a bocking device hardware or software?

The only bash I've use before was a 3 lb hammer on an old pc.

Will keep your note on switching modes.

Thanks

mrlanrat 2007-10-09 01:12

Re: Block Device
 
Try reading my thread.
http://www.internettablettalk.com/fo...ad.php?p=80151
your device may be moving around.

Does that help?

faithful 2007-10-09 11:24

Re: Block Device
 
mrlanrat,

Kind of took the weekend off, I read it and get back to you.

Thanks
Faithful

faithful 2007-10-10 02:37

Re: Block Device
 
mrlanrat

read the post and fanoush scrip. Silly question, how do I get the scrip onto the 770 and run it. Do I just copy it into a text file?

Thanks

faithful

TA-t3 2007-10-10 11:04

Re: Block Device
 
You copy it into a text file somewhere on the internal flash storage (e.g. /home/user/). Don't put it on the memory card, as scripts cannot execute as easily from there.
When it's in place (e.g. /home/user/my-script) then make it executable with the following command:
chmod a+x /home/user/my-script (<-- this step doesn't work if the script file is on the memory card, so that's why we avoid the card except for maybe a way of getting the script copied into the IT in the first place)
(or just my-script if you're in your home (default) directory).
Then you can execute it with either of
Code:

/home/user/my-script
or, just
Code:

./my-script
which just means 'find it here in this directory' (the ./)
There are other ways, e.g. the script can be put in a directory included in the $PATH environment variable and then the directory part (the /home/user/ or ./) can be left off.

faithful 2007-10-11 00:40

Re: Block Device
 
Ta-t3,

Thank, I figured I had to find another program (VI, VIM ??) to put the scrip into and make it work. Almost like a DOS Bat file (hope it didn't say a bad word)

I'll try it in the next day or so and post back. Thanks for the help

faithful

mrlanrat 2007-10-11 03:23

Re: Block Device
 
Quote:

Originally Posted by faithful (Post 81239)
Ta-t3,

Thank, I figured I had to find another program (VI, VIM ??) to put the scrip into and make it work. Almost like a DOS Bat file (hope it didn't say a bad word)

I'll try it in the next day or so and post back. Thanks for the help

faithful

Yha your correct. I would recommend nano but those others will work fine.

faithful 2007-10-12 01:56

Re: Block Device
 
Just to keep you up to date. Thanks for the help. I will not get to try most of you recommendations till Sunday, but, read some where else that I should flash my 770 in R&D mode, then out of R&D mode, Then flash again and set the usb to host, then onset it again. Well, it work to the point I can now plug the 770 into my Win box and access the mem card. This should make it easer to transfer the scrips and stuff. (Run the scrips off the internal mem)

I'll post again when I have tried all the other stuff.

Thanks Again

faithful

faithful 2007-10-18 00:22

Re: Block Device
 
I'm back again,

Tried over the weekend the above, without it working. Used flasher to set to R&D mode and turn USB Host on, still no luck. Ran dmesg and got this
4.024444] tahvo: Registering interrupt 1 for device
[ 4.505310] ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (OMAP)
[ 4.527130] ohci ohci: OMAP OHCI
[ 4.549194] ohci ohci: new USB bus registered, assigned bus number 1
[ 4.549377] ohci ohci: irq 38, io mem 0xfffba000
[ 4.644042] usb usb1: configuration #1 chosen from 1 choice
[ 4.666107] hub 1-0:1.0: USB hub found
[ 4.666351] hub 1-0:1.0: 3 ports detected
[ 4.898895] usbcore: registered new driver usbhid
[ 4.899047] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
[ 5.090972] usbcore: registered new driver usbserial
[ 5.091125] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 5.312103] SCSI subsystem initialized
[ 5.504394] Initializing USB Mass Storage driver...
[ 5.526336] usbcore: registered new driver usb-storage
[ 5.526489] USB Mass Storage support registered.
[ 5.618835] drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 5.640686] usbcore: registered new driver pl2303
[ 5.640838] drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
[ 5.721740] usbcore: registered new driver net1080
[ 5.794342] usbcore: registered new driver cdc_ether
[ 5.896179] usbcore: registered new driver asix
[ 6.394866] Selected HOST mode: host controller present.
[ 6.395202] ohci ohci: wakeup
[ 6.395324] USB cable disconnected
[ 6.852081] usb 1-1: new low speed USB device using ohci and address 2
[ 7.458343] usb 1-1: device descriptor read/64, error -110
[ 7.762664] usb 1-1: device descriptor read/64, error -110
[ 7.853576] umac: module license 'Proprietary' taints kernel.
[ 8.067443] usb 1-1: new low speed USB device using ohci and address 3
[ 8.074920] CX3110x chip variant: STLC4370
[ 8.196380] CX3110x: firmware version: 2.13.0.0.a.13.14
[ 8.196594] Loaded CX3110x driver, version 0.8
[ 8.262725] usb 1-1: device descriptor read/64, error -110
[ 8.567260] usb 1-1: device descriptor read/64, error -110
[ 8.875061] usb 1-1: new low speed USB device using ohci and address 4
[ 9.293914] usb 1-1: device not accepting address 4, error -110
[ 9.489227] usb 1-1: new low speed USB device using ohci and address 5
[ 9.918945] usb 1-1: device not accepting address 5, error -110
[ 24.036315] omapdsp: mapping in ARM MMU, v=0xe0fff000, p=0x13c00000, sz=0x1000

I'm searching for what is an "error -100" but have not found it yet.

Does re-flashing the 700 replace everything? or are there some info retained by the 770?

Thanks Again
Faithful

mrlanrat 2007-10-19 01:15

Re: Block Device
 
Seems like the USB device isent supported. What is it?

mrlanrat 2007-10-19 01:17

Re: Block Device
 
Quote:

Originally Posted by faithful (Post 83468)
Does re-flashing the 700 replace everything? or are there some info retained by the 770?

Yep, all is gone. (except for whatever is on the memory card.)

faithful 2007-10-20 01:28

Re: Block Device
 
mrlanrat

I re flashed my unit, but it still remembered what date it was. Is there a factory reset on this unit?

faithful

Mara 2007-10-20 01:35

Re: Block Device
 
Quote:

Originally Posted by faithful (Post 84604)
mrlanrat

I re flashed my unit, but it still remembered what date it was. Is there a factory reset on this unit?

faithful

It may be similar to a PC clock in BIOS: It keeps the time even if you disconnect it from the wall... I don't think there is user accessible CMOS reset button/jumper in any of the Tablets.

faithful 2007-10-20 01:50

Re: Block Device
 
Dear Mara,

Thanks.
I still trying to get the usb port working (error 100), any Hints?

Faithful

mrlanrat 2007-10-20 04:15

Re: Block Device
 
I dident re-flash mine when I did it. I just made the script and ran it, that was all.

If you have a usb keyboard try using that. it dosent require any drivers and should work automatically, and it will let us know if the usb is even working at all. maby your usb power inverted is bad?

faithful 2007-10-23 10:36

Re: Block Device
 
mrlant,
Tried the usb keyboard, I can type, but hitting the enter key brings up the on screen keyboard. I saw something about that before, I'll have to find it again.

Flash drive is now listed as a scsi device, but I have not been able to figure out how or where to mount. Will try again latter

[ 3432.894927] usb 1-1: new full speed USB device using ohci and address 40
[ 3433.134796] usb 1-1: device v13fe p1d00 is not supported
[ 3433.136779] usb 1-1: configuration #1 chosen from 1 choice
[ 3433.166534] scsi0 : SCSI emulation for USB Mass Storage devices
[ 3433.183410] usb-storage: device found at 40
[ 3433.183471] usb-storage: waiting for device to settle before scanning
[ 3438.186950] Vendor: Kingston Model: DataTraveler 2.0 Rev: PMAP
[ 3438.187164] Type: Direct-Access ANSI SCSI revision: 00
[ 3439.115081] SCSI device sda: 4030464 512-byte hdwr sectors (2064 MB)
[ 3439.120788] sda: Write Protect is off
[ 3439.120849] sda: Mode Sense: 23 00 00 00
[ 3439.120910] sda: assuming drive cache: write through
[ 3439.144866] SCSI device sda: 4030464 512-byte hdwr sectors (2064 MB)
[ 3439.150787] sda: Write Protect is off
[ 3439.150848] sda: Mode Sense: 23 00 00 00
[ 3439.150878] sda: assuming drive cache: write through
[ 3439.150970] sda: sda1

Thanks for your help

faithful
:) :) :)
Gave it another shot this morning, and it is working!?
Only thing is I not sure what fixed it. But what I did
a: set to r&D mode
b: with flasher, set to host mode.
c: checked batteries in power inverter
d: checked all connections.

This did not work yesterday, but plugged it in this morning and it worked. I'm a happy camper.
faithful


All times are GMT. The time now is 15:19.

vBulletin® Version 3.8.8