I am trying to diagnose some performance problems. Is there a version of iotop anywhere for Android? This is a common linux utility that shows disk access by process name. I have iostat but that only shows disk access, not which process is using it.
Related
Started to mess about with this earlier today, finally got the damn thing to work Turns out it is quite easy..
First, to get one thing straight, this will only boot the kernel, it will dump you at a shell which you have to remotely log on to via telnet over usb. There will be some (not so) fancy text appearing on your phone's screen but that is about it. Also, it only works on unlocked phones.
This is what you get:
On your computer you'll get this:
Cool, huh? Btw, this is running from a memory card, your OS will be untouched so as soon as you reboot the phone it will boot right back into WM2003/5/6.
1. What you need
* A HTC Typhoon running any rom of your choice (I did it on WM6).
* A miniSD memory card
* A Linux distro - I downloaded the Ubuntu Live CD and ran it through VMWare, no need to install anything or reboot your computer.
* miniSD image of Xanadux - this is the linux port for HTC devices. Grab the latest version here: http://rapidshare.com/files/92218185/Linux.zip.html
(these files are extracted from the miniSD image file found here: http://vivien.chappelier.free.fr/typhoon/download.html)
2. How to run linux on the Typhoon
1. Instead of installing linux properly on your phone which requires partitioning of the internal memory etc (a lot can go wrong) we'll put it on the memory card then a Windows Mobile program called HaRET will boot linux for us from WinCE. Completely non invasive in other words.
This bit is dead easy, just extract the Linux.zip file you just downloaded and copy the files to the root of your memory card (must be memory card, can't do this from the internal memory afaik). Next, go to the File Explorer on your phone and find the file HaRET.exe. Run it then press the run button (this button has focus when you execute HaRET.exe so just press the joystick when the windows appears) and you will see a message saying "Booting linux", then after a few seconds your screen will go black and some text will appear.
Voila! That's linux running on your phone!
2. Connect to the phone via telnet
If read the last line of text that appeared on screen you'll see that it says "Press enter to activate this console" but no matter what buttons you press on the phone nothing happens, some gibberish appears but that's it.
Solution: telnet to the phone from your computer.
Get Ubuntu to boot on your computer, then go to Applications->Accessories and run the Terminal. Next type in the following commands:
Code:
modprobe cdc_ether
modprobe usbnet
ifconfig usb0 up 192.168.9.1
and finally
Code:
telnet 192.168.9.10
Login with username root and you'll find yourself at a shell like the screenshot above. Everything you see from now on is coming linux from your phone!
I've noticed that Xanadux doesnt always initialise the USB port unless it is connected via USB when booting up so make sure you always have your phone connected via USB when you run HaRET.
Now I'm going to try to figure out how to get the GSM module to work...
LINUX based ROM??
Hi shandar,
I have read your post and I am interested to know if you are cooking a LINUX based ROM that will run in a WIndows Mobile device? That would be too good to be true.
Also another question is do you need to have Linux running on your desktop to make this tutorial work?
ryanchanmd said:
Hi shandar,
I have read your post and I am interested to know if you are cooking a LINUX based ROM that will run in a WIndows Mobile device? That would be too good to be true.
Also another question is do you need to have Linux running on your desktop to make this tutorial work?
Click to expand...
Click to collapse
Hey, well, I don't know enough to make a linux rom for smartphones. I'd love a working linux distro for Typhoons & Windows Mobile phones in general but it is way out of my league unfortunately.
Btw, I probably should clarify that I only wrote the tutorial, the actual linux port is made by someone else.
I got a copy of Android - I think its 1.6 - running on my laptop - and it seemed to work ok and be stable so I wanted to put it onto the machine permanantly.
Trouble is its decided that nothing else on the machine exists and I can't get back into vista whatever I try
It boots into something called grub loader and the only two options are the normal boot and a sort of safe mode - that lists drivers much like the old one for Windows 95/98 where you could y/n each one...
I really need help to get vista back again since there is stuff I really need like internet banking that I don't think I can do any other way (to be fair I have yet to try)
Thanks in advance
Jemma
Please tell me you partitioned off your hard drive before doing this?
If not then its a reinstall I guess, which isn't to bad as it allows you to install a decent copy of windows such as XP
That quite simply isn't an option - I was told that there is a way of solving it by using a windows CD or boot disk to reload the MBR - I was also told that the file running GRUB can be edited to find windows.
The problem is I don't have another machine and I am on state benefits - I need this computer up and running and I need access to my documents.
I can't seem to mount anything in android - and as the only option is 'format sd card' I don't really want to take it..
Does anyone else have any suggestions?
Jemmauk said:
That quite simply isn't an option - I was told that there is a way of solving it by using a windows CD or boot disk to reload the MBR - I was also told that the file running GRUB can be edited to find windows.
The problem is I don't have another machine and I am on state benefits - I need this computer up and running and I need access to my documents.
I can't seem to mount anything in android - and as the only option is 'format sd card' I don't really want to take it..
Does anyone else have any suggestions?
Click to expand...
Click to collapse
Well thanks for the sob story but what does being on benefits have to do with anything?
Anyway simply set your pc bios to boot from cd first, insert disk and boot up. From there you will be asked do you want to install or repair. Choose repair.
I'm unsure of the next step because I don't use Vista *spits* but if you can get to recovery console then you can run fixmbr from the prompt and also there is a boot manager that can fix your boot sector.
Alternatively you could from a dos prompt delete the 1.6 folders and rewrite the msconfig to open windows only.
There is also the root of trying the f8 safe mode boot into admin account and rewrite the msconfig from with windows if accessible from f8 safe.
But hell I ain't anyone else but I guess my 24 years in the business of building custom machine and my extensive knowledge of windows xp and below means nowt? Maybe try being a little less dismissive next time hey?
Add me on gmail - [email protected] if you want me to help you sort it out faster than we can here
Did you create partitions before installing android? if not then windows doesnt exist anymore, which is why grub didnt automatically add it to the list of things to boot (mine always listed everything, but sometimes it doesnt do that automatically)
this happend to me to. I had to use I linux live cd to delete the linux partition. and fix the mbr.
Sent from my Liberty using XDA App
Hello to all,
I'm a new Android user that has recently migrated from Windows Mobile 6.1. I have downloaded this FRX06_Full_Bundle_25.3.2011.zip and successfully installed it on my SD Card. This distribution works OK, but there are some minor issues I need to fix. So I need a root access to my phone. And here comes the problem how to do it.
I read several articles over the internet how to root your phone but all of them are about phones where Andoid is installed in the ROM. Moreover - they require USB access to the phone. And I have problems finding the correct USB drives or my phone USB does not work.
So could you point me an article that explains how to root my phone when Android is installed on the SD Card. Is there a way to do it by mounting the SD card on my laptop via the card reader. I want to avoid using the USB port.
BR
Are you trying on Windows or Linux?
Did you install ADB on your pc already?
Did you enable developers access on the android?
I think you need to provide a little bit more info.
Yea, sorry about that.
I'm using Windows 7 64bit. Currently I'm unable to find suitable drivers...
I have enabled the developers access on my phone, but the drivers problem wouldn't let me root my phone using the conventional approach.
So I'm wondering is there any other way to root the phone that does not include the USB port...
The build comes rooted out of the box. There's nothing additional you need to do in order to root.
You should probably read the FAQ if want more info on adb.
adb is not required for root access. Again, FRX06 comes rooted, nothing needs to be done to 'root' this build.
arrrghhh, thanks for the help. Indeed the distribution is rooted by default. I have confirmed this with the terminal application.
I have a problem with the Samba Filesharing (funkyFresh). The app website states states that the telephone is not rooted or Superuser not installed (I have already installed this). That's why I have tried to "root" my phone...
Hello, I have CM 7.0.3 encore with the overclocked kernel on my nook. Lately I have not been able to get the thing to connect to my computer in either windows or Linux. (It's XP and "Lucid Lynx" 10.04 Ubuntu if that helps)
If I connect my cable to either the front of back USB ports (because I have tried both under both OSs) at best I get my windows install to see and start to run auto hardware install. This, of course does not work and the machine will inform me that my new hardware (which it correctly ids as a nook until this point) may not work correctly. And, it does not. It displays as 'removable drive' and clicking on it pulls up an 'insert disk please' message.
In Ubuntu the Nook will show up as B&N Ereader. Both SD cards (the internal and the card in slot) show as the same thing. Clicking on them brings up a message that this drive is not a folder and cannot be opened as such.
This thread leads me to think that there should be a notification in windows about the usb being connected...and as soon as I post this I will be restarting to check that... but I really rather do this under Ubuntu. ETA. This does not work for me. Canceling the install software wizard does not work either. (I have been uninstalling the faulty installs each time and rebooting the comp without the nook attached. Oh, and the Nook IS awake too. )
Searches bring up nothing, and I'm a bit lost.
I must be missing something so basic and simple no one has had this issue but me. I mean, Android is a Linux variant, right? They should be able to talk to one another!??
If your trying to accomplish what I think you are then it doesn't matter what your computers says. Plug your Nook into the PC and open your notifications window. There should be a USB icon on the status bar waiting for your input. Just follow the prompts.
Given you have gone through the process of installing the Android SDK, in Linux, from the terminal you need to change to your target folder to
Code:
~/android-sdk-linux_86/platform-tools
then you need to log in as root and kill, then start the server. make sure to exit root when you are done.
Code:
su : enter password
# ./adb kill-server
# ./adb start-server
# exit
then it should pick it up.
I have the same problem as OP and went crazy trying to figure out what I was doing wrong. It's not as simple as everyone suggests.
To be clear I'm using Linux, Ubuntu Natty. I have a Samsung Vibrant also running CM7 nightlies. Start adb, plug in Vibrant, shows up in adb devices list without any problem. Plug in the NC no device in adb. running lsusb there is no android vendorID for the NC but there is for the Vibrant. The NC only shows a vendorID for the mass storage just like the OP says.
The NC is booting with CM7 nightlie on the SD card, not eMMC. Will that make a difference?
IFLATLINE, Thing is, there is no notification popup on my Nook for me to tap.
neidlinger, I will be trying that ASAP. I do not have that installed... I'm rather new to Linux.
I did manage to brick the nook trying to update the build last night so I'm in the middle of reflashing it. So, as soon as I finish making a boot micro SD (I know, I should just have one I keep for this but I don't) I will be flashing phiremod's version of CM7 on the nook.
digver, I did find somewhere on here that the OC kernel was causing some people grief and that once they removed it they had no issues connecting the the computer... but I think they were windows. I'm not sure if that will fix this very annoying little problem.
katsrevenge said:
neidlinger, I will be trying that ASAP. I do not have that installed... I'm rather new to Linux.
Click to expand...
Click to collapse
personally i <3 linux. It's the only way to fly esp with dealing with Androids. Android Central has a GREAT write up on how to install the SDK on your Linux unit.
I'll have to look up the link @ home. I'm at work and WebSense blocks 99% of everything.
I can't find instructions on how to side load apps from OS X to my Nook Simple Touch. I rooted it using these instructions. I also installed NTGAppsAttack but it took me a while before I could log into Google and get it working. Now that it's working it doesn't seem to do much since I can't search the Google Market (probably because I can't side load apps).
First, I'm trying to install the Kindle App that I got from here. I downloaded the Android tools, but when I try to run ADB, it seems that the device isn't connected:
$ ./adb install ~/Downloads/Kindle_3.3.1.1.apk
error: device not found
- waiting for device -
I thought maybe I could load the .apk file in the Finder. There isn't enough room for me to load it onto the NookManager partition (only 8 MB free) so I put it in the My Files/Documents folder of the NOOK partition. However I can't seem to find that location using the ReLaunch app. It won't let me out of the sdcard directory.
I also tried launching ADB Konnect on the device and it tells me "Root Access Denied!"
Is it possible to install apps via SSH? I can't figure out how to get SSH running.
I'd appreciate any help. Thanks.
No idea about Macs, but for USB you will have to modify ~/.android/adb_usb.ini
Nook is not a "known" Android.
Code:
0x2080
If your root uses ADB over WiFi that would work too.