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-21-2011 08:35 PM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by MassStash (Post 2071718)
so with the sdcard BS, we're at what exactly? Testing those ideas?

Acl, fn no worky in boot code, so wuah wuah to that one.... annnnnd, what's good with terminal in recovery? Eh eh? Dat'd be pretty shweet, specially with green font, idk...

Also, I'll reiterate = !@#$%^&*()+=-_£€\/'";:?>. My keyboard fn shiznit is workin business stylee.... nothin tweaked in install-seq either, straight from bootenv

Sent from my sdcard hanicapped MassStashed kustomkookedkernel of nandroid (woot mute button endcall)

So, FN not working in the boot code is because we don't have the character maps being injected into recovery like it is being injected into system. Pretty quick and easy fix.

For sdcard, it's because we are exporting EXTERNAL_STORAGE as /mnt/sdcard and then trying to symlink /mnt/sdcard with /sdcard. It fails because /sdcard already exists. ACL gave a couple of options which we will have to look at. Personally, I think we just create a different folder name in initrd like /sdc1 so that Android can have at /sdcard.

MassStash 03-21-2011 08:38 PM

The export is new then I suspect? N what is the purpose of now exporting /mnt/sdcard instead?

Sent from my sdcard hanicapped MassStashed kustomkookedkernel of nandroid (woot mute button endcall)

natemcnutty 03-21-2011 08:52 PM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by MassStash (Post 2071734)
The export is new then I suspect? N what is the purpose of now exporting /mnt/sdcard instead?

Sent from my sdcard hanicapped MassStashed kustomkookedkernel of nandroid (woot mute button endcall)

The idea is to fix the issue with App2SD and other apps that save to sdcard. I guess AOSP puts it at /mnt/sdcard, and we all want to follow that.

[ACL] 03-21-2011 08:57 PM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by natemcnutty (Post 2071733)
So, FN not working in the boot code is because we don't have the character maps being injected into recovery like it is being injected into system. Pretty quick and easy fix.

For sdcard, it's because we are exporting EXTERNAL_STORAGE as /mnt/sdcard and then trying to symlink /mnt/sdcard with /sdcard. It fails because /sdcard already exists. ACL gave a couple of options which we will have to look at. Personally, I think we just create a different folder name in initrd like /sdc1 so that Android can have at /sdcard.

I'm working on this right now actually. /sdcard is only for backwards compatibility and thats why its a symlink.

This link explains it better than i ever could

http://forum.cyanogenmod.com/topic/1...-or-mntsdcard/

Edit: alternate option is to go back to the way it was. But some apks were bitching about it and this is why i ventured into this.

Edit2: Ok fixed.. we need to mod the initrd to remove /sdcard before android starts. easy 1 line fix.

But there are 2 fixes in android (it shold be one). I'm not sure why we have 2 files for vold there should only be one. But to be safe i modded both. /system/etc/vold.conf has /sdcard in there as the path which needs to be modded to /mnt/sdcard. Same goes for vold.fstab

once this is done, restart and boom sdcard back to action. I'm going to upload a new android shorty.. hopefully for a last time cuz im hoping nate will be able to embed the reocvery in the nhb :-) so we can being useing the updates for these simple fixes :-)..

anything else i should look into before i pass out?

tiger2wander 03-21-2011 10:29 PM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by [ACL] (Post 2071743)
But there are 2 fixes in android (it shold be one). I'm not sure why we have 2 files for vold there should only be one. But to be safe i modded both. /system/etc/vold.conf has /sdcard in there as the path which needs to be modded to /mnt/sdcard. Same goes for vold.fstab

IMO, vold.fstab look like linux's custom board config (native linux is /etc/fstab) and /system/etc/vold.conf one is for android's linux :P

--
Best regard!
Uoc Nguyen

MassStash 03-21-2011 11:13 PM

Acl, Nah man, I think you got it for tonight brudda

Tiger, yea they prolly are very simliar seeing that android is a LINUX distro..... if you can figure out how to mess with the android one, that'd be great

Sent from my sdcard hanicapped MassStashed kustomkookedkernel of nandroid (woot mute button endcall)

[ACL] 03-22-2011 12:40 AM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by natemcnutty (Post 2071683)
Sounds great. Just curious on this, why don't we just cp the modules into system instead of symlinking from data? I think the issues we were having before probably had to do with mounting system as ro before android started.

i think originally it was because of size. Modules are big so we put them in data. Also because if we copy them and upgrade a kernel, we will overwrite the original ones. and cant revert. And if we keep coping with multiple kernel support then we balloon up system.

Or we can go the cyanogen route and mount em compressed as files.

Code:

# Mount compressed filesystems
mount squashfs loop@/system/lib/modules/modules.sqf /syste/lib/modules ro

mount squashfs loop@/system/xbin/xbin.sqf /system/xbin ro

However they have sqsh4 support on their kernel and we only have 3. So making them is a bitch. But can be done. Good news with this is that deploying modules is a breeze since its just one file we need to read during boot. The above line gets added to the rc file and voila, modules are solid. He even mounts his busybox that way. lol.

T_D_H 03-22-2011 12:41 AM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
RHOD500 with latest build, still un able to wifi scan, what do I need for the older build to get that working? im unsure which files I should be flashing with as re flashing gets time consuming

[ACL] 03-22-2011 01:00 AM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
Quote:

Originally Posted by T_D_H (Post 2071828)
RHOD500 with latest build, still un able to wifi scan, what do I need for the older build to get that working? im unsure which files I should be flashing with as re flashing gets time consuming

since it works for everyone else and their mother. Cant help you. But i have good news, im uploading a new build shortly so just wait till thats done.

Remember you shouldnt have to do anything to get stuff working. Thats the kind of bugs we are trying to squish. If you actually had to dive into adb to get something done, then that's a bug.

So maybe in 20 mins or so everything should be ready.

MassStash 03-22-2011 01:07 AM

Re: NAND Boot Testing - 03-11: FRX05 on NAND (data working again!)
 
ready n waitin


All times are GMT -4. The time now is 07:08 PM.

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


Content Relevant URLs by vBSEO 3.6.0