PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 Development (http://forum.ppcgeeks.com/forumdisplay.php?f=319)
-   -   NAND Testing - 05-25 Update: New LK, Recovery.img, Kernel Updates through Recovery (http://forum.ppcgeeks.com/showthread.php?t=134598)

MassStash 03-10-2011 03:43 AM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
release huh?

stuck in first Friggin Full Nand Dead Battery Loop O' Death.....

i mean FFNDBLO'DEATH............

natemcnutty 03-10-2011 05:38 AM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by MassStash (Post 2066632)
release huh?

stuck in first Friggin Full Nand Dead Battery Loop O' Death.....

i mean FFNDBLO'DEATH............

Just leave it plugged in for 10 minutes, unplug, yank the battery, let it rest for a few seconds, put it back together and turn it on.

Lmiller1708 03-10-2011 08:21 AM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by [ACL] (Post 2066630)
Ahh man dont wait on me fellas. i dont want to slow down progress. If we need a menu right away, then by all means plan it out and nate can commit. mtd parts? yall test?


this is how far i gotten in the recovery ..lol the image says it all

Looks great! :)

Nate did you get a chance to test my MTDparts last night?

Also I can try to add a patch to for the replimenu.

Questions:
1. How are we going to add the ln -s data/ppp etc/ppp?

2. Permissions? We can just use the script the Vogue team has used, but we will need to change a couple of things around to fit our needs. I'm going to work more on this today.

EDIT: Permissions File so far...
Code:

#Data
set_perm 1000 1000 0771 /data/app
set_perm_recursive 1000 1000 0644 0644 /data/app
set_perm_recursive 0 0 0777 0777 /data/modules
set_perm_recursive 0 2000 0755 0755 /data/ppp

#System
set_perm_recursive 0 0 0755 0644 /system
set_perm 1002 1002 0444 /system/etc/dbus.conf
set_perm 0 0 0700 /system/init
set_perm_recursive 0 2000 0755 0755 /system/bin
set_perm_recursive 0 2000 0755 0755 /system/xbin
set_perm 0 0 04755 /system/bin/pppd
set_perm 0 0 04755 /system/bin/su
set_perm 0 3003 02755 /system/bin/netcfg
set_perm 0 3004 02755 /system/bin/ping
set_perm 1014 2000 0550 /system/etc/dhcpcd/dhcpcd-run-hooks

These Functions are being called:
Code:

set_perm() {
    chown $1:$2 $4
    chmod $3 $4
}

set_perm_recursive() {
    chown -R $1:$2 $5
    chmod -R $3:$4 $5
}


[ACL] 03-10-2011 11:59 AM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by Lmiller1708 (Post 2066673)
Looks great! :)

Nate did you get a chance to test my MTDparts last night?

Also I can try to add a patch to for the replimenu.

Questions:
1. How are we going to add the ln -s data/ppp etc/ppp?

2. Permissions? We can just use the script the Vogue team has used, but we will need to change a couple of things around to fit our needs. I'm going to work more on this today.

EDIT: Permissions File so far...
Code:

#Data
set_perm 1000 1000 0771 /data/app
set_perm_recursive 1000 1000 0644 0644 /data/app
set_perm_recursive 0 0 0777 0777 /data/modules
set_perm_recursive 0 2000 0755 0755 /data/ppp

#System
set_perm_recursive 0 0 0755 0644 /system
set_perm 1002 1002 0444 /system/etc/dbus.conf
set_perm 0 0 0700 /system/init
set_perm_recursive 0 2000 0755 0755 /system/bin
set_perm_recursive 0 2000 0755 0755 /system/xbin
set_perm 0 0 04755 /system/bin/pppd
set_perm 0 0 04755 /system/bin/su
set_perm 0 3003 02755 /system/bin/netcfg
set_perm 0 3004 02755 /system/bin/ping
set_perm 1014 2000 0550 /system/etc/dhcpcd/dhcpcd-run-hooks

These Functions are being called:
Code:

set_perm() {
    chown $1:$2 $4
    chmod $3 $4
}

set_perm_recursive() {
    chown -R $1:$2 $5
    chmod -R $3:$4 $5
}


Well, we could try to figure out why the damn current link is getting trashed. Remember we have tons of links that android handles and they are all fine, so for 1 link to fail makes no sense. For now just either do it in the install script or the first-time.sh script inside system that gets executed once right after install. The initrd is already set for this so you can test that script out if you wish.

nate: i saw the kb commit.. i copied it to the download locations for the masses to enjoy.

edit: Also i do like your script so we can add that wherever we decide on the data/ppp link.

MassStash 03-10-2011 12:05 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
it boots automatically when it gets enough charge then dies mid boot cuz it doesn't friggin charge while running code.....

last time it happened i just held bootloader button combo til it booted and flash task29, this time the friggin light just turns off until i let go of the buttons, then it turns on adn gets me nowhere. Seriously pissed at this point. Prolly slowly ruining my battery every time it charges enough to boot then drains battery completely dry.... wtf....

derkaderka, got into replimenu but died mid attempt to wipe phone....waiting for second attempt....

Lmiller1708 03-10-2011 01:15 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by MassStash (Post 2066736)
it boots automatically when it gets enough charge then dies mid boot cuz it doesn't friggin charge while running code.....

last time it happened i just held bootloader button combo til it booted and flash task29, this time the friggin light just turns off until i let go of the buttons, then it turns on adn gets me nowhere. Seriously pissed at this point. Prolly slowly ruining my battery every time it charges enough to boot then drains battery completely dry.... wtf....

derkaderka, got into replimenu but died mid attempt to wipe phone....waiting for second attempt....


Pull the battery. Put the battery back in. Connect it to the charger, it will boot but let it. Do not touch it for a while. Atleast 30 minutes if not longer. It will charge.

Once that time has expired pull the battery and turn it back on. :) You will have a working phone again. If it does not boot then just put it and bootloader and reflash.

lionedas 03-10-2011 01:15 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by MassStash (Post 2066736)
it boots automatically when it gets enough charge then dies mid boot cuz it doesn't friggin charge while running code.....

last time it happened i just held bootloader button combo til it booted and flash task29, this time the friggin light just turns off until i let go of the buttons, then it turns on adn gets me nowhere. Seriously pissed at this point. Prolly slowly ruining my battery every time it charges enough to boot then drains battery completely dry.... wtf....

derkaderka, got into replimenu but died mid attempt to wipe phone....waiting for second attempt....


Can you charge your battery externaly first ?

natemcnutty 03-10-2011 02:20 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by [ACL] (Post 2066735)
Well, we could try to figure out why the damn current link is getting trashed. Remember we have tons of links that android handles and they are all fine, so for 1 link to fail makes no sense. For now just either do it in the install script or the first-time.sh script inside system that gets executed once right after install. The initrd is already set for this so you can test that script out if you wish.

nate: i saw the kb commit.. i copied it to the download locations for the masses to enjoy.

edit: Also i do like your script so we can add that wherever we decide on the data/ppp link.

ACL, I just pushed the rest of the changes for the keyboard, and I enabled the recovery partition in the script while I was at it. I disabled the ln -s on the moduels because it doesn't actually do what we want. The statement we have in there just links /data/modules to /data/modules/'uname'/modules whereas the old --bind would link the directory trees together. That was still bad since it made the directory indefinitely recursive...

natemcnutty 03-10-2011 02:23 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by Lmiller1708 (Post 2066673)
Looks great! :)

Nate did you get a chance to test my MTDparts last night?

Also I can try to add a patch to for the replimenu.

Questions:
1. How are we going to add the ln -s data/ppp etc/ppp?

2. Permissions? We can just use the script the Vogue team has used, but we will need to change a couple of things around to fit our needs. I'm going to work more on this today.

EDIT: Permissions File so far...
Code:

#Data
set_perm 1000 1000 0771 /data/app
set_perm_recursive 1000 1000 0644 0644 /data/app
set_perm_recursive 0 0 0777 0777 /data/modules
set_perm_recursive 0 2000 0755 0755 /data/ppp

#System
set_perm_recursive 0 0 0755 0644 /system
set_perm 1002 1002 0444 /system/etc/dbus.conf
set_perm 0 0 0700 /system/init
set_perm_recursive 0 2000 0755 0755 /system/bin
set_perm_recursive 0 2000 0755 0755 /system/xbin
set_perm 0 0 04755 /system/bin/pppd
set_perm 0 0 04755 /system/bin/su
set_perm 0 3003 02755 /system/bin/netcfg
set_perm 0 3004 02755 /system/bin/ping
set_perm 1014 2000 0550 /system/etc/dhcpcd/dhcpcd-run-hooks

These Functions are being called:
Code:

set_perm() {
    chown $1:$2 $4
    chmod $3 $4
}

set_perm_recursive() {
    chown -R $1:$2 $5
    chmod -R $3:$4 $5
}


I haven't tried the mtdparts yet, but I did just push the change for the ppp. It's this: ln -s /data/ppp /system/etc
That will create a directory link that says any calls to /system/etc/ppp will go to /data/ppp. I believe this will work when /etc is mounted from /system/etc because it will still see the /etc/ppp directory as /data/ppp.

As for permissions, I really don't know much about them, and I feel that a lot of our issues may be stemming from them. Wish I knew more to help there, but I haven't gotten in to that yet.

Lmiller1708 03-10-2011 02:39 PM

Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)
 
Quote:

Originally Posted by natemcnutty (Post 2066790)
I haven't tried the mtdparts yet, but I did just push the change for the ppp. It's this: ln -s /data/ppp /system/etc
That will create a directory link that says any calls to /system/etc/ppp will go to /data/ppp. I believe this will work when /etc is mounted from /system/etc because it will still see the /etc/ppp directory as /data/ppp.

As for permissions, I really don't know much about them, and I feel that a lot of our issues may be stemming from them. Wish I knew more to help there, but I haven't gotten in to that yet.

We just figured out that the symlink /data/ppp /etc/ppp was not working because of this line in the init: mount -o remount,ro /system
Remove it and it will work like a charm. :)


All times are GMT -4. The time now is 11:52 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0