Downloaded from:
- http://mobilesupport.lenovo.com/en-us/products/yoga_tablet_10?tabname=downloads
-or-
http://mobilesupport.lenovo.com/en-us/products/yoga_tablet_8?tabname=downloads- Open Source Code (part 1) - Yoga Tablet 8 / 10
http://download.lenovo.com/consumer/open_source_code/b6000-8000_source_part1.zip
200MB
- mediatek
- build
- config
- custom
- kernel - "intended for Mediatek solution kernel specific non-customization codes"
- platform
- Open Source Code (part 2) - Yoga Tablet 8 / 10
http://download.lenovo.com/consumer/open_source_code/b6000-8000_source_part2.zip
121MB
- kernel
- Open Source Code (part 3) - Yoga Tablet 8 / 10
http://download.lenovo.com/consumer/open_source_code/b6000-8000_source_part3.zip
103MB
- bionic
- bootable
- external
- Open Source Code (part 1) - Yoga Tablet 8 / 10
- This code for the b6000/b8000 MT8125 CPU compiles against MT6589 code.
https://github.com/TeamYogaBlade/lenovo_b6000-8000_kernel_source/tree/master/mediatek/platform/mt6589
https://github.com/TeamYogaBlade/lenovo_b6000-8000_kernel_source/tree/master/mediatek/config/mt6589
etc...
I am guessing they are basically the same CPU?
- Unzip ZIPs
unzip b6000-8000_source_part1.zip -d lenovo_b6000-8000_kernel_source unzip b6000-8000_source_part2.zip -d lenovo_b6000-8000_kernel_source unzip b6000-8000_source_part3.zip -d lenovo_b6000-8000_kernel_source
- Fix paths per 4ebbf08ea2b5abfb5577f865f9681ce0a59ebaad
cd lenovo_b6000-8000_kernel_source/kernel/mediatek ln -s ../../mediatek/custom custom ln -s ../../mediatek/kernel kernel ln -s ../../mediatek/platform platform
And per 9a7c664697db24ea4ee6b71f6ea18f58aa8d47cd
cd lenovo_b6000-8000_kernel_source/mediatek/platform/mt6589/kernel/drivers/dual_ccci ln -s ../masp/asf asf
- Set scripts to be executable
cd lenovo_b6000-8000_kernel_source chmod +x mediatek/build/shell.sh chmod +x mediatek/build/kernel/build-kernel.sh
- Edit build-kernel.sh per e6978d2af3120e428f2c688419a59324bfd04a03
- Install Android SDK & NDK
- Install Android API 17 (4.2.2/CM10.1)
- Set up environment:
export ANDROIDSDK=$HOME/android/sdk export ANDROIDNDK=$HOME/android/ndk export ANDROIDNDKVER=r9b export ANDROIDAPI=17 export PATH=$PATH:$ANDROIDNDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin
For b6000:
export TARGET_PRODUCT=lenovo89_tb_x8_jb2
For b8000:
export TARGET_PRODUCT=lenovo89_tb_x10_jb2
cd lenovo_b6000-8000_kernel_source/kernel export MTK_ROOT_CUSTOM=../mediatek/custom/ make
First, follow the above Build steps; then...
cd lenovo_b6000-8000_kernel_source/kernel export MTK_ROOT_BUILD=../mediatek/build/ ../mediatek/build/kernel/build-kernel.sh