forked from CyanogenMod/android_device_hp_tenderloin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
299 lines (191 loc) · 8.08 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
CM7 TENDERLOIN BUILD INSTRUCTIONS
9/16/11 (revised 11/19/11)
INSTRUCTIONS:
1. Apply the following repo to .repo/local_manifest.xml
----cut----
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="codeaurora"
fetch="git://codeaurora.org"/>
<remote name = "privategh"
fetch="[email protected]:" />
<project path="device/hp/tenderloin"
name="CyanogenMod/android_device_hp_tenderloin"
remote="privategh"
revision="gingerbread"/>
<project path="device/htc/pyramid"
name="CyanogenMod/android_device_htc_pyramid"
remote="privategh"
revision="gingerbread"/>
<remove-project path="hardware/msm7k"
name="CyanogenMod/android_hardware_msm7k"/>
<project path="hardware/msm7k"
name = "CyanogenMod/android_hardware_qsd8x60"
remote="privategh"
revision="gingerbread"/>
<remove-project path="hardware/qcom/media"
name="CyanogenMod/android_hardware_qcom_media"/>
<project path="hardware/qcom/media/"
name = "CyanogenMod/ninjas_hardware_qcom_media"
remote="privategh"
revision="gingerbread" />
<remove-project path="frameworks/base"
name="CyanogenMod/android_frameworks_base"/>
<project path="frameworks/base"
name = "CyanogenMod/ninjas_frameworks_base"
remote="privategh"
revision="omap_merge_sf_bypass" />
<!-- project path="hardware/qcom/media/mm-core"
name = "platform/vendor/qcom-opensource/omx/mm-core"
remote="codeaurora"
revision="gingerbread_house"/ -->
</manifest>
----cut----
2. Add tenderloin to cyanogenmod's vendor tree
croot
cd vendor/cyanogenmod
git apply (or add manually):
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 3a927db..08015af 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -44,6 +44,7 @@ PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/cyanogen_smb_b9701.mk \
$(LOCAL_DIR)/cyanogen_speedy.mk \
$(LOCAL_DIR)/cyanogen_supersonic.mk \
+ $(LOCAL_DIR)/cyanogen_tenderloin.mk \
$(LOCAL_DIR)/cyanogen_u8220.mk \
$(LOCAL_DIR)/cyanogen_vega.mk \
$(LOCAL_DIR)/cyanogen_vibrantmtd.mk \
diff --git a/vendorsetup.sh b/vendorsetup.sh
index cc7ea64..18f5810 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -43,6 +43,7 @@ add_lunch_combo cyanogen_smb_a1011-eng
add_lunch_combo cyanogen_smb_b9701-eng
add_lunch_combo cyanogen_speedy-eng
add_lunch_combo cyanogen_supersonic-eng
+add_lunch_combo cyanogen_tenderloin-eng
add_lunch_combo cyanogen_u8220-eng
add_lunch_combo cyanogen_vega-eng
add_lunch_combo cyanogen_vibrantmtd-eng
2b. Create a new file at vendor/cyanogen/products/cyanogen_tenderloin.mk as follows:
------cut------
# Inherit AOSP device configuration for tenderloin.
$(call inherit-product, device/hp/tenderloin/device_tenderloin.mk)
# Inherit some common cyanogenmod stuff.
$(call inherit-product, vendor/cyanogen/products/common_full.mk)
#
# Setup device specific product configuration.
#
PRODUCT_NAME := cyanogen_tenderloin
PRODUCT_BRAND := hp
PRODUCT_DEVICE := tenderloin
PRODUCT_MODEL := HP Touchpad
PRODUCT_MANUFACTURER := hp
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=tenderloin BUILD_ID=GRJ22 BUILD_DISPLAY_ID=GRJ90 BUILD_FINGERPRINT=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.3.4 GRJ22 121341 release-keys"
PRODUCT_PACKAGE_OVERLAYS += \
vendor/cyanogen/overlay/tablet \
vendor/cyanogen/overlay/tenderloin
#
# Set ro.modversion
#
ifdef CYANOGEN_NIGHTLY
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-tenderloin
else
ifdef CYANOGEN_RELEASE
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7.1.0-RC1-tenderloin
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7.1.0-RC1-tenderloin-KANG
endif
endif
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip
------cut------
3. Set up vendor tree. Either:
3a. Run extract-files in device/hp/tenderloin to set up the vendor/hp/tenderloin directory
Then, copy the device proprietary files into vendor/hp/tenderloin/proprietary:
Obtain "proprietary_files" archive and extract to vendor/hp/tenderloin
3b. Use the vendor repo. [What's this? Still needed?]
4. reposync, build and cross your fingers.
croot
repo sync -j16
make clobber
brunch tenderloin
...and see what happens.
Hopefully there will be something valuable in $OUT to play with. Obviously the update.zip is not very useable yet.
But the sweet, sweet files should be inside.
WHAT TO DO IF THE BUILD BREAKS
Fix it.
QUICK MANUAL REPARTITION FOR CM7
[semi-untested. Please enhance this section then remove this notice.]
** WARNING! DO NOT ATTEMPT THESE INSTRUCTIONS UNLESS YOU KNOW WHAT YOU ARE DOING. THE POTENTIAL FOR HARM
TO YOUR DEVICE IS HIGH WHEN YOU ATTEMPT TO REPARTITION ANYTHING. ANY ATTEMPT TO DO SO IS ENTIRELY AT YOUR
OWN RISK. YOU MAY BRICK! THESE INSTRUCTIONS ARE UNTESTED, UNVERIFIED, AND PURE EVIL ***
Still here? Okay... So boot webos, and in novaterm, first shrink /dev/store/media to make room for the
new partitions.
(replace [NEWSIZE] with a number, such as 15.1). the sizes can end in M or G. For example, I took 2GB off
for use with CM7.
# pkill -SIGUSR1 cryptofs
# umount /media/internal
# fsck.vfat /dev/mapper/store-media
# resizefat /dev/mapper/store-media [NEWSIZE]G
# lvreduce -L [NEWSIZE]G /dev/mapper/store-media
Check to make sure the vfat file system is still okay:
# fsck.vfat /dev/mapper/store-media
Now create the three new logical volumes:
# lvcreate -L 1.5G --name cm-data store
# lvcreate -L 300M --name cm-system store
# lvcreate -L 200M --name cm-cache store
(may also want to create /cm-boot and cm-recovery, but for now don't worry about it)
And create the file systems
# mkfs.ext3 /dev/store/cm-system
# mkfs.ext4 /dev/store/cm-cache
# mkfs.ext4 /dev/store/cm-data
The reason cm-system is ext3 is that you can't mount it as ext4 from the current webos kernel, which is needed
to put android on there initially (but not after that, as you will have adb)
You can now remount and restart cryptofs and stuff:
# mount -t vfat /dev/mapper/store-media /media/internal
# pkill -SIGUSR2 crpytofs
COPYING FILES INTO CM-SYSTEM (FIRST TIME ONLY)
/media/ram is a nice place on your tp that you can use as a scratch. To copy files there,
$ cat myfile|novacom put file:///media/ram/myfile
You can then:
$ mkdir media/ram/system
$ mount /dev/store/cm-system /media/ram/system
copy your files to /media/ram/system and *verify exec permissions in bin and xbin*
COPYING FILES INTO CM (SUBSEQUENT BUILDS)
Once you have CM7 booting, there's no need for copying files manually.
After completing a build on your linux box, simply type:
$ adb sync system
And everything will be synced properly from $OUT/system -> your tp.
(ProTip: you may want to add an "$ adb shell sync" when you're done)
You can also change your ext3 cm-system partition to ext4 if you like.
HOW TO BOOT
You will need the "uMulti" kernel+ramdisk. You can make it with the following script:
(you will need mkimage-- available in ubuntu or build your own. Then adjust OUT, MKIMAGE, and KERNEL)
---snip---
#!/bin/bash
OUT=~/android/system/out/target/product/tenderloin/
MKIMAGE=mkimage
KERNEL=~/gh/CyanogenMod/hp-kernel-tenderloin/
cd $OUT/root
find . |cpio -R 0:0 -H newc -o --quiet |gzip -9c > /tmp/andr-init.img
$MKIMAGE -A ARM -T RAMDisk -C none -n Image -d /tmp/andr-init.img /tmp/uRamdisk
$MKIMAGE -A arm -T multi -C none -n 'test-multi-image' -d $KERNEL/arch/arm/boot/uImage:/tmp/uRamdisk /tmp/uMulti
---snip---
Done? So reboot the tp with the usb plugged in while holding volume up.
At the white USB logo...
$ novacom boot mem:// < uMulti
And away you go!
SPECIAL COMMANDS
Once in the shell, you can simulate keypresses using the following chart:
http://groups.google.com/group/android-developers/browse_thread/thread/a4705c3f62414f90
Example:
# input keyevent 82
will turn off the lockscreen
WANT SCREENSHOTS?
Use the android debugger -> ddms.