The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Community Workspace/HTC ACE

From Mer Wiki
< Community Workspace(Difference between revisions)
Jump to: navigation, search
(Added notes for building for the HTC ACE)
 
(Added init changes)
Line 29: Line 29:
 
  HYBRIS_BOOT_PART := /dev/block/mmcblk0p22
 
  HYBRIS_BOOT_PART := /dev/block/mmcblk0p22
 
  HYBRIS_DATA_PART := /dev/block/mmcblk0p26
 
  HYBRIS_DATA_PART := /dev/block/mmcblk0p26
 +
 +
* Follow the remaining instructions in the HADK to build any missing packages and make the boot and root images
 +
* Installation requires a modern recovery.  I used 4ext
 +
* When the root image is installed, adb shell into recovery and edit /data/.stowaways/sailfish/init-debug
 +
change
 +
do_mount_devprocsys
 +
 +
to
 +
do_mount_devprocsys
 +
 +
#Activate usb0 for HTC ACE
 +
echo 1 > /sys/class/android_usb/f_rndis/on
 +
 +
This will enable the usb0 network device to enable you to telnet into the system
 +
 +
* Follow the instructions on https://wiki.merproject.org/wiki/Nemo/USBNetworking to enable networking to the outside world

Revision as of 18:40, 10 August 2014

Notes on building Sailfish for the HTC Desire HD (ACE)

  • Follow the instructions in the Sailfish OS HADK
  • When setting up the repos, edit manifest.xml to include the repos for the HTC ACE:
<project path="device/htc/ace" name="AceEnablementProject/android_device_htc_ace" revision="cm-11.0" />
<project path="device/htc/msm7x30-common" name="piggz/android_device_htc_msm7x30-common" revision="cm-11.0" />
<project path="vendor/htc/ace" name="AceEnablementProject/android_vendor_htc_ace" revision="cm-11.0" />
<project path="vendor/qcom/proprietary" name="AceEnablementProject/android_vendor_qcom_proprietary" revision="cm-11.0" />
<project path="kernel/htc/htc7x30-3.0" name="AceEnablementProject/android_kernel_htc_msm7x30" revision="cm-11.0" />

The piggz repo above contains the kernel config changes for Sailfish, the remaining repos are from the AceEnablementProject

  • Edit hybris/hybris-boot/fixup-mountpoints and add a section for the ace
   "ace")
      sed -i \
           -e 's block/platform/msm_sdcc.2/by-num/p25 mmcblk0p25 ' \
           -e 's block/platform/msm_sdcc.2/by-num/p26 mmcblk0p26 ' \
           -e 's block/platform/msm_sdcc.2/by-num/p27 mmcblk0p27 ' \
           -e 's block/platform/msm_sdcc.2/by-num/p28 mmcblk0p28 ' \
           "$@"
       ;;
  • Edit the hybris/hybris-boot/Android.mk to hardcode the partitions used:
#HYBRIS_BOOT_PART := $(shell /usr/bin/perl -w -e '$$fs=shift; while (<>) { next unless /^$$fs\s|\s$$fs\s/;for (split) {next unless m(^/dev); print "$$_\n"; }}' /boot $(HYBRIS_FSTABS) | sort -u)
#HYBRIS_DATA_PART := $(shell /usr/bin/perl -w -e '$$fs=shift; while (<>) { next unless /^$$fs\s|\s$$fs\s/;for (split) {next unless m(^/dev); print "$$_\n"; }}' /data $(HYBRIS_FSTABS) | sort -u)
HYBRIS_BOOT_PART := /dev/block/mmcblk0p22
HYBRIS_DATA_PART := /dev/block/mmcblk0p26
  • Follow the remaining instructions in the HADK to build any missing packages and make the boot and root images
  • Installation requires a modern recovery. I used 4ext
  • When the root image is installed, adb shell into recovery and edit /data/.stowaways/sailfish/init-debug

change

do_mount_devprocsys

to

do_mount_devprocsys

#Activate usb0 for HTC ACE
echo 1 > /sys/class/android_usb/f_rndis/on

This will enable the usb0 network device to enable you to telnet into the system

Personal tools