Install CM for p4wifi
Note: DISCLAIMER
Modifying or replacing your device's software may void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one affiliated with the CyanogenMod project is responsible for your actions. Good luck.
Contents
Note:
ALL p4wifi tablets must use the bootloader in the guide below to use CyanogenMod 10.1, even if it's a UK model!
Installing a custom recovery on Samsung Galaxy Tab 10.1 (Wifi)
Samsung devices come with a unique boot mode called Download Mode which is very similar to Fastboot Mode on some devices with unlocked bootloaders. P3/P4 family tablets need to use Odin3-v1.85 to interface with the device while in Download Mode. The preferred method of installing a custom recovery is through this boot mode. Rooting the stock firmware is neither recommended nor necessary.
Odin3 Method - Windows Only
- Download pershoot's ClockworkMod Recovery package, and Odin3-v1.85:
- Open Odin3-v1.85.
- Power off the Samsung Galaxy Tab 10.1 (Wifi) and connect the USB adapter to the computer but not to the Samsung Galaxy Tab 10.1.
- Boot the Samsung Galaxy Tab 10.1 (Wifi) into download mode by holding down Vol Down & Power simultaneously and hold past the Samsung boot screen, then select Download mode by hitting Vol Up. Connect the USB cable.
- NOTE: To confirm the device is connected and working, look for the message box with the word Added!! on lower left side.
- Uncheck the box labeled Auto Reboot.
- Press the dialog box labeled PDA and select the bootloader package, which is inside the zip file.
- Press Start.
- A blue transfer bar will appear on the device showing the recovery being transferred. You should see the following in the message box - <OSM> All threads completed. (succeed 1 / failed 0). Once completed, the device may reboot automatically.
- Note: Some devices will not reboot automatically. Reboot manually by using Vol Down & Power method again, then return to Download mode by selecting Vol Up. Then continue to the next step. If you accidentally boot in the main o/s, you are fine. Just power off and try again.
- Repeat Steps 2-7 using the recovery file the exact same way as the bootloader. You should see the following in the message box - <OSM> All threads completed. (succeed 1 / failed 0)
- The Samsung Galaxy Tab 10.1 (Wifi) now has ClockworkMod Recovery and the bootloader you need installed. Continue to the next section.
Heimdall Method (Experimental)
- Download ClockworkMod Recovery, and the Heimdall Suite:
- Regular: download md5:
1dce47b7e7cc15f069c4cacd9dcbbdf7
- Touch: download md5:
f0ae0233a20cf1a358447985dc107d0e
- Windows:
- Heimdall Suite 1.4RC1 Command-line Binary(has bug): download
- Heimdall Suite 1.4RC2 Command-line Binary: download
- NOTE: The Heimdall Suite 1.4RC2 requires the Microsoft Visual C++ 2012 Redistributable Package to be installed on the computer, which can be downloaded here. You will need the 32/64 bit version as required by Heimdall, NOT as required by your OS. Heimdall currently seems to be 32 bit. You may well ACTUALLY need to reboot for the redistributable to install properly.
- Linux:
- Mac OS X:
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Place the libusb-1.0.0.dylib library from the zip inside /opt/local/lib on the machine.
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Building From Source: The source code for the Heimdall Suite is available on Github. For more details about how to compile the Heimdall Suite, please refer to the README provided on Github or refer to the instructions to Install and compile Heimdall.
- Regular: download md5:
- Power off the Samsung Galaxy Tab 10.1 (Wifi) and connect the USB adapter to the computer but not to the Samsung Galaxy Tab 10.1 (Wifi).
- Now boot the Samsung Galaxy Tab 10.1 (Wifi) into download mode by holding down Vol Down & Power, highlight the right icon by using Vol Down, and select it with Vol Up. Accept the disclaimer. After this insert the USB cable into the device.
- Windows:
- Run the included zadig.exe in the drivers folder of the Heimdall Suite.
- Choose Options » List All Devices from the menu.
- Select Samsung USB Composite Device or MSM8x60 or Gadget Serial or Device Name from the drop down menu.
- Click Replace Driver (having selecting "Installed Driver" from the drop down list built into the button).
- NOTE: A prompt may appear warning that the installer is unable to verify the publisher of the driver, ignore it and select "Install this driver anyway." Also you may receive two strange prompts, possibly from Windows, about security. Cancel then both and just carry on.
- NOTE: On Windows 8 you must disable driver signature enforcement in order to use zadig.
- Windows:
- On the computer, open a terminal and run the following command from the Heimdall directory:
-
heimdall flash --SOS recovery.img --no-reboot
- Tip: It may be necessary to run the command as root in Linux distributions, ie "sudo heimdall [...]". If a blue bar doesn't show up after the process has finished or this appears: "Failed to confirm end of file transfer sequence!", it may be a symptom.
- Tip: it may be necessary to capitalize the name of the partition on some devices... ie --KERNEL instead of --kernel, or --recovery instead of --RECOVERY
- Tip: protocol initialization can (does?) fail if the device is connected via a USB hub - connect directly to the PC
- Linux 64bit:
- If you see this message: "unable to execute ./heimdall: No such file or directory" - try the 32bit version and make sure to run it with sudo.
- Mac OS X:
- If you see this message: "ERROR: Claiming interface failed!", if so, you need to disable the default USB drivers with the following commands:
-
sudo kextunload -b com.apple.driver.AppleUSBCDC;
-
sudo kextunload -b com.apple.driver.AppleUSBCDCACMControl;
-
sudo kextunload -b com.apple.driver.AppleUSBCDCACMData;
-
- If you have installed Samsung Kies, you may further need to unload those USB drivers with the following commands:
-
sudo kextunload -b com.devguru.driver.SamsungComposite;
-
sudo kextunload -b com.devguru.driver.SamsungACMData
-
sudo kextunload -b com.devguru.driver.SamsungACMControl
-
- If you see this message: "ERROR: Claiming interface failed!", if so, you need to disable the default USB drivers with the following commands:
-
- A blue transfer bar will appear on the device showing the recovery being transferred.
- You need now to manually reboot the phone into ClockworkMod Recovery mode by holding Vol Down & Power and selecting the left icon.
- The Samsung Galaxy Tab 10.1 (Wifi) now has ClockworkMod Recovery installed. Continue to the next section.
Helpful Tip
- The stock ROM may overwrite your custom recovery on boot. To prevent this, boot immediately into ClockworkMod Recovery after leaving Download Mode instead of letting the ROM boot up normally. If your recovery is overwritten, simply redo the steps you followed above and catch it before it boots next time.
- Some users have reported connection errors if the device is connected to a USB hub. If you experience such errors it is recommended that you try connecting your device to a USB port on the motherboard.
- Antivirus software may prevent Heidmall from connecting properly. Disable your antivirus before proceeding.
- If Heimdall fails to connect, the Download mode may get stuck, making all further attempts fail too. To retry, you may need to restart the Download mode: turn off the phone by holding Power for 5-10 seconds, then boot into Download mode and run Heimdall again.
- If Heimdall fails to connect (errors related to initialising the protocol, or transferring data), in Zadig try installing the libusbK driver rather than the WinUSB driver.
Installing CyanogenMod from recovery
Note:
Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "/sdcard
" that can be used for flashing purposes, even though the contents of /sdcard
may actually be in internal storage.
- Download the prebuilt release of CyanogenMod you wish to install. (Or if you've built CM yourself, look in the
$OUT
directory for the.zip
.)- Optional: Download any supplemental 3rd-party applications packages for the device you wish to use.
- Place the CyanogenMod rom
.zip
file on the root of the SD card:- From a terminal (command prompt) run
adb push ROMZIP.zip /sdcard/
- See adb documentation for additional help with this step.
- Optional: Place any supplemental packages (eg Google Apps or kernels)
.zip
file(s) on the root of the SD card. - Note: This device needs to use Google Apps sourced from here for CyanogenMod 10.1.
- From a terminal (command prompt) run
- Boot to recovery mode on the Samsung Galaxy Tab 10.1 (Wifi) by holding Vol Down & Power then use Vol Down to choose the box icon, press Vol Up to select.
- Once the device boots into the ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm your selection, although for some devices the power button is used as a "back" button to go up one level, in which case the home button is used to confirm the selection.
- Optional/Recommended: Select backup and restore to create a backup of the current installation on the Samsung Galaxy Tab 10.1 (Wifi).
- Select the option to wipe data/factory reset.
- Select install zip from sdcard.
- Select choose zip from sdcard.
- Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.
- Optional: Install any additional packages you wish using the same method.
- Once the installation has finished, return back to the main menu, and select the reboot system now option. The Samsung Galaxy Tab 10.1 (Wifi) should now boot into CyanogenMod.