Haret never stops loading - Touch Pro2, Tilt 2 Android Development

Anyone fancy explaining to me in simple terms how to set up a ssh client with my Rhodium so that i can analysis my haret script to see what error it throws when i load up a .ko module in it, as i cant use dmesg file as haret never stops loading and keeps going. Or another way of doing it that would allow me to see the script onj my pc so i can see the error it gives. Many thanks

Related

How to handle file transfer to SD/MMC during power on/off?

hi, all,
I am new here. I came across this problem when I am developing driver for SD/MMC memory card. While a file is written to the card I power off the device, what should I do to make this file transfer continuous after I power it on again? do I need to notify the file system in some way after power up? or I need to maintain certain file system status before the device is made to sleep?
Thanks and regards!
Cat
not sure, but I think you do get notified when the device is put in suspend mode.
I also noticed, while playing with trapping lowlevel keyboard events, that
you can disable power off entirely, by not passing on the key-press event.
I guess the SD/MMC driver should notify the file system upon suspend, however, I am not sure what notification I should send. What I implement is to unload and load the driver when power is turned back and card is still inserted. This implementation causes the behavior after resume unpredictable, sometimes, the file can continue to transfer, sometimes it would stop transfer and show an error message, and worst case is it hangs the device, and I need a warm reset.
Guys, any ideas on how to handle this?
Cat
Are you developing for PPC 2000, 2002 and WM2003?
Each handles SD card activate/suspend control commands differently.
I will send you what I have on them as I spent a great deal of time doing R&D on the SD Card erasure thing in WM2003 PE.
Thank you so much, Ronin! I am doing it for PPC2003.
There are two main challenges when developing apps for devices under WM2003 PE.
The first is that WM2003 SDK works best with Microsoft Windows CE .NET 4.2 ( which means you will need .NET developer tools and that WM2003 and WM2003 PE are " different" in how they handle device interrupts.
The second, is the unusual way WM 2003 uses Stream Interface Drivers instead of the API approach( which was programatically MS solution to everyting). These SIDs control the devices I/O functions and power functionality and will cause havoc if not coded properly.
Here is a link that will help you understand these( from the horse's mouth)
http://msdn.microsoft.com/library/d...wceddk40/html/cxconstreaminterfacedrivers.asp
Check also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcedsn40/html/cmrefgiisr_info.asp
I hope this helps. Let me know how you progress!
hi, Ronin,
Thank you for sharing. I've read through the MSDN files you mentioned, I indeed implemented my driver in the SID way, but guess I didn't handle the loading sequence properly or something, thus causes the unpredictable behavior upon power on/off. I will keep up with my exploration and update you if I have any progress.
BTW, do you have any idea abt the file system used by PPC? I like to know how the file system write to a storage media, because I noticed some well-written drivers could retain the paritically written file even if the media is taken out half-way through a file writing.

Wiki pages - Linux - Universal_Installing_Linux

Ok, Mr Thicky here again.
Having cracked the loading of various ROMs I thought Id give the Linux ROM setup from
http://wiki.xda-developers.com/index.php?pagename=Universal_Installing_Linux
a go.
Well, copied all the files, checked file names and ran the gnuheret installer, and instead of getting loads of pretty patterns on the screen, I get
"HaRET Version gnu-200607101702
Launch a script file. Default Path..... (set to default.txt - with a RUN button next to it)
Then I get a "Start waiting for connection on port 9999
further down I have
"Detected CPU Family: PXA2xx
Boot MTYPE=855"
If I hit run, it just comes back with Boot MTYPE=855
I've tried running off mains, off USB connection with both USB enabled and disabled.
What am I doing wrong please? Im waiting for the login screen and its not forthcoming
Ta in advance
Take it no one else has tried this or had problems?

Help with Mobile Firefox/Fennec install

So I had been doing some searching and can't seem to find my answer, so here is my question. I have downloaded both mobilefox 2.0.0.7 and Fennec. I can unzip the programs but when I try to load them on either of my phones, Vogue and Raphael, I get the same error message " 'startmobilefirefox' is not a valid Pocket PC application." I have unzipped it on the phones and on my computer (then transferred it over) and I still get the same message. Am I doing something wrong?
Sounds like you might have the wrong files. The WinMo files should be packaged as a cab file and once transferred to the phone will trigger the installer on the phone.
When I checked the Mozilla ftp site, they had builds for a number of different platforms. Look for the .cab ones.
I was able to find a Fennec Cab file when searching on google. Fennec is only good for the HTC phones that have a Keypad. It doesnt work on my Vogue but it does work on my Raphael. Only issue is that now that my wife and I have tried it out, its not working properly. It takes about 1 min for it to pull up and run but, when I try to load a website it doesnt load any pages. All of this is only due to myspace wont load on any other browser on her phone. Time to see if I can find another browser that will allow her to get on myspace.
Tsvallette said:
I was able to find a Fennec Cab file when searching on google. Fennec is only good for the HTC phones that have a Keypad. It doesnt work on my Vogue but it does work on my Raphael. Only issue is that now that my wife and I have tried it out, its not working properly. It takes about 1 min for it to pull up and run but, when I try to load a website it doesnt load any pages. All of this is only due to myspace wont load on any other browser on her phone. Time to see if I can find another browser that will allow her to get on myspace.
Click to expand...
Click to collapse
skyfire should load it.

[Q] USB Internet passthrough from Linux

Hi, I've googled and searched the forum for this and can't find anything that works for the Desire HD.
The phone comes with an option to use the PC's internet connection through the usb interface. When I enable this on the phone the usb0 interface pops up on the computer. I've tried various bridging and natting alternatives, but everything ends up with the phone complaining that htc sync isn't set up right. I've tried askimng HTC what the phone expects but they just say that they don't support Linux. Grrr!
Anybody succeeded in getting this working or can say exactly what the phone expects to see on the pc side?
I thought it was the other way around (PC using the phone's connection) ?
Edit: Link.
Both are possible. PC using phone's connection is called "Tethering" and Phone using PC's connection is called "Internet passthrough".
There are recipes for foolong a "Nexus One" into reversing the tethering solution so that it connects to the internet through the PC, but the HD seems to have blocked this.
We have a Wifi-Free home, so this really is the only way of connecting the phone to the internet without using valuable 3G data traffic.
Apologies, I didn't know.
I took a look around, maybe you've tried this already but here it is (scroll down to post #53). Good luck!
Thanks. Looks promising. From Post #53 it looks as if I should be able to do this from adb, although earlier posts in the thread mention busybox and root, neither of which I have on the phone. Have in any case not used adb to connect before so may ask for help here if I can't find out how to do it.
Thanks very much for the suggestion.
For root you can search for the app "Visionary" in the market, I'm not sure if it installs busybox too though (but you can find that in the market as well).
Also make sure you have USB Debugging enabled in the settings.
You're most probably going to need the ADB drivers as well, but i think they're shipped with HTC Sync. Anyone correct me if I'm wrong.
Thanks, now have adb access (with root . Next problem is that my linux box always assigns an APIPA (zeroconf) address to the usb interface. Can't remove it or specify a static IP for the next connection.
Unfortunately I can't help you or suggest anything else for the time being. I'll be switching to Archlinux tonight (for the 150th time) and will hopefully have my device within this week. So if you don't figure it out by then, I'll give it a shot.
I think it can be done quite easily using the Firestarter application. Too busy playing Black Ops to confirm that the method I have in mind works but I will try it out later and if I'm right I will post a how to.
I'd be very interested to hear how you get on phunkycow. The APIPA problem seems to be debian sid related. On my wife's Ubuntu laptop I can configure both interfaces and ping between the phone and the pc. Didn't have time to figure out routing and dns.
I now have this working on Ubuntu. Debian still gives me a zeroconf address on the pc's usb interface.
Next problem is that to script this as suggested in post #53 I think I need a different su or sudo on the phone as sudo and su -c both give me permission denied.
Any other ways of running remote commands as root using adb?
Working perfectly on Ubuntu when I run through the commands interactively. Next job is to script it. The only possible caveat is that I seem to have to run the adb commands as root, however a quick test indicates that this is probably doable just by piping each adb shell command to su.
Will post back with the findings and the script (when I'm happy with it).
Piping to su doesn't work unfortunately, so I need to think again.
Any tips on scripting adb shell commands to run as root?
Another problem (after setting this up interactively) is that only some apps even attempt to connect to the internet this way.
Web browser shows error about not being able to connect first time, but then connects anyway. Ditto Google earth.
Phone update refuses to connect and asks for wifi or mobile network to be turned on.
Skype can't sign in.
I'm wondering whether some apps look for a particular property to be set and refuse to connect if it's not there??
A hot candidate might be [init.svc.netsharing_pass]???
Any comments?
Hi,
I installed bash and su from su-2.3.2.1-ef-signed.zip, which I moved to /system/bin
which su shows that that's what's being used.
I was hoping that this would give me the possibility to run su with switches (ie su -c "command"), and only use adb to invoke a script on the phone with the rest of the commands. Unfortunately fails on both counts :-(
Does anyone know of other su utilities out there that are more like the Linux version?
Cheers!
The answer seems to be gscript.
Phone side commands can be scripted to run on the phone, requires manually finding and running the script from the phone's UI.
Now if there were a way to invoke it through adb ... !
hi Learnincurve,
can you please briefly post, what you did to use the internet-passthrough? i cant figure it out with my desire z...
thanks!
m1l4droid, you are using the internet passthrough with ubuntu just like that? what am I doing wrong...?
Hello everyone.. I can see that the thread hasn't been updated for some time.. but still, has anyone founded an easy way to use "internet pass-through" option on linux? I have read the thread, but I am not very familiar with the terms "adb" etc. I am using Desire HD rom (InsertCoin HD Port 1.8f), on an "small" Desire... And the linux edition is Ubuntu 10.10... Thanx in advance..
wouldnt you be able to access an ad-hoc wifi network with your custom rom? so the only thing for you to do was to setup the ad-hoc wifi at the pc and connect with your phone...
for the usb-passthrough I still dont have a solution, neither.

Mounting SMB shares causes error "-6"

Hi!
I've recently bought an 101 G9 turbo and this far I'm pretty satisfied with it. However there is one thing that I can't get working (that should work) and that is mounting windows shares.
When going through the "Files" application, I can see the workgroup "WORKGROUP" and after clicking on that I can see my computer, after clicking on that I get a username/password popup, so far so good. After entering the correct user name and password however the popup just appears again! Checking in dmesg or logcat shows the following error:
"CIFS_VFS: cifs_mount failed w/ return code = -6"
After some googling this turns out to be the error thrown when you're trying to mount a share that doesn't exist. Now, I'm thinking that I'm not actually trying to mount a share yet. I'm trying to "browse" what shares are available on my computer.
Now to the questions:
- Has this _ever_ worked for anyone? (It seems to me that it's trying to mount the computer as a share)
- Is it somehow possible to specify which share I want to mount (eg. //192.168.1.2/Videos) without "browsing" to it?
Thanks alot
ergoen
This is a common issue at the moment and to get around it just use a new file explorer from the app store (I use ES File explorer). Make sure that windows is set to share it on the network too as by default it just shares with home group.
Psi.

Categories

Resources