PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   Booting Android from a Different Folder? (http://forum.ppcgeeks.com/showthread.php?t=120528)

[sammich] 05-08-2010 12:29 PM

Booting Android from a Different Folder?
 
I'm kinda obsessed with organizing everything... So I hate having clutter anywhere. And that includes files/folders on my phone and computer! Right now I have 2 folders on the root of my SD card, and no files. One folder is "Program Files" and the other is "My Documents". I want to try Android again, but I want it inside "Storage Card\Program Files\Operating Systems\Android" instead of the root of the SD card, or the Android folder on the root of the SD card.

I have tried adding "rel_path="Program Files\Operating Systems\Android" to the startup.txt file, but it doesn't work.

Any ideas?

makkonen 05-09-2010 01:01 PM

Re: Booting Android from a Different Folder?
 
My guess is that the Space in 'Operating Systems' and 'Program Files' is what's killing it. You might be able to escape those somehow, but I'm not sure how to do it (it would need to be some sort of posix-compliant method).

Also, it should have forward slashes instead of backslashes, since it's being accessed from linux instead of Windows. Otherwise, the rel_path value should be able to hold a multi-level path without problems. (Unless there are problems I'm forgetting about.)

you could try
Code:

rel_path=Program\ Files/Operating\ Systems/Android
(that escapes the space characters) but I'm pretty sure that won't actually work. You can also try
Code:

rel_path=Program\040Files/Operating\040Systems/Android
(that escapes the spaces a little differently) which might work, but might not -- I really have no idea.

DomSim 05-19-2010 01:08 PM

Re: Booting Android from a Different Folder?
 
any follow up on this? where do i add the ref_path? and in the first post, there is only three quotation marks and in the second post none. i get an error when i added it when launching haret about ref_path being an unknown command

DomSim 05-19-2010 03:13 PM

Re: Booting Android from a Different Folder?
 
nevermind, i figured it out. whole command is as follows;
set cmdline "rel_path=*directory of choice* "
replace *directory of choice* with your location of haret.exe. remember as posted above to use forward slashes instead of back slashes . as for needing a forward slash when a space is in the file path i do not know as i have mine at android\andboot on my storage card so my path was just android/andboot

Unknownforce 05-19-2010 03:42 PM

Re: Booting Android from a Different Folder?
 
the original reason of this post was because of the spaces causing problems because Program Files has a space in it, it was probably only taking the first portion and trying to consider "Files" as an argument rather than a continuation of the path.

But yes, that's the proper location to set that setting. However, if you use Gen.Y's DualBoot app, you have to set the proper location in the registry (HKCU\Software\Gen.Y\DualBOOT\AndroidBootFolder) as well otherwise it won't detect the proper android boot location and it won't allow you to boot through dualboot.

boredandtattooed 05-19-2010 04:02 PM

Re: Booting Android from a Different Folder?
 
Quote:

Originally Posted by DomSim (Post 1762261)
nevermind, i figured it out. whole command is as follows;
set cmdline "rel_path=*directory of choice* "
replace *directory of choice* with your location of haret.exe. remember as posted above to use forward slashes instead of back slashes . as for needing a forward slash when a space is in the file path i do not know as i have mine at android\andboot on my storage card so my path was just android/andboot

do we add this as a new line totally? set cmdline "rel_path=*directory of choiceXXX* "

Quote:

Originally Posted by Unknownforce (Post 1762307)
the original reason of this post was because of the spaces causing problems because Program Files has a space in it, it was probably only taking the first portion and trying to consider "Files" as an argument rather than a continuation of the path.

But yes, that's the proper location to set that setting. However, if you use Gen.Y's DualBoot app, you have to set the proper location in the registry (HKCU\Software\Gen.Y\DualBOOT\AndroidBootFolder) as well otherwise it won't detect the proper android boot location and it won't allow you to boot through dualboot.

i freakin Love this place... i hated all that clutter to0... so now everything can go in say storage/android-dont really care if they are lose in here just not on my root

DomSim 05-19-2010 04:17 PM

Re: Booting Android from a Different Folder?
 
if you already have the line "set cmdline" where it is setting other options then you can just ad the rel_path=*directory of choiceXXX* part in to the string of stuff. this + gen y's dual boot makes this a real deal for me :)

edit:
here is my startup.txt just for reference
Code:

set ramsize 0x10000000
set ramaddr 0x10000000
set mtype 2292
set KERNEL zImage
set initrd initrd.gz
set cmdline "lcd.density=240 msmts_calib=0x9f.0x39a.0x35c.0x78 7x00.a11=500 msmvkeyb_toggle=off pmem.extra=1 gsensor_axis=2,1,3 pm.sleep_mode=1 hw3d.force=1 physkeyboard=rhod400 htc_hw.force_cdma=1 rel_path=android/andboot "
boot


boredandtattooed 05-19-2010 04:33 PM

Re: Booting Android from a Different Folder?
 
Quote:

Originally Posted by DomSim (Post 1762351)
if you already have the line "set cmdline" where it is setting other options then you can just ad the rel_path=*directory of choiceXXX* part in to the string of stuff. this + gen y's dual boot makes this a real deal for me :)

edit:
here is my startup.txt just for reference
Code:

set ramsize 0x10000000
set ramaddr 0x10000000
set mtype 2292
set KERNEL zImage
set initrd initrd.gz
set cmdline "lcd.density=240 msmts_calib=0x9f.0x39a.0x35c.0x78 7x00.a11=500 msmvkeyb_toggle=off pmem.extra=1 gsensor_axis=2,1,3 pm.sleep_mode=1 hw3d.force=1 physkeyboard=rhod400 htc_hw.force_cdma=1 rel_path=android/andboot "
boot


sweet man thanks.. yeah i use dual boot too, so it had its own set of commands.. cleared it up perfectly for me.. thanks

DomSim 05-19-2010 04:34 PM

Re: Booting Android from a Different Folder?
 
awwww just noticed it still makes a bunch of files on the root of the storage card. still its only a few in comparison to what it was before.


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

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


Content Relevant URLs by vBSEO 3.6.0