ROM Android: Modifikasi config kernel e980 untuk f240k

From OnnoWiki
Jump to navigation Jump to search

Kebetulan LGE e980 mirip sekali dengan LGE f240k salah satu yang beda adalah pada audio / sound.

Tampaknya cara yang lebih mudah untuk membuat ROM lge f240k adalah

adb devices
adb pull /proc/config.gz
gzip -d config.gz


  • Siapkan source lge f240k
cd ~/android-cyanogenmod
repo sync
~/android-cyanogenmod/vendor/cm/get-prebuilts
cd ~/android-cyanogenmod
. build/envsetup.sh
breakfast f240k

Jika update vendor/cm/vendorsetup.sh sudah dilakukan, putuskan proses.

Ubah config kernel

cd ~/android-cyanogenmod/kernel/lge/gproj/arch/arm/configs
cp cyanogenmod_e980_defconfig cyanogenmod_e980_defconfig.asli
cp ~/tempat-file-config/config cyanogenmod_f240k_defconfig

Supaya lebih aman, jalankan menuconfig supaya secara automatis memperbaiki konfigurasi kernel yang kurang

cd ~/android-cyanogenmod/kernel/lge/gpro
cp ~/tempat-file-config/config .config
cp .config ~/android-cyanogenmod/kernel/lge/gproj/arch/arm/configs/cyanogenmod_f240k_defconfig
make clean && make mrproper
make menuconfig


Compile ROM

Lakukan

cd ~/android-cyanogenmod
~/android-cyanogenmod/vendor/cm/get-prebuilts
cd ~/android-cyanogenmod
. build/envsetup.sh
brunch f240k

Semoga lancar.



Error BCMDHD

Tampaknya ada error :(

/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c: In function 'wl_set_wpa_version':
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3172:33: error: 'NL80211_WAPI_VERSION_1' undeclared (first use in this function)
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3172:33: note: each undeclared identifier is reported only once for each function it appears in
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c: In function 'wl_set_set_wapi_ie':
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3203:33: error: 'NL80211_WAPI_VERSION_1' undeclared (first use in this function)
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c: In function 'wl_set_key_mgmt':
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3517:9: error: 'WLAN_AKM_SUITE_WAPI_CERT' undeclared (first use in this function)
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3520:9: error: 'WLAN_AKM_SUITE_WAPI_PSK' undeclared (first use in this function)
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c: In function 'wl_set_set_sharedkey':
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3567:28: error: 'NL80211_WAPI_VERSION_1' undeclared (first use in this function)
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c: In function 'wl_cfg80211_connect':
/home/onno/android-cyanogenmod/kernel/lge/gproj/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:3840:33: error: 'NL80211_WAPI_VERSION_1' undeclared (first use in this function)
make[6]: *** [drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.o] Error 1
make[5]: *** [drivers/net/wireless/bcmdhd] Error 2
make[4]: *** [drivers/net/wireless] Error 2
make[3]: *** [drivers/net] Error 2
make[3]: *** Waiting for unfinished jobs....