[UTIL] One Click Lag Fix - Galaxy S I9000 Android Development

This software is currently in BETA status! This means that a lot of people have tested, and reported good results. There are still issues, but if you take note of the known issues and make sure to avoid them, you very likely will have no problems in using this fix. The worst this software should be able to do is force you to reflash your phone, by removing the battery and turning on the device with HOME+VOLDOWN+POWER + Odin and then following one of the many guides to flash a new firmware to your phone.
More questions about how this fix works? Check out the FAQ - http://forum.xda-developers.com/showpost.php?p=7620940&postcount=2
UPDATES:
There is currently a 2-3 version made by me that can be found here that has more features: http://forum.xda-developers.com/showthread.php?t=751864
Tayutama has made an update.zip version that is easy to install - http://forum.xda-developers.com/show...&postcount=208
Chainfire has a .NET version of this fix with some nice features - http://forum.xda-developers.com/showthread.php?t=751513
Ubuntu version is here: http://forum.xda-developers.com/showpost.php?p=7671640&postcount=583
[size=+2]DEPRECATED:[/size]
[size=+1]This lagfix is now marked as DEPRECATED and the following tool should probably be used in all circumstances that this one would be used in: http://forum.xda-developers.com/showthread.php?t=760571[/size]
Details about what this fix does:
Creates a VIRTUAL EXT2 filesystem inside the stock RFS filesystem on the internal SD card, with a 4KB block size. This means that this lag fix creates a buffer between the real filesystem and the android system. This buffer should reduce the amount of disk I/O required for all operations by utilizing EXT2 buffering, as well as not writing file access times to disk, etc. It allows only 1GB for application data at this stage, down from the 2GB of application data when running stock.
Folders that are currently supported:
/data/data
/data/system
/data/dalvik-cache
More folders can be added, and should help performance further.
Advantages for this fix over mimocan's fix
Does not require an external SD card.
Allows the external SD card to be removed and reinserted into the device.
Faster speed (Quadrant benchmarks of 2000+ vs 1700 for mimocan's fix)
Possible battery savings, by not requiring the external SD card to be always active.
Requirements for this fix
(Beta Release) The ability to reflash your device if something goes wrong.
Any firmware should work, including 2.2 froyo firmwares. (Tested!)
Rooted device - I used this: http://www.addictivetips.com/mobile...t-samsung-galaxy-s-i9000-with-a-single-click/
Busybox 1.17.1 from http://forum.xda-developers.com/showpost.php?p=7574130&postcount=229 -
You must have a busybox version installed that has mkfs.ext2. If unsure, install 1.17.1 from that thread!
That thread has an APK that you must sideload onto your device. Once installed, you will have a new application on your phone called "BusyBox Installer".
Run this application, and it will have a button to install busybox. Click the button, and it should install it for you!
If you have made a mistake and run this without the right busybox, there may be a solution for you! Check out this post: http://forum.xda-developers.com/showpost.php?p=7580071&postcount=187
A windows box to run the batch script. (Batch script does very little, you should be able to easily modify this to run in any enviroment.)
If you are already running mimocan's lag fix, check out this post: http://forum.xda-developers.com/showpost.php?p=7578137&postcount=85
How to run the one click fix
Place your phone into USB debugging mode: Settings->Applications->Development
Download the attached ZIP file.
Unzip to a folder of your choice.
Double click "lagfixme.bat"
Wait for it to complete.
How to remove the one click fix
Double click "unlagfixme.bat"
Wait for it to complete.
New Method for applying this lag fix
Tayutama has developed an update.zip version of this lag fix. I haven't tested it personally, but some people have had a lot of success with it. It should be more robust and less likely to cause you problems. I believe it avoids all rooting and busybox issues as well! Nice! Check out this helpful post by glockyboots for instructions. You must only use one lag fix, not both! http://forum.xda-developers.com/showpost.php?p=7587405&postcount=417
Known Issues
1) If you do not have 1GB of free space on /data, this fix won't be able to run. Looking into workarounds.
2) Script fails if your busybox does not have mkfs.ext2 - Solution is to update busybox - http://forum.xda-developers.com/showpost.php?p=7574130&postcount=229
3) Script will not work if you have previously used mimocan's fix on your current firmware. Try this to revert mimocan's fix: http://forum.xda-developers.com/showpost.php?p=7578137&postcount=85
4) Make sure your device is plugged in, and that you have the correct drivers. Permission denied errors usually mean that your device is not in USB debug mode. Settings->Applications->Development
Credits
Big thanks to mimocan for putting us all on the right track in how to sort out lag problems!
Big thanks to ykk_five for showing us all how well loopback filesystem mounting works!
Warning, this software is BETA QUALITY, and is known to function on a lot devices! You must have busybox 1.17.1 !
This doesn't meant that this won't break your phone and force you to reflash. It does mean that if you do everything properly and you read everything a few times, you very likely will have no issues!

What if im using mimocans fix. Will it work?

heman1310 said:
What if im using mimocans fix. Will it work?
Click to expand...
Click to collapse
Won't currently work with mimocans fix. I can make a slightly altered version that will work with mimocan, but if you could install mimocan, you should be able to open the .txt files and check how this is done, and do it yourself in ADB!
It seems a bit strange to have two lag fixes installed at once anyway...

Nice! Looks ok at a glance! Though I see you have changed the directory name and the loop file..

kalpik said:
Nice! Looks ok at a glance! Though I see you have changed the directory name and the loop file..
Click to expand...
Click to collapse
I based this off my script from yesterday, so it has the names I used and not the names other people used. Feel free to just edit the text files to change the names.
Important part to note is that this fix is intended (eventually when all issues have been sorted out) for people who have no idea what linux is!

RyanZA said:
I based this off my script from yesterday, so it has the names I used and not the names other people used. Feel free to just edit the text files to change the names.
Important part to note is that this fix is intended (eventually when all issues have been sorted out) for people who have no idea what linux is!
Click to expand...
Click to collapse
EXACTLY! And good job for the effort! Too bad I already applied the fix manually, so don't feel like doing it all over again. Though if you really need to test it out, let me know, ill waste another half an hour

RyanZA said:
Important part to note is that this fix is intended (eventually when all issues have been sorted out) for people who have no idea what linux is!
Click to expand...
Click to collapse
nice work RyanZA but i think it wouldn't harm people to know that they ARE in fact using linux behind that fancy ui ... this is after all a dev-forum

Great job ............. I have a question (noob).... And the device? Should I connect it to my computer at what time, and in which way the usb cable?
Have I to save or transfer some file (extracted from lagfix) for the galaxy samsung s?
Tanks.

jodue said:
nice work RyanZA but i think it wouldn't harm people to know that they ARE in fact using linux behind that fancy ui ... this is after all a dev-forum
Click to expand...
Click to collapse
you are right, but be sure there will be lots of people that want this, that eaven dont know how windows works, they just want to use it ;-)
edit: the first proof ;-)
@bucklino connect your rooted galaxy s to usb...

FadeFx said:
you are right, but be sure there will be lots of people that want this, that eaven dont know how windows works, they just want to use it ;-)
Click to expand...
Click to collapse
hehe, yeah i guess so
... i'm already looking forward to "[Q] Will the new improved one click lagg-fix make my head explode?"

jodue said:
nice work RyanZA but i think it wouldn't harm people to know that they ARE in fact using linux behind that fancy ui ... this is after all a dev-forum
Click to expand...
Click to collapse
It actually looks more like they are using DOS at this point. The fancy ui is just a little coloured text window for now. I might make this into a proper GUI at some point if I'm bored!
bucklino said:
Great job ............. I have a question (noob).... And the device? Should I connect it to my computer at what time, and in which way the usb cable?
Have I to save or transfer some file (extracted from lagfix) for the galaxy samsung s?
Tanks.
Click to expand...
Click to collapse
You don't have to do anything! That's the point!
You put your device into debug mode. Settings->Applications->Development
You plug the device in.
You double click "lagfixme.bat"
Bang!
Just gotta make sure that its rooted, and has busybox (well, it needs mkfs.ext2 included in busybox).

It worked well for me thanks

[Q] will this lag fix also fix the delivery lag of my galaxy s?
it was supposed to arrive last wednesday, today i caled the guy and he told me i get it this week... however he´s a friend of mine and i trust him. just cant wait so long...............

RyanZA said:
It actually looks more like they are using DOS at this point. The fancy ui is just a little coloured text window for now. I might make this into a proper GUI at some point if I'm bored!
You don't have to do anything! That's the point!
You put your device into debug mode. Settings->Applications->Development
You plug the device in.
You double click "lagfixme.bat"
Bang!
Just gotta make sure that its rooted, and has busybox (well, it needs mkfs.ext2 included in busybox).
Click to expand...
Click to collapse
Tanks again!!!!

FadeFx said:
[Q] will this lag fix also fix the delivery lag of my galaxy s?
it was supposed to arrive last wednesday, today i caled the guy and he told me i get it this week... however he´s a friend of mine and i trust him. just cant wait so long...............
Click to expand...
Click to collapse
hm, that sux! i had to wait about 2 weeks when i ordered my htc magic because they f***** it up. terrible 2 weeks of watching/reading reviews and crying. this time i ordered from amazon and got it 3 days later ...
good luck for your lagging problem

how to confirm tat its completed without any problem ?
it shows "
Setting up permissions
All Complete!
Script complete!
Press any key to continue . . ."
but i did a benchmark test its still 899 same as before i do this.

hq83 said:
how to confirm tat its completed without any problem ?
it shows "
Setting up permissions
All Complete!
Script complete!
Press any key to continue . . ."
but i did a benchmark test its still 899 same as before i do this.
Click to expand...
Click to collapse
have you applied any other fix previously?
have you rebooted since you applied the fix?

hq83 said:
how to confirm tat its completed without any problem ?
it shows "
Setting up permissions
All Complete!
Script complete!
Press any key to continue . . ."
but i did a benchmark test its still 899 same as before i do this.
Click to expand...
Click to collapse
Huh... hmm..
Do you still have the log window open? If you could paste the full log here I can take a look. Like I said, alpha...
Your files may be in different locations than mine, or you may not have the right busybox.

FadeFx said:
[Q] will this lag fix also fix the delivery lag of my galaxy s?
it was supposed to arrive last wednesday, today i caled the guy and he told me i get it this week... however he´s a friend of mine and i trust him. just cant wait so long...............
Click to expand...
Click to collapse
[A] If you apply this fix to the delivery/schedule systems of goods transporters, delevery times will be halved worldwide .

jodue said:
have you applied any other fix previously?
have you rebooted since you applied the fix?
Click to expand...
Click to collapse
nope.
was on JM2 without any fix.
yes did a reboot after that.

Related

Rhobuntu: Ubuntu 9.04 and Debian (test) UPDATE [19/09/2010]

Important - Read First!
First of all you must know that everything you do is on your own risk. Your device was not designed to run GNU/Linux or Android and that's why you shouldn't expect everything to be perfectly safe. If you don't want any troubles then simply don't tamper with your phone. On the other hand, installing Rhobuntu is probably less dangerous than installing alternative ROM's, because it doesn't touch your ROM and runs completely from the SD card. If something goes wrong and the system would hang up, you always can remove the battery and boot into Windows Mobile. Still, we can't guarantee you anything and we won't be liable for any damage that might happen to your device. If you don't accept this, don't install Rhobuntu.
At the moment two problems are known to occur when using Rhobuntu. They are, however, not Rhobuntu specific and may also occur when using Android.
1- After booting back into WinMo, you can't install or run unsigned apps. This problem probably has something to do with the way haret kicks WinMo out of the RAM. It also seems to occur only in combination with the use of Exchange Server. The only known solution at the moment is Hard Reset. Some users also reported that it can be fixed by using Visual Studio 2008. Check out this threads:
o Not digitally signed with a Trusted certificate/ Activesync keeps UNINSTALLING!
o Program... is not digitally signed with trusted certificate. HELP!
2- Since we still have no proper battery charge indicator working, you might not notice that your battery is completely drained. Deep discharge is, however, not good for batteries and may in some cases even damage them. Here is a thread dealing with this problem when running Android
o Android killed my USB connection, please help
The majority of Rhobuntu users doesn't face these problems, but just in case, you've been warned.
WIKI http://wiki.xda-developers.com/index.php?pagename=RhodiumUbuntu
WEBSITE https://sites.google.com/site/rhobuntu/
This build by Walter79 and the Rhobuntu team:
Rhobuntu 9.04 19.09.2010
changelog:
- zimage update (Xandroid Build 16/09)
- sphone 0.04 (thanks AmiPro)
- 3G scripts update (thanks AmiPro)
- sound works partial (thanks to phhuson) !!! run /sdcard/ubuntu/playwav2 after boot !!!
- alsaplayer added
Download:
Link1: http://www.megaupload.com/?f=RWDJWUN0
Link2: http://rhobuntu.4shared.com
Debian Squeeze Test 19.09.2010
For more information please look at this post http://forum.xda-developers.com/showpost.php?p=8186181&postcount=1208
Download:
link1: http://www.4shared.com/dir/n-2ObqP_/pro2-debian.html
Old Build (27/06/2010)
*http://www.megaupload.com/?f=RWDJWUN0
*http://rhobuntu.4shared.com
Old Build (13/05/2010)
*http://www.megaupload.com/?f=RWDJWUN0
*http://rhobuntu.4shared.com
Old Build (14/04/2010)
*part one:http://rapidshare.com/files/375930803/Jaunty_14_04_2010.7z.001 MD5 77430e728bb17277e671cc55ae03161f and part two: http://rapidshare.com/files/375939439/Jaunty_14_04_2010.7z.002 MD5 523589000dcd5d1dcea668bbe51253af
* http://rhobuntu.4shared.com
* http://www.megaupload.com/?f=RWDJWUN0
Old Build (11/04/2010)
* http://rs427.rapidshare.com/files/374730149/Jaunty_11_04_2010.7z
* http://rhobuntu.4shared.com
* http://www.megaupload.com/?f=RWDJWUN0
Old Build (10/04/2010)
*http://rapidshare.com/files/374138895/Jaunty_10_04_2010.7z
*http://rhobuntu.4shared.com
Pretty cool idea, keep us posted!
Definitely an awesome idea, and one I had been thinking about myself since my original Touch Pro days. An embedded version of Linux should run great on these devices. Hopefully momentum will grow surrounding this.
thats very interesting. any pictures of this running? maybe things can be pulled from android.
THANKS!!!! downloading now!
tried it on my Touch Pro 2 (AT&T Tilt2), No luck. Started to boot, Complained about /etc/init then poof reboot after 7 seconds. Am I missing something.
aq3e said:
tried it on my Touch Pro 2 (AT&T Tilt2), No luck. Started to boot, Complained about /etc/init then poof reboot after 7 seconds. Am I missing something.
Click to expand...
Click to collapse
Did you change the mtype in the sartup script to the tilt2, the one i used is set for the rhod100, i hope that helps. Is anyone else's not working btw?
Help!
I extracted all the files on to a newly formatted 2GB card.
Ran haret and everything ran fine. Bit 'interesting' navigating round the screen but got there in the end.
However, since rebooting my phone back into WM I cannot run any unsigned programs such as haret that worked fine before.
The error says "The file blah cannot be opened either it is not signed with a trusted certificate..."
Any idea what's changed and how I can get my phone back to how it was?
R.
dicko99 said:
I extracted all the files on to a newly formatted 2GB card.
Ran haret and everything ran fine. Bit 'interesting' navigating round the screen but got there in the end.
However, since rebooting my phone back into WM I cannot run any unsigned programs such as haret that worked fine before.
The error says "The file blah cannot be opened either it is not signed with a trusted certificate..."
Any idea what's changed and how I can get my phone back to how it was?
R.
Click to expand...
Click to collapse
Wierd, my winmo works find, minus the calibration issue, it's brilliant, we need some linux Devs to look into this. as a windows user, i have no idea on what to do
Thanks (All we need now is win XP )
Badwolve1
I think something got corrupted/overwritten on my phone...
I cannot run any unsigned apps whether they are installed on the storage card or internal memory.
I cannot even install new apps! When I run the cab file, I get the usual "This program is from an unknown publisher..." and when I select yes for continue it immediately comes up with "Installation of blah was unsuccessful."
Time for a hard reset? I'd really prefer not to if anyone can suggest a better way of getting back to how it was.
R.
dicko99 said:
I think something got corrupted/overwritten on my phone...
I cannot run any unsigned apps whether they are installed on the storage card or internal memory.
I cannot even install new apps! When I run the cab file, I get the usual "This program is from an unknown publisher..." and when I select yes for continue it immediately comes up with "Installation of blah was unsuccessful."
Time for a hard reset? I'd really prefer not to if anyone can suggest a better way of getting back to how it was.
R.
Click to expand...
Click to collapse
did you install anything recently, could try uninstalling it
dicko99 said:
I think something got corrupted/overwritten on my phone...
I cannot run any unsigned apps whether they are installed on the storage card or internal memory.
I cannot even install new apps! When I run the cab file, I get the usual "This program is from an unknown publisher..." and when I select yes for continue it immediately comes up with "Installation of blah was unsuccessful."
Time for a hard reset? I'd really prefer not to if anyone can suggest a better way of getting back to how it was.
R.
Click to expand...
Click to collapse
try installing SdkCerts.cab
http://forum.xda-developers.com/showthread.php?t=554240
the cab is included with the rhodium keymapper zip file. (keymapper app is worth installing as well )
sdkcerts won't install. It has the same problem as other cabs where it prompts to say the program is from an unknown publisher and when I tap Yes to continue it still fails with "Installation of SdkCerts.CAB was unsuccessful."
Tried booting it up on my Verizon TP2 and all it does is run haret and then freeze.
Thanks for putting this together, sebbo90. It boots nicely, and actually performs quite well on my Tilt2. I hope some of the developers take notice of this project and consider fixing the major usability issues like the front keys and the display calibration.
After the first boot I cant get the GUI to run anymore. Removing the directory from the SD and uploading a fresh copy fixes it for one boot only. After that it just hangs at command line.
spdweb said:
After the first boot I cant get the GUI to run anymore. Removing the directory from the SD and uploading a fresh copy fixes it for one boot only. After that it just hangs at command line.
Click to expand...
Click to collapse
How did you even get it to boot?
EDIT: Do you think it will not boot for me since you all are using GSM and i am using a CDMA phone? Some settings may need to be changed i guess. I have been messing around but no luck.
spdweb said:
After the first boot I cant get the GUI to run anymore. Removing the directory from the SD and uploading a fresh copy fixes it for one boot only. After that it just hangs at command line.
Click to expand...
Click to collapse
I had this problem what i did to fix it was to was to do a full reformat on my sd card (not a quick one) this then helped and now it boots everytime. Hope this helps
sebbo90 said:
Did you change the mtype in the sartup script to the tilt2, the one i used is set for the rhod100, i hope that helps. Is anyone else's not working btw?
Click to expand...
Click to collapse
If the mtype needs to be changed, what should it be instead of the default 2292, forgive my ignorance.
EDIT: must be a fluke, it booted now, did not change a thing. Re-extracted the ubuntu rar and shoved it back on the SD and booted. Great Job. All we need now is calibration to get started.
sebbo90 said:
I had this problem what i did to fix it was to was to do a full reformat on my sd card (not a quick one) this then helped and now it boots everytime. Hope this helps
Click to expand...
Click to collapse
I got it working now. It was the directory structure I was using. I spent about 2 hours last night working on the calibration issue. If I could get that working it would be sweet. Tried a newer version of haret and tweaked the startup.txt a bit but the calibration still goes out of range.
On a brighter note, the calibration works fine when booting xdandroid with haret though it is a manual calibration there is hope anyway.

Android on Omnia 2

All credit to 'Rufik'
Everything in it is prepared to boot Android straight from SD Card & internal memory - no need to make linux (ext2/3) partition at all. Quick guide:
1. unpack files and put haret.exe, zImage, initrd.cpio.gz, default.txt into root directory of your Omnia's SD Card (Storage Card)
2. put rootfs.img into root directory of your internal memory (My Storage)
3. run haret.exe and click "run"
4. you should see damn small haret's fonts, crc checking should pass with success, haret will jump into kernel
5. now kernel is booting, many messages and logo are visible. I've set a 10sec delay before mounting root filesystem, so you can see message that mmcblk has been found and partitions printed out
6. any failure within kernel booting ends up with kernel panic and phone restart after 30 seconds
7. successful booting results in some long-last message and "android" animation
8. in minute or two you will see desktop
rapidshare.com/files/381541433/andromnia2_alpha_pack.zip
modaco.com/content-page/298997/android-on-omnia-2/page/700/
Just tested this ... booting very nice ... a very nice start but still need a lot of work but a very nice begining..
Keep up the good work
fireburn said:
Just tested this ... booting very nice ... a very nice start but still need a lot of work but a very nice begining..
Keep up the good work
Click to expand...
Click to collapse
do you have the usa version omnia 2. i just tried putting it on my i920 and got it to load up but that was bout it. only displayed in landscape mode and keep switching between linux boot up and android home screen... any help???
nop european version (Portuguese).. it seems to work very well for an alpha version .. screen flicker and some programs that dont work ... but android is booting ...
dac2009 said:
do you have the usa version omnia 2. i just tried putting it on my i920 and got it to load up but that was bout it. only displayed in landscape mode and keep switching between linux boot up and android home screen... any help???
Click to expand...
Click to collapse
That's all that's working at the moment. Hopefully phone and data wont be too far away.
Could you upload to other website. it's getting stuck on 20% everytime
try going to modaco .. theres more links there
Very nice.. i have tried it.. very nice
Omnia 2 is the same like samsung jet S8000?
the samsung jet and the omnia2 have nothing in common they only seem a like...
Omnia on B7610 OmniaPro?
Hello,
Does anybody know if there is any work arround about putting Android on OmniaPro B7610?
Thank you for your answers.
sener said:
Hello,
Does anybody know if there is any work arround about putting Android on OmniaPro B7610?
Thank you for your answers.
Click to expand...
Click to collapse
It's working on mine, just follow the instructions provided and you're all set
so are all the buttons mapped correctly? and does WIFI, GPS, Market, standard-phone functions working?
on the omnia i920 I have android running..only problem is none of the buttons are mapped correctly. There is no Wifi. I'm not able to make calls either. Basically it's a visual goodie for now. I read on Modaco that they have the GPS working I think. It doesn't work on mine however. There is no sound either. I really hope someone can get this working fully because from what I seen it's a sweet os.
theres still a lot to be done ... the project is beeing directed by a guy named almar ...theres a lot of development to do on the drivers ..
two o/s
can work 2 os win&android
we need to get some devs on here to help out almar is one guy and he has done great but he seems busy with life and i think is in exam period. So if you guys know any devs that know android i think we should be able to help him out with drivers.
Hi,
I have Samsung B7610. I tried running the package, Everything appeared as mentioned. I think the buttons are not mapped. It does not detect the network.
I feel at the present stage, it cannot be used for normal telephony.
But, would like to thank for providing this oppurtunity, I am happy to see Android on my phone.
any updates on android for omnia II ?
Mikomi said:
any updates on android for omnia II ?
Click to expand...
Click to collapse
same question.. is there anything new developed?
cheers

I've certainly fckd it up this time..? "E:Can't mount /sdcard/"

I was trying to do a full wipe and coming from the Atrix I did the following:
-------------
reboot to recovery
wipe dalvik
wipe cache
reboot to fastboot
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
-------------------
I know, I know; what the heck was I thinking...
Any good ideas, please?
If you still have fastboot access then flash the original Google packages to get it back to stock. And then NEVER do it again!
EddyOS said:
If you still have fastboot access then flash the original Google packages to get it back to stock. And then NEVER do it again!
Click to expand...
Click to collapse
Cheers mate, that is exactly what I am looking for right now (the original google packages). Luckily I'm still connecting through fastboot..
(Pool or Toffee..?)
EDIT: Solved. For future reference & any one stuck at the same:
-------------------------------
Originally Posted by Matterhorn
I found a forum that posted a link to a German Samsung site. It lists the files needed to change the GNex to the Google build YAKJU - ITL4F, radio 19250XXKK1, PrimeKJ10 bootloader, Google branded.
The instructions are in German but it is pretty simple. Go here http://samsung.de/de/Privatkunden/M...d722dbc-9813-4d08-b5b7-5772e168e9e4&dl=manual to get the two files needed to run the update. It is totally automatic, no other setup is required and it is stock as far as I can see. It worked great for me. One file is the install USB app the other is the ROM installer.
Install USB drivers
Run the ROM installer
Phone off (start with volume down/Power button)
Plug-in the USB cable LAST
Hit start button in ROM installer app
Wait and don't turn off the phone
---------------------------------------------------------------
YOU, mate, didn't fck up a thing. This is 100% an issue with the dam file system implementation on the GN as designed by Samsung.
They alone specifically removed the SD card slot because he did not understand the SW layers to support EXT3/4 across multiple volumes. The restraint was that the 13yr old kids to never have to think about the concept of a FILE. So instead, he removed the slot (notice there's an empty hole there) so we wouldn't hurt ourselves. Now the entire filesystem is one big cludge, with no partitions, with no safeguards, and all shared by RAM, applications and user space (like music, which are really those 4-letter words "FILE"s)
To get around the awful design, then he put in LOFS on a separate FUSE file system (mounted under /sdcard), along with separate permissions and security. This required yet another set of file system drivers at the kernel level. If the drivers don't start just perfectly, or the config's get mangled, then this post is what you get.
This same mangled approach is also the same reason why the GN is not mountable on a Mac, nor on the PC without special PC drivers. <-- if you Mac users are wondering why you don't see the GN under "devices", well there ya go. IMHO, they should be tied up in the back room until this can be sorted out, then we can release him in time to muff up the Nexus 3 or something lol
buckwheat.phd said:
YOU, mate, didn't fck up a thing. This is 100% an issue with the dam file system implementation on the GN as designed by Dan Morrell at Samsung.
He alone specifically removed the SD card slot because he did not understand the SW layers to support EXT3/4 across multiple volumes. He wanted the 13yr old kids to never have to think about the concept of a FILE. So instead, he removed the slot (notice there's an empty hole there) so we wouldn't hurt ourselves. Now the entire filesystem is one big cludge, with no partitions, with no safeguards, and all shared by RAM, applications and user space (like music, which are really those 4-letter words "FILE"s)
To get around the awful design, then he put in LOFS on a separate FUSE file system (mounted under /sdcard), along with separate permissions and security. This required yet another set of file system drivers at the kernel level. If the drivers don't start just perfectly, or the config's get mangled, then this post is what you get.
This same mangled approach is also the same reason why the GN is not mountable on a Mac, nor on the PC without special PC drivers. <-- if you Mac users are wondering why you don't see the GN under "devices", well there ya go. IMHO, Dan should be tied up in the back room until this can be sorted out, then we can release him in time to muff up the Nexus 3 or something lol
Click to expand...
Click to collapse
Wow, that was far more an explanation than I'd bargained for..!
Since my post I've been actually trying to figure out why the hell I would have done damage by applying the above wipe method to the GN when it functions perfectly well on the Atrix!
Oh well. It's a good phone. Almost..
Vangelis13 said:
Wow, that was far more an explanation than I'd bargained for..!
Click to expand...
Click to collapse
Its also very wrong.
Sent from my Galaxy Nexus using XDA App
matt2053 said:
Its also very wrong.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Well, please explain then..?
Vangelis13 said:
Well, please explain then..?
Click to expand...
Click to collapse
What he's trying to say is what Samsung's engineering dept did was wrong, he just doesn't know what. All that crowd would have had to do is ask a seasoned Unix virtual storage architect for a solution to multi-homed virtual RW file systems across hardware volumes. There are indeed a few good solutions, then it could have been done right. It'll be fixed by the time 4.1 gets into the wild anyway, but politically they've got to remove a few people first.
Look, for all their enthusiasm for these little cell phones, you can't expect college kids to know this stuff and that's all Samsung is hiring. Worse, new hires are often closed, embarrassed, and too proud to ask someone that reminds them of Ronald Reagan how to design something lol

UK 1.2.0 Glow ONLY TFU Software Upgrade

After much debate I have decided to make my work public as a lot of people seem to want these features!
THIS IS AN ALPHA SOFTWARE! EXPECT BUGS!
THEREFORE IF YOU INSTALL, ITS YOUR CHOICE. I TAKE NO RESPONSIBILITY IF THINGS GO DOWN THE PAN!
To get this working well, I need you guys! The testers - the community!
TFU ROM UPGRADE PACK ALPHA 3
What is it?
This software pack will supply your STOCK UK nook with software 1.2.0 with the following features:
ROOT
BUSYBOX
ADB
A clean nook friendly interface
A custom kernel (Thanks guevor http://forum.xda-developers.com/showthread.php?t=1906507)
Multitouch
Browser, Email, PDF, News Feed, Lots of tools
A custom built video mod to improve multitouch speed, refresh rates, delay and general display performance
MORE (but I cant remember)
Follow this guide to backup your nook and find out everything you need to know about the process. Please do this BEFORE any other tinkering! Make sure you know what you are doing!
http://forum.xda-developers.com/showthread.php?t=1961835
How to Install
Make a CWM SD card:
http://forum.xda-developers.com/showthread.php?t=1360994
Flash my zip:
http://dl.dropbox.com/u/13673492/TFU_ALPHA3.zip
Reboot:
You now have everything you need to get started!
BUGS:
Cant install apps unless you use ADB or drop them into /data/app and install.
If some of the preinstalled apps don't work follow this procedure:
-Open nook color tools and disable/enable allow non-market apps.
-Use file explorer to browse to /data/app and click on and install the broken app.
If you need help with ADB or want a different way to root check out my other post here!
http://forum.xda-developers.com/showthread.php?t=1961835
If you find a bug let me know please!
RESERVED
Hi Loney,
Installed just now and all seems well so far - well done!
John
I'd like to suggest an addition to the backup method that many folks are using - always test your restore, but dont test it (the first time) on your device.
Your backup file should be about 2 gig.
find a 2 gig or larger flash drive or sdcard and restore your backup image to that drive.
when you're done, there should be 8 partitions, as there were on your Nook to begin with.
If you can't get that working - you're not ready to root yet. Until you're sure you can restore, don't start making changes, please.
People turn up all the time having screwed themselves over by restoring a partial backup and not knowing it, or having restored only one partition from a complete backup and having blown out the partition table.
Out of curiosity is this listed as Glow only just because that was all you had to test it on?
I have the non-glow version so was going to test it, is there any reason why this may be a bad idea or has anyone else tried this yet? Thanks
stelph said:
Out of curiosity is this listed as Glow only just because that was all you had to test it on?
I have the non-glow version so was going to test it, is there any reason why this may be a bad idea or has anyone else tried this yet? Thanks
Click to expand...
Click to collapse
You are spot on. I didn't want to cause problems for people. Is your firmware 1.2.0? its firmware differences which are most likely to cause a problem. If you have a good backup, give it a go. If it works great. If not, you could try sending me your framework.jar file and I can try and find out what the differences are. Good luck!
roustabout said:
I'd like to suggest an addition to the backup method that many folks are using - always test your restore, but dont test it (the first time) on your device.
Your backup file should be about 2 gig.
find a 2 gig or larger flash drive or sdcard and restore your backup image to that drive.
when you're done, there should be 8 partitions, as there were on your Nook to begin with.
If you can't get that working - you're not ready to root yet. Until you're sure you can restore, don't start making changes, please.
People turn up all the time having screwed themselves over by restoring a partial backup and not knowing it, or having restored only one partition from a complete backup and having blown out the partition table.
Click to expand...
Click to collapse
Thanks for posting this. Very useful for people who aren't familiar with the nook. I will mention your name and this post when I update my guide with this information.
Also, the US nook touches - both the NST and NSTG - are now going to be running under OS 1.2.0 per BN.
The BN support announcement on this is here:
http://www.barnesandnoble.com/u/Software-Updates-NOOK-Simple-Touch/379003175
Hopefully, we'll wind up with net fewer folks quasi bricking their devices.
roustabout said:
Also, the US nook touches - both the NST and NSTG - are now going to be running under OS 1.2.0 per BN.
The BN support announcement on this is here:
http://www.barnesandnoble.com/u/Software-Updates-NOOK-Simple-Touch/379003175
Hopefully, we'll wind up with net fewer folks quasi bricking their devices.
Click to expand...
Click to collapse
This is great news. Everyone will benefit from some constancy across all devices.
Thanks, yes my nook is 1.2.0 so I've now installed the ROM on my non-glow light and it looks like it works fine! Seems stable and could start using it straight away, the only fault was opera wouldn't load/didint install properly but I followed the guide and re-installed it and it now works
I think the simple layout is really great, although one question, I plan to add the kindle app. Will I be able to add it to the "book" symbol (ie when I press the reading book it'd be nice to get an option of barnes&noble or kindle)? Im sure there is probably a legal reason why it hasnt but i think a kindle app would be good to include as standard, since kindle is one of the most popular ebook services and I bet most people have some books they'd want to access
Great work on the ROM!
stelph said:
Thanks, yes my nook is 1.2.0 so I've now installed the ROM on my non-glow light and it looks like it works fine! Seems stable and could start using it straight away, the only fault was opera wouldn't load/didint install properly but I followed the guide and re-installed it and it now works
I think the simple layout is really great, although one question, I plan to add the kindle app. Will I be able to add it to the "book" symbol (ie when I press the reading book it'd be nice to get an option of barnes&noble or kindle)? Im sure there is probably a legal reason why it hasnt but i think a kindle app would be good to include as standard, since kindle is one of the most popular ebook services and I bet most people have some books they'd want to access
Great work on the ROM!
Click to expand...
Click to collapse
In my next update you will be able to customise the launcher as you like. The fact that you cant is a bug that can be fixed by clearing the launcher data using the included titanium backup program.
Since i'm back from the hell of the "bricked nook", now i can come back to test your mod with more understanding.
It seems that if we change the language to all but english, the installation of the mod is doomed to a blank launcher. (that was the case for registering the nook i have to do it in english).
I reflash my nook after setting it in english and that correctly installs everything (not Opera but that's easy to recover it).
may be a note for foreigners who try to install this mod is to be aware of keeping the nook in shakespeare's mother tongue.
would you mind integrating in your future version the manga reader "perfect viewer"? fastmode.apk is also a request but now i understand that is not so easy.
thanks for your contribution. :highfive:
I'll report my experience using this technique. A few days ago, I purchased a US Nook Simple Touch (non-glow) which came with software v.1.0. I made a backup using the method referenced in the OP. I then upgraded to software v.1.2 via the manual (USB mode) method shown at http://www.barnesandnoble.com/u/Software-Updates-NOOK-Simple-Touch/379003175/ . I made another backup. I verified both backups using the SD card method as suggested by roustabout. Everything looked good.
I followed the OP instructions and was successful in installing TFU_ALPHA3.zip with CWM.
Upon reboot of the NST, I saw a dialog chooser asking me to select either the standard Nook software or Launcher7. I first tried Launcher7 and was greeted with a large gray "n" background. Nothing else. The only button that had functionality was the "n" button which brought up the "home" menu at the bottom of the screen. This got me back to the standard Nook software. So at least the reader still worked.
I rebooted and tried Launcher7 again, just to be sure. Still nothing but the large gray "n" background. No apps.
I restored my v.1.2 backup without any problems, and am now back to a "stock" NST. All good.
So while the TFU_ALPHA3.zip installation proceeded without incident, I didn't see any apps that I could run from Launcher7. I guess I'll have to try a different technique.
it seems like the same problem i said in my previous topic. did you set your language to anything but english?
i had the launcher7 without anything loaded. I had to set the language in english then reinstall the TFUAlpha3 to make it work correctly.
hope it helps.
jjinkou2 said:
it seems like the same problem i said in my previous topic. did you set your language to anything but english?
Click to expand...
Click to collapse
I have the US version of the NST. I couldn't find any way to change the language in the settings.
fastmode is working but we have to set it manually. i read this here http://forum.xda-developers.com/showthread.php?t=1241419, and i tested it.
Code:
adb shell
# cd /sys/class/graphics/fb0/
# echo -n 1 > fmode
# echo -n 0 > pgflip_refresh
since no-refresh and fastmode are autoexclusive i set pgflip_refresh to 0.
values are lost when the nook reboots.
New version coming soon. Lets start a list of requests guys. And if anyone has tested custom graphics settings, what works for you?
Loney,
Things that aren't working for me:
* Launcher 7 settings can't be altered (changes don't "save")
* apk installs are hitty-missy. Sometimes moving an apk into /data/apps and rebooting will work, other times I need to install it again by clicking on it in a file explorer.
* Fast mode app does nothing (but we knew that...)
Other than that, all is cool. I have also installed the patched .jars from the "mod manager" thread and they work alongside your changes.
Well done for your efforts on our behalf. Shout if you want anything specific testing - I'm confident that I can recover from "bricking"!
John
loney01843 said:
New version coming soon. Lets start a list of requests guys.
Click to expand...
Click to collapse
I haven't tried this yet, but when I do I would imagine access to google markets would be needed.
A follow-up on my experience which may (or may not) help getting this to work with the US NST (non-glow). Yesterday, I decided to give GlowNooter (http://forum.xda-developers.com/showthread.php?t=1675706) a try. Suspecting that it wouldn't work out-of-the-box, I deleted /system/framework/framework.jar from the glownooter.zip file. Installation of the .zip succeeded, and I was able to run ADW Launcher. I added my account to YouTube, attempted to sync in GMail, rebooted, and installed the PART-2-END.zip. Then I tried to open up Market, but kept getting connection errors. I also tried the Browser app, but was unable to enter text into Google's search page. So I guess there is stuff in glownooter's framework.jar file that is needed for everything to work. I didn't try too much more.
Anyway, I reverted to the stock NST 1.2 software for now. But I am happy to help with testing new firmware since I'm pretty confident about restoring to stock software.

Defy - A 2016 Experience

Since this Defy Forum is getting a bit old, I thought I'd give my recent experience with my defy. This is quite a lengthy thread but there is so much information on this forum that it becomes confusing so thought I'd share my experience so you can cut through a lot of the information. I've had my defy for over 5 years with the stock froyo 2.2.2 and its served me well until recently its beginning to bug me with how laggy it is. Also I wasn't sure if the battery was running out a faster than it used to.
The first thing I thought I'd do is do a factory reset which I successfully did however when I went to put back on some of the apps that I had before such as Runkeeper, Telstra 24/7 and RSA Security token, none of them were compatible with my old phone. I was able to find old versions of some of the apps but not Telstra 24/7 which I use to recharge. At this point I decided on installing a custom rom which I'd done before on other devices. If it didn't work out then phones with the same specs were selling for $29 at a local supermarket so no real damage if I get it wrong.
The first thing was to root the phone which I found something called Superoneclick. I had to turn off my antivirus on my PC use it as there are some files that appear corrupt but doing some searching gave me confidence it was just an overzealous AVG and appeared safe.
Once this was done it was a matter of picking a Rom which I went for CM11 Kit Kat it seemed ok but not heaps better. The thing was I'd now picked up a real battery problem. I tried various Calibration apps to no avail. My battery was experiencing quite large drops of 20% ie it would go from 89% to 50% and then later from about 35% to 20%. It would then stay on 1% for quite some time.
Thinking this was due to the ROM, I tried several ROMs but they all had the same problem. Eventually i found a thread on the battery problem and although I didn't change all the permissions as advised I did so some of the other stuff to no avail.
At this stage I thought my main issue was now the battery and thought I'd read someone that perhaps a stock based rom might sort it out. I installed MS4Ginger which was really smooth however was still a bit laggy at times. Also I noticed that it wasn't able to support various apps being Android 2.3. After a bit more reading, my minimum requirement was Jellybean 4.1 and I'd read that the more recent the ROM the more RAM intensive so I decided to try ROMs with my minimum requirement ie 4.1
I'm not a fan particularly the way the Cyanogen type rom look so was looking for something with a different look and feel. The main ones were:-
Miui based ones (Wiui, Jiui) which I quite liked however lag was still there and the occasional sudden reboot. Battery problem still there.
Xperia ROM which was also nice but also did a sudden reboot then stuck in a bootloop.
There was still lag which I couldn't really understand.
Last Rom I tried was Motor Gun Ice 4.1, it still had the Cyanogen look about it but seemed to run pretty smooth. One thing I had to do was change the Baseband to Telstra in the 'Advanced' section of settings. This made the phone and internet connection work faster.
At this point I ordered a new battery. While I was waiting for that to arrive I read that Facebook app is really bad at taking up RAM. In found another app called Facebook lite and uninstalled the standard Facebook app. All of a sudden Lag Fixed.
This got me searching other 'Lite' apps. Now for web browsing i use Opera Mini and the launcher I now use is Holo Launcher. I also tried to find a replacement for Messenger but no luck and its not been an issue.
So now my phone is running better than ever. Web searching is fast and apps are running well, not that I use my phone for much more than a phone.
A few days later my new battery arrived and comparing to the old one, it appeared that the old one had a slight bulge. I charged the new one right up, discharged and charged again and now no more battery drops.
One last tweak I wanted was to try change the status bar icons. I found Xposed Installer and was able to change the icon colours to white but not the icon pictures. Good enough for me.
So now I'm very happy with my 5 year old defy, took a bit of trial and error but got there in the end. So in a nutshell: -
- If your battery is dropping upon installation of a Rom, likely need a new battery.
- If you phone is lagging, look what is taking all the Ram and look for a lite option or uninstall. Facebook is bad for that.
Note that there are many old links to roms and other mods so finding things that work was at times a challenge but here's the process that I found worked for me and works if bricked as well, which I did a couple of times.
If Bricked or to get back to stock
Download RSD Lite
Install drivers for the phone
Download an SBF for your region, I used Telstra with 2.2.2
To install custom rom
Install and use Superoneclick to root (may need to turn off antivirus)
Install 2ndinit.apk then run it. May need to reboot phone first
Download the Rom and Gapps and put on SD card of phone
Get into custom recovery
Wipe Data and Cache
Install Rom and Gapps
Wipe Cache and Dalvik Cache (for all but one Rom, I forget which one, read instructions)
Reboot and enjoy.
the gun rom link is down, where you downloaded it?
That was one of the few that worked. I accessed from the defy wiki page then I think downloaded from the XDA thread.
Yep, there some links in the last post of the MG ROM thread. Post #222.
Good someone still use defy. I give up after digitizer gone mad. Time run over this device... Uuuh, just if it had 1 gb ram and dual core...
Good to hear that someone else still have this cute little thing. I have too, as my second device. The ROMs I tried on this device! Man, it's countless. I had dropped it on all the different terrains you can think of, yet it's still fully healthy (save the jack and usb covers - they are loose now) without a single crack. I didn't have any covers or screen guards. It stayed true to its name. I will never regret spending money to buy this, it is one of Moto's legendary devices. I think I'm drunk, but it feels good to say all this. I'll keep this device forever with me - a product from a time when smartphones weren't made in an oven, but carefully and delicately cooked up.
Digitizer gone mad me too, the upper line is not working, but it is a good phone, for kids.
Which seller you order the battery?
Can you suggest ROMs to watch videos on Kodi, or Youtube?
I liked this phone, this is the best size phone, what i ever had.
Why the companys not make phone like this size, one hand controlled, with 2GB/32GB, and quad cpu??
Now i have Samsung S4 mini, and it is big for me
Battery was off eBay, can't remember seller but was Australian selling genuine batteries.
Just try all the roms possible, that's part of the fun
Sent from my SM-T210 using Tapatalk
I've been wanting to play around w/ my old defy again. This thread may have got the ball rolling. What do you all use as your daily driver? I've got a xperia z3 compact, but want a new phone. unfortunately, I think my best bet is to just get another z3 compact cheap and save it as a backup?
Hi tronjojo, I was still using my Defy until recently I found an old 4 year old Samsung Galaxy SII of my wife's. The problem for her was that it was switching off all the time so she got an S5. I've now flashed various roms and fixed the random reboot issue. The only thing I wish it has is the notification LED.
Sent from my SM-T210 using Tapatalk
I bougnt a Defy + battery on my Defy Red Lens, made my own BL7 fixed SBF and nandroid with 720p patch which made it a Defy Plus, then I rooted it and repartitioned to install CM11 and has made it very usable in 2016.
Make that Defy in 2018
I'm still using a Defy, since 2011. The battery still lasts longer than that in my wife's new Sony Experia X Compact, about as long as in my daughter's Xiaomi Redmi 4X. I will probably have to move to another device somewhere in 2018 as one of the more important apps - the Swedish BankID app - will cease support for Android 4.4 but that is more or less the only reason. For the rest the thing still does what it did 7 years ago so were it not for this I'd keep on using it until it gave up from sheer old age or electron migration or whatnot.
Make that Defy in 2020
I've recently tried if my Defy+ could learn some new tricks and I thought I'd share my findings.
CM11 build
I tried to build CM11 from Quarx repository, but it seems that many of its dependencies no longer exist and whole project is no longer buildable.
3.0 kernel
This one builds fine, however I was unable to boot it - there's one frame or random pixels followed by a reboot. I checked many branches and put the output into most probable directories. I wish there were any instructions as to what actually do with a built kernel. TWRP zips found here didn't work either. Anyone?
SD card size
Defy supposedly shouldn't work with SD cards larger than 32GB. But did anyone try bigger cards? My Defy mounts 256GB cards without any problems.
Debian on chroot
I set up a Debian environment with debootstrap. Unfortunately outdated kernel puts a limit on a Debian version that could be run. For 2.6.32.9 it is Debian Jessie.
With XServer XSDL it is possible to run a full graphical environment.
2.6.32.9 kernel modules
I also succeeded with building kernel modules for the old kernel. These are mostly filesystem modules and cryptographic ciphers. Now I could use whole Debian Jessie repository (49GB) locally from a squashfs filesystem.
Another nice feature is encryption with dm-crypt/LUKS.
I uploaded modules that insmod loads without any error.
CA certificates
These should be updated with system updates, but we won't have new CM/Lineage/stock releases anymore, so I did it by hand. If you want to try it for yourself, remount /system as writable, remove contents of /system/etc/security/cacerts/ (they could be expired) and copy certificates from the archive. Certificates are same as Debian's ca-certificates version 20200601.
Mirror
I also uploaded tools and images - self contained with instructions to go back and forth between stock and CM11, because many links here are spread across many threads or simply dead. Kernel modules and certificates are for CM11. I didn't try them with anything else.
I can't post a link to these files, because this is my first post. Search for ybea in Motorola Defy section at AndroidFileHost.
Another 2020 Defy warrior
ybea said:
3.0 kernel
This one builds fine, however I was unable to boot it - there's one frame or random pixels followed by a reboot. I checked many branches and put the output into most probable directories. I wish there were any instructions as to what actually do with a built kernel. TWRP zips found here didn't work either. Anyone?
Click to expand...
Click to collapse
Hello! Did you check on /bootstrap/bootstrap/binary and other folders? There seem to be a zImage (and the recovery one).
I tried to flash and boot the ROM at http://blechdose-live.de/download/kernel/3.0.x/:
Tried flashing from TWRP 2.8: failed.
Extracted the update-binary, copied it to /tmp and executed it from ADB shell (/tmp/update-binary 3 0 /sdcard/cm11-blah.zip) and flashed with some things, mostly partition related errors. After rebooting, it stays on black screen (turned on), ADB available but unauthorised (just look on Github how to enable ADB from recovery to solve that) and that's all; the ROM doesn't work. I'll try debugging this to check if I can do something.
ybea said:
CM11 build
I tried to build CM11 from Quarx repository, but it seems that many of its dependencies no longer exist and whole project is no longer buildable.
Click to expand...
Click to collapse
What a sad thing, this year even quarx2k.ru became offline...
MaicoLinuX said:
Hello! Did you check on /bootstrap/bootstrap/binary and other folders?
Click to expand...
Click to collapse
Files extracted from 20131213 version did not work for me. I tried swapping /bootstrap/ (and /system/bootstrap/) zImages, binaries, edited cmdline, anything I could think of. Always with the same outcome - black screen.
Flashing in TWRP (v2.6.3.0) initially also failed. Fix_TWRP_and_boot_kernel3.0_v2.zip (on AndroidFileHost) makes it succeed. It is 3.0.8 kernel. It froze during the boot, restarted and finished eventually.
ybea said:
Files extracted from 20131213 version did not work for me. I tried swapping /bootstrap/ (and /system/bootstrap/) zImages, binaries, edited cmdline, anything I could think of. Always with the same outcome - black screen.
Yeah, it did the same for me. Did you read the logcat while device was in that screen? I saw something crashing there (can't remember), anyway that's not so useful if you need a whole new ROM just for the new kernel version. Maybe modules are causing problems?
Pretty offtopic, did you try the OTG function? I can't get it to work, most people say it should work out of the box but I wasn't able to use my USB mouse. Didn't check dmesg, though.
Click to expand...
Click to collapse
MaicoLinuX said:
ybea said:
Always with the same outcome - black screen.
Click to expand...
Click to collapse
Did you read the logcat while device was in that screen?
Click to expand...
Click to collapse
How could I? Android isn't running yet. It it Linux that either fails to load or silently panics. That is my understanding anyway.
The right thing to do would be to check how cm11 build compiles the kernel and the 2nd-init (or whatever it is), but I am not knowledgeable enough, nor keen enough to do that.
OTG is buggy, but usable. If it doesn't work, unplug and plug it again. It is quite normal for my defy to recognize a device on a second or third attempt. No problems with mice, keyboards, flash drives, usb hubs. On the picture in the previous post you can see it with a wireless keyboard+touchpad. If I remember correctly, the driver is set to output 200mAh max. Maybe you mouse draws more (rather unlikely for a mouse). It works for me with cm11-20161124. Also, I think the port outputs 5V even after a device is disconnected, so it unnecessary drains power, but I am not so sure about it.
dmesg should definitely log any new device. Even if android stays quiet. If there's silence, perhaps your cable may of wrong type. USB A to USB micro varies with resistancy across two pins. I don't remember the details. If it is OTG cable, then it should work.
Or simply you have dirty socket/plug pins.
ybea said:
How could I? Android isn't running yet. It it Linux that either fails to load or silently panics. That is my understanding anyway.
Click to expand...
Click to collapse
AFAIK 2ndInit keeps adbd running so you can take a logcat/dmesg from there, also faced the same issue while flashing CM10.2 OTG kernel on CM11 (what was I thinking?) and from there was able to see that something was crashing.
ybea said:
The right thing to do would be to check how cm11 build compiles the kernel and the 2nd-init (or whatever it is), but I am not knowledgeable enough, nor keen enough to do that.
Click to expand...
Click to collapse
Nah, I think just taking some time to understand the 2ndInit boot process is enough, anyway when I get some free time I'll check about this all.
About OTG things, now will install CM11 3.0 kernel and see how it works (I expect some unstability) but don't really need to use the Defy, it's just there for experiments
Anyway, my main goal now is to install Debian natively (on /data partition because of the size) and get X running. As you said, the 2.6.32 kernel puts the limit at Jessie, but that's not a problem as it's still mantained IIRC. I'm using a prebuilt rootfs but it keeps throwing Segmentation Fault whenever I try to chroot there, don't know what happens with this.
I'm doing the same on other 2 phones (Galaxy Y and Pocket Plus, ARMv6 and v7 respectively) but one doesn't boot my compiled kernels (?) and the other complains about the buggy framebuffer driver (thanks Samsung/Broadcom). I went pretty offtopic...
PD: tried to flash some JB Ice Gun Edition v2.02 from CWM and after reboot the phone just is stuck on boot splash, but WIUI runs fine. Maybe the JB IGE BootMenu is broken or something like that.
MaicoLinuX said:
About OTG things, now will install CM11 3.0 kernel and see how it works (I expect some unstability)
Click to expand...
Click to collapse
I didn't have any luck with flashing zips with only the kernel. This 20131213 rom is the only way i know of. But frankly, there's more instability then stability in it. For example only home and power buttons work. OTG also non functional.
MaicoLinuX said:
As you said, the 2.6.32 kernel puts the limit at Jessie, but that's not a problem as it's still mantained IIRC. I'm using a prebuilt rootfs but it keeps throwing Segmentation Fault whenever I try to chroot there, don't know what happens with this.
Click to expand...
Click to collapse
Jessie is no longer maintained. It stopped being oldstable about a month ago. AFAIK it changes little - apt continues to work; unless your applications have dependencies to newer libc, they should at least compile.
I build Debian root with debootstrap. On host machine:
Code:
debootstrap --arch armhf --foreign stable /debian http://http.debian.net/debian
Then mounting on Defy:
Code:
# Mount an sd card partition
mount -o remount,rw /
mkdir -p /debian
mount -o remount,ro /
mount -t ext3 -o noatime,suid,exec /dev/block/mmcblk0p2 /debian
mkdir -p /dev/shm
mount -t tmpfs -o rw,nosuid,nodev,noexec none /dev/shm
mount -t proc proc /debian/proc
mount -t sysfs sysfs /debian/sys
mount -o bind /dev /debian/dev
mount -o bind /dev/pts /debian/dev/pts
mount -o bind /dev/socket /debian/dev/socket
mount -o bind /dev/shm /debian/dev/shm
Then debootstrap second stage:
Code:
LD_PRELOAD= TMPDIR= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/root SHELL=/bin/bash /system/bin/chroot /debian /debootstrap/debootstrap --second-stage
Done. To login:
Code:
chroot /debian /bin/su -
Don't chroot into bash. It will leak Android's shell environment into Debian's.
Android has its own groups and users. To make Debian adapt:
Code:
dpkg -i android-permissions_0.2_all.deb
Edit /etc/group, so that it contains:
Code:
inet:x:3003:root,_apt
net_raw:x:3004:root
Edit /etc/passwd/:
Code:
-_apt:x:104:65534::/nonexistent:/bin/false
+_apt:x:0:65534::/nonexistent:/bin/false
Edit /etc/adduser.conf:
Code:
-LAST_SYSTEM_UID=999
+LAST_SYSTEM_UID=99900
-LAST_SYSTEM_GID=999
+LAST_SYSTEM_GID=99900
-FIRST_UID=5000
+FIRST_UID=500000
-LAST_UID=8999
+LAST_UID=899900
-FIRST_GID=5000
+FIRST_GID=500000
-LAST_GID=8999
+LAST_GID=899900
Then:
Code:
apt-get update
apt-get install dialog
apt-get install locales
dpkg-reconfigure locales
apt-get install less man
If apt can't resolve hostnames select a nameserver in /etc/resolv.conf.
This how I setup Debian on chroot. Some of these steps may be unnecessary - they got accumuated over the years and I don't fully remember reasoning behind them. Debian inside /data/ should work too. I can imagine there would be problems with permissions on fat32 /sdcard, but /data/ is ext3.

Categories

Resources