You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,25 +8,27 @@ This branch of the device configs is intended to give you a more modern emmc typ
8
8
9
9
To boot this in the emulator, build your recoveryimage. With the Android emulator make a new device based on a Galaxy Nexus. Allow it to have a hardware keyboard and a sdcard. Give it a name like TWRP. Then from your android-sdk/tools folder run the following command:
After the first boot, wait for ADB to start up, then: adb shell /sbin/create_partitions.sh
14
16
15
17
This script will partition the sdcard with a boot, recovery, system, cache, data, and removable sdcard partition. It's designed to work with a 1500MiB sdcard. If you want a different sdcard size then you will need to modify the script in the cm_folder/device/emulator/twrp/recovery/root/sbin/create_partitions.sh location to suit your needs. The script will also copy the existing system files from the MTD system partition to the new emmc-based partition.
16
18
17
19
If you want to make the emulator boot up using the emmc partitions, you will need to modify the ramdisk.img. Locate the ramdisk.img in your android-sdk/system-images/android##/armeabi-v7a/ folder. To unpack it:
18
20
21
+
```
19
22
mkdir ramdisk
20
-
21
23
cd ramdisk
22
-
23
24
gzip -dc ../ramdisk.img | cpio -i
25
+
```
24
26
25
27
Modify the init.rc to mount your mmc based partitions instead of the mtd ones by locating the line in init.rc that says "on fs" and modifying it to look like this:
26
28
27
-
# Changes for init.rc
28
-
on fs
29
-
# mount emmc partitions
29
+
```
30
+
on fs
31
+
# mount emmc partitions
30
32
# Mount /system rw first to give the filesystem a chance to save a checkpoint
31
33
# mount yaffs2 mtd@system /system
32
34
# mount yaffs2 mtd@system /system ro remount
@@ -35,10 +37,13 @@ Modify the init.rc to mount your mmc based partitions instead of the mtd ones by
35
37
mount ext4 /dev/block/mmcblk0p3 /system wait ro
36
38
mount ext4 /dev/block/mmcblk0p5 /data wait noatime nosuid nodev
37
39
mount ext4 /dev/block/mmcblk0p4 /cache wait noatime nosuid nodev
40
+
```
38
41
39
42
Save the changes and repack the ramdisk image as follows:
0 commit comments