[Q&A] [lt01][CWM Advanced Edition] PhilZ Touch - Galaxy Tab 3 Q&A, Help & Troubleshooting

Q&A for [lt01][CWM Advanced Edition] PhilZ Touch
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [lt01][CWM Advanced Edition] PhilZ Touch. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!

ketut.kumajaya said:
This is Extended PhilZ Touch Recovery previously known as blackhawk repack but now compiled from source, extend PhilZ Touch features mainly for dual boot.
Extended Features:
Integrated dual boot tool, only visible on 1st recovery's Andvaced menu
Show nice looking AROMA based dual boot menu if 2nd ROM exist. Completely separate 1st and 2nd ROM's recovery, without different recovery commands.
Using patched reboot function to make boot menu's reboot options work properly, direct access to Android reboot routine without property server
Auto detect filesystem type using patched busybox's blkid but still use fstab as a fallback. A nice feature to adapt a new filesystem, i.e. f2fs
Complete Flash-Friendly File System (f2fs) support for /system, /cache, /data and external SD card. Need a compatible kernel and ROM (with patched vold and e2fsprogs's blkid for f2fs formatted SD card) for normal boot
User selectable device format, ext4 or f2fs
Disable nandroid restore re-format /system and /cache. Solution for easly convert filesystem to/from f2fs from/to ext4.
Commits history: https://github.com/kumajaya/philz_touch_cwm6/commits/cm-11.0
IMPORTANT INFO:
For a brand new Tab 3 8.0, @Phil3759 has made Odin flashable *tar.md5 package:
For WiFi version: http://goo.im/devs/philz_touch/CWM_Advanced_Edition/lt01wifi
For 3G version: http://goo.im/devs/philz_touch/CWM_Advanced_Edition/lt013g
For LTE version: http://goo.im/devs/philz_touch/CWM_Advanced_Edition/lt01lte
You can update to the latest version using PhilZ Touch recovery itself later.
UPDATE 07/04/2014:
PhilZ Touch 6.26.1
Updated NEXT dual boot tool, now we can expand system.img without loosing user data:
Boot into 2nd recovery, nandroid backup /system
Boot into 1st recovery, run dual boot tool from Advanced menu, create larger system.img (2GB, 750MB, or 1GB)
Boot into 2nd recovery, you can reformat /system as ext4 or f2fs filesystem, nandroid restore /system
Only "DELETE 2ND ROM" option completely delete 2nd ROM's system.img and user data.
Credits:
@Phil3759 for PhilZ Touch source and all sources contributors, koush for CWM, CyanogenMod etc
@amarullz for AROMA Installer source and all sources contributors
@DerTeufel1980 for working f2fs backport patch set and all sources contributors, also thanks for Samsung, nowcomputing, etc
@Android-Andi for initial device tree dual boot recovery integration
@gr8nole for initial guide how to build Android from source
PhilZ Touch user for feedback, review, donation, etc
Sources:
https://github.com/kumajaya/philz_touch_cwm6/
https://github.com/kumajaya/android_device_samsung_lt01-common/tree/cm-11.0-philz
https://github.com/kumajaya/android_device_samsung_lt01wifi
https://github.com/kumajaya/android_device_samsung_lt013g
https://github.com/kumajaya/android_device_samsung_lt01lte
busybox: blkid: Add Flash-Friendly File System (f2fs) support
e2fsprogs: blkid: Add Flash-Friendly File System (f2fs) support
https://github.com/kumajaya/android_system_vold
How to convert your internal storage to f2fs filesystem:
Make sure your external SD card free space larger than internal storage contents
Full charge your device for safety
Boot into 1st recovery
Select "Backup and Restore" menu
Select "Custom Backup to /storage/sdcard1" menu
Select "Backup data" and "Backup /data/media" only, and then select "Start Custom Backup Job"
Back to main menu and select "Mounts and Storage" menu
Select "format /data and /data/media", select "f2fs" and confirm
Select "format /cache", select "f2fs" and confirm
Back to "Backup and Restore" menu, and then select "Custom Restore from to /storage/sdcard1"
Select "Restore data" and "Restore /data/media" only, and then select "Start Custom Restore Job"
Flash latest NEXT kernel, the only f2fs compatible kernel for now
Back to main menu and select "Power Options" menu, "Reboot recovery"
Boot into 2nd recovery, recovery auto detect /data filesystem format and reformat /cache
Reboot
Above guide also applicable to convert your /system filesystem to f2fs. To keep your /system as f2fs even after a nightly update, reuse attached PhilZ Touch flashable zip's update-binary to replace CM flashable zip's update-binary and change updater-script mount and format command:
Code:
mount("f2fs", "EMMC", "/dev/block/platform/dw_mmc/by-name/SYSTEM", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
format("f2fs", "EMMC", "/dev/block/platform/dw_mmc/by-name/SYSTEM", "0", "/system");
mount("f2fs", "EMMC", "/dev/block/platform/dw_mmc/by-name/SYSTEM", "/system");
NOTE:
Non-journaling exFAT filesystem still faster (and widely compatible) than f2fs for SD card. By utilize in-kernel exFAT support, exFAT performance even better than standard CM's exFAT in user space (fuse). For your reference:
https://github.com/kumajaya/android_system_vold/commit/5e70bb7ff266a234891d01ed44661ce75c1e8a25
https://github.com/kumajaya/android_system_vold/commit/20c1f8bbb70ca9ba9266c39689e6ef79b94c9969
https://github.com/kumajaya/android...mmit/7afb06edfbfc71b38b9d81cec3f58c5bf4d17b67
https://github.com/kumajaya/android...mmit/f088a8310b9f5554a75470afbe564cf8a870ae91
Click to expand...
Click to collapse
after installing this Recovery it will auto root my tab t311 or i have to manully root my tab t311 using a root file( which i dont have)
am currently using TWRP and using i rooted my TAB with a root file...
sorry for stupid Question but its only my 3rd day as i started tweaking with my tab...

I have the lastest blackhawk kernel and latest extended philz touch recovery. everything worked smoothly and i got Cyanogenmod as my primary rom. but when i try to flash anything in 2nd recovery, i get "E: failed to set up expected mounts for install; aborting E: Installation aborted." ive reflashed kernel and recovery and deleted and recreated the system.img but i still get the same error. i cant figure out what im doing wrong.

Same issue for me
I'm searching the Philz touch for the Tab 3 8.0....
Thanks for help if someone saved this file...

Backup Copy
Where to download

Where can we download Philz Touch Recovery now that goo.im is down.
Anyone have a backup copy of the latest philz for Tab 8.0 Wifi, lt01wifi???
Thanks

link not working
hello coul u pls provide me another link... the download link is not at all working

mpertz said:
Where to download
Click to expand...
Click to collapse
mpertz said:
Where can we download Philz Touch Recovery now that goo.im is down.
Anyone have a backup copy of the latest philz for Tab 8.0 Wifi, lt01wifi???
Thanks
Click to expand...
Click to collapse
praga dev said:
hello coul u pls provide me another link... the download link is not at all working
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=51364377&postcount=33

gr8nole said:
http://forum.xda-developers.com/showpost.php?p=51364377&postcount=33
Click to expand...
Click to collapse
:beer::beer::beer:
written in stone

Droehnemeier said:
This is goo.im hosted, too
written in stone
Click to expand...
Click to collapse
no it is not....scroll down to the links at the bottom of the post. They are hosted on xda.

Thanks, you made my day:thumbup: I just was scrolling too fast
written in stone

Would you mind to upload the the latest philz_touch for my lt013g please ? ^^

.xda-developers.com/showpost.php?p=51364377&postcount=33
Right hereI asked that before..
written in stone[/QUOTE]
Sent from my SM-T310 using XDA Free mobile app

Related

[Recovery] Amon Ra Style Recovery for Incredible 2 vivow

Recovery Features:
Updated nandroid and recovery to support newer HTC devices using emmc instead of mtd.
Full support of Amend, Edify, & Busybox Mount Update(r) scripts
Correct auto detection of file system types on sd-ext, system, cache, and data.
Capacitive keys function. V3.0.3
Unlike clockwork you can wipe and not lose your file system type. On clockwork wiping resets your fs to ext3 on /system, /cache, and /data. This one will leave an ext4 file system intact after a wipe.
ADB as root user
USB-MS Toggle :mounts sdcard as mass storage
Backup/Restore:
Nand Backup : Select Items to backup with the [X]
Nand Restore : browse to and select nandroid backup to restore
Nand Restore Clockwork: browse to and restore cwm 3x, 4x, 5x backups
Flash Zip From Sdcard: Update.zip must be in root of sdcard or you can directory browse. Use the "../" to move back a directory
Toggle Signature Verify : Turn of signature checking on flashing zips
Wipe Menu:
Wipe data/factory reset: wipes all (minus full sdcard)
Wipe cache
Wipe Dalvik cache : Wipes Dalvik cache in all possible locations if moved by apps2sd
Wipe SD:ext : Wipes Apps2sd ext partition
Wipe Battery Stats
Wipe rotate settings
Wipe data only
Wipe Sdcard
Wipe .android secure : Wipes .android_secure on sdcard
Partition Sdcard:
Partition SD: Partition's sdcard for apps2sd (this formats card so all non backed-up data is lost)
Repair Sd:ext
SD:ext2 to ext3 : coverts apps2sd ext2 partition to ext3
SD:ext3 to ext4 : same as above but ext3 to ext4
Other:
Fix apk uid mismatches
Move recovery log to SD
Key Test : Output keycodes for debugging recovery
Check battery level
Ext3|4 menu: Formatting and reformating of partitons
Developer menu:
Make and flash boot from zimage : This makes a mkboot folder on sdcard and mounts sdcard as mass storage then you copy a zImage and kernel modules into this folder and it will create a new boot like anykernel and flash it.
Toggle full ext wipe: Toggles full or quick wipe of ext partitions
Install su & superuser: Installs or fixes su & superuser install (removes old if exists)
Install eng (unguarded) su: Installs engineering su that doesn't use superuser (removes old su & superuser if exists)
Reboot to bootloader: reboots to bootloader/hboot
Reboot recovery : reboots phone back into recovery
Trouble Shooting:
1. Use option under Other menu to move recovery log to sd. Mount your sdcard to pc and read that file called recovery.log. It should have detailed cause of error.
Navigation:
Vol-up & Vol-dn = move up & down
Power = select
POWER+VOLUP+VOLDN will auto reboot you out of recovery.
Back = backup or use the -Return menu item
Special Thanks:
Amon_RA for his source code Buy him a redbull
Team Unrevoked & AlphaRev for the s-off
Koush source code
worstenbrood source code for modded desire recovery
Teamwin recovery
jhansche for 3 button navigation on ra recovery.
Github Source
Developer's note: This can easily be ported to any other Emmc HTC's with minimal effort. For mecha, vision, lexikon etc. only change of kernel and default.prop is needed. Recovery binary and scripts will fully work. For devices like shooter the partitions in roots.c will need to be updated as well as fstab.
Changelog: 3.06
Clockwork restore option
Compiled for armv7a-neon so its faster
Added developer menu
Ext3|4 menu using C instead of script now.
Changelog : 3.0.3
Enabled capacitive keys and back now functions to backup one menu.
Re-added Mounts menu
Changelog : 3.04
Signature Checking is off by default
Fixed critcal error in nandroid that caused fail of boot.img restore
Changelog : 3.05
Added ability to restore CWM backups 3x-5x.
Cleaned up some code that could produce an error in the ext3 - ext4 upgrade/downgrade causing script to fail.
Download Section:
fastboot version :
Current recovery-ra-vivow-3.06-gnm.img
MD5= c2e2f9af9607e9334b5e268c7b23e050
old recovery-ra-vivow-3.03.img.zip
MD5 = 2f8ed4661c86f03b7e410c7b0511b2c4 recovery-ra-vivow-3.03.img.zip
old recovery-ra-vivow-3.02.img.zip
MD5 = 47efcf557dc8e233ab9213636f88426b recovery-ra-vivow-3.02.img.zip
Unzip and flash via fastboot with command
Code:
fastboot flash recovery NAMEOFRECOVERY.img
Hboot version : PG32IMG-ra-vivow-3.04.zip
MD5 = c8f95411729ef74fc03bcb679cab857d
old PG32IMG_recovery-ra-3.03.zip
MD5 = d174c23abdf85f99a0233d11c4beda27 PG32IMG_recovery-ra-3.03.zip
old PG32IMG_recovery-ra-vivow-3.02.zip
MD5 = 9f4792175d007bdf151bcce9b21e7f2b PG32IMG_recovery-ra-vivow-3.02.zip
rename above file to PG32IMG.zip and place on root of sdcard and boot to hboot to flash.
Havent tried it yet but flashed it. Would it be possible to make an easier way to go back? Instead of having to select the return or ../ option. Anyways thanks for this.
mbh87 said:
Havent tried it yet but flashed it. Would it be possible to make an easier way to go back? Instead of having to select the return or ../ option. Anyways thanks for this.
Click to expand...
Click to collapse
Not with only 3 mapable keys. If we had a 4th hardware key yes but we don't. Navigation is same as clockwork unfortunatly.
drellisdee said:
Not with only 3 mapable keys. If we had a 4th hardware key yes but we don't. Navigation is same as clockwork unfortunatly.
Click to expand...
Click to collapse
The soft keys work in clockwork though which is nice. Like the layout of this recovery better so I guess I just gotta pick which things bug me less lol.
mbh87 said:
Havent tried it yet but flashed it. Would it be possible to make an easier way to go back? Instead of having to select the return or ../ option. Anyways thanks for this.
Click to expand...
Click to collapse
mbh87 said:
The soft keys work in clockwork though which is nice. Like the layout of this recovery better so I guess I just gotta pick which things bug me less lol.
Click to expand...
Click to collapse
Good suggestion. I added it. Version 3.0.3 has the capacitive keys working and the option to use the menu item -Return or the capacitive back key to backup a menu.
drellisdee said:
Good suggestion. I added it. Version 3.0.3 has the capacitive keys working and the option to use the menu item -Return or the capacitive back key to backup a menu.
Click to expand...
Click to collapse
Awesome, thank you!
Sweet, Amon Ra works great on my old LG Ally.
Welcome to the Dinc2 club Drellisdee. I'm happy you're here.
^^^^^
x2, but used this recovery with my Droid Eris.
Good to see this recovery as another option vs. CWMR...
I LOVE IT!! Anyway to fix permissions ?
Sent from my ROOTED Incredible 2.
phillybizzle said:
I LOVE IT!! Anyway to fix permissions ?
Sent from my ROOTED Incredible 2.
Click to expand...
Click to collapse
Yep thats what this item does
Other:
Fix apk uid mismatches
one more ? how can I keep this as my permanent recovery? clockwork is sneaky and comes back
Sent from my ROOTED Incredible 2.
phillybizzle said:
one more ? how can I keep this as my permanent recovery? clockwork is sneaky and comes back
Sent from my ROOTED Incredible 2.
Click to expand...
Click to collapse
That shouldn't happen on this device. Check if you have a /etc/install-recovery.sh and if so delete it then reflash the recovery.
nope looked everywhere
Sent from my ROOTED Incredible 2.
only way clockwork should come back is if you flash it in ROM Manager or overwriting it elsewhere.
also to the OP, have you thought about porting the Team Win Recovery?
mbh87 said:
only way clockwork should come back is if you flash it in ROM Manager or overwriting it elsewhere.
also to the OP, have you thought about porting the Team Win Recovery?
Click to expand...
Click to collapse
TeamWin's official recovery currently doesn't support the ext3 filesystem, which we (the Inc2) use. Some of the unofficial ports for other devices do, but the ones that have added ext3 support (like the Tbolt port) seem to be dirty hacks at the moment. I was looking at porting it myself, but TeamWin said that they are adding support for a lot of additional devices, including the Inc2, so I'd be duplicating effort that's already ongoing
Will I be able to restore nands created by CWM recovery with this recovery?
Thanks.
slacka-vt said:
Will I be able to restore nands created by CWM recovery with this recovery?
Thanks.
Click to expand...
Click to collapse
no. Cwm and amon ra nandroids are not interchangeable. I'm not going to try to mess with team-win. I like ra recovery and thats what I use. IMO it is the best recovery option out there for all devices. FYI you can use manual flash override option in rom manager to make it not require flashing clockwork to use most of the features of it.
mbh87 said:
only way clockwork should come back is if you flash it in ROM Manager or overwriting it elsewhere.
also to the OP, have you thought about porting the Team Win Recovery?
Click to expand...
Click to collapse
so I.should flash any recovery in clockwork? anyway to flash this recoc
Sent from my ROOTED Incredible 2.
phillybizzle said:
so I.should flash any recovery in clockwork? anyway to flash this recoc
Sent from my ROOTED Incredible 2.
Click to expand...
Click to collapse
Preferred means of flashing are in 2nd post. Flash_image can also be used to flash from android or recovery but hboot zip and fastboot are easiest methods.

Dual-Boot FAQ thread | devil2-kernel by DerTeufel1980 [Note 2]

This thread should clarify the methods you can use to enable dual-boot functionality along with common problems and solutions. Hopefully, the list of questions should help. The initial author of this important thread was RichMD. He has kindly asked me to maintain it further instead of him, as he is too busy for that in the moment. I have accepted it and I do it as of February, 2014. Although I'm an active user of dual boot since I own my N7100, I don't consider myself to be a guru for this and I will highly appreciate any cooperative posts and I will try to add the important information and frequently update this OP.
IMPORTANT: particulary new users, please read especially careful here and mind, as the features of Devil Dual Boot Recovery have been strongly changed between the updates! I have kept first two parts of this OP the way RichMD has written them. So all the information are regarding pre-F2FS recovery versions (until v6.0.4.4). My screenshots also show only UI of the 6.0.4.4 version. From part 3 onwards, th einformation are regarding entirely newer recovery and kernel versions with F2FS support.
LIST OF CONTENTS:
About Devil dual boot recovery
Part 1: FAQs: dual-boot general
Part 2: GUIDE: setup dual-boot
Part 3: FAQs: benefits of F2FS
Part 4: GUIDE: migrate from ext4 to F2FS
Part 5: bootloader info & download links
Click to expand...
Click to collapse
About Devil Dual Boot Recovery
A luxory version of CWM based recovery with touch UI
Each choice must be clicked twice by touch navigation (to avoid accidental touch)
Navigation can be done by swiping with finger up or down beyond the menu contents
The navigation bar on the bottom works identic like with PhilZ recovery
SCREENSHOTS: (v6.0.4.4, the last pre-F2FS version)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
1: FAQs / dual-boot general
Q.) Can I run all 4.3 and 4.4 AOSP and Touchwiz based ROMs with devil2 dual-boot kernel?
A.) All AOSP ROMs between 4.3 and 4.4.2 will work, but ATM only 4.3 TW based ROMs will boot, 4.4 isn't yet supported.
Q.) Why do I keep getting "Something went wrong..." when trying to install a ROM.
A.) Some people have had this problem when trying to install from the external SD card and the error does not happen after the zip is moved to the SD card. There are additional reasons for that error that I listed below.
Q.) I am having ... problem with the secondary ROM (Play Store FC, no SD card access, no MTP, it fails to install and affects the primary ROM, etc)
A.) 4.2 ROMs do not typically install properly to the secondary partition currently. Additionally, 4.1 roms have a problem with MTP frequently or AROMA roms will fail the ROM to secondary install-script-modification step . Instead, install your desired ROM to primary, boot with the kernel included in the ROM and ensure everything works including MTP. Then flash the dual-boot kernel. Then back it up and wipe the secondary partition. Then restore your backup to the secondary.
Note: DerTeufel has fixed the problem of internal SD card access for 4.2 ROMs for N-7105 (LTE) based phones but N-7100 phones still have the problem. It is being worked on.
Workaround if you can't access the phone via USB
You can load and use easy UMS one time. You will have access to the external SD. Simply reboot and then set the app back to the default MTP mode and both should be accessible. You don't need the app after that. - (https://play.google.com/store/apps/details?id=com.mohammadag.samsungusbmassstorageenabler) and you shouldn't need it anymore.
Q.) Can I revert back to a configuration without dual-boot and how do you do it?
A.) Yes. Use a file manager with root access on the primary ROM to delete the /data/media/.secondrom folder which contains the 1.5GB file and the data folder. Flash another recovery (CWM or TWRP) and flash as you normally would.
Q.) I can't seem to get my nandroid to restore to the secondary partition. What am I doing wrong?
A.) One possible problem is that the secondary /system partition is sized at 1.5GB (recent F2FS kernel version enlarged secondaryFS to 1.9GB). If your nandroid backup has over this amount in /system then it won't work. One possible solution is if you use Titanium Backup (or similar backup program) to do a full backup of apps AND system info. Although it is often written not to restore system info, it is OK if it to the same exact ROM and version. You could then factory reset to wipe it clean, do a nandroid backup and then restore that to secondary. Then install TB and restore selectively only the apps you want. I would probably suggest restoring "missing apps + all system data" but then deselect most of the apps that aren't really necessary. Once that is complete and the configuration is working, you could selectively restore other missing apps and data on a priority basis until you start running low on /system space. TB will show that at the bottom of the initial screen.
Q.) I tried a fresh install to the secondary partition and it completed successfully but now when I boot the primary ROM, I have what I meant to install to the secondary partition. What's wrong?
A.) This will happen if you choose "ZIP to secondary rather than ROM to secondary because of what I listed below in initial setup. Choosing ROM to secondary will cause the installation script to be modified to install to the secondary partition or it will error out with "Something went wrong". Zips installation scripts do not need to be modified because they will reference recovery.fstab which has been modified to support the secondary partition (when you select enable secondary FS.
Q.) Why doesn't vibration work after flashing this kernel?
A.) The default setting for vibration in the kernel is 2%. Use the DevilTools app referenced in DerTeufel's OP and change "Set Vibration Intensity" under the Tweak group.
Q.) Does exFat work?
A.) The kernel supports it but the recovery has not yet been modified to support it.
Click to expand...
Click to collapse
2: GUIDE / how to setup dual-boot
Initial Setup
1) Have you flashed the dual-boot (aka DB ) kernel yet? If yes, go to step 3
2) Flash the DB kernel: Go to the DB OP here and flash the version for your model type - http://forum.xda-developers.com/showpost.php?p=40410021&postcount=1 N7100 is for non-LTE models and t0lte is LTE enabled (AT&T, Verizon, etc). The zip will NOT list recovery in the name...
3) Have you flashed the DB recovery? If yes, go to step 5
4) Flash the DB Recovery: Navigate to DB OP listed above and flash the version for your model type (as in step 2 above)
5) Have you created the secondary system partition? If yes, go to step 7
6) Create the secondary partition image: Boot into the DB recovery and select Dual Boot Menu > enable mounting secondary and then select create secondary system image (also under Dual Boot Menu". This will take a couple of minutes. This only has to be done once.
7) Ready to flash primary or secondary ROMs: Note: It is probably a good idea to get in the habit of always selecting the FS (primary or secondary) that you want to affect just to ensure you don't wipe the wrong one, etc. Select Dual boot menu > enable mounting of (pri or sec.)... It stays selected until you boot into recovery and change it. You will see recovery flash (reload) with the appropriate FS selected. Obviously, don't select it again - logic loop...
8 ) You at least need to follow standard ROM installation instructions at this point such as wipe data, etc (as appropriate). Wipe Data/Factory Reset will leave the ROM (typical) and the 2nd option (wipe data-cache-system-preload) will wipe out the ROM completely so you can start "clean". Only the selected FS is modified so the other ROM is not affected. All apps and data are separate for each ROM. SD card storage is common so keep that in mind for an app that exists in both ROMs.
9) Installing to the primary partition does not need any special instructions. You should have already selected "enable primary". Select "Install zip" > Choose zip from sdcard or external > ROM to Primary FS. The difference between the "ROM" and "Zip" selections is that zips do not typically explicitly access the file systems - they use references in recovery.fstab which DerTeufel modified to point to the appropriate locations depending on your selection (primary or secondary). Yes, choosing install zip might work for installing a ROM to primary but NOT to secondary. Also, the intention is to avoid confusion.
10) Installing to the secondary partition MIGHT be more problematic since the zip has to be modified first to replace FS references with the secondary locations. When you select this option, it can take a couple of minutes since it is changing the references and then re-zipping to a modified file on the SD card. Note: The original will be gone (at least if it was originally on the SD rather than the external SD) so make a copy, etc before proceeding if you want it to be available for standard/primary flashing in the future. The modified file will always install to the secondary partition after being modified. Note: Complicated install scripts (such as AROMA) will likely fail. If you want an AROMA based installation then the safest way is to install it to the primary partition, ensure it is working, make a backup and then restore the backup to the secondary partition (using the DB recovery of course). Backup/restore will be detailed below.
11) Recovery does not automatically mount /system, and /data so ensure /cache and these are already mounted before running a zip that will need to modify them
12) Avoiding MTP issues: After flashing a ROM, recovery prompts you to install the DB kernel again. Otherwise, the kernel installed with your ROM will not be able to boot the secondary ROM. However, if you do flash the DB kernel right away (for now at least) you may have a problem with MTP (access from a PC over USB ). If you boot the new ROM (with the ROM's kernel which will work for PRIMARY) then MTP should be working. You can then flash the DB kernel after rebooting to recovery and MTP will still work (afaik). Similar to the AROMA note above, you might want to install a ROM to primary first even if you want it in the secondary partition. The install script will not need to be modified and a normal kernel will boot the ROM so MTP will work. Then you can flash the DB kernel, make a backup and restore to the secondary. Hopefully, this is only temporary but at least this workaround exists.
13) Ready to flash zips to primary or secondary ROMs Flashing gapps, etc. simply requires that the correct FS is enabled, /system and /data (as necessary) are mounted and select your target under "Install zip" > "Choose zip from..." > Zip to (primary or secondary).
Kashortiexda has created another installation process documented in post #13 > http://forum.xda-developers.com/showpost.php?p=41992232&postcount=13
Click to expand...
Click to collapse
3: FAQs about F2FS / benefits of F2FS and dual-boot in f2fs
Q.) What is F2FS?
A.) "The Flash Friendly File System" created by Kim Jaegeuk (Samsung) and released in February 2013. Read more about F2FS here
Q.) Recently, DerTeufel1980 has updated his devil2 dual-boot kernel and recovery and merged F2FS support. What is the benefit of F2FS?
A.) if the internal sdcard is formatted to F2FS, the system is supposed to be up to 2 times faster than on ext4 (default formatting).
Q.) After update to the newest Devil DB Recovery with F2FS support I had problems by installing ROM to the Secondary FS / my nandroid backup was restored with errors
A.) The newest recovery has enlarged Secondary FS image to 1.9GB (earlier was 1.5GB). This can be cause for many errors. So be sure to create a nandroid backup of your Secondary ROM before you erase /secondrom partition from data/media and to create it again with the new recovery. This is very important to do after the recovery update.
Q.) What should I do to be able to use the benefits of F2FS on my device?
A.) Five steps! First: flash new DB recovery & new DB kernel with F2FS support. Second: create nandroid backup(s) of your ROM(s). Third: move all your data from internal sdcard and save them elswhere, as the formatting to F2FS will erase your entire internal sdcard. Fourth: format in recovery mode all the (internal) sdcard partitions to F2FS one by one. Fifth: restore your ROM(s) and data.
Q.) Can I revert from F2FS back to ext4?
A.) Yes. You can use either of Devil DB Recovery versions to revert back to ext4 (in the new version you will can choose between F2FS or ext4) or you can simply flash any other recivery that doesn't support F2FS and format with it all the partitions. It will format all back to ext4 (you will have to repeat the procedure like described in the question right before).
Q.) After return to ext4 I couldn't format /cache back to ext4
A.) Formatting back to ext4 seems to not work reliably with the newest Devil Touch recovery for N7100. If it is only /cache, it doesn't matter as everything seems to work normally. You can use any other non-F2FS recovery (like TWRP 2.6.3.x or PhilZ touch 6.12.8 to format cache back to ext4)
Q.) Can I with F2FS update my ROM(s) normally with any nightly build?
A.) No, it is not recommended, as the nightlies will ATM reformat some of the partitions back to ext4. Well, yes, in fact you can update, but it is quite complicated way around, therefore, F2FS is more practical for those who want to stick longer time with their ROMs and use benefits of very fast performance of their device on F2FS.
Q.) I've got error message after migration to F2FS when I tried to restore my nandroid backup
A.) This happens occasionally mostly there is a "can't mount /data" error message. Don't worry about that, simply reboot recovery, format again all to F2FS and restore your nandroid backup then.
Q.) After migration to F2FS, I can't reach my Secondary FS partition under "dual boot menu", why?
A.) If the recovery displays "Only with Devil Kernel available" (altough it is flashed already), simply reboot into the Primary FS and reboot into the recovery right after that. Then you will be able to create again the Secondary FS partition and restore your nandroid backup.
It has been reported at least by one user that System, Data, EFS, & Storage had to be remounted manually every time for successful boot up by switching from Primary to Secondary FS and vice versa.
DerTeufel1980's features description just after updating kernel and recovery for t0lte to F2FS (N7100 update was released about one week later):
What's new:
kernel:
added new f2fs filesystem support (supposed to be up to 2 times faster than ext4)
introduce the BFQ-v6r2 I/O sched for 3.3
block, bfq: add Early Queue Merge (EQM) to BFQ-v6r2 for 3.3.0
enable CGROUP_BFQIO by default
backport SLUB from Linux 3.3 (thanks to faux123)
afsync: replace fput() with fput_light() accordingly
cfg80211: Fix memory leak
mm: implement WasActive page flag (for improving cleancache)
fix triangle away
usb: fix 'adb root'
recovery:
completed the rework of recovery ui (primary and secondary rom need to be selected once in dualboot menu) if you can't access dualboot menu, please boot primary or secondary rom with the new kernel once
resized secondary system image to 1.9 gb
possibility to flash roms to secondary without modifying the zip (you HAVE TO CHOOSE ROM). if this fails, select use workaround (this is the old method) next time
added support to format and mount f2fs formated partitions (/system, /data and /cache)
if you format data to f2fs (this gives the maximum performance, you have to select primary rom in dualboot menu, then the option will be in mounts and storage: format /data, /data/media and secondary (please backup before, this wipes your internal sdcard as well)
You only can format data to f2fs, when you select to manage primary Filesystem, because it formats the entire partition, including your internal sd card (which also includes your second rom partitions). Formatting data gives you a complete clean data partition, and you need to backup/restore data, and sdcard (if you backup the sdcard with custom nandroid to external sdcard, you can restore it afterwards, which also restores the secondary rom).
The kernel 2.4.5b for t0lte fixes boot on Omnirom, as well as fixes Selinux on Samsung rom. By default Selinux is set to "enforcing" now, for Samsung as well as for AOSP roms.
If one wants to completely disable selinux, you need to create the file: "/.secondrom/.selinux_disable" (if you are currently booted into secondrom, otherwirse the path would be "/data/.selinux_disable" (both is the same file, and creating it, disables selinux for both roms, once rebooted). selinux stays disabled until the file gets deleted again, and the device rebooted.
On some Sammy roms FC may occur with enforced selinux with the warning: "smartcard service has stopped". Except the fact that only few may know what this service does, usually nothing bad will happen (this message appears once once after boot up)
WARNING: After "fixing" booting on Omnirom, DerTeufel1980 has warned that f2fs only seems to be working properly on CM11 based roms. Samsung ROMs are at least working with selinux disabled, but Omni ROM breaks baseband if selinux disabled!!
Click to expand...
Click to collapse
4: GUIDE / ext4 to F2FS migration
New Devil Touch-DB-recovery v6.0.4.5 has some new features:
Instead of double amount of options (for primary FS or secondary FS, respectively) now there is "dual boot menu" where we can choos which FS to manage
Menu text of the secondary FS is displayed now in red color
The size of secondary FS partition is now 1.9GB so even big ROMs can be installed as secondary FS
SCREENSHOT: (new Devil Touch v6.0.4.5 with f2fs support)
As described above under F2FS FAQ, we will migrate to F2FS in five steps:
Step 1/5: flash Devil Touch v6.0.4.5 recovery & kernel with F2FS support for your device (check the download links on the bottom of this post)
flash Devil Recovery with F2FS support for your device (download links are on the bottom of this post)
reboot recovery (under "power options" on the bottom of the main menu)
for single-boot: flash Devil2-F2FS-kernel.zip to your ROM (2.4.5b for t0lte and Verizon / 2.4.6 for N7100)
for dual-boot: if you are already dual-boot user, now flash Devil2-F2FS-kernel.zip to both your ROMs: primary FS and secondary FS
Step 2/5: create now nandroid backup(s) of both your ROM(s):
under "Backup and Restore" choose "Custom Backup and Restore"
in this sub-menu, choose "Custom Backup to /sdcard1" or optionally: "Custom Backup Job"
check for backup only: /system and /data and then >>Start Custom Backup Job<<
as the final step choose "Backup to /storage/sdcard1" option (your external micro SD card)
repeat the same procedure for your second ROM
OPTIONALLY: under this step you can also create a full nandroid backups, but just make sure that you then after migration to F2FS restore only /system and /data in "Custom Restore Job"!
Step 3/5: move all your data from internal sdcard and save them elsewhere, as the formatting to F2FS will erase your entire internal SDcard!
use either external SD card, or your PC as storage, as the entire internal phone memory will be erased in the following step.
mind that this step can take some time, regarding size of the data that has to be copied (20-30 min)
Step 4/5: reboot into the recovery to fs=1 (primary) and format under "Mounts and Storage" following partitions to F2FS:
format /system
format /data, /sdcard and secondrom (this step will destroy the /.secondrom partition)
Step 5/5: restore your ROM(s) and data.
reboot recovery
restore your primary FS
flash Devil-DB kernel
reboot to system and back to recovery
create secondary FS partition
restore your nandroid backup to secondary FS (if you have used "Custom Backup Job")
flash Devil-DB kernel again
OPTIONALLY: if you have made full nandroid backups under step 2/5 now at this point don't miss that you should restore only /system and /data with "Custom Restore Job" option!
Finished! Enjoy F2FS
reverting from F2FS back to ext4
Repeat whole the procedure, just choose under formatting always "ext4" instead of "F2FS"
Click to expand...
Click to collapse
5: download links / troubleshooting
DOWNLOAD LINKS:
Latest versions of the kernel and recovery without F2FS support for Note 2:
Devil2 dual-boot kernel MAIN THREAD
Note 2 kernel and recoveries with F2FS support:
n7100 Devil2 kernel: download here
n7100 recovery: download here
t0lte Devil2 kernel: download here
t0lte recovery: download here (this one works also for Verizon)
The newest Devil3 hybrid kernel for N7100 and t0lte: download here
BOOTLOADER check
Regarding the fact that Devil2-recovery boots 4.3 and 4.4 ROMs, owners of the Note 2 should mind, that many recent custom ROMs are designed to work flawless only with the recent JB bootloaders. Custom ROMs don't update your bootloader, so your bootloader was flashed together with your latest stock ROM that you were using. While ICS bootloaders are nearly completely outdated, now also earliest JB bootloaders might cause problems and malfunctions. If so, some users will have to consider to update the bootloader.
Experienced users know: this is a damn risky task, as if Odin fails so that the old bootloader gets erased and new doesn't get properly flashed, only JTAG will be able to revive your device.
I have made a little guide and provided download link how to flash a knox-free 4.3 MJ5 bootloader for N7100: CLICK HERE
This 4.3 bootloader will boot any 4.3 or 4.4 OS, but it still has the charging issue (Sammy's fault) if the device is turned off. All the newer 4.4 bootloaders where the issue is solved are KNOX'ed, so bootloader downgrade won't be possible anymore if you use any of the later bootloader versions.
CAMERA APP TROUBLESHOOTING:
All who use AOSP custom ROMs (especially CM based ones) on their Note 2 devices might face the "ERROR: can't connect camera" issue. This problem is not devil2 kernel related. The Camera app is crashy on numerous devices. We can have our Camera working reliably, just mind that it is utterly important to keep the phone in clearly defined position when starting the camera (horizontal/vertical) and to be careful by each change of the axis rotation. Also don't view freshly shot photo in your camera app, but close the Camera and use Gallery for that.
Should you still face the nasty "can't connect..." error, instead of rebooting the OS use either of those apps, that can successfully restart the camera with one click (my N7100 needed to have both apps installed to make reset working, now either works fine):
Camera (CMFix) app from Play Store
Restart Camera.apk from HERE
Click to expand...
Click to collapse
Devil-DB-Recovery screenshots (v6.0.4.4):
Nice work m8!! Appreciate the time in you explaining the processes involved:thumbup:
Sent from my SGH-I317M using Tapatalk 2
Very detail write up Rich. Double:thumbup::thumbup:
Thanx
Sent from my SAMSUNG-SGH-I317 using Xparent SkyBlue Tapatalk 2
Thanks RichMD, appreciated "how-to" guide.
However a few remarks:
Similar to the AROMA note above, you might want to install a ROM to primary first even if you want it in the secondary partition. The install script will not need to be modified and a normal kernel will boot the ROM so MTP will work. Then you can flash the DB kernel, make a backup and restore to the secondary. Hopefully, this is only temporary but at least this workaround exists. Hopefully, this is only temporary but at least this workaround exists.
Click to expand...
Click to collapse
It means that in the future we won't need to backup then restore Roms which have to be installed with a Aroma Installer?
In your guide I suggest to add the following b4 Step 5:
Make a Nandroid backup to save our current configuration! If you don't manage to install DB or if we aren't convinced by DB benefitis we can come back to an "one ROM boot".
totelysw classical
Sounds good so far hope to be able to install to external sd storage instead of the internal
Sometimes this process will need extras. At least it did for me, and more than once. Most probably because recovery is trying to replace or prevent original kernel of the second rom to be installed and causing mishaps..
So my additions are:
After flashing second rom howsoever, reflash dualboot kernel.
Reboot rom if stuck get into recovery and wipe cache and dalvik.
I had the issue of cm roms to use partitions, i had to fix permissions (for sec fs) and also once i had to log into recovery, then advanced menu and select /data location..
Sent from my GT-N7100 using xda premium
Memphis_ said:
Thanks RichMD, appreciated "how-to" guide.
However a few remarks:
It means that in the future we won't need to backup then restore Roms which have to be installed with a Aroma Installer?
In your guide I suggest to add the following b4 Step 5:
Make a Nandroid backup to save our current configuration! If you don't manage to install DB or if we aren't convinced by DB benefitis we can come back to an "one ROM boot".
Click to expand...
Click to collapse
Thanks. I plan to add a "How do you completely remove dual-boot" even if you didn't make a nandroid first but I will add a comment similar to what you mentioned.
Awesome!
great work cheers!:fingers-crossed:
myaslioglu said:
Sometimes this process will need extras. At least it did for me, and more than once. Most probably because recovery is trying to replace or prevent original kernel of the second rom to be installed and causing mishaps..
So my additions are:
After flashing second rom howsoever, reflash dualboot kernel.
Reboot rom if stuck get into recovery and wipe cache and dalvik.
I had the issue of cm roms to use partitions, i had to fix permissions (for sec fs) and also once i had to log into recovery, then advanced menu and select /data location..
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Flashing the DB kernel again is required after flashing primary or secondary. My comments are simply that you may not want to do it immediately and let the (primary partition ROM only) boot initially with the ROM included kernel to ensure MTP works. You then need to flash the DB kernel after if you ever want to boot the secondary ROM. If you just finished flashing a ROM to secondary then I "believe" you would need to flash the DB kernel before you could ever boot that ROM. However, MTP (at this point) might not work. If it doesn't then the workaround I listed would help. Does that answer your question/comment?
I will add more to the post on fixing permissions, etc. I need a bit more detail on what your process for CM was. You installed CM to secondary and it wouldn't boot so you went into recovery and advanced > fixed permissions (secondary FS was already enabled)?. I'm not sure what your comment about /data means other than you went to mounts and storage and mounted /data. Is that what you meant?
RichMD said:
Flashing the DB kernel again is required after flashing primary or secondary. My comments are simply that you may not want to do it immediately and let the (primary partition ROM only) boot initially with the ROM included kernel to ensure MTP works. You then need to flash the DB kernel after if you ever want to boot the secondary ROM. If you just finished flashing a ROM to secondary then I "believe" you would need to flash the DB kernel before you could ever boot that ROM. However, MTP (at this point) might not work. If it doesn't then the workaround I listed would help. Does that answer your question/comment?
I will add more to the post on fixing permissions, etc. I need a bit more detail on what your process for CM was. You installed CM to secondary and it wouldn't boot so you went into recovery and advanced > fixed permissions (secondary FS was already enabled)?. I'm not sure what your comment about /data means other than you went to mounts and storage and mounted /data. Is that what you meant?
Click to expand...
Click to collapse
No it is the other way around. Everything worked fine, CM booted perfectly, settings were to be applied easily. Gapps flashed well and worked without glitch. However, file managers, play store or anything trying to access fs couldnt manage to do so.. I first changed my ROM tried old sentinel (4.5) then paranoidandroid and then new sentinel.. But same thing happened. Then I booted reflashed DB and fixed permissions. Rebooted CM, still no access. Afterwards, I rebooted into recovery re-fixed permissions but this time under the advanced menu (surely after activating second partition from dualboot menu) I set the storage to /data/media/0 .. rebooted 2nd rom. this time everthing worked fine.
Aforementioned are all for 2nd rom. 1st rom worked like a charm except for the MTP
I would love to see this on the tmobile s4
Sent from my SGH-M919 using xda premium
Strange behaviour on my N7100
After I flash the Devil dual-boot kernel (either the current - Devil-n7100-DUAL-0.21.3_20130529.zip or the previous version) this is happening to my device:
0. flashing is succesful and I reboot
1. the logo "Samsung Galaxy Note II N7100" stays on screen for approx. 4 or 5 minutes. Initially I believed it's completely frozen
2. the ROM specific logo (CyanogenMod or Samsung) appears on screen and ROM is loading shortly
3. everything works perfect, except touchscreen with fingers. Only S-Pen is working. I can check the kernel and it's the version I've flashed. Also when I press Home button 4 times, screen colors becomes negative, as it should.
4. if device enters in Sleep (screen off), the notifications are working (eg. new mail)
5. if phone gets an incoming call or if I wake the phone from sleep, the screen stays on for less than a second, then forcibly reboots
6. back to step 1.
Have anyone encountered this problem? This is happening with either Samsung stock 4.1.1 firmware rooted or with Cyanogenmod 10.1 nightly from last days.
I would love to have this kernel working...
RichMD
sorry to hijack your thread, delete if you need.. here's what works for me, several times ( I used your and Der Teufel guide as reference) just put it in a step by step guide
After a lot of reading and some tinkering, I've got PACMAN 4.2.2 PA /AOKP /CM10 1on ROM1 and 4.1.2 Mike1986 ARHD17 Sammy on ROM2.
Adb, MTP, Trickster works fine on both.
Working great. Even managed to get Simplistic Framework and Xposed working on rom 2 (Sammy)
simply
(a) first put the rom you want as PRIMARY on your ext sd card, either a flashable zip or a CWM nandroid backup (NOT TWRP).. you will need this later in step 32
1 on your existing rom and kernel combination , flash DT recovery,
2 reboot to recovery
3 go to dual boot options in recovery
4 create second partition
5 reboot to first rom
6 check MTP
7 reboot recovery
8 dual boot menu
9 enable mount primary ( second on list of 3 options )
10 go back, Mounts and storage
11 mount efs, system, data, ext sdcard
12 go Back, wipe data (2nd option for FULL wipe)
13 check mounts again and remount as above
14 flash the rom you want to be as SECOND rom
15 do all your fancy mods now (Xposed etc)
16 check mounts, remount if necessary
17 flash DT dual boot kernel with "flash kernel" option
18 reboot
19 check MTP
20 go to step 7 and repeat 7-11 inclusive
21 do a backup to ext sd
to move the rom to second rom position..
22 dual boot menu
23 enable mount secondary ( third/last on list of 3 options )
24 go back, Mounts and storage
25 mount efs, system, data, ext sdcard
26 go Back, wipe data (2nd option for FULL wipe)
27 go to Backup and Restore
28 restore the rom you made in step 21 from the ext sd
29 reboot to second rom (allow full boot)
30 check MTP, should work
31 do steps 7-13
32 flash, or restore the rom you placed on your ext sd card in the very beginning step (a) ie the one that you want to be as FIRST/PRIMARY rom
33 Reboot
Done
DO NOT FLASH ANY KERNEL AFTER STEP 33 ( the kernel will show in primary rom settings as unavailable but check with Trickster Mod or CPU spy, it will show you that it is DT dual boot kernel)
The above has worked for me several times now, and some steps are overkill..
The 0 folder from 4.2.2 is visible from the Sammy rom but the Sammy files are not visible from 4.2.2 that's why I recommend using the ext sd for the above procedures as a failsafe
Sent from my dual boot GT-N7100 using Tapatalk 2
kashortiexda said:
RichMD
sorry to hijack your thread, delete if you need.. here's what works for me, several times ( I used your and Der Teufel guide as reference) just put it in a step by step guide
After a lot of reading and some tinkering, I've got PACMAN 4.2.2 PA /AOKP /CM10 1on ROM1 and 4.1.2 Mike1986 ARHD17 Sammy on ROM2.
Adb, MTP, Trickster works fine on both.
Working great. Even managed to get Simplistic Framework and Xposed working on rom 2 (Sammy)
simply
(a) first put the rom you want as PRIMARY on your ext sd card, either a flashable zip or a CWM nandroid backup (NOT TWRP).. you will need this later in step 32
1 on your existing rom and kernel combination , flash DT recovery,
2 reboot to recovery
3 go to dual boot options in recovery
4 create second partition
5 reboot to first rom
6 check MTP
7 reboot recovery
8 dual boot menu
9 enable mount primary ( second on list of 3 options )
10 go back, Mounts and storage
11 mount efs, system, data, ext sdcard
12 go Back, wipe data (2nd option for FULL wipe)
13 check mounts again and remount as above
14 flash the rom you want to be as SECOND rom
15 do all your fancy mods now (Xposed etc)
16 check mounts, remount if necessary
17 flash DT dual boot kernel with "flash kernel" option
18 reboot
19 check MTP
20 go to step 7 and repeat 7-11 inclusive
21 do a backup to ext sd
to move the rom to second rom position..
22 dual boot menu
23 enable mount secondary ( third/last on list of 3 options )
24 go back, Mounts and storage
25 mount efs, system, data, ext sdcard
26 go Back, wipe data (2nd option for FULL wipe)
27 go to Backup and Restore
28 restore the rom you made in step 21 from the ext sd
29 reboot to second rom (allow full boot)
30 check MTP, should work
31 do steps 7-13
32 flash, or restore the rom you placed on your ext sd card in the very beginning step (a) ie the one that you want to be as FIRST/PRIMARY rom
33 Reboot
Done
DO NOT FLASH ANY KERNEL AFTER STEP 33 ( the kernel will show in primary rom settings as unavailable but check with Trickster Mod or CPU spy, it will show you that it is DT dual boot kernel)
The above has worked for me several times now, and some steps are overkill..
The 0 folder from 4.2.2 is visible from the Sammy rom but the Sammy files are not visible from 4.2.2 that's why I recommend using the ext sd for the above procedures as a failsafe
Sent from my dual boot GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
Thanks, I certainly don't see that as a "hijack". The intent of the thread is to help anyone that is having a problem with the installations. Having multiple methods to try just helps ensure success if they keep trying.
n4553 said:
After I flash the Devil dual-boot kernel (either the current - Devil-n7100-DUAL-0.21.3_20130529.zip or the previous version) this is happening to my device:
0. flashing is succesful and I reboot
1. the logo "Samsung Galaxy Note II N7100" stays on screen for approx. 4 or 5 minutes. Initially I believed it's completely frozen
2. the ROM specific logo (CyanogenMod or Samsung) appears on screen and ROM is loading shortly
3. everything works perfect, except touchscreen with fingers. Only S-Pen is working. I can check the kernel and it's the version I've flashed. Also when I press Home button 4 times, screen colors becomes negative, as it should.
4. if device enters in Sleep (screen off), the notifications are working (eg. new mail)
5. if phone gets an incoming call or if I wake the phone from sleep, the screen stays on for less than a second, then forcibly reboots
6. back to step 1.
Have anyone encountered this problem? This is happening with either Samsung stock 4.1.1 firmware rooted or with Cyanogenmod 10.1 nightly from last days.
I would love to have this kernel working...
Click to expand...
Click to collapse
Just to confirm, this looks like you aren't trying to do anything with dual-boot - just using his dual-boot kernel on a solitary ROM - correct? If you can flash other custom kernels successfully (perseus, sabre, soap, etc.) then I don't know what to tell you. What recovery are you using to flash it?
HI RichMD,
I am getting error at step 6.
it fails to mount Primary Files.
I tried following
Reloaded Recovery -in duel boot menu -enable mounting of Pri File.
thn i tried to create secondary System image. Still m getting same error.
am i missing something .
Also i noticed that i am not able to mount SDCARD in menu Maount and Storage
regards
JoyMoro
---------- Post added at 11:31 AM ---------- Previous post was at 10:50 AM ----------
JoyMoro said:
HI RichMD,
I am getting error at step 6.
it fails to mount Primary Files.
I tried following
Reloaded Recovery -in duel boot menu -enable mounting of Pri File.
thn i tried to create secondary System image. Still m getting same error.
am i missing something .
Also i noticed that i am not able to mount SDCARD in menu Maount and Storage
regards
JoyMoro
Click to expand...
Click to collapse
Pls ignore it,. I got it working.
regards
JoyMoro
RichMD said:
Just to confirm, this looks like you aren't trying to do anything with dual-boot - just using his dual-boot kernel on a solitary ROM - correct? If you can flash other custom kernels successfully (perseus, sabre, soap, etc.) then I don't know what to tell you. What recovery are you using to flash it?
Click to expand...
Click to collapse
Yes, for now I haven't installed the second rom, however this is what I want to achieve, dual-boot. But firstly I wanted to make sure the kernel is working. I am using Devil recovery, when I flash other things with it, there are no problems...
I am getting error at step 6.
it fails to mount Primary Files.
I tried following
Reloaded Recovery -in duel boot menu -enable mounting of Pri File.
thn i tried to create secondary System image. Still m getting same error.
am i missing something .
Also i noticed that i am not able to mount SDCARD in menu Maount and Storage
Pls ignore it,. I got it working.
How did u get it working since i got the same issue here?
Is it only me who cannot get play store to work on sec.rom or anyone else have the same issue
Sent from my GT-N7100 using xda premium
no prob
myaslioglu said:
Is it only me who cannot get play store to work on sec.rom or anyone else have the same issue
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Play store works fine for me on second rom

[Q&A] [REF] LVM Partition Remapping

Q&A for [REF] LVM Partition Remapping
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [REF] LVM Partition Remapping. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
When I try flashing the setuplvm, it fails with error message "unable to mount /data." I am using TWRP 2.8.0.1 and have tried wiping the data. Is there anything I can do to fix this issue?
alpha_5 said:
When I try flashing the setuplvm, it fails with error message "unable to mount /data." I am using TWRP 2.8.0.1 and have tried wiping the data. Is there anything I can do to fix this issue?
Click to expand...
Click to collapse
Did you flash setuplvm from the external SD per the instructions given elsewhere?
I plan on updating setuplvm sometime soon, but the issue you describe sounds like what happens if the ZIP resides on internal storage.
Entropy512 said:
Did you flash setuplvm from the external SD per the instructions given elsewhere?
I plan on updating setuplvm sometime soon, but the issue you describe sounds like what happens if the ZIP resides on internal storage.
Click to expand...
Click to collapse
I have the same problem. I had the ZIP on external SD with omni nightly and gapps.
Same error and no LVM.
Try the twrp from omni thread. Flash setuplvm and than update to twrp 2.8.0.1.
jebulol said:
I have the same problem. I had the ZIP on external SD with omni nightly and gapps.
Same error and no LVM.
Click to expand...
Click to collapse
Also, the other question is: Did you reboot recovery after flashing setuplvm???
Entropy512 said:
Also, the other question is: Did you reboot recovery after flashing setuplvm???
Click to expand...
Click to collapse
Yup.
I flashed TWRP 2.8.0.1, tried to install setuplvm and got "unable to mount /data." Rebooted and flashed latest Omni and realized it didnt work.
Entropy512 said:
Did you flash setuplvm from the external SD per the instructions given elsewhere?
I plan on updating setuplvm sometime soon, but the issue you describe sounds like what happens if the ZIP resides on internal storage.
Click to expand...
Click to collapse
Yes, I am flashing from the external SD card. Here is what I see when I try it.
E: Could not mount /data and unable to find crypto footer.
Updating partition details...
E: Unable to mount '/data'
Full SELinux support is present.
Installing '/external_sd/setuplvm_find7_FULL_WIPE_09012014.zip'...
Checking for MD5 file...
Skipping MD5 chck: no MD5 file found
Unmounting data partition
Extracting LVM tools
Unmounting sdcard partitions
Creating LVM physical volumes
Adding LVM physical volumes to volume group
Creating userdata logical volume
Rescanning and activationg LVM volumes
Formatting LVM volume
E: Error executing updater binary in zip '/external_sd/setuplvm_find7_FULL_WIPE_09012014.zip'
Error flashing zip '/external_sd/setuplvm_find7_FULL_WIPE_09012014.zip'
Updating partition details...
E: Unable to mount '/data'
I will also add that if I go to "Mount" in TWRP I am unable to select "data." The phone boots up fine and seems to be working properly otherwise.
Hi,
This happened to my X9076 too about a week back and that was due to my mistake of installing the rom right away without rebooting the recovery first.
If you also missed that very crucial part, I'm pretty sure all you have to do is clear the data, run the reversal LVM zip, boot to recovery again, run the partition mapping, then boot recovery one more time and after that just install the rom + gapps as usual.
I however accidentally booted up the system directly after the failed install which got me the Android is encrypting splash screen for 1 minute or 2 then telling me it failed and booted. After that TWRP couldn't access the /DATA at all.
I eventually got around it by flashing stock recovery and colorOS. The newer releases didn't work though, I took the oldest ones from OPPOforums and that worked.
After that I could flash back to TWRP, run the partitioning as supposed to and install Omni.
i've been wanting to try out omni with lvm for a while, but is lvm complete?
i also read that there's some issues with twrp, i'm a bit confused, which twrp version do i use?
i'm currently running a rom with an unified partition
i just have to return to split layout then flash the setup lvm in latest twrp recovery?
thanks in advance
binaryfalcon said:
i've been wanting to try out omni with lvm for a while, but is lvm complete?
i also read that there's some issues with twrp, i'm a bit confused, which twrp version do i use?
i'm currently running a rom with an unified partition
i just have to return to split layout then flash the setup lvm in latest twrp recovery?
thanks in advance
Click to expand...
Click to collapse
There have been some odd issues with the following:
1) setuplvm does not play nice with newer TWRP. I have some guesses why... In a few places in the Omni thread I gave manual instructions for doing the conversion in an ADB shell, those will work
2) For some reason, the app "TWRP Manager" flashes a bogus version of TWRP that has issues
Other than those two issues, LVM is complete, I've been running it for two months now. I just need to figure out why TWRP 2.8.0.1 (especially when flashed via TWRP Manager) behaves oddly.
Entropy512 said:
There have been some odd issues with the following:
1) setuplvm does not play nice with newer TWRP. I have some guesses why... In a few places in the Omni thread I gave manual instructions for doing the conversion in an ADB shell, those will work
2) For some reason, the app "TWRP Manager" flashes a bogus version of TWRP that has issues
Other than those two issues, LVM is complete, I've been running it for two months now. I just need to figure out why TWRP 2.8.0.1 (especially when flashed via TWRP Manager) behaves oddly.
Click to expand...
Click to collapse
appreciate the response
what do I need flash?
which twrp version do I use?
It's just a compatible twrp then setuplvm then flash omni?
any help appreciated, can't wait to try it out
Entropy512 said:
I just need to figure out why TWRP 2.8.0.1 (especially when flashed via TWRP Manager) behaves oddly.
Click to expand...
Click to collapse
I downloaded TWRP from http://techerrata.com/browse/twrp2/find7 and flashed using fastboot. Still had issues.
jebulol said:
I downloaded TWRP from http://techerrata.com/browse/twrp2/find7 and flashed using fastboot. Still had issues.
Click to expand...
Click to collapse
That should work fine on a device that is already in the LVM configuration. It does have issues with setuplvm currently though.
Someone who had issues with setuplvm and TWRP 2.8.0.1 finally posted a recovery.log - For some reason, TWRP 2.8.0.1 is not unmounting the sdcard partition, which causes issues when setuplvm tries to convert that partition into an LVM PV.
From now on, anyone with issues with setuplvm (or other issues within recovery) needs to post /tmp/recovery.log - This can be obtained via ADB with:
Code:
adb pull /tmp/recovery.log
when you are in TWRP after you've tried (and failed) to do whatever you're trying to do
Why? This provides MUCH more information about what went wrong than just the basic screen results/console output such as what alpha_5 posted a few posts back.
I'm not sure how this lvm implementation works ...
If I wipe /data in a twrp lvm compliant recovery, what will happen? It will wipe only /data stuff in lvm pool or the whole "partition" (including internal sdcard)?
Enjoy!
EDIT : I want to make a "factory reset" but without erasing my personnal datas (photos etc.).
---------- Post added at 03:47 PM ---------- Previous post was at 03:17 PM ----------
Wendigogo said:
I'm not sure how this lvm implementation works ...
If I wipe /data in a twrp lvm compliant recovery, what will happen? It will wipe only /data stuff in lvm pool or the whole "partition" (including internal sdcard)?
Enjoy!
EDIT : I want to make a "factory reset" but without erasing my personnal datas (photos etc.).
Click to expand...
Click to collapse
I tried and it's written in TWRP recovery : factory reset doesn't wipe personal data (in /data/media).
AWESOME JOB !
Wendigogo said:
I'm not sure how this lvm implementation works ...
If I wipe /data in a twrp lvm compliant recovery, what will happen? It will wipe only /data stuff in lvm pool or the whole "partition" (including internal sdcard)?
Enjoy!
EDIT : I want to make a "factory reset" but without erasing my personnal datas (photos etc.).
---------- Post added at 03:47 PM ---------- Previous post was at 03:17 PM ----------
I tried and it's written in TWRP recovery : factory reset doesn't wipe personal data (in /data/media).
AWESOME JOB !
Click to expand...
Click to collapse
Correct. It's the same way all Nexus devices since the GNex (and most other devices) are - a factory reset does an rm -r of everything outside of /data/media instead of formatting the whole partition.
Of course, it's a good idea to periodically back things up in case the filesystem gets hosed to the point of needing a format. (Extremely rare on ext4 these days, common for f2fs in my experience)
Entropy512 said:
Correct. It's the same way all Nexus devices since the GNex (and most other devices) are - a factory reset does an rm -r of everything outside of /data/media instead of formatting the whole partition.
Of course, it's a good idea to periodically back things up in case the filesystem gets hosed to the point of needing a format. (Extremely rare on ext4 these days, common for f2fs in my experience)
Click to expand...
Click to collapse
Yes, always following the 3 main rules when playing with my devices :
1- Make a backup
2- Make a backup
3- Make a backup
And as I do that oftenly my backups are never outdated.
Enjoy!
Setting up LVM on oppo find 7 from a custom rom?
Hello,
I am tired of my app space always out (I can't update apps now and have limited my apps to about 1/2 of what I normally would have).
From quite a ways back, I had installed Gummy, I think M4, right around when they stopped supporting the rom.
My question is how would I set up LVM from this point in time? I'm unsure how to revert back to any colorOS system (and I would prefer never to go back that way anyway, however I do see cos1.2 in a restore kernal section). I have TWRP 2.7.1.0 currently in use.
update: I see that twrp from the OS, can download the latest TWRP so I am currently DL and will try to install 2.8.7.1. If this successfully gets installed, can I flash the LVM program directly, then a 5.x or later D.U., Nameless, or OMNI rom afterwards?
Your help would be greatly appreciated as I have put this off for way too long however understand it's an amazing phone w/lots of hardware capability.
Update: downloading 2.8.7.1 from the app's interface didn't work well. I had to get back into flashify and install from local file version 2.8.5.0. When I get into bootup>TWRP, i have a split screen where the left side is scrolling slowly downwards. All functionality is normal just screen split flipping is annoying.
Hi.
Anyone give me working download link for "set up LVM" and "remove LVM" flashable zip please.
I can't download them from oppo forum.
Hi Entropy512, All,
I have installed succesfully LVM with the last OmniRoma Available but everytime I try to download something or take a picture with the camera, It says "For use camera, insert and SD Card". I checked the threat and I do not find any clue of how to solve this. Probably I miss something in the configuration process.
Any help?
Thanks in advance

[GUIDE] Convert to f2fs

All,
Since there was no clear directions on how to convert to f2fs, I decided to make a quick guide.
This *SHOULD* be device agnostic, however, I wrote it using my T-Mobile Note 3 running LeanKernel 3.12.3.
I'm not responsible if you screw up your data/device. Do this at your own risk.
1) Make sure you're on a kernel that supports f2fs. STOCK KERNELS WILL NOT WORK!
2) Boot into TWRP (at least version 2.8.1.0)
3) Make a backup to either external_sd or an OTG USB device. **THIS STEP IS REQUIRED**
4) After the backup is complete, go back to the TWRP main menu and select wipe
5) Select Advanced Wipe
6) Select the desired partition (cache OR data) and click FS OPTIONS ** DO NOT TRY TO CONVERT ANY OTHER PARTITIONS THAN CACHE AND/OR DATA UNLESS YOUR KERNEL SUPPORTS IT**
NOTE: YOU MUST DO THESE ONE AT A TIME!
7) check f2fs and then wipe
8) Ensure when finished it says current partition type f2fs
9) Repeat steps 5-7 for each partition you are convert ** DO NOT TRY TO CONVERT ANY OTHER PARTITIONS THAN CACHE AND/OR DATA UNLESS YOUR KERNEL SUPPORTS IT**
10) Go back to the TWRP Menu and select Restore
11) Select the backup you just made, and select only the partitions you are converting and restore (ignore warnings about ext4; these are normal)
12) Once restore has completed, go back to TWRP Menu and reboot into system.
13) Profit.
I know there are other kernels that support it, but my personal preference is leanKernel 3.12.3. You'll find it here: http://forum.xda-developers.com/showthread.php?t=2488233 thanks to @Imoseyon
If you need TWRP, you'll find it here: http://forum.xda-developers.com/showthread.php?t=2467001 thanks to @bigbiff
Enjoy, and again, don't blame me if you mess up your device/lose your data/etc.
What is the advantage and disadvantage of doing this procedure? Is compulsion kernel compatible?
Sent from my SM-N900T using xda premium
derride8 said:
What is the advantage and disadvantage of doing this procedure? Is compulsion kernel compatible?
Sent from my SM-N900T using xda premium
Click to expand...
Click to collapse
This post sums it up pretty well.
As for compulsion, you'll want to check that kernels thread and/or the dev to find out.
Sent from my leanKernel 3.12 powered stock 4.4.2 (NF9) SM-N900T
Do apps take up twice as much space on f2fs? That's the only difference I can see so far after the conversion.
toastido, Thanks for the guide. I followed the directions, am on lean kernel 3.13 which has f2fs support. When I restored, I noticed that system was reformatted back to ext4, while I got the warning on the cache and data partitions. Did I miss a step or is there a way to prevent the reformat?
rmarinella said:
toastido, Thanks for the guide. I followed the directions, am on lean kernel 3.13 which has f2fs support. When I restored, I noticed that system was reformatted back to ext4, while I got the warning on the cache and data partitions. Did I miss a step or is there a way to prevent the reformat?
Click to expand...
Click to collapse
Yes, go into the settings for twrp and look for the option to use rm -rf instead of formatting during wipe. Make sure that's selected.
Sent from my leanKernel 3.13 powered stock 4.4.2 (NF9) SM-N900T
toastido said:
Yes, go into the settings for twrp and look for the option to use rm -rf instead of formatting during wipe. Make sure that's selected.
Sent from my leanKernel 3.13 powered stock 4.4.2 (NF9) SM-N900T
Click to expand...
Click to collapse
That was it, Thanks!
Thanks @toastido
I imagine dp/lk will be the same
I get an error when changing the file system from ext4 to f2fs using TWRP 2.8.7.0.
It looks like this:
E:mkfs.f2fs -t 1 -r 16384 /dev/block/mmcblk0p25 process ended with ERROR=1
E: Unable to wipe /data
E: Unknown MTP message type: 1
E: Error changing file system
I tried using TWRP 2.8.5.0 with the same result. I also tried to format data. Same result.
Gotta use 2.8.4.0 as that was the last version I was able to format data without error. Kevp75, love your rom as my daily for my note 3 but cannot use your kernel when I try this method but lean kernel 6.2/6.3 works fine.
prican25 said:
Gotta use 2.8.4.0 as that was the last version I was able to format data without error. Kevp75, love your rom as my daily for my note 3 but cannot use your kernel when I try this method but lean kernel 6.2/6.3 works fine.
Click to expand...
Click to collapse
lean works with all 3 partitions?
kevp75 said:
lean works with all 3 partitions?
Click to expand...
Click to collapse
Just Data and Cache worked, tried with system but just get loops.
prican25 said:
Just Data and Cache worked, tried with system but just get loops.
Click to expand...
Click to collapse
Right on!
System not really needed anyways as it's read-only, but the testing I've done had shown a significant boost on read
Thanks bud!
SUCCESS
Thanks for the guide. I was attempting this week following a different guide which was very similar. I have a Tmobile Note 3 and was unable to achieve this with TWRP 2.8.5 and up as those directions said to use 2.8.1.0 and up.
This time I used 2.8.1.0, the latest Lean kernel and DomPop v5. I converted Cache, Data and System. Upon Reboot it would not boot. I suspect this could be the current ROM or TWRP version I used which is just an assumption. I have not thoroughly investigated. I am going to create a new Nand, convert /System and then test the latest Dominion S6 port ROM among a few other 5.1.1 ROMs.
Note: I am not affiliated with any ROM I mentioned in this post.
Thanks again for the Guide. So far the difference is very noticeable with /Data and /Cache converted.
kevp75 said:
Right on!
System not really needed anyways as it's read-only, but the testing I've done had shown a significant boost on read
Thanks bud!
Click to expand...
Click to collapse
Have successfully get system to stick on f2fs... I have tried all but still goes back to ext4
austino pele said:
Have successfully get system to stick on f2fs... I have tried all but still goes back to ext4
Click to expand...
Click to collapse
It doesnt "mysteriously" just go back to ext4.
Something you are doing or flashing is formatting it back
kevp75 said:
It doesnt "mysteriously" just go back to ext4.
Something you are doing or flashing is formatting it back
Click to expand...
Click to collapse
Alright thanks
austino pele said:
Alright thanks
Click to expand...
Click to collapse
Check in the zip you are flashing.
You should be able to mod the updater-script
Look for the mount lines... (if it's not a CM/AOSP rom/mod)
You can change them to along these lines, and it should keep the f2fs
Code:
run_program("/sbin/mount", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
run_program("/sbin/mount", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
run_program("/sbin/mount", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/cache");
Obviously you'll need to change to your device, but so long as you have Busybox installed, this will mount as filesystem independant
good luck mate

[RECOVERY][GUIDE][F2FS] TWRP 3.5.2_9 with F2FS support for Xiaomi Redmi 8 [olive][Unofficial]

This is TWRP-3.5.2_9 unofficially updated with the ability to convert your /data and /cache partitions to F2FS.
Make sure your kernel and rom support f2fs (the dev of your ROM/kernel should have f2fs support noted).Most Aosp/Lineage based roms support it.Miui doesn't
What is F2FS?
F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel.
The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers
Click to expand...
Click to collapse
- Wikipedia
This is potentially unstable, F2FS is a file system that is very much in active development. There is a reason that most OEMs go with ext4 out of the box.
How to use F2FS for /data and /cache?
Conversion procedure :
Download and install TWRP from the link below
Reboot into recovery
Replace fstab.qcom in /vendor/etc/
Code:
adb push fstab.qcom /vendor/etc
or use twrp file manager to replace
Reboot into recovery again
Flash a kernel that supports F2FS (I use CherryKernel as I know it works and is frequently updated)
Back up any important data as this will wipe your entire internal storage
Boot into TWRP and go into Wipe > Advanced Wipe
Select Data and then hit "Change or Repair File System"
Hit Change File System
Choose F2FS and slide to confirm
Repeat the previous three steps for cache
Reboot and move all of your files back over (if restoring through TWRP, make sure to check the option to use rm -rf instead of formatting)
Downloads:
fstab.qcom: in attachment
Recovery: twrpf2fs-3.5.2_9-0-olive.img
CherryKernel:CherryKernel-V1-hotfix.zip (Follow t.me/CherryKernel_SDM439 for updates)
Credits:
Twrp team
@oguz298 @altsec for twrp device trees
RALegacy-Kernel dev for fstab file
@TheGame455 for much help and prebuilt kernel
@TheGame455 & Akira for CherryKernel
Source Code:
Device tree: https://github.com/TeamWin/android_device_xiaomi_olive
CherryKernel source: https://github.com/AkiraNoSushi/kernel_cherry_sdm439
Reserved
Reserved #2
Reserved #3

Categories

Resources