Cyanogen 12.1 test builds for Raspi2 - Raspberry Pi Original Development

Download:
https://www.androidfilehost.com/?w=files&flid=39635
Let me know if these work out for you. You can smack the ramdisk to the original kernel zimage to make the boot.img partition.
Source will be released if this works...
Cheers!

hey!
i would really love to test this.
im just now sure how to get the different .img-files to my SD card (win or osx)
do i partition manually first and then write each IMG seperately? what file system?
i'm really interested in this since im planning to construct my very own RPi2-Android-Car-Headunit...

I really wold like to test this out, I would really appreciate when someone gives install instructions

@Childofthehorn
don't take this the wrong way but can you highlight the zImage your referring too?
are you talking about the android generic device kernel?
are you talking about pulling it from another distro?
just a tad more explanation and I can give this a try. I have scoped out your git for some other clues but come up empty

feherneoh said:
As there is no kernel provided, try raspbian kernel first
I will check it later as I have a "working" lollipop kernel for rPi2 somewhere, but I have to find it
Click to expand...
Click to collapse
Thanks, if we can get some source of stuffs working i would give building a crack as well

feherneoh said:
Building CM12.1 using the same device tree that I used for AOSP 5.1, will see if it works
Click to expand...
Click to collapse
Hi, news about it?

feherneoh said:
I'm buildind inside screen, so I cannot scroll (I have no idea, how to do that) and the error message is outside of the 80x50 terminal I'm using
Click to expand...
Click to collapse
Many thanks for your effort.
If you could build it and boot it, please create your own topic so you are able to upgrade changelog and so on..

feherneoh said:
I'm buildind inside screen, so I cannot scroll (I have no idea, how to do that) and the error message is outside of the 80x50 terminal I'm using
Click to expand...
Click to collapse
Well, You could redirect the output to a file and read that file using vim. To redirect to file run
Code:
command > file.txt

Is it possible to write install instructions?

yes,I want to obtain the install instruction.
Sent from my MI 2S using Tapatalk

I'm interested too!

partition boot as fat,system as ext4, cache as ext4, and data as ext4, then restore file.
Sent from my MI 2S using Tapatalk

feherneoh said:
I know how to do this, and I would need to use command &> file.txt, as I need stderr, too
Click to expand...
Click to collapse
To put also stderr to the same file use:
Code:
command > file.txt 2>&1
To use different files:
Code:
command > file.txt 2> err_file
Another possibility to see output and stderr on screen and also put it in a file:
Code:
command 2>&1 | tee file.txt

i have a working rom for raspberry pi 1, 2 and 3. the only issue im having is getting the wifi and bluetooth to work. any suggestions?

How to install it ?

Badfiler said:
How to install it ?
Click to expand...
Click to collapse
Why install something that isn't working?

Related

*OUTDATED* ROM porting for kaiser/vogue [Linux] NOOB friendly!

THIS IS NOW OUTDATED!!
It uses the old sqsh method WITH a rootfs. So if you're using the NoMoRootfs method, this won't work. Please use the already complete builds in the Kaiser/Vogue threads as they are working the best at this moment.
DISCLAIMER:
I take no responsibility for anything that may happen to your phone/computer. Use at your own risk.
PURPOSE:
This is for informational/testing purposes. And for people to stop asking, "can somebody port X rom!!! PLZ!!!"
PREFACE:
I made this as a quick tool to port ROMs from the Dream/Sapphire forums to work with our phones. It's a very quick and dirty script I threw together using bash, so there's probably some problems with it. This tool is simply designed to make a copy of the Dream/Sapphire ROM. Once you get the setup, it's really easy and you'll be porting like crazy.
I did this all on Ubuntu 9.10 so things might not work properly if you're using another distro.
THANKS:
All credit goes to the people that made this possible, in no particular order...
dzo, vilord, mssmison, zen, enatefox, pmos, jamezelle, craig0r, cyanogen, and so many more. If I forgot you, I'm sorry, but you know if you helped in some way.
THE SETUP:
1) Download this file
2) Extract the folder to your desktop. Then copy and paste the following code into the terminal:
Code:
sudo mv -f $HOME/Desktop/Android/genext2fs /bin/genext2fs; sudo chmod 755 /bin/genext2fs; sudo dpkg -P squashfs-tools; sudo dpkg -i $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo rm -r $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo chmod 777 $HOME/Desktop/Android/*.build.script
3) Now go into synaptic package manager, search for squashfs-tools, select it and under Package, check Lock Version so that way it won't try to update.
4) Now cruise over to the Dream android development forum or the Sapphire android development forum and download the ROM you would like to port. Place the zip file in the Android folder. (no need to rename)
5) Place any .apk's you would like built into the system in the Apps folder.
ADVANCED SETUP:
If you would like to tweak the system before building, open the script in a text editor and you'll find a line to uncomment that will halt the script until you are ready.
HOW TO RUN:
Either run the script from a terminal
Code:
./$HOME/Desktop/Android/HERO.build.script
or
./$HOME/Desktop/Android/Donut.Build.script
Or double click and Run in Terminal
You will get a prompt for your password to use the sudo command. THIS IS NOT SAVED ANYWHERE OR MAGICALLY SENT TO ME. It is just to get the system.sqsh setup for you to use.
You will now see a Donut/Hero folder inside the Android folder. Inside that will be a nice little system.sqsh with the date ready to boot!
*Rename to system.sqsh when you put on your SD card*
Grab the latest basefiles from vogue-android and you're good to go.
~~~~~~ To get an output of what's happening run in a terminal as described above but add " > build.txt" and you'll see a txt file in the Android folder. ~~~~~~~
CHANGING SYSTEMS:
If you want to port a new rom, replace the .zip.
UPDATES:
1) Download the updates from HERE
2) Extract to the Android folder overwriting if necessary.
3) Copy and paste the following code into a terminal:
Code:
sudo chmod 777 $HOME/Desktop/Android/*.script
CLEANUP:
If you follow the advanced setup and/or accidentally closed the terminal before the build finishes, run the cleanup script. This will unmount everything that might be mounted and delete all folders that are made during the process.
DOWNLOADS:
If you're too lazy or just want a quick link:
Main "Android porting" folder
Updates
Input, testers, bugs, and tweaks to the scripts are appreciated!
FAQ:
Why does my system.sqsh not work?
Most likely cause is that you're not using the correct version of squashfs-tools. You'll have to find version 3.X for the distro you're using. Version 4.X will NOT work!!!
When I try to boot a system.sqsh I just made I keep getting something about android power wake locks. WTF?
You're probably trying to port an eclair or cyan ROM. These don't work at the current state. Hopefully soon I'll get these working.
Will update more when they arise.
CHANGELOG:
11-27-09:
-Created a cleanup script in case the terminal is closed during the build process.
-Bug fixes in Donut and Hero scripts
11-24-09:
-Added an Apps folder for apk's you want built into the system.
-Bug fixes in scripts
11-22-09:
-Combined everything needed into a zip file
-WAY easier to setup
11-20-09:
-Added feedback to make more user friendly
-Append time to system.sqsh
loserskater said:
Input, testers, bugs, and tweaks to the scripts are appreciated!
Click to expand...
Click to collapse
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
garynsa said:
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
Click to expand...
Click to collapse
What did you change?
Glad to see it's working.
loserskater said:
What did you change?
Glad to see it's working.
Click to expand...
Click to collapse
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
garynsa said:
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
Click to expand...
Click to collapse
Make sure you use the genext2fs that I referenced.
That one works with -a and might take care of some issues. try that and see if it works.
Updated script to now move system to a Hero or Donut folder.
Working on the cyanogen build now...
EDIT: Here's a cyanogen script that gets it to boot, but sits at a black screen. I haven't had much time to test it so it might boot further than that if you leave it. If somebody wants to test this out or tweak it in some way go for it.
It uses the donut.sqsh in the Android folder so you shouldn't have to do anything with it except make it executable.
EDIT 2: Still working on cyan builds... that script didn't work.
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
jamezelle said:
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
Click to expand...
Click to collapse
Good point, forgot to mention that. Updated first post.
I'm hoping it will help people start to learn to tweak system's. But I have a slight feeling wer're going to start seeing a lot of "MLIGN/DWANG/etc's Android Rom" threads from random people.
Hi
Was able to port the DWANGs build using your script. Thanks a lot for making life this simple. Howev3er, hero build is still not working. Tried your genesxt2fs. Is it possible to get the links to correct base hero version to use? I tried magic and normal version. It keeps giving me black screen and doesnt completely boot. I think the base hero version is not the right one i am using
Thanks
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
loserskater said:
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
Click to expand...
Click to collapse
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
garynsa said:
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
Click to expand...
Click to collapse
Glad to see its working. Thanks for the feedback!
Most things working
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
garynsa said:
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
using u
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
Click to expand...
Click to collapse
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
loserskater said:
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
Click to expand...
Click to collapse
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
garynsa said:
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
Click to expand...
Click to collapse
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
loserskater said:
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
Click to expand...
Click to collapse
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
garynsa said:
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
Click to expand...
Click to collapse
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
loserskater said:
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
Click to expand...
Click to collapse
Android folder... but its not a big deal as one can easily change it while startign the script

ClockworkMod Recovery for the GALAXY TAB

Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
& DRockstar for his script
download http://dl.dropbox.com/u/500010/GalaxyTab/galaxytabroot&clockworkmod.zip
thanks DRockstar for the script
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
DRockstar said:
I thought this script was pretty cool when noobnl told me about it...
INSTRUCTIONS FOR INTEL MAC & LINUX:
Note: Mac and Linux users may be prompted to enter administrative password, as adb server requires sudo permissions to start.
No drivers required.
Extract the zip file.
Put the run.sh inside the directory you just extracted.
Open Terminal. Use the cd command to get to the directory. If you extracted inside the Downloads folder, it would be easy in Terminal as so:
Code:
cd ~/Downloads/epic.aio.v2.01
Now give permissions and run it:
Code:
chmod +x run.sh
./run.sh
THANKS TO FIRON FOR CODE MAKING THE SAME SCRIPT BOTH INTEL MAC AND LINUX COMPATIBLE.
Click to expand...
Click to collapse
awsome.. thanx, now just need some good detailed way of enable my tab to make phone calls and i'll be having myself a great holidays .. again thanx lots
Wow, thanks! Downloading now and gonna install immediately!
If it works (and I believe it will), then I can only say thanks A LOT to you, Deodex and drockster for this.
<3
Sweet, grabbing now.
Sent from my GT-P1000M using XDA App
It works, but its pretty rough. The screen flickers, and sometimes the navigation is kinda iffy. But backup/restore works and you can flash .zips.. and that's whats important. This should get polished in the next week or so
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
noobnl said:
thanks to deodex & drockster & me
download http://www.sdx-downloads.com/devs/noobnl/galaxytabroot&cloxckworkmod.zip
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
Click to expand...
Click to collapse
This is something that Noobnl has put together with using his other script. As far as getting recovery fully functional and not having the screen flicker and others issues, I will continue working on that.
Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
Anyway the continue development of this will be discussed on the #ModADroid-Galaxy-Tablet channel!
YES Thanks to all that helped!! This would have saved me a couple days ago. Good to know that its available now.
It does flicker when you scroll the options, but at least it works!
I'll try again:
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
jeebspawnshop said:
I'll try again:
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
Click to expand...
Click to collapse
I have not loaded this myself. I do not have windows machine. Go to the Irc channel to get some more help or ask Noobnl or other thread. He said to run the run.bat I think it needs to be where you have sdk or adb?
works as advertised. hopefully we get a fix on that flickering issue. thanks!
noobnl said:
Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
& DRockstar for his script
download http://www.sdx-downloads.com/devs/noobnl/galaxytabroot&cloxckworkmod.zip
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
Click to expand...
Click to collapse
Ok I am confused, how do I install this please?
camblue said:
Ok I am confused, how do I install this please?
Click to expand...
Click to collapse
If you can't glean the process from the fairly straightforward instructions you quoted, then you might want to do some more reading. Just do as the message says.
Wow dude!!
camblue said:
Ok I am confused, how do I install this please?
Click to expand...
Click to collapse
the .bat file has to be in the same directory as adb/SDK.
Noob question: what can we do with this? Is this the same as rooting you phone?
knightnz said:
If you can't glean the process from the fairly straightforward instructions you quoted, then you might want to do some more reading. Just do as the message says.
Click to expand...
Click to collapse
Ok first off if you have no useful comments on how to install then DO NOT reply good lord i HATEEEEE those who obviously know what to do and refuse for whatever reason to illuminate the process but would rather tell me that to read LOL the instructions state to:
1. debugging enabled (ok i get this)
2.run.bat (what the f*ck does this mean????) should I connect via ADB and run .bat???? how do I do that,,,,,c'mon now)
Again if you can not aid me in explaining this process then just dont bother replying!
Thank you
camblue said:
Ok first off if you have no useful comments on how to install then DO NOT reply good lord i HATEEEEE those who obviously know what to do and refuse for whatever reason to illuminate the process but would rather tell me that to read LOL the instructions state to:
1. debugging enabled (ok i get this)
2.run.bat (what the f*ck does this mean????) should I connect via ADB and run .bat???? how do I do that,,,,,c'mon now)
Again if you can not aid me in explaining this process then just dont bother replying!
Thank you
Click to expand...
Click to collapse
If you don't know how to run a batch file in Windows, then you might want to consider switching to a Mac
Noobnl has packaged this into a one-click method... you just extract the folder into your /android-sdk-windows/tools folder and double click run.bat while your phone is connected to USB with USB debugging enabled.
If you still can't figure it out, then you should just give up pal
infamousjax said:
If you don't know how to run a batch file in Windows, then you might want to consider switching to a Mac
Noobnl has packaged this into a one-click method... you just extract the folder into your /android-sdk-windows/tools folder and double click run.bat while your phone is connected to USB with USB debugging enabled.
If you still can't figure it out, then you should just give up pal
Click to expand...
Click to collapse
Can some post a clean nandroid backup?
Thank you for your efforts!
I am a noob in flashing or compiling custom roms though (locked bootloader on my only other android device, the Motorola Milestone).
I have read that this allows us to inject a nandroid backup into the rom, but would like to know more. What are the benefits of this recovery? What can it be used for? Can i for example flash a stock android build onto my Tab?
Thanks in advance for some helpful, non flamer answers...

Mounting a .RFS file in OSX

In case anyone wants to mount one of the .RFS files out of a firmware image (in particular, the "hidden.rfs" in the full 550MB+ CPW firmware which contains the full version of NovaHD) from within OS X, you can do so via these commands;
sudo mkdir /Volumes/RFS
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount filename.rfs
Take note of the drive number the command returns, then,
sudo mount_msdos /dev/diskX /Volumes/RFS (replace X with the appropriate number).
You then have the RFS file mounted & available to copy files from.
Under Linux you just mount it as a loopback device, OS X doesn't really support this functionality though, so this is a good workaround.
If you do need a FULL Euro firmware to play with, then you can get one of the full 550MB+ images from the FUS server;
http://fus.samsungmobile.com/Phone_Binary/9/GT-P1000_P1000XWJJ7_P1000CPWJJ5_P1000XXJK5_P1000XWJJ7_XW_CPW.zip.enc
Get the decoder util from: http://db.tt/i0yM0Py
Copy it into the same folder as the .enc file, and from a windows commandline, in that folder, run:
Decodertest.exe GT-P1000_P1000XWJJ7_P1000CPWJJ5_P1000XXJK5_P1000XWJJ7_XW_CPW.zip.enc 7161632
Click to expand...
Click to collapse
(Remove the space before _XW that the forum is putting in for some reason)
See: http://forum.xda-developers.com/showthread.php?t=838961 for more info.
I'd recommend against flashing .RFS files from this archive unless your tab is orginally an unlocked model from the UK. Flashing the entire .tar from Odin will almost certainly freeze unless you're running an original untouched CPW firmware. (You can check this with the Check FUS tool from the market).
Cool to know, thanks. I've wanted to reinstall Nova HD since I upgraded first, but didn't know where it could be found, and Samsung don't offer a way to reinstall it.
Hell, if it was on the Market I'd just buy it again, but that option isn't available - and I won't use Gameloft's horrendous broken process to buy it either.
Sent from my GT-P1000 using XDA App
Tried it but RSF folder is empty or it looks like its just loading,
Sent from my GT-P1000 using Tapatalk
antz88c said:
Tried it but RSF folder is empty or it looks like its just loading,
Click to expand...
Click to collapse
You've missed something then as I used those exact steps and it works fine. And what do you mean "loading"!?
knightnz said:
You've missed something then as I used those exact steps and it works fine. And what do you mean "loading"!?
Click to expand...
Click to collapse
The RFS folder is empty, and there's the round loading icon (lower right of Finder), seems its trying to load the contents but it wont
Sent from my GT-P1000 using Tapatalk
antz88c said:
The RFS folder is empty, and there's the round loading icon (lower right of Finder), seems its trying to load the contents but it wont
Click to expand...
Click to collapse
What was the output of the various commands?
Which RFS file(s) are you trying to mount, and from where?
What version of OS X are you running?
hidden.rfs from JM6, running 10.6.5.
Nothing peculiar with the terminal outputs.
Sent from my GT-P1000 using Tapatalk
antz88c said:
hidden.rfs from JM6, running 10.6.5.
Nothing peculiar with the terminal outputs.
Click to expand...
Click to collapse
How big is the JM6 hidden.rfs? The one from the CPW ROM is over 200MB.
About the same.
Your original post didnt say what hidden.rfs to use, so since im on JM6, thought i'd mount the one from JM6, but should still mount right?
Maybe will try the hidden.rfs from JK2.
Sent from my GT-P1000 using Tapatalk
antz88c said:
About the same.
Your original post didnt say what hidden.rfs to use, so since im on JM6, thought i'd mount the one from JM6, but should still mount right?
Maybe will try the hidden.rfs from JK2.
Click to expand...
Click to collapse
Doesn't matter what .RFS file it is, the instructions should mount ANY valid .RFS file.
you can find something interesting like Nova in the XWJJ3 firmware (hidden.rfs).
I had to mount in ubuntu with loop, because on Mac os I couldent see the content of the mounted volume, once I clicked on it the mouse pointer changed to loading and stucks!
knightnz said:
In case anyone wants to mount one of the .RFS files out of a firmware image (in particular, the "hidden.rfs" which contains the full version of NovaHD) from within OS X, you can do so via these commands;
sudo mkdir /Volumes/RFS
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount filename.rfs
Take note of the drive number the command returns, then,
sudo mount_msdos /dev/diskX /Volumes/RFS (replace X with the appropriate number).
You then have the RFS file mounted & available to copy files from.
Click to expand...
Click to collapse
Works nicely, thanks !
I've been searching for this thread like mad Thanks!

[q] weird problem with adb pull command

i have been trying to pull my back ups from phone via adb pull. but i keep on running in a weird probelm.. i cant pull any system file as well as the data/media/clockword mod. if i type that command , it just runs the directory of various commands.. but i can still pull any file from my /sdcard command
i hope you guys can help me as i have searched everywhere but i cant seem to find an answer .
khuzema9 said:
i have been trying to pull my back ups from phone via adb pull. but i keep on running in a weird probelm.. i cant pull any system file as well as the data/media/clockword mod. if i type that command , it just runs the directory of various commands.. but i can still pull any file from my /sdcard command
i hope you guys can help me as i have searched everywhere but i cant seem to find an answer .
Click to expand...
Click to collapse
You need an insecure kernel to pull system files (/system, /data). I'm not sure if there are other ways, but I do know that you can adb pull anything if you have ro.secure=0 in default.prop of the kernel's ramdisk. You can easily do this to your own kernel by using dsixda's kitchen to extract boot.img and edit it. If you need help, just post there (or you can post boot.img and I can do it quickly for you).
mwalt2 said:
You need an insecure kernel to pull system files (/system, /data). I'm not sure if there are other ways, but I do know that you can adb pull anything if you have ro.secure=0 in default.prop of the kernel's ramdisk. You can easily do this to your own kernel by using dsixda's kitchen to extract boot.img and edit it. If you need help, just post there (or you can post boot.img and I can do it quickly for you).
Click to expand...
Click to collapse
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..
khuzema9 said:
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..
Click to expand...
Click to collapse
You don't simply edit boot.img. Its a kernel and must be compiled from source.
khuzema9 said:
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..
Click to expand...
Click to collapse
I just use dsixda's kitchen and it's a command under the 'advanced options' menu in unpack boot.img. You can get the latest dsixda kitchen here. Download the .zip to your computer. To get it setup, you either run it in linux (I just use a virtual machine of ubuntu) or use cygwin. You can get instructions in post 3 of this thread. I used to use cygwin and it wasn't too hard to get setup. The instructions are pretty easy to follow. When you are pushing things to your phone, I usually do it in recovery (though it doesn't always have to be) and don't forget the 'adb shell mount /system' or whatever partition you are pushing to before you use adb push.
scottx . said:
You don't simply edit boot.img. Its a kernel and must be compiled from source.
Click to expand...
Click to collapse
That's not really true. It's easy to unpack boot.img into the ramdisk and zimage. zimage must be compiled (maybe that's what you're thinking), but there are many things you can edit with a text editor in the ramdisk (like the value to make the kernel insecure that I posted previously).
ok i will defiantely work on that , and i sure hope to end up with questions which i will definately ask
khuzema9 said:
ok i will defiantely work on that , and i sure hope to end up with questions which i will definately ask
Click to expand...
Click to collapse
is there any way to push backups from usb drive to the clockworkmod folder , if i just keep them handy

[SCRIPT][17.04.22][v1.2.0] MIUI Power Menu Patcher - add recovery & fastboot reboot

[SCRIPT][17.04.22][v1.2.0] MIUI Power Menu Patcher - add recovery & fastboot reboot
This patch your system to have got recovery & fastboot reboot from power menu.
Download latest release
Changelog
-Added visual menu
-Added function to restore backups
-Added ability to supply environment directory as argument with `-d <dir>`
-Added a lot of code improvements
-Fixed correct build number in backup folder
-Fixed some Busybox issues
Thanks to @DarthJabba9 for all the work of this update.
All releases and changelogs
Source code on Github
How-To
This script is to use from Android, need a terminal app as Terminal Emulator for example and a rooted device. Tested in Redmi Note 2 with Xiaomi EU & MultiROM
Run from terminal this
Code:
su
sh DIR/miui-powermenu-patcher.sh
Change "DIR" to the location where is the script.
Pro tip: move the script to /data and rename to mpp for example to have easy access from terminal.
Example (click image)
Patch sh no such, following dir change it, any solution?
Sent from my Redmi Note 2 using Tapatalk
if i move file to /data so what command..still DIR?
rockadz9 said:
View attachment 4095317
Patch sh no such, following dir change it, any solution?
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
The problem is that tail search for $0 variable and in your case is miuipm.sh, so as in the script the current directory is changed and the script isn't in it, occurs that.
Thanks for report it, I will fix it. ATM run as: sh $(pwd)/miuipm.sh
harizamzi said:
if i move file to /data so what command..still DIR?
Click to expand...
Click to collapse
Run from terminal this
Code:
su
sh DIR/miui-powermenu-patcher.sh
Change "DIR" to the location where is the script.
Click to expand...
Click to collapse
Please read...
Updated to v1.1.1
Deic said:
The problem is that tail search for $0 variable and in your case is miuipm.sh, so as in the script the current directory is changed and the script isn't in it, occurs that.
Thanks for report it, I will fix it. ATM run as: sh $(pwd)/miuipm.sh
Please read...
Click to expand...
Click to collapse
Yes mate my ROM 7.3.23 xiaomi.eu, this file change name & directory same problem. (Miui-powermenu-patcher.sh =old version / mpp.sh =new version)
Any solution?
Sent from my Redmi Note 2 using Tapatalk
rockadz9 said:
Yes mate my ROM 7.3.23 xiaomi.eu, this file change name & directory same problem. (Miui-powermenu-patcher.sh =old version / mpp.sh =new version)View attachment 4096809
Any solution?
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
Did you try run as "sh /data/mpp.sh" (add "/" before "data") or "cd /data" and after "sh mmp.sh"?
Deic said:
Did you try run as "sh /data/mpp.sh" (add "/" before "data") or "cd /data" and after "sh mmp.sh"?
Click to expand...
Click to collapse
I try run as "sh data/mpp.sh" and run as "sh /data/mpp.sh"
Sent from my Redmi Note 2 using Tapatalk
rockadz9 said:
I try run as "sh data/mpp.sh" and run as "sh /data/mpp.sh"
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
and the result is the same? that is strange... what is your busybox version? and you can provide miui-powermenu-patcher.log under /data/miui-powermenu-patcher folder? looks like you have not got proper unzip busybox built-in command...
@Deic There seem to be 2 problems:
1. wget.zip - it seems that it does not get decoded properly with base64; in any case, the error log shows that it cannot be unzipped
2. The call to patch.sh - you might want to provide the full pathname
Edit: I think the wget problem is that the zip file is corrupt - probably a result of a wrong START_LINE
DarthJabba9 said:
@Deic There seem to be 2 problems:
1. wget.zip - it seems that it does not get decoded properly with base64; in any case, the error log shows that it cannot be unzipped
2. The call to patch.sh - you might want to provide the full pathname
Edit: I think the wget problem is that the zip file is corrupt - probably a result of a wrong START_LINE
Click to expand...
Click to collapse
The START_LINE is good in all versions released, I tested before of release them and all is fine... And the output of no patch.sh is because, no wget = no patch.sh. I will wait to @rockadz9 to see what is the issue, I maybe due to bad unzip or that seems.
Deic said:
and the result is the same? that is strange... what is your busybox version? and you can provide miui-powermenu-patcher.log under /data/miui-powermenu-patcher folder? looks like you have not got proper unzip busybox built-in command...
Click to expand...
Click to collapse
Yes results is the same, version Busybox1.26-2_arm64. and patch log attch
Sent from my Redmi Note 2 using Tapatalk
@rockadz9 Open the script file with a text editor, and add these lines near the top of the file
Code:
alias basename="busybox basename"
alias dirname="busybox dirname"
alias tail="busybox tail"
alias base64="busybox base64"
alias unzip="busybox unzip"
alias sed="busybox sed"
alias awk="busybox awk"
Then add 7 to the value of START_LINE, save the file, and run the script again.
1.2.0 released!
All the nice stuff of this update is thanks to @DarthJabba9, I did almost nothing.
Go to OP to download!
It's work for me, first one i run as 'sh data/mpp.sh and i got message no such....
and second time i run as 'sh /data/mpp.sh its work fine. thx bro
I'm trying to get this to work on stable EU version 7.0.6. After running the script the menu can be displayed but only the reboot option works. Both the fastboot and recovery cause the screen to become blurred and nothing happens. Pressing the back button clears the screen and I'm back at the point prior to pressing the power button. I've attached the script log. Can anyone tell me what's wrong ?
Cannot show text bellow addition icon
MIUI 9 7.9.7 global dev
worked great
thanks a lot

Categories

Resources