Giter VIP home page Giter VIP logo

Comments (30)

 avatar commented on July 28, 2024 1

New place, same error.. Don't bother with my Import.. Something else is wrong here

from xiaomi_kernel_opensource.

rooque avatar rooque commented on July 28, 2024

Compiling with what GCC ?

from xiaomi_kernel_opensource.

Xephi avatar Xephi commented on July 28, 2024

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6

from xiaomi_kernel_opensource.

rooque avatar rooque commented on July 28, 2024

Try with 4.7

from xiaomi_kernel_opensource.

Xephi avatar Xephi commented on July 28, 2024

Same error :/

from xiaomi_kernel_opensource.

loicpirez avatar loicpirez commented on July 28, 2024

Xiaomi; it's great to give a kernel, but you could give instruction on how to build too. And which dependancy are necessary. My next phone will be another brand I think.

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Try GCC 4.9.3 (http://forum.xda-developers.com/showthread.php?p=36677987#post36677987)
I haven't tried it yet though, have more important work than this mess here

from xiaomi_kernel_opensource.

Xephi avatar Xephi commented on July 28, 2024

Again, same error at the same point :

In file included from drivers/tspdrv/tspdrv.c:58:0:
drivers/tspdrv/ImmVibeSPI.c: In function 'drv2604_write_reg_val':
drivers/tspdrv/ImmVibeSPI.c:681:4: error: implicit declaration of function 'KBUILD_STR' [-Werror=implicit-function-declaration]
drivers/tspdrv/ImmVibeSPI.c:681:4: error: 'tspdrv' undeclared (first use in this function)
drivers/tspdrv/ImmVibeSPI.c:681:4: note: each undeclared identifier is reported only once for each function it appears in
drivers/tspdrv/ImmVibeSPI.c: In function 'drv2604_read_reg':
drivers/tspdrv/ImmVibeSPI.c:732:2: error: 'tspdrv' undeclared (first use in this function)
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/tspdrv/tspdrv.o' failed
make[2]: *** [drivers/tspdrv/tspdrv.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/tspdrv' failed
make[1]: *** [drivers/tspdrv] Error 2
Makefile:950: recipe for target 'drivers' failed
make: *** [drivers] Error 2

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Remove "-Werror-implicit-function-declaration" from the Makefile in your kernel source directory and try again

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Kick -Wall out too while your on it. I never had much left for warnings which are treated as errors.. Unless you want to fix every little code derp :P

from xiaomi_kernel_opensource.

Xephi avatar Xephi commented on July 28, 2024

Tested without theses flags, but always these errors ( cause tspdrv seems to be always undeclared ^^")

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Yeah, they gave us broken junk.. Theres a file /include/linux/dynamic_debug.h that is unusable.. I imported a clean one from the OnePlus One, which is also a SD801 phone to avoid any issues.. Compiles beyond those errors. Replace your file with this: https://github.com/stefant234/AndromedaCANCRO-KK/blob/master/include/linux/dynamic_debug.h

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Don't know how I fixed tspdrv, it just stopped quirking :O

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

there are a heck of errors in the source, fixed a lot of them and finally got it buildable but not bootable
try deleting this lines in the original immvibespi.c

/* From Xiaomi start /
pr_debug("drv2604 write 0x%02x, 0x%02x", data[i], data[i
/
From Xiaomi end */

i m using the compiler arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04 http://forum.xda-developers.com/showthread.php?p=59859361#post59859361

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

These are all the issues i faced and fixed and got it buildable
http://pastebin.com/F0fTegmq

i have got the zImage file but the problem is i dont know how to flash it and tried many methods but it didnt boot and went straight to fastboot

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

In the beginning of the compilation dtb's are generated. http://forum.xda-developers.com/showthread.php?t=2469510
You need to create the boot.img with the additional dt.img for it to boot

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Already fixed most errors here apparently too.. Going to try your immvibespi.c fix now

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

i tried that but gave errors, anyways let it be! i got the z image to boot! YAY!!!

used this anykernel zip http://forum.xda-developers.com/showthread.php?t=2670512

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

Full success here too. Meh, I have a different way to assemble zips and boot.imgs :)

from xiaomi_kernel_opensource.

Xephi avatar Xephi commented on July 28, 2024

I will try theses changes :) By the way, is your kernel stable with CM-12 @stefant234 ?

from xiaomi_kernel_opensource.

 avatar commented on July 28, 2024

I haven't tried, don't have a Mi4 anymore :/ Developing completely blind.. Would you like to give the build a shot? My usual test subjects are busy until the evening..

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

i m testing my current kernel on mokee cm12, working fine till now

from xiaomi_kernel_opensource.

loicpirez avatar loicpirez commented on July 28, 2024

Is high vibration intensity fix with this one?

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

dont know about that one, can u explain
i used a different compression method for my kernel and its working fine except 2 issues
1- wifi is not turning on
2- slow paced animations have got laggy, the sppedy ones work fine

from xiaomi_kernel_opensource.

loicpirez avatar loicpirez commented on July 28, 2024

Well, for exemple in AOSP rom by Ivan for Mi3/Mi4, the vibration is really too much high. When you keep down volume key when you put in Silent mode, you can hear that your vibration does weird sound. It already killed some Mi3 vibrator of users...

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

the last issue i think that remains is the wifi driver, also videos dont play on the kernel

from xiaomi_kernel_opensource.

AungThiha avatar AungThiha commented on July 28, 2024

@arnabbiswasalsodeep video works fine. only having wifi issue.

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on July 28, 2024

then i hv to check cuz in my build the videos dont play, at first they start, then last for 1/4th of a sec and gives error cant play the video
i will do a facorty reset and try

from xiaomi_kernel_opensource.

emceethemouth avatar emceethemouth commented on July 28, 2024

I got everything booting with GCC 4.9.3, now all we need is the wifi drivers.

from xiaomi_kernel_opensource.

schspa avatar schspa commented on July 28, 2024

Modify the Makefile of drivers/tspdrv
the line below will fix the build
##EXTRA_CFLAGS += -I$(M)
EXTRA_CFLAGS += -I$(shell pwd)

from xiaomi_kernel_opensource.

Related Issues (20)

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.