Project

General

Profile

GalaxyNote2N7100Installation » History » Version 15

Denis 'GNUtoo' Carikli, 02/18/2020 12:23 AM

1 1 Paul Kocialkowski
h1. Galaxy Note 2 N7100 Installation
2
3
*Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.*
4
5
h2. Prerequisites 
6
7
In order to install Replicant on your device, it is assumed that you have a computer running a GNU/Linux operating system and everything necessary to connect your device to the computer through USB available. Moreover, it is assumed that anyone performing the installation knows how to use command lines in a terminal and has basic knowledge about it.
8
9
h2. Downloading the files
10
11
The first step in the installation process is to download and set up the files that will be used to install Replicant to the device. The files must be downloaded on your computer first.
12
13
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyNote2N7100]]
14
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
15
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
16
3. Check the signature of the files:
17
<pre>
18 7 Wolfgang Wiedmeyer
gpg --armor --verify path/to/replicant-6.0-n7100.zip.asc path/to/replicant-6.0-n7100.zip
19
gpg --armor --verify path/to/recovery-n7100.img.asc path/to/recovery-n7100.img
20 1 Paul Kocialkowski
</pre>
21
4. Make sure the check succeeds, *do not install anything if it doesn't*!
22
5. Check the checksum of the files:
23
<pre>
24 7 Wolfgang Wiedmeyer
sha256sum -c n7100.sha256
25 1 Paul Kocialkowski
</pre>
26
6. Make sure the check succeeds, *do not install anything if it doesn't*!
27
28
h2. Installing heimdall
29
30
The heimdall tool is required to flash the recovery image to the device.
31
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
32
33
h2. Copying the files to the device
34
35
There are two means of pushing the system zip to the device:
36
* Using the storage of the device
37
* Using the ADB tool to perform sideload
38
39
h3. Using the storage of the device
40
41 4 Paul Kocialkowski
You can either complete this step by using the device's internal storage or by using an external microSD card.
42 1 Paul Kocialkowski
43
h4. Using the internal storage
44
45
1. Make sure the device is started up and has an Android system running
46
2. Connect the USB cable to both the computer and the device
47
3. Enable USB mass storage on the device
48
4. Mount the mass storage on the computer
49 7 Wolfgang Wiedmeyer
5. Copy the @replicant-6.0-n7100.zip@ file at the origin of the mass storage
50 1 Paul Kocialkowski
6. Safely unmount the mass storage on the computer
51
7. Disable USB mass storage on the device
52
53 4 Paul Kocialkowski
h4. Using a microSD card
54 1 Paul Kocialkowski
55 4 Paul Kocialkowski
1. Connect the microSD card to the computer (e.g. using an USB card reader)
56
2. Mount the microSD card on the computer
57 7 Wolfgang Wiedmeyer
3. Copy the @replicant-6.0-n7100.zip@ file at the origin of the microSD card
58 4 Paul Kocialkowski
4. Safely unmount the microSD card on the computer
59
5. Disconnect the microSD card from the computer
60
6. Insert the microSD card in the device (make sure it is turned off before inserting the card)
61 1 Paul Kocialkowski
62
h3. Installing ADB
63
64
Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
65
66
h2. Preparing the device
67
68
The next step in the installation process is to prepare the device for heimdall mode.
69
70
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
71
2. Start the device by holding the following key combination: *Volume down, Select, Power*
72
3. Hold the key combination until the device shows a *Warning* message
73
4. Confirm that you want to download a custom OS (using volume up)
74
5. Make sure the device is in *Downloading* mode
75
4. Connect the USB cable to both the computer and the device
76
77
h2. Installing the images
78
79
Now that both the computer and the device are set up, it is time to actually install the images to the device.
80
81
1. Install the recovery image to the device:
82
<pre>
83 7 Wolfgang Wiedmeyer
heimdall flash --BOOT path/to/recovery-n7100.img --RECOVERY path/to/recovery-n7100.img
84 1 Paul Kocialkowski
</pre>
85
86
2. Make sure the device reboots to recovery
87
88 9 Wolfgang Wiedmeyer
h3. Data wipe
89 7 Wolfgang Wiedmeyer
90 9 Wolfgang Wiedmeyer
A data wipe is necessary if you switch from the factory image or a different Android distribution to Replicant. You also need to do a data wipe when upgrading to a new major release (e.g. from Replicant 4.2 to Replicant 6.0). Only when updating to a new minor release (e.g. from Replicant 6.0 0001 to Replicant 6.0 0002), a data wipe is usually not required.
91 7 Wolfgang Wiedmeyer
92
3. Select *Factory reset*
93 9 Wolfgang Wiedmeyer
4. Select *Wipe data (keep media)*
94 7 Wolfgang Wiedmeyer
5. Confirm the data wipe by selecting *Yes*
95
6. Press the back key (if necessary) to get back to the general menu
96
97
7. Select *Apply update*
98
99 1 Paul Kocialkowski
h3. Using the storage of the device
100
101
h4. Using the internal storage
102
103 7 Wolfgang Wiedmeyer
8. Select *Choose from emulated*
104
9. Select the system zip: *replicant-6.0-n7100.zip*
105 1 Paul Kocialkowski
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
106 7 Wolfgang Wiedmeyer
10. Confirm the installation
107 2 Paul Kocialkowski
108 1 Paul Kocialkowski
h4. Using a microSD card
109
110 7 Wolfgang Wiedmeyer
8. Select *Choose from sdcard1*
111
9. Select the system zip: *replicant-6.0-n7100.zip*
112 1 Paul Kocialkowski
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
113 7 Wolfgang Wiedmeyer
10. Confirm the installation
114 1 Paul Kocialkowski
115
h3. Using ADB sideload
116
117 7 Wolfgang Wiedmeyer
8. Select *Apply from ADB*
118
9. Back to the host computer, load the system zip with sideload:
119 1 Paul Kocialkowski
<pre>
120 7 Wolfgang Wiedmeyer
adb sideload path/to/replicant-6.0-n7100.zip
121 1 Paul Kocialkowski
</pre>
122 7 Wolfgang Wiedmeyer
10. Make sure the file is being transfered
123 5 Paul Kocialkowski
124 1 Paul Kocialkowski
h3. Completing the installation
125
126
11. Press the back key (if necessary) to get back to the general menu
127 9 Wolfgang Wiedmeyer
128
If you did the data wipe after step 2, you will need to do a factory reset as well:
129
12. Select *Factory reset*
130
13. Select *Full factory reset*
131
14. Confirm the factory reset by selecting *Yes*
132
15. Press the back key (if necessary) to get back to the general menu
133
134
135
16. Select *Reboot system now* to reboot the device
136 1 Paul Kocialkowski
137
*Your device should now be running Replicant!*
138 10 Joey Hewitt
139
h3. Sensor issues
140
141 14 Kurtis Hanna
Your SSP firmware may not be flashed to what Replicant's kernel is expecting, which may cause issues like the screen not rotating or the screen not turning off when held to your face. As such, you need to flash stock Android and then reflash Replicant. To flash stock Android for the N7100, download it "here":http://e-valkov.org/N7100XXSFQA1_1552758_REV04-files.zip and run this command:
142 11 Adonay Felipe Nogueira
143 12 Kurtis Hanna
<pre>
144
heimdall flash --BOOT boot.img --CACHE cache.img --HIDDEN hidden.img --RADIO modem.bin --PARAM param.bin --RECOVERY recovery.img  --BOOTLOADER sboot.bin --SYSTEM system.img --TZSW tz.img
145 1 Paul Kocialkowski
</pre>
146 14 Kurtis Hanna
147
Here's a comprehensive list of the Galaxy Note 2 (N7100) firmwares: https://redmine.replicant.us/projects/replicant/wiki/GalaxyNote2N7100LoadedFirmwares
148 11 Adonay Felipe Nogueira
149
Finally, you can get more information about this problem by checking out #1755.