ROM搞完了,开搞内核。
看表
看表这意思是说,下的话下msm的,编的配置用 flo_defconfig, 编完以后放到 device/asus /flo-kernel/kernel下面。
上面只是我的猜测!
看了下面的解释,发现nexus7是tegra的代表。。。。
然后怎么办,查看一下系统信息
这里 面只有qualcomm跟msm跟flo什么的,没有tegra跟nvidia字样。。。。
- shell@deb:/ $ getprop
- [af.resampler.quality]: [4]
- [bluetooth.hciattach]: [true]
- [bluetooth.status]: [on]
- [camera.disable_zsl_mode]: [1]
- [dalvik.vm.dexopt-flags]: [m=y]
- [dalvik.vm.heapgrowthlimit]: [192m]
- [dalvik.vm.heapmaxfree]: [8m]
- [dalvik.vm.heapminfree]: [512k]
- [dalvik.vm.heapsize]: [512m]
- [dalvik.vm.heapstartsize]: [16m]
- [dalvik.vm.heaptargetutilization]: [0.75]
- [dalvik.vm.lockprof.threshold]: [500]
- [dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
- [debug.egl.recordable.rgba8888]: [1]
- [debug.force_rtl]: [0]
- [dev.bootcomplete]: [1]
- [dhcp.wlan0.dns1]: [192.168.2.1]
- [dhcp.wlan0.dns2]: []
- [dhcp.wlan0.dns3]: []
- [dhcp.wlan0.dns4]: []
- [dhcp.wlan0.domain]: []
- [dhcp.wlan0.gateway]: [192.168.2.1]
- [dhcp.wlan0.ipaddress]: [192.168.2.73]
- [dhcp.wlan0.leasetime]: [85536]
- [dhcp.wlan0.mask]: [255.255.255.0]
- [dhcp.wlan0.mtu]: []
- [dhcp.wlan0.pid]: [6183]
- [dhcp.wlan0.reason]: [REBOOT]
- [dhcp.wlan0.result]: [ok]
- [dhcp.wlan0.server]: [192.168.2.1]
- [dhcp.wlan0.vendorInfo]: []
- [drm.service.enabled]: [true]
- [gsm.current.phone-type]: [1]
- [gsm.defaultpdpcontext.active]: [false]
- [gsm.network.type]: [UMTS]
- [gsm.operator.alpha]: [中国联通]
- [gsm.operator.iso-country]: [cn]
- [gsm.operator.isroaming]: [false]
- [gsm.operator.numeric]: [46001]
- [gsm.radio.kickstart]: [running]
- [gsm.sim.operator.alpha]: []
- [gsm.sim.operator.iso-country]: [cn]
- [gsm.sim.operator.numeric]: [46001]
- [gsm.sim.state]: [READY]
- [gsm.version.baseband]: [DEB-G00_2.37.0_1024]
- [gsm.version.ril-impl]: [Qualcomm RIL 1.0]
- [hw.cabl.level]: [Auto]
- [init.svc.adbd]: [running]
- [init.svc.bdAddrLoader]: [stopped]
- [init.svc.bootanim]: [stopped]
- [init.svc.bridgemgrd]: [running]
- [init.svc.console]: [running]
- [init.svc.debuggerd]: [running]
- [init.svc.dhcpcd_wlan0]: [running]
- [init.svc.drm]: [running]
- [init.svc.hciattach]: [stopped]
- [init.svc.healthd]: [running]
- [init.svc.installd]: [running]
- [init.svc.irsc_util]: [stopped]
- [init.svc.keystore]: [running]
- [init.svc.kickstart]: [running]
- [init.svc.ks_checker]: [stopped]
- [init.svc.media]: [running]
- [init.svc.mpdecision]: [running]
- [init.svc.netd]: [running]
- [init.svc.netmgrd]: [running]
- [init.svc.p2p_supplicant]: [running]
- [init.svc.qcamerasvr]: [running]
- [init.svc.qmuxd]: [running]
- [init.svc.qseecomd]: [running]
- [init.svc.ril-daemon]: [running]
- [init.svc.rmt_storage]: [running]
- [init.svc.sdcard]: [running]
- [init.svc.sensors]: [running]
- [init.svc.servicemanager]: [running]
- [init.svc.surfaceflinger]: [running]
- [init.svc.thermald]: [running]
- [init.svc.ueventd]: [running]
- [init.svc.vold]: [running]
- [init.svc.wcnss_init]: [stopped]
- [init.svc.zygote]: [running]
- [media.aac_51_output_enabled]: [true]
- [net.bt.name]: [Android]
- [net.change]: [net.rmnet_usb0.gw]
- [net.dns1]: [192.168.2.1]
- [net.dns2]: []
- [net.hostname]: [android-62fb79ad9a7634f7]
- [net.qtaguid_enabled]: [1]
- [net.rmnet_usb0.dns1]: []
- [net.rmnet_usb0.dns2]: []
- [net.rmnet_usb0.gw]: []
- [net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
- [net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
- [net.tcp.buffersize.evdo]: [4094,87380,262144,4096,16384,262144]
- [net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
- [net.tcp.buffersize.hsdpa]: [4094,87380,262144,4096,16384,262144]
- [net.tcp.buffersize.hspa]: [4094,87380,704512,4096,16384,262144]
- [net.tcp.buffersize.hspap]: [4094,87380,1220608,4096,16384,1220608]
- [net.tcp.buffersize.hsupa]: [4094,87380,262144,4096,16384,262144]
- [net.tcp.buffersize.lte]: [524288,1048576,2560000,262144,524288,1048576]
- [net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
- [net.tcp.buffersize.wifi]: [524288,1048576,2097152,262144,524288,1048576]
- [persist.audio.fluence.mode]: [endfire]
- [persist.audio.handset.mic]: [dmic]
- [persist.audio.lowlatency.rec]: [false]
- [persist.hwc.mdpcomp.enable]: [true]
- [persist.qcom.cabl.video_only]: [1]
- [persist.radio.adb_log_on]: [0]
- [persist.radio.apm_sim_not_pwdn]: [1]
- [persist.radio.use_cc_names]: [true]
- [persist.service.bdroid.bdaddr]: [AC:22:0B:A6:27:7C]
- [persist.sys.country]: [CN]
- [persist.sys.dalvik.vm.lib]: [libdvm.so]
- [persist.sys.language]: [zh]
- [persist.sys.localevar]: []
- [persist.sys.profiler_ms]: [0]
- [persist.sys.timezone]: [Asia/Shanghai]
- [persist.sys.usb.config]: [adb]
- [ril.ecclist]: [911,*911,#911,112]
- [rild.libpath]: [/system/lib/libril-qc-qmi-1.so]
- [ro.allow.mock.location]: [0]
- [ro.audio.monitorRotation]: [true]
- [ro.baseband]: [mdm]
- [ro.board.platform]: [msm8960]
- [ro.boot.baseband]: [mdm]
- [ro.boot.bootloader]: [FLO-04.02]
- [ro.boot.emmc]: [true]
- [ro.boot.hardware]: [flo]
- [ro.boot.serialno]: [09e16671]
- [ro.bootloader]: [FLO-04.02]
- [ro.bootmode]: [unknown]
- [ro.build.characteristics]: [tablet,nosdcard]
- [ro.build.date.utc]: [1430285332]
- [ro.build.date]: [2015年 04月 29日 星期三 13:28:52 CST]
- [ro.build.description]: [aosp_deb-userdebug 4.4.2 KVT49L eng.senrsl.20150429.132734 test-keys]
- [ro.build.display.id]: [aosp_deb-userdebug 4.4.2 KVT49L eng.senrsl.20150429.132734 test-keys]
- [ro.build.fingerprint]: [Android/aosp_deb/deb:4.4.2/KVT49L/eng.senrsl.20150429.132734:userdebug/test-keys]
- [ro.build.host]: [senrsl-ubuntu]
- [ro.build.id]: [KVT49L]
- [ro.build.product]: [deb]
- [ro.build.tags]: [test-keys]
- [ro.build.type]: [userdebug]
- [ro.build.user]: [senrsl]
- [ro.build.version.codename]: [REL]
- [ro.build.version.incremental]: [eng.senrsl.20150429.132734]
- [ro.build.version.release]: [4.4.2]
- [ro.build.version.sdk]: [19]
- [ro.carrier]: [unknown]
- [ro.com.android.dateformat]: [MM-dd-yyyy]
- [ro.config.alarm_alert]: [Alarm_Classic.ogg]
- [ro.config.notification_sound]: [pixiedust.ogg]
- [ro.config.ringtone]: [Ring_Synth_04.ogg]
- [ro.crypto.fuse_sdcard]: [true]
- [ro.crypto.state]: [unencrypted]
- [ro.debuggable]: [1]
- [ro.factorytest]: [0]
- [ro.hardware]: [flo]
- [ro.hwui.drop_shadow_cache_size]: [5]
- [ro.hwui.gradient_cache_size]: [1]
- [ro.hwui.layer_cache_size]: [32]
- [ro.hwui.path_cache_size]: [24]
- [ro.hwui.r_buffer_cache_size]: [4]
- [ro.hwui.text_large_cache_height]: [1024]
- [ro.hwui.text_large_cache_width]: [2048]
- [ro.hwui.text_small_cache_height]: [1024]
- [ro.hwui.text_small_cache_width]: [1024]
- [ro.hwui.texture_cache_flushrate]: [0.5]
- [ro.hwui.texture_cache_size]: [48]
- [ro.opengles.version]: [196608]
- [ro.product.board]: [deb]
- [ro.product.brand]: [Android]
- [ro.product.cpu.abi2]: [armeabi]
- [ro.product.cpu.abi]: [armeabi-v7a]
- [ro.product.device]: [deb]
- [ro.product.locale.language]: [en]
- [ro.product.locale.region]: [US]
- [ro.product.manufacturer]: [ASUS]
- [ro.product.model]: [AOSP on Deb]
- [ro.product.name]: [aosp_deb]
- [ro.qc.sensors.wl_dis]: [true]
- [ro.qualcomm.bt.hci_transport]: [smd]
- [ro.qualcomm.cabl]: [1]
- [ro.qualcomm.sensors.smd]: [true]
- [ro.revision]: [0]
- [ro.runtime.firstboot]: [1430296523883]
- [ro.secure]: [1]
- [ro.serialno]: [09e16671]
- [ro.sf.lcd_density]: [320]
- [ro.telephony.default_network]: [9]
- [ro.wifi.channels]: []
- [service.bootanim.exit]: [1]
- [sys.boot_completed]: [1]
- [sys.settings_global_version]: [8]
- [sys.settings_secure_version]: [13]
- [sys.settings_system_version]: [8]
- [sys.sysctl.extra_free_kbytes]: [27000]
- [sys.usb.config]: [adb]
- [sys.usb.state]: [adb]
- [vold.post_fs_data_done]: [1]
- [wifi.interface]: [wlan0]
- [wifi.supplicant_scan_interval]: [15]
- [wlan.driver.status]: [ok]
- shell@deb:/ $
而flo跟deb跑的配置是一样的
然后又去看了下参数,
nexus1的CPU型号是Nvidia Tegra 3;
nexus2的CPU型号是高通 Snapdragon S4 Pro;
原来如此!
1,准备工作
下源码,这速度。。。。
2015年04月30日15:40:19五一放假
- senrsl@senrsl-ubuntu:~/android/source/kernel$ git clone https://android.googlesource.com/kernel/msm.git
- 正克隆到 'msm'...
- remote: Sending approximately 965.38 MiB ...
- remote: Counting objects: 91883, done
- remote: Finding sources: 100% (8732/8732)
- 接收对象中: 4% (174136/3668330), 77.92 MiB | 5.00 KiB/s
2015年05月18日19:52:40
想不到之前还留了这么一个
挂代理,呼呼的就下完了
2,配置编译
- senrsl@senrsl-ubuntu:~/android/source/kernel$ git clone https://github.com/senRsl/kernel_msm.git
- 正克隆到 'kernel_msm'...
- remote: Counting objects: 3668349, done.
- remote: Compressing objects: 100% (49/49), done.
- remote: Total 3668349 (delta 2), reused 1 (delta 1), pack-reused 3668299
- 接收对象中: 100% (3668349/3668349), 946.58 MiB | 77.00 KiB/s, done.
- 处理 delta 中: 100% (3032026/3032026), done.
- 检查连接... 完成。
- senrsl@senrsl-ubuntu:~/android/source/kernel$
这个跟之前的其他一样
3,烧入设备
- senrsl@senrsl-ubuntu:~/android/source/kernel$ cd kernel_msm/
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ ll
- 总用量 12
- drwxrwxr-x 3 senrsl senrsl 4096 5月 15 13:44 ./
- drwxrwxr-x 6 senrsl senrsl 4096 5月 15 13:44 ../
- drwxrwxr-x 8 senrsl senrsl 4096 5月 15 16:22 .git/
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ git branch -a
- * master
- remotes/origin/HEAD -> origin/master
- remotes/origin/android-msm-2.6.35
- remotes/origin/android-msm-3.9-usb-and-mmc-hacks
- remotes/origin/android-msm-anthias-3.10-lollipop-wear-release
- remotes/origin/android-msm-dory-3.10-kitkat-wear
- remotes/origin/android-msm-dory-3.10-lollipop-wear-release
- remotes/origin/android-msm-flo-3.4-jb-mr2
- remotes/origin/android-msm-flo-3.4-kitkat-mr0
- remotes/origin/android-msm-flo-3.4-kitkat-mr1
- remotes/origin/android-msm-flo-3.4-kitkat-mr2
- remotes/origin/android-msm-flo-3.4-l-preview
- remotes/origin/android-msm-flo-3.4-lollipop-mr1
- remotes/origin/android-msm-flo-3.4-lollipop-mr1.1
- remotes/origin/android-msm-flo-3.4-lollipop-release
- remotes/origin/android-msm-hammerhead-3.4-kitkat-mr1
- remotes/origin/android-msm-hammerhead-3.4-kitkat-mr2
- remotes/origin/android-msm-hammerhead-3.4-kk-fr1
- remotes/origin/android-msm-hammerhead-3.4-kk-fr2
- remotes/origin/android-msm-hammerhead-3.4-kk-r1
- remotes/origin/android-msm-hammerhead-3.4-l-preview
- remotes/origin/android-msm-hammerhead-3.4-lollipop-mr1
- remotes/origin/android-msm-hammerhead-3.4-lollipop-release
- remotes/origin/android-msm-lenok-3.10-kitkat-wear
- remotes/origin/android-msm-lenok-3.10-lollipop-wear-release
- remotes/origin/android-msm-mako-3.4-jb-mr1
- remotes/origin/android-msm-mako-3.4-jb-mr1-fr
- remotes/origin/android-msm-mako-3.4-jb-mr1-kgsl
- remotes/origin/android-msm-mako-3.4-jb-mr1.1
- remotes/origin/android-msm-mako-3.4-jb-mr2
- remotes/origin/android-msm-mako-3.4-kitkat-mr0
- remotes/origin/android-msm-mako-3.4-kitkat-mr1
- remotes/origin/android-msm-mako-3.4-kitkat-mr2
- remotes/origin/android-msm-mako-3.4-lollipop-mr1
- remotes/origin/android-msm-mako-3.4-lollipop-release
- remotes/origin/android-msm-shamu-3.10-lollipop-mr1
- remotes/origin/android-msm-shamu-3.10-lollipop-release
- remotes/origin/android-msm-sony-cm-jb-3.0
- remotes/origin/android-msm-sprat-3.10-kitkat-wear
- remotes/origin/android-msm-sprat-3.10-lollipop-wear-release
- remotes/origin/master
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ git checkout -b android-msm-flo-3.4-kitkat-mr2 remotes/origin/android-msm-flo-3.4-kitkat-mr2
- Checking out files: 100% (41686/41686), done.
- 分支 android-msm-flo-3.4-kitkat-mr2 设置为跟踪来自 origin 的远程分支 android-msm-flo-3.4-kitkat-mr2。
- 切换到一个新分支 'android-msm-flo-3.4-kitkat-mr2'
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ git map-branches
- origin/android-msm-flo-3.4-kitkat-mr2
- android-msm-flo-3.4-kitkat-mr2 *
- origin/master
- master
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ export PATH=/home/senrsl/android/source/WORKING_DIRECTORY/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:$PATH
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ export ARCH=arm
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ export SUBARCH=arm
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ export CROSS_COMPILE=arm-eabi-
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ make flo_defconfig
- HOSTCC scripts/basic/fixdep
- HOSTCC scripts/kconfig/conf.o
- SHIPPED scripts/kconfig/zconf.tab.c
- SHIPPED scripts/kconfig/zconf.lex.c
- SHIPPED scripts/kconfig/zconf.hash.c
- HOSTCC scripts/kconfig/zconf.tab.o
- HOSTLD scripts/kconfig/conf
- warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
- warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
- #
- # configuration written to .config
- #
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$ make
- ...
- OBJCOPY arch/arm/boot/zImage
- Kernel: arch/arm/boot/zImage is ready
- senrsl@senrsl-ubuntu:~/android/source/kernel/kernel_msm$
本想zImage直接烧入设备,没找到方法,只好拷回源码,重新编译源码来烧
放到这个位置
4,效果图
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ cd device/asus/flo-kernel/
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY/device/asus/flo-kernel$ ll
- 总用量 13116
- drwxrwxr-x 3 senrsl senrsl 4096 5月 18 17:16 ./
- drwxrwxr-x 7 senrsl senrsl 4096 3月 20 13:35 ../
- drwxrwxr-x 2 senrsl senrsl 4096 3月 20 13:47 .git/
- -rwxrwxr-x 1 senrsl senrsl 6721952 5月 15 19:21 kernel*
- -rw-rw-r-- 1 senrsl senrsl 6689936 3月 20 13:35 old______kernel
- 然后执行编译
- 然后启动fastboot
- 然后烧入
- 自动重启
2015年05月18日20:04:56
--
senRsl
2015年04月29日16:54:58
2015年04月29日16:54:58
没有评论 :
发表评论