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)

natemcnutty 03-04-2011 05:33 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Just as an update, I swapped init.android out for the one from our rootfs and added ueventd.rc and the symlink of /sbin/ueventd (pointing to ../init.android) to my initrd and it boots into Android beautifully.

Next, I added in pppd, netd, su, and sqlite3 to see how it functions with those. Everything seems to be up and running smoothly for initrd.

Now I'm working on moving some of this into /system instead of initrd. Will post back when I have a little more done :)

[ACL] 03-04-2011 05:48 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by natemcnutty (Post 2064424)
Just as an update, I swapped init.android out for the one from our rootfs and added ueventd.rc and the symlink of /sbin/ueventd (pointing to ../init.android) to my initrd and it boots into Android beautifully.

Next, I added in pppd, netd, su, and sqlite3 to see how it functions with those. Everything seems to be up and running smoothly for initrd.

Now I'm working on moving some of this into /system instead of initrd. Will post back when I have a little more done :)

awesome..

i talked to sine about ueventd.rc and it looks like its for gingerbread only. That part of the rc doesnt belong in this base and should be removed. On the gigerbread build we can put it back.

Which leads me to my next question. We doing gingerbread cyanogen or wha? this thing is turning into a masterpiece ..

natemcnutty 03-04-2011 06:47 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2064431)
awesome..

i talked to sine about ueventd.rc and it looks like its for gingerbread only. That part of the rc doesnt belong in this base and should be removed. On the gigerbread build we can put it back.

Which leads me to my next question. We doing gingerbread cyanogen or wha? this thing is turning into a masterpiece ..

OK, I removed those two files then. I still don't get why data isn't working, but that is what I'm looking into right now.

Also, for some reason, when booting we only see 3 of the mtdparts. I did an ls of /dev/block and /dev/mtd/ during the install script to find that the mtd4 was not being created until we get into Android. That means I can't format or reference our cache partition, and when I do it, Android will not boot since there is no /cache mount point. Any idea why this might be?

As for cyanogen, I don't know what all would be needed to get it running, but I'd be willing to look into it ;)

Edit: You sure we don't need/want ueventd? I was just looking at our sysinit.rc and has this:
Code:

service ueventd /sbin/ueventd
    critical

Without it, it throws an error that it couldn't find it and is disabling the daemon. I think it is required by our init.android but not the other one that the vogue used originally. I'm leaving it in since we are only going up to gingerbread from here, and it appears Froyo is happy with it being there.

[ACL] 03-04-2011 09:41 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by natemcnutty (Post 2064459)
OK, I removed those two files then. I still don't get why data isn't working, but that is what I'm looking into right now.

Also, for some reason, when booting we only see 3 of the mtdparts. I did an ls of /dev/block and /dev/mtd/ during the install script to find that the mtd4 was not being created until we get into Android. That means I can't format or reference our cache partition, and when I do it, Android will not boot since there is no /cache mount point. Any idea why this might be?

As for cyanogen, I don't know what all would be needed to get it running, but I'd be willing to look into it ;)

Edit: You sure we don't need/want ueventd? I was just looking at our sysinit.rc and has this:
Code:

service ueventd /sbin/ueventd
    critical

Without it, it throws an error that it couldn't find it and is disabling the daemon. I think it is required by our init.android but not the other one that the vogue used originally. I'm leaving it in since we are only going up to gingerbread from here, and it appears Froyo is happy with it being there.

another thing stine said make sure we grab the correct init.android. They arent the same from froyo and gingerbread so we need to make sure we get them from the correct git.

cyanogen is easy .. had 5.0 running before but im interested in the later one. So in time i will upload those tars as well.

anyways i wont be back till later tonight so keep attacking it :-)

Edit: i saw you issue. I'm fixing it in my commit tonight. Our initrd wasnt creating the directories for all the new nandparts thats all. We are all set now.

natemcnutty 03-05-2011 06:36 AM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2064501)
another thing stine said make sure we grab the correct init.android. They arent the same from froyo and gingerbread so we need to make sure we get them from the correct git.

cyanogen is easy .. had 5.0 running before but im interested in the later one. So in time i will upload those tars as well.

anyways i wont be back till later tonight so keep attacking it :-)

Edit: i saw you issue. I'm fixing it in my commit tonight. Our initrd wasnt creating the directories for all the new nandparts thats all. We are all set now.

Yeah, the init.android I grabbed was the one from the eclair-rootfs which was what we used for Froyo. The Gingerbread git is different :)

As for the directories, I tried making the cache folder then mounting it during the flashall part, but I couldn't get it to work. I'll check out the commit tomorrow so I can see what I missed :P

[ACL] 03-05-2011 07:23 AM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by natemcnutty (Post 2064619)
Yeah, the init.android I grabbed was the one from the eclair-rootfs which was what we used for Froyo. The Gingerbread git is different :)

As for the directories, I tried making the cache folder then mounting it during the flashall part, but I couldn't get it to work. I'll check out the commit tomorrow so I can see what I missed :P

A really productive night. The data issue ended up being the location of the ppp directory like i mentioned before. We have to move it to a new location and created a link to the original spot. For my test i just moved it to the /cache partition but thats not a good idea. Should be moved somewhere to data but not sure where yet. Means the androidupdate.gz structure has to change a bit and the install script will need to make the link.

To replicate my success just move the ppp folder inside /system/etc to another writable parition like data. Make sure the directory and files have permission for everyone to read and write.

So im going to commit my initrd. I liked your commits before .. thanks for cleaning it up. Major changes are mostly to recognise cache. And it also checks for the recovery which i have not finished making the installer for. i'll upload the install script as well. Also we can go back to either the jonpry ril or emwe. The ril i created isnt ready for our use. Its prob not even worth it to create another ril until i talk to stine about it.

Also i want to remove most of the replimenu options except for Install and boot to recovery. When it boots to recovery we will be able to do everything.

Lmiller1708 03-05-2011 01:04 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2064623)
A really productive night. The data issue ended up being the location of the ppp directory like i mentioned before. We have to move it to a new location and created a link to the original spot. For my test i just moved it to the /cache partition but thats not a good idea. Should be moved somewhere to data but not sure where yet. Means the androidupdate.gz structure has to change a bit and the install script will need to make the link.

To replicate my success just move the ppp folder inside /system/etc to another writable parition like data. Make sure the directory and files have permission for everyone to read and write.

So im going to commit my initrd. I liked your commits before .. thanks for cleaning it up. Major changes are mostly to recognise cache. And it also checks for the recovery which i have not finished making the installer for. i'll upload the install script as well. Also we can go back to either the jonpry ril or emwe. The ril i created isnt ready for our use. Its prob not even worth it to create another ril until i talk to stine about it.

Also i want to remove most of the replimenu options except for Install and boot to recovery. When it boots to recovery we will be able to do everything.

Great ACL! Your Androidinstall.tgz is maked at forbidden on the server... :(

So I can just go back to the original RIL and ln -s pppd? or Just the ln -s etc to data?

As for the replimenu I have most of that done already. I will up my file if you want it, but it's pretty simple... :)

EDIT: Couldn't get the cache to mount either... Nate did you ever get it working?
EDIT2: Just needed to make the /cache folder.. 8-[

[ACL] 03-05-2011 03:11 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by Lmiller1708 (Post 2064663)
Great ACL! Your Androidinstall.tgz is maked at forbidden on the server... :(

So I can just go back to the original RIL and ln -s pppd? or Just the ln -s etc to data?

As for the replimenu I have most of that done already. I will up my file if you want it, but it's pretty simple... :)

Ahh shit. Ill check on it.

Well we still need a modded ril so the one jonpry put up should work. But the link must exist pointing to your new ppp location

ln -s /data/temp_etc/ppp /system/etc/ppp

And the /data/temp_etc/ppp all the rghts in the world.

Oo so ur replimenu is already slim.. upload

Lmiller1708 03-05-2011 06:56 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2064709)
Ahh shit. Ill check on it.

Well we still need a modded ril so the one jonpry put up should work. But the link must exist pointing to your new ppp location

ln -s /data/temp_etc/ppp /system/etc/ppp

And the /data/temp_etc/ppp all the rghts in the world.

Oo so ur replimenu is already slim.. upload


Ok I'm trying all of that now... :)

Did you make changes to your sysinit.rc file... That's All I really need.

Also I noticed that the MAKEDEV file might have been wrong too...
This is What I think it should be:

mknod -m 0666 /dev/block/mtdblock4 b 31 4 <<<----You had 3 instead of 4??

and

mknod -m 0666 /dev/mtd/mtd4 c 90 8 <<<---Not sure about the 8...


Attached is my replimenu... I'm still not able to get the install-seq.sh script to run, I think is has something to do with where it is running from though.

Also if you run the fix permissions Andriod for me atleast boots up with no problem. :)

Edit: Still no data :(

EDIT2: I can see the 3g Icon... But No data yet.

natemcnutty 03-05-2011 09:06 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2064709)
Ahh shit. Ill check on it.

Well we still need a modded ril so the one jonpry put up should work. But the link must exist pointing to your new ppp location

ln -s /data/temp_etc/ppp /system/etc/ppp

And the /data/temp_etc/ppp all the rghts in the world.

Oo so ur replimenu is already slim.. upload

Thanks for the heads up. I'm heading out right now, but I'll play with this when I get back. For replimenu, I completely removed it from my script and added a section that checks for the androidupdate.tgz, applies if found, and renames it to androidupdate-disabled.tgz. It's a pretty simple chunk of script, but I can upload when I get back if you want ;)


All times are GMT -4. The time now is 06:40 PM.

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


Content Relevant URLs by vBSEO 3.6.0