Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
huckleberrypie committed Apr 4, 2018
1 parent b906923 commit b9fbabe
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 29 deletions.
7 changes: 5 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ TW_NO_EXFAT := true
TWHAVE_SELINUX := true
#TW_USE_TOOLBOX := true
TW_NO_EXFAT_FUSE := true
TW_THEME := portrait_mdpi
#RECOVERY_SDCARD_ON_DATA := true
TW_THEME := landscape_mdpi
RECOVERY_SDCARD_ON_DATA := true
TW_EXCLUDE_SUPERSU := false
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/mt_usb/gadget/lun%d/file"
BOARD_CUSTOM_BOOTIMG_MK := device/quanta/narnia/boot.mk
#Same flipped framebuffer as the fake Samsung I made a TWRP for
BOARD_HAS_FLIPPED_SCREEN := true
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
android_device_quanta_narnia
==============

TWRP device tree for the LeapFrog Epic (MT8127) using OmniROM sources. Image needs to be signed using MTK signtool for Linux in order to be flashed properly via SP Flash Tool.

Basic | Spec Sheet
-------:|:-------------------------
CPU | 1.3GHz Quad-Core MT8127
GPU | Mali-450MP
Memory | 1GB RAM
Shipped Android Version | 4.4.2
Storage | 16GB
Display | 7" 1024 x 600 px
Camera | 2MPx rear, 2MPx front

* Compilation

# repo init -u https://github.com/omnirom/android.git -b android-6.0
# repo sync
# source ./build/envsetup.sh

# lunch omni_narnia-eng

# mka recoveryimage
If done correctly, you should end up with a recovery.img in `/out/product/quanta/narnia`.

Make sure to sign it using the MediaTek sign tool (https://github.com/ferhung-mtk/android_kernel_huawei_h30t00/tree/master/kernel-3.4/mediatek/build/tools/SignTool) prior to flashing. ;)

## Issues/Caveats
* Bootloader still needs some TLC. Not sure how to hack LK to provide proper fastboot support though.

## Todo
* Nothing?

## Downloads
You may download the initial recovery releases for the vanilla SE here: https://github.com/huckleberrypie/device_quanta_narnia/releases

## Special thanks
Major props to neporood for the friendship and advice, Kevin Giles, diplomatic@XDA for being the ultimate MTK fanboi and schooling yours truly about the inner workings of MediaTek devices, my pals at the American Girl collectors groups (Molly, Shannon, Amy...), and to everyone else worth thanking. ;)
39 changes: 12 additions & 27 deletions recovery.fstab
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@
# mount point fstype device [device2]

/boot emmc /dev/bootimg
/recovery emmc /dev/recovery
/system ext4 /dev/block/mmcblk0p3
/cache ext4 /dev/block/mmcblk0p4
/data ext4 /dev/block/mmcblk0p5
/emmc vfat /dev/block/mmcblk0p6 flags=display="Phone Storage";settingsstorage
/sdcard vfat /dev/block/mmcblk1p1 flags=display="SD Card";storage;removable
/sd-ext auto /dev/block/mmcblk1p2
/nvram emmc /dev/nvram flags=display="Nvram";backup=1
/boot emmc /dev/bootimg flags=display="Boot";backup=1
/recovery emmc /dev/recovery flags=display="Recovery";backup=1
/protect_f ext4 /dev/block/mmcblk0p2 flags=display="Persistent Storage";backup=1;wipeingui
/system ext4 /dev/block/mmcblk0p5 flags=display="System";backup=1;wipeingui;wipeduringfactoryreset
/cache ext4 /dev/block/mmcblk0p6 flags=display="Cache";backup=1;wipeingui;wipeduringfactoryreset
/data ext4 /dev/block/mmcblk0p7 flags=display="Data";backup=1;wipeingui;wipeduringfactoryreset
#/emmc vfat /dev/block/mmcblk0p6 flags=display="Phone Storage";settingsstorage
/external_sd auto /dev/block/mmcblk1p1 flags=display="microSD";storage;removable;backup=0
/usbotg auto /dev/block/sda1 flags=display="USB-OTG";storage;removable;backup=0
#/sdcard vfat /dev/block/mmcblk1p1 flags=display="microSD";storage;removable
#/sd-ext auto /dev/block/mmcblk1p2
/nvram emmc /dev/nvram flags=display="NVRAM";backup=1
/uboot emmc /dev/uboot flags=display="Uboot";backup=1

#/boot emmc /dev/block/platform/mtk-msdc.0/by-name/boot flags=display="Boot";backup=1
#/recovery emmc /dev/block/platform/mtk-msdc.0/by-name/recovery flags=display="Recovery";backup=1
#/system ext4 /dev/block/platform/mtk-msdc.0/by-name/system flags=display="System";backup=1
#/cache ext4 /dev/block/platform/mtk-msdc.0/by-name/cache flags=display="Cache"
#/data ext4 /dev/block/platform/mtk-msdc.0/by-name/userdata flags=encryptable=/dev/block/platform/mtk-msdc.0/by-name/metadata
#/nvram emmc /dev/block/platform/mtk-msdc.0/by-name/nvram flags=display="Nvram";backup=1;flashimg=1
#/external_sd auto /dev/block/mmcblk1p1 flags=display="External SDcard";storage;wipeingui;removable;backup=0
#/usbotg auto /dev/block/sda1 flags=display="Usb-Otg";storage;removable;backup=0

#/boot mtd boot
#/recovery mtd recovery
#/cache yaffs2 cache
#/data yaffs2 userdata
#/misc mtd misc
#/system yaffs2 system
#/sdcard vfat /dev/block/mmcblk0p1
#/sd-ext ext4 /dev/block/mmcblk0p2

0 comments on commit b9fbabe

Please sign in to comment.