Group: Hardware/History/Replicant

From LibrePlanet
Jump to: navigation, search
Line 80: Line 80:
 
  - $(proprietary)/brf6300.bin:system/etc/firmware/brf6300.bin \
 
  - $(proprietary)/brf6300.bin:system/etc/firmware/brf6300.bin \
 
  -
 
  -
$ cat 0007-use-libreference-ril.patch  
+
$ cat 0007-use-libreference-ril.patch  
Index: freedroid/vendor/htc/dream/system.prop
+
Index: freedroid/vendor/htc/dream/system.prop
===================================================================
+
===================================================================
--- freedroid.orig/vendor/htc/dream/system.prop
+
--- freedroid.orig/vendor/htc/dream/system.prop
+++ freedroid/vendor/htc/dream/system.prop
+
+++ freedroid/vendor/htc/dream/system.prop
@@ -1,6 +1,7 @@
+
@@ -1,6 +1,7 @@
#
+
  #
# system.prop for dream
+
  # system.prop for dream
#
+
  #
+rild.libpath=/system/lib/libreference-ril.so
+
+rild.libpath=/system/lib/libreference-ril.so
+rild.libargs=-d /dev/smd0
+
+rild.libargs=-d /dev/smd0
   
+
 
-rild.libpath=/system/lib/libhtc_ril.so
+
  -rild.libpath=/system/lib/libhtc_ril.so
wifi.interface = tiwlan0
+
  wifi.interface = tiwlan0

Revision as of 09:11, 24 August 2009

Here are the patches for having a fully free android system

  • /!\Beware!!! the result haven't been tested on a real device ...do not flash your device with this build yet
  • Because the firmwares are proprietary you may choose (or not) to push the firmwares to the device with the free images(would be as free as the openmoko)
  • The ril has been replaced by the generic ril

Patches

android@port4 ~/freedroid/patches $ ls
0001_do-not-build-proprietary-code.patch  0003-nogps.patch  0004_no-3d.patch  0005_no-camera.patch  0006_remove-firmware-because-cant-distrbute-it.patch  0007-use-libreference-ril.patch  obsolete  series
android@port4 ~/freedroid/patches $ cat 0001_do-not-build-proprietary-code.patch 
Index: freedroid/vendor/htc/dream/AndroidBoard.mk
===================================================================
--- freedroid.orig/vendor/htc/dream/AndroidBoard.mk
+++ freedroid/vendor/htc/dream/AndroidBoard.mk
@@ -54,20 +54,5 @@ PRODUCT_COPY_FILES += \
 proprietary := $(LOCAL_PATH)/proprietary
 
 PRODUCT_COPY_FILES += \
-	$(proprietary)/libhtc_ril.so:system/lib/libhtc_ril.so \
-	$(proprietary)/libaudioeq.so:system/lib/libaudioeq.so \
-	$(proprietary)/libqcamera.so:system/lib/libqcamera.so \
-	$(proprietary)/libgps.so:obj/lib/libgps.so \
-	$(proprietary)/libgps.so:system/lib/libgps.so \
-	$(proprietary)/libhgl.so:system/lib/libhgl.so \
 	$(proprietary)/brf6300.bin:system/etc/firmware/brf6300.bin \
-	$(proprietary)/akmd:system/bin/akmd \
-	$(proprietary)/AudioFilter.csv:system/etc/AudioFilter.csv
 
-PRODUCT_COPY_FILES += \
-	$(proprietary)/AudioPara4.csv:system/etc/AudioPara4.csv \
-	$(proprietary)/gps.conf:system/etc/gps.conf
-
-PRODUCT_COPY_FILES += \
-	$(proprietary)/tiwlan.ini:system/etc/wifi/tiwlan.ini \
-	$(proprietary)/Fw1251r1c.bin:system/etc/wifi/Fw1251r1c.bin
android@port4 ~/freedroid/patches $ cat 0003-nogps.patch 
Index: freedroid/vendor/htc/dream/BoardConfig.mk
===================================================================
--- freedroid.orig/vendor/htc/dream/BoardConfig.mk
+++ freedroid/vendor/htc/dream/BoardConfig.mk
@@ -13,7 +13,8 @@ HAVE_CUSTOM_WIFI_DRIVER_2 := true
 
 # BOARD_USES_GENERIC_AUDIO := true
 
-BOARD_GPS_LIBRARIES := libgps librpc
+#BOARD_GPS_LIBRARIES := libgps librpc
+BOARD_HAVE_GPS_HARDWARE := false
 
 # Flash Partition size limits for build sanity checking
 #
android@port4 ~/freedroid/patches $ cat 0005_no-camera.patch 
Index: freedroid/vendor/htc/dream/BoardConfig.mk
===================================================================
--- freedroid.orig/vendor/htc/dream/BoardConfig.mk
+++ freedroid/vendor/htc/dream/BoardConfig.mk
@@ -19,6 +19,9 @@ BOARD_HAVE_GPS_HARDWARE := false
 #Disable 3d
 TARGET_HARDWARE_3D := false 
 
+#no camera:
+USE_CAMERA_STUB                 := true
+
 # Flash Partition size limits for build sanity checking
 #
 BOARD_BOOTIMAGE_MAX_SIZE := 2621440
android@port4 ~/freedroid/patches $ cat 0006_remove-firmware-because-cant-distrbute-it.patch 
Index: freedroid/vendor/htc/dream/AndroidBoard.mk
===================================================================
--- freedroid.orig/vendor/htc/dream/AndroidBoard.mk
+++ freedroid/vendor/htc/dream/AndroidBoard.mk
@@ -48,11 +48,3 @@ PRODUCT_COPY_FILES += \
 #
 PRODUCT_COPY_FILES += \
 	$(LOCAL_PATH)/vold.conf:system/etc/vold.conf
-
-# htc proprietary code
-#
-proprietary := $(LOCAL_PATH)/proprietary
-
-PRODUCT_COPY_FILES += \
-	$(proprietary)/brf6300.bin:system/etc/firmware/brf6300.bin \
-
$ cat 0007-use-libreference-ril.patch 
Index: freedroid/vendor/htc/dream/system.prop
===================================================================
--- freedroid.orig/vendor/htc/dream/system.prop
+++ freedroid/vendor/htc/dream/system.prop
@@ -1,6 +1,7 @@
 #
 # system.prop for dream
 #
+rild.libpath=/system/lib/libreference-ril.so
+rild.libargs=-d /dev/smd0
 
-rild.libpath=/system/lib/libhtc_ril.so
 wifi.interface = tiwlan0