Giter Site home page Giter Site logo

arzam16 / mt6577_kernel_acer_b1_a71 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xdavidwu/kernel_acer_b1-a71_xdavidwu

4.0 2.0 2.0 338.53 MB

Linux kernel v3.4.113 for Acer B1-A71 (MT8317 / MT6577)

C 94.91% Makefile 0.36% Assembly 1.94% C++ 2.11% Shell 0.04% Awk 0.01% Python 0.04% Perl 0.53% UnrealScript 0.01% Batchfile 0.01% Scilab 0.01% XS 0.01% Yacc 0.02% Lex 0.01% sed 0.01% GDB 0.01% M4 0.01% Roff 0.01% SmPL 0.01% Raku 0.01%
mediatek mediatek-device mt6577 mt8317 linux-kernel acer-b1-a71 lenovo-ideapad a1000

mt6577_kernel_acer_b1_a71's Introduction

Warning!

This repository contains non-free (proprietary) components. You can find the list of them in non-free.txt.

Introduction

This is the kernel source code for Acer Iconia B1-A71. It is based on the B1-710 source package (Linux 3.4.x), including patches to make it work. Thanks superdragonpt from XDA Developers and xdavidwu for your contributions.

Toolchain

The kernel with its default configuration could be successfully built with GCC 7.5.0 toolchain from Linaro.

Building

After you clone the repository, do:

cd kernel_acer_b1_a71_xdavidwu/kernel
export CROSS_COMPILE=/path/to/your/toolchain/bin/arm-xxx-
make

Creating boot.img

After you build the zImage, you can create the flashable boot.img. Please note that you'll need some ramdisk, the one from the stock RV05RC05 firmware works great. You'll also need an mkimage program to append MediaTek headers to both kernel and ramdisk. mkbootimg utility usually could be installed from your OS' package manager.

mkimage arch/arm/boot/zImage KERNEL > kernel.mtk
mkimage /path/to/your/ramdisk ROOTFS > ramdisk.mtk
mkbootimg --kernel kernel.mtk --ramdisk ramdisk.mtk -o boot.img

mt6577_kernel_acer_b1_a71's People

Contributors

arzam16 avatar chrmhoffmann avatar xdavidwu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mt6577_kernel_acer_b1_a71's Issues

'make clean' fails after being run in the cloned repository

Commands:

git clone [email protected]:arzam16/kernel_acer_b1_a71_xdavidwu.git
cd kernel_acer_b1_a71_xdavidwu/kernel
export CROSS_COMPILE=/path/to/your/toolchain/bin/arm-xxx-
export TARGET_PRODUCT=acer17_tb_wifi_only_jb
export MTK_ROOT_CUSTOM=../mediatek/custom/
make clean

Output:

scripts/Makefile.clean:17: /.../kernel_acer_b1_a71_xdavidwu/kernel/mediatek/custom/out/acer17_tb_wifi_only_jb/kernel/Makefile: No such file or directory
make[1]: *** No rule to make target '/.../kernel_acer_b1_a71_xdavidwu/kernel/mediatek/custom/out/acer17_tb_wifi_only_jb/kernel/Makefile'.  Stop.
Makefile:1231: recipe for target '_clean_mediatek/custom/out/acer17_tb_wifi_only_jb/kernel' failed
make: *** [_clean_mediatek/custom/out/acer17_tb_wifi_only_jb/kernel] Error 2

Conslusion:
Something is wrong with the 'mediatek' directory. I will try to restore missing files using the original B1-710 source package.

"Unexpected operator" error when running any make command

Steps to reproduce:

  1. Run any make command, for example: make clean

Output:

/bin/sh: 1: [: mediatek/custom/out/acer17_tb_wifi_only_jb/kernel/usb/: unexpected operator

Conclusion:
I haven't noticed this error affecting the build in any way, however this behaviour should be investigated.

Drivers for MT6620 and MT6628 won't build with GCC 4.9.4

In file included from mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/os/linux/include/gl_os.h:584:0,
                 from mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/include/precomp.h:173,
                 from mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/common/wlan_lib.c:948:
mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/common/wlan_lib.c: In function ‘wlanReleasePendingOid’:
mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/os/linux/include/gl_kal.h:1860:1: error: inlining failed in call to always_inline ‘kalOidComplete’: function body not available
 kalOidComplete (
 ^
mediatek/kernel/drivers/combo/drv_wlan/mt6620/wlan/common/wlan_lib.c:2355:21: error: called from here
                     kalOidComplete(prAdapter->prGlueInfo,
                     ^

Hi

I am not exactly sure what's the procedure and is there GUI after uploading this to B1 ?

Kernel configuration resets after any change made to it

Steps to reproduce:

  1. Do the usual
cd kernel_acer_b1_a71_xdavidwu/kernel
export CROSS_COMPILE=/path/to/your/toolchain/bin/arm-xxx-
export TARGET_PRODUCT=acer17_tb_wifi_only_jb
export MTK_ROOT_CUSTOM=../mediatek/custom/
make
  1. Abort the building process or let it finish
  2. Do any change to .config, for example by using make menuconfig or manually adding some entry
  3. Run make again
  4. .config resets to its default

Conclusion:
This behaviour is quite strange, kernel configuration should not be reset every time it's changed.

Build fails when TOUCHSCREEN_SWEEP2WAKE is defined

If TOUCHSCREEN_SWEEP2WAKE is defined in .config then build fails with the following log:

LD      .tmp_vmlinux1
drivers/built-in.o: In function `detect_sweep2wake':
/.../kernel_acer_b1_a71_xdavidwu/kernel/drivers/input/touchscreen/sweep2wake.c:168: undefined reference to `is_single_touch'
Makefile:900: recipe for target '.tmp_vmlinux1' failed
make: *** [.tmp_vmlinux1] Error 1

I think I should've reported this error to xdavidwu himself, but am not sure if he would fix it after 5 years of him not working on his repository.
Workaround:
Build kernel without TOUCHSCREEN_SWEEP2WAKE feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.