yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] rbsfou:
CM6.1 Nightly 220

Hi, i'm using Nightly Build 220 on my G1.

I removed the 05sdmount script which came with the build

Then ran your 1.4.0 patch 'a2sd' function (which created it's own 05sdmount)

However, the script does not seem to run at boot - as /sd-ext is NOT mounted

# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 48.2M 0 48.2M 0% /mnt/asec
/dev/block/mtdblock3 90.0M 85.0M 5.0M 94% /system
/dev/block/mtdblock5 89.8M 36.6M 53.2M 41% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mtdblock4 30.0M 1.1M 28.9M 4% /cache
/dev/block/vold/179:1
6.8G 64.4M 6.7G 1% /mnt/sdcard
/dev/block/vold/179:1
6.8G 64.4M 6.7G 1% /mnt/secure/asec

I can run it manually 'later' from adb, but the apps i moved don't appear.

# sh /etc/init.d/05mountsd
/dev/block/mmcblk0p2: clean, 362/250480 files, 33682/500269 blocks

I'm well experienced with linux but very new to android, so is there something i'm not doing right?

Thanks
[G1 Android Development] Firerat:
can't see why it wouldn't work

the 'stock' 05mountsd lacks a hacky workaround

the new kernels find the mmcblk device asynchronously, and for some reason /dev/block/mmcblk* are created very late, but only for some people

the 05mountsd in the script , blindly creates /dev/block/mmcblk(0,0p1,0p2,0p3)

which resolves that issue

if sd-ext is not mounted on first boot, but fine after that then it could be that the partition was somehow corrupt, the first pass fixes it, but requires a reboot to fix ( e2fschk exit code 2 )

other than that, idk.. not looked at 220, I'm on 219

Edit: driskl on cm forums shoutbox has just mentioned problems with 220

I'll take a closer look later
[G1 Android Development] rbsfou:
Hi Firerat, thanks for the reply.

No it's not that, the script does mount it fine when run manually. I've fsck'd the partition from recovery and in a usb reader on a pc to be sure too.

I'm not sure what this 'vold' is (something like diskarbitrationd on osx or devicekit on desktop linux?), but it does seem to be some sort of abstraction above the block device....but yeah, as you mentioned your script does mknod fine (i even mounted manually to check that).

Also you've got a 1.3.5 (lower version number) on the Cyanogenmod forum, but it has a more recent date - should i be using this instead?
[G1 Android Development] mr.incredible:
Your scripts don't seem to work on #222

+1 here... I just flashed from 219 to 222.

When I run your 140 patch I get a bunch of access denied read only mumbo jumbo.

When the app2sd gets to the where do you want it. I only show about 15 APKs in data and nothing in sd-ext.

Your stuff has been working great for me up to now...
[G1 Android Development] Firerat:
http://forum.cyanogenmod.com/topic/...-issues-i-hope/page__view__findpost__p__24386

has the latest version, which fixes it

you can also flash this
[G1 Android Development] mr.incredible:
Rockin! Thanks!

I actually rebooted again for the third time (other reasons) and it suddenly started working. Go figure?
[G1 Android Development] Firerat:
its quite nasty

its been around since cm6, but seems to have become much worse since g1 nightly 220,, up till then I didn't have any problems myself.. but now I have no /dev/block/mmcblk0 files on boot

I imagine many more will have problems to
[G1 Android Development] rbsfou:
So am i right in thinking we can use everything EXCEPT a2sd from this 1.4.0 script, and use the a2sd 1.3.5 script?
[G1 Android Development] Firerat:
su
sh /sdcard/fr-patch141-ALPHA.txt

has new menu, no need for options

its alpha, not really tested it

edit

beta , tested a bit more

as above no need for options, has a menu

the new random bootanimations, randomly selects a bootanimation.zip from /sd-ext/bootanimations/

you can either rename the zips, or put them in sub folders

complete waste of time, but I thought it was fun
[G1 Android Development] rbsfou:
Thank you ever so much Firerat, this new version works great on CM6.1 Nightly 222 :)
[G1 Android Development] bylokk:
some other topic here:

I just want to tell about my personal experience with dalvik-cache on SD-Ext:

Having lots of apps on my phone (that maybe, maybe not might be useful one day) I always had to put dalvik-cache on SDext (since CM6 with Firerat's script). That has been this way for over a year now.

Now i decided to uninstall some apps, put Dalvik-cache back on internal storage and use Custom MTD Partitioning. (about 15MB free space left on data)

WOW, that really boosted my G1 to performance levels I never thought of!

I know some people always suggested this, but uninstalling apps is just as difficult for me as ignoring RSS feeds ... ;)
[G1 Android Development] sparksco:
I was also noticing that dalvik-cache does not wipe off of the ext partition when I choose wipe dalvik-cache in amon ra recovery. When I mount my ext to my computer guess what, it's still there. I was thinking about writing a small flashable script that will wipe it on reboot after flashing to avoid having to wipe the entire ext partition. Any time you flash a new update, wheather it's a full wipe required rom or not, dalvik-cache should be wiped.
[G1 Android Development] Firerat:
I stopped worrying about dalvik-cache a long time ago

if its miss-matched, it gets deleted and regenerated.

the worst that can happen is you have old dex files for apps you don't have anymore, eating up space.

But titanium backup has a dalvik-cache cleaner, so I've not bothered writing a script

edit:

and while I remember, if you can,, keep dalvik-cache on /data, its much faster especially if you use swap
[G1 Android Development] sauudmir:
will the v1.4.0 work on cm 6.1rc1?
[G1 Android Development] skhell:
No, it didn't worked on mine.

Try this one http://xdaforums.com/attachment.php?attachmentid=427810&d=1288186793 from here http://xdaforums.com/showpost.php?p=8848453&postcount=626 , it worked for me, at least setting the sd-ext mount.
[G1 Android Development] sauudmir:
yeap it worked greatly

thanks :)
[G1 Android Development] R3N0V4D0:
bump for update
[G1 Android Development] oneG:
Feels like I've done too much. Activated to many options. CM6.1 seems to be slower than the nightlies especially when I run 3d apps. How do I revert? Or what particular option do I turn off?
[G1 Android Development] sparksco:
sh /sdcard/fr-patch141-ALPHA.txt ??? rev
[G1 Android Development] sparksco:
Thank you, I will try the shabang and remount and report back later
[G1 Android Development] Firerat:
tbh, I usually find RCs to be 'less' than nightlies leading up to them

not really played with 6.1RC1 yet

to turn stuff off

sh /sdcard/fr-patch141.txt rev dc2x lwp swap

but, it might be worth doing a nandroid backup, wiping everything ( including sd-ext )

and seeing how 6.1rc1 performs 'stock'

most of these scripts were written for cm5 !!
[G1 Android Development] vermaekansh:
hey from where you got CM6.1 can you post the link please for the CM6.1 and respective Gapps.
[G1 Android Development] Firerat:
its cm6.1rc1 NOT cm6.1

and gapps, don't get excited they will be backed up and restored

btw it is not really any different to recent nightlies

edit

http://forum.cyanogenmod.com/files/category/7-htc-dream-htc-magic/

and newer stuff

http://mirror.teamdouche.net/?device=dream_sapphire&type=nightly
[G1 Android Development] oneG:
So I can haz everything on the menu?

Or does the check come from performance?
[G1 Android Development] dogsz4life:
Hello, I am trying to runt fr-patch140.txt with command

sh sdcard/fr-patch132.txt all

but i get a lot of not found! messages. How can I deal with this? Thanks!

solution found: busybox was missing
[G1 Android Development] deuse:
If you are doing it by ADB then just put sh sdcard/fr-patch132.txt and read what comes up.

Or in term use

su

sh /sdcard/fr-patch132.txt

again watch what comes up on the screen.It may tell you you need to flash a zip file it leaves behind.
[G1 Android Development] radioactiveman:
Hi,

I'm wondering, what is the actual difference between using the option a2sd and using sdext + ddb?
[G1 Android Development] bylokk:
is it my imagination that using swap with swapfile is faster than using a swap partition? or is my sdcard faulty...?
[G1 Android Development] Firerat:
the main advantage ( and the reason I did it ) is that you can easily resize swap

I have a swap partition of 128mb, a hangover from sense ROMs

with CM6 128mb was not working well at all, so I resized my partition ( just shrank it )

then figured that it was much easier to do 'in rom' if it was a swapfile on sd-ext
[G1 Android Development] ZeeRaxx:
Does this firerat script "fr-patch141-BETA.txt"

and this options [2]	[ ] (sdext)	sd-ext mount for CM6

work this way?

If I have ext2 (now with AmonRA 1.7.0 option ext2->ext3) and FAT32 partitions on my SD card (both were used on CyanogenMod 4.2.15.1 with apps2sd) it will mount my ext3 partition so I will be able to work like before (with apps2sd) on my new ROM based on CM 6.0.0 with FROYO?

Because after running this script phone just won't load (hangs on bootloader animation)

EDIT: Also tryied with options:

[1]	[ ] (a2sd)	FroYo Apps 2 sdext

[2]	[ ] (sdext)	sd-ext mount for CM6

[10]	[ ] (dc2x)	dalvik-cache bind mount

[11]	[ ] (ddb)	/data/(data,system) bind mount

but it wrote in third step "EOF".. so I'm not sure whether it run correctly.

I haven't moved any app to ext so far - always pressed 0, becuse they all are already there from CM4.
[G1 Android Development] Firerat:
There is a 'typo' in 141 beta

To fix it

sed s/\#cat/cat/ -I /sdcard/fr-patch-141-BETA.txt
[G1 Android Development] ZeeRaxx:
Tryied:

sed s/\#cat/cat/ -I /sdcard/fr-patch141-BETA.txt

error:

unknown option -- Ibusybox v1.16androidfull (2010-08-01 14:57:25 EDT) multi-call binary.

What about small parameter -I -> -i ? Seems to it changed something.

So does the script what i described above, right? Which all options i have to set, to make it boot.

EDIT: okey all fixed, script has run correctly, but phone still won't load after applying your script FireRat.
[G1 Android Development] Firerat:
Oops. -i not -I

Auto cap in dolphin hd :(
[G1 Android Development] ZeeRaxx:
Okey all fixed, script has run correctly, but phone still won't load after applying your script FireRat.

a ticked following options:

[1] [ ] (a2sd) FroYo Apps 2 sdext

[2] [ ] (sdext) sd-ext mount for CM6

[10] [ ] (dc2x) dalvik-cache bind mount

[11] [ ] (ddb) /data/(data,system) bind mount

data 1,5 moved to ext - y

move any apps to ext - no app moved

restart phone -> won't go further than booting animation

(using this ROM ->

androidforum.cz/p-e-m-l-i-k-t5433.html

)
[G1 Android Development] Firerat:
get me a logcat

and you don't need dalvik-cache bind mount and /data/data bind

use one or the other, there is no point in having /data totally empty

if you still have problems try cm6, if that works the problem is the rom

it is likely a problem with ddb, as that is new
[G1 Android Development] ZeeRaxx:
Well this pemlik CM6-stable build based ROM works ok. But I want to have my apps there, without formatting whole SD CARD and making new partitions. Thats why I'm using your script, to make my ROM see apps installed on ext3 from previous CM4.

Logcat is attached to this post (just rename pdf back to txt - I had to do this, because of limitation for uploading this filetype)

I also tryied just mouting ext for CM6, option [2] - same issue, phone hangs on bootloader screen.
[G1 Android Development] Firerat:
can't be bothered, just upload as txt, no restriction on txt

( look at the file YOU downloaded from the OP, it is txt !! )
[G1 Android Development] ZeeRaxx:
Well still I'm pretty sure that I can't. There is a limit for filesize of text file.

There is catlog:

http://pastebin.ca/1977515

Anywat thak you very much for you effort with resolving this issue.

EDIT: one more note

When I used your 1.35b script it worked, but phone showed no free memory, even after moving apps with FROYO storing on external storage.

When I had CM4, there was FAT32 shown as SD CARD, ext2 partition showed as external part of internal phone memory and there was also phone memory. With 1.35b script, there was only FAT32 and phone memory which was full (100kB free). However the ext2 part has at least 100MB free.
[G1 Android Development] Firerat:
well it looks to me like it did get past the boot animation

start again and don't use the beta, use 140
[G1 Android Development] ZeeRaxx:
Erm, I did this catlog with ROM before using your script via cmd line on computer. I don't know how to make catlog after applying your script, because phone won't load to android system.

Or shall I enable logging by default and then us SD CARD reader to get logcat?

SCRIPT 140:

danger detected

/system/etc/init.d/20userunit patched to check in /data/local/changes will take effect on next boot

/dev/block/mmcmlk0p2: recovering journal
/dev/block/mmcmlk0p2: clean, 1188/249856 files, 195498/499713 blocks

mount sd-ext installed
[G1 Android Development] Firerat:
ffs , what is the point of giving me a logcat to diagnose a problem when the Effing logcat WILL NOT DETAIL THE EFFING PROBLEM

please think !!

on pc , with phone plugged in to usb

adb logcat

if you don't know how to use adb , please search..

BUT, use 140, its stable not beta
[G1 Android Development] Firerat:
bit peed off

had planed on putting a pumpkin on my head, but it seems that the harvest this year was a bit poor, as all the damn pumpkins were too small for my fat head :(

managed to get it to fit with some cuts and stitching up with wool :)

still not as good as the last one I did :(
[G1 Android Development] Firerat:
I often advise people to type less and read more

this confusion has cropped up alot

cm6 does not know about ext partition, no-one has coded it in

customMTD will likely get you what you want, please take some time to read the thread, the OP, 2nd and 3rd post , the first 20, and last 40 should give you all the info you need

link is in my sig
[G1 Android Development] ZeeRaxx:
I have to agree with you Firerat - sometimes is less more.

Okey, watched for an hour catlog, it seems to be in some kind of loop.

logcat after an hour of run (just last lines):

http://pastebin.ca/1977580

one more:

http://pastebin.ca/1977581

------------------------------------------------------------------------

customMTD - ty for advice, but it seems, that there is high possibility to get to point from where i can't go back to previous state. I'll read trought it.
[G1 Android Development] Firerat:
start fresh, i.e wipe data and /sd-ext

there is no reason why fr-a2sd-135b.sh.txt should not do what you need

but as far as I can see in those logcats, besides some things that fix_permissions would fix it is booting past the bootanimation
[G1 Android Development] sparksco:
remount and shabang

ok so here is my report on these after installing. Before I installed I already had apps2ext working, as well as my 32mb swap partition. It seems that after doing this my RAM usage went way up. It was using all of my 32mb swap partition and my phone was still slow! Usally it only uses about 14mb. So I had to disable my swap partition, and created a 64mb swap file with 60 swappiness. Everything is fine except for my widgets will not load. I am using ext4. Should I repartition my sdcard to 64mb the next time I do a full wipe to install a rom? Also does it matter weather I install these before apps2ext? Could really use some advise for this, thaks in advance.
[G1 Android Development] sparksco:
Edit: Seems that rev option is not available on shabang or remount, just says they are installed :eek:

Phone is very unresponsive, can not make or receive calls, or send text.
[G1 Android Development] PureLoneWolf:
I was recommended to use this on my Desire running CM6.1.0RC1 so I could get apps2sd working.

I ran the patch and chose the apps2sd option, followed the instructions and moved everything to the ext3 partition.

When I rebooted, nothing was available, the whole phone was like it was factory reset..

I am presuming from this that I did something wrong - So am restoring from backup to try again.

My ext3 partition was configured a while back when I was trying LeeDroid and is set to 1gb

So, did I mess it up or is it expected to have to setup from scratch afterwards?

Cheers

****EDIT****

I should add that all I want is to utilise the 1gb ext3 to give me more internal memory without every 3rd app not being 100% due to widgets not being available.

Maybe I should setup from a full wipe and re-install...it wouldn't be the end of the world I suppose...
[G1 Android Development] Firerat:
omg !!!

errm tell me how they would effect the phones performance..

the shabang, just adds #!/system/bin/sh line to some scripts.. so they work in ash and bash ..

the remount.. errm just remounts /system with feedback

go back to ds 219, that is better than 6.1rc1

edit:

FFS HOW MUCH SWAP ARE YOU USING.

dear oh dear

32mb swap, 20 swappy
[G1 Android Development] Firerat:
use customMTD

and if you want me to look at why its not working

df -h
ls -lh /data/
ls -lh /sd-ext
du -hcs /sd-ext/* /data/*

give me the output of the above
[G1 Android Development] PureLoneWolf:
I already restored from Nandroid to go back to how it was unfortunately.

I am considering a full wipe and start completely from scratch.
[G1 Android Development] sparksco:
Ok first off take a chill pill before you give yourself a stroke. I am testing your scripts and giving you feedback about the ram, and you are asking me questions about scripts that you made. Not really sure why the performance was affected, but I did think that maybe you would know why since you wrote the scripts. I have a 32mb of swap partition with 60 swappiness (too much swappiness?). Anyways did full wipe of everything, even ext. Flashed rom, installed shabang and remount scripts, then set up a2ext.

Edit: I'm thinking it's the rc1 rom as well that is causing the high ram usage. Swap works better than compache but it uses about 32mb of swap even with a 64mb swap file on the ext partition! Will test on latest nightly and report back any ram issues.
[G1 Android Development] Firerat:
yes, I'm finding issues with rc1..

I've not been using it heavily but I get lag problems

ds 219 was much better

reduce swappiness, 60 has been too high with cm6, try 20
[G1 Android Development] SinghDroid:
Question/comments about the script

Firerat, why do you have two functions doing almost the same thing? datadatabind and data_data_bind. Looks like one is called when we pass in the ddb parameter, and the other I think is called from withing the apps2ex function.

data_data_bind definitely has an unmatched EOF as well since the cat EOF is commented out. Didn't read thru the entire script so I'm not sure if you had a reason to do this.
[G1 Android Development] Firerat:
yeah, I know

data data bind will be removed from a2sd

and the cat thing, yeah I know, read the thread I posted a sed that fixes it

its marked beta for a reason.. its beta

edit

oh , ant the reason I had a #cat, was because I had sh highlighting on.. I forgot to undo it

I do actually run a script to 'join' all the bits up, so I've added a bit which fixes my forgetfulness automagicly
[G1 Android Development] SinghDroid:
Thanks for the reply, i figured you accidentally left the #cat in. Not complaining about the beta at all, just giving feedback :D

Thanks for the awesome script! BTW love the new(?) menu system.
[G1 Android Development] sparksco:
Thank you sir, 20 swappiness on newest nightly is much more stable, and your scripts work wonders as usual. I did however go gack to compache @ 26% which also works well, of course I have to disable swap first. I have not had any issues with this beta version. Although I have not tried the new menu feature, I just type the commands in like normal.
[G1 Android Development] Firerat:
added beta2 to the OP
[G1 Android Development] sparksco:
Well I got all my updater-scripts cleaned up, not that you care...Removed all the silly system links and set permissions, and fixed the flash to ext part. No need to mount anything in recovery before flashing, works like a dream evey time, apps2ext and all launchers on ext works great too. Free'd up some room on the system partition to only use 93% on g1, I'm sure mytouch has more room. Donation coming soon!
[G1 Android Development] Firerat:
http://forum.cyanogenmod.com/topic/9731-magpie-a2sdext-preview/

^^^ replaces the a2sdext script ;)
[G1 Android Development] QUEDRO:
I am trying to run on my official MT3G OTA aosp 2.2 (new spl, new radio) lwp within the patch to fix 3D in angry birds bu I get this:

##################################################################

# All In One Patcher AIOMenu Version 1.4.1 BETA2

##################################################################

[1] [ ] (a2sd) FroYo Apps 2 sdext

[2] [ ] (sdext) sd-ext mount for CM6

[3] [X] (lwp) Live Wallpaper (work around) \*

[4] [ ] (lsd) Leagacy /system/sd mount point

[5] [ ] (swap) swap

[6] [ ] (shabang) shabang

[7] [ ] (remount) system remount script

[8] [ ] (fb)Facebook 1.2.x sync for G1/Dream/Trout

[9] [ ] (fixp) fix_permissions patch ( for CM5.0.x )

[10] [ ] (dc2x) dalvik-cache bind mount

[11] [ ] (ddb) /data/(data,system) bind mount

[12] [ ] (rba) random bootanimations

[13] [ ] (fsdext) force sd-ext mount script

------------------------------------------------------------------

Enter the Number ( separate multiple with space )

Enter 0 to install sellected

0

expr: syntax error

[: 67: unknown operand

expr: syntax error

[: 67: unknown operand

===================================================

It appears that this 'ROM' does not use 'run-parts'

which is required for some of these scripts to work

Therefore I will only install none 'run-parts'

===================================================

lwp_=0: not found

swap_=0: not found

DCbind2Cache_=0: not found

DCbind2SD_=0: not found

rba_=0: not found

ddb_=0: not found

=========================================

Options that require run-parts disabled..

=========================================

/system/etc/init.d/*userinit*: No such file or directory

============================================

/data/local/userinit.d/15GPU_perms installed

changes will take effect on next boot

============================================

=============================

hw3d.xml is already installed

=============================

#
[G1 Android Development] Firerat:
hmm, must have missed something, I did rename some variables

Oh, and it won't fix Angry Birds anyway

read what it does in the second post
[G1 Android Development] Firerat:
ok, I know where the problem is, its only a problem when you don't have /system/etc/init.d

which means that it wouldn't work for you anyway, the script needs to run on boot and your OTA Rom Doesn't run scripts on boot ( at least not properly like in a CM rom )

I'll fix the script but

lwp won't fix angry Birds

the 'good stuff' in this script won't install, because your rom lacks run-parts

Edit: fixed script attached, its been broken for some time.

you need to use eval when setting a variable based on a variable ;)

e.g.

undoinitopts ()
{
for i in lwp swap DCbind2Cache DCbind2SD rba ddb;do
${i}_="0"
done
printmsg "Options that require run-parts disabled.."
return
}

should be

undoinitopts ()
{
for i in lwp swap DCbind2Cache DCbind2SD rba ddb;do
eval ${i}_="0"
done
printmsg "Options that require run-parts disabled.."
return
}
[G1 Android Development] QUEDRO:
The reason I was trying to run this scrips, because somebody pointed me in MT3G 2.2 OTA forum to this as fixing the angry birds problems.

Now, I wonder if I can't run this because of my ROM lack of "run-parts" how come others could run it on official OTA?

actually I will try to find the person in that post who did...
[G1 Android Development] Firerat:
yeah, it will do nothing to fix angry birds