Can someone help me with my coding issues - Xoom Q&A, Help & Troubleshooting

Im trying to compile my first kernel for the xoom, i got everything edited to what i want and when im trying to compile i keep getting this error
Code:
[email protected]:~/Android/kernals/Insidious-Kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC [M] fs/coda/psdev.o
In file included from fs/coda/psdev.c:45:
include/linux/coda.h:223: error: expected specifier-qualifier-list before 'u_quad_t'
make[2]: *** [fs/coda/psdev.o] Error 1
make[1]: *** [fs/coda] Error 2
make: *** [fs] Error 2
[email protected]:~/Android/kernals/Insidious-Kernel$
I think it has to do with a header i just cant figure it out any help is appreciated

can someone help?

Unfortunately, I can not directly help you with that. What I can do, is direct you to the #xoom (or #tiamat) channel on freenode.net. BigRushDog (primary developer of tiamat kernels for xoom) is often in the room with several other kernel devs who will likely be able to assist you. (cayniarb would be another great person to talk to)

Related

Kernel Compiling Errors?

I need help!
Here is my error.
Code:
/home/rootuser/kernel/scripts/gcc-version.sh: 25: arm-eabi-gcc: not found
/home/rootuser/kernel/scripts/gcc-version.sh: 26: arm-eabi-gcc: not found
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I have been searching all over Google for a fix. I can't get anything to work!
Hey airbus what's this for ?? Gingerbread optimum??
it cannot find the crosscompiler gcc binary in ur path, hence the error.
bs828 said:
Hey airbus what's this for ?? Gingerbread optimum??
Click to expand...
Click to collapse
Yes It is, When this error is resolved, new rom will come out

[Q] Build Kernel From Source

Been messing around with the Tiamat kernel to add a couple things, and now I need to build it, but I'm not exactly sure how.
Can someone point me to or explain how to do it exactly? I'm using a Wi-Fi Xoom so that's what I plan to build it for if that makes any difference.
Bump. Anyone?
Sent from my MB860 using xda premium
I kinda answered this on the android kernel mailing list the other day as well.
https://groups.google.com/d/msg/android-kernel/U-Oo6WG8WFU/D9EmeFyn47sJ
To flash, download one of the kernel zip files I have released and update the modules and zImage in it.
It is important to note I use the prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- toolchain from AOSP to compile my kernels.
Sweet thanks. Going to try this out later today possibly.
Sent from my Xoom using XDA Premium HD app
Having issues compiling. Here is what I get:
Code:
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make stingray_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
arch/arm/configs/stingray_defconfig:442:warning: override: reassigning to symbol NTFS_FS
arch/arm/configs/stingray_defconfig:443:warning: override: reassigning to symbol NTFS_RW
#
# configuration written to .config
#
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm CROSS_COMPILE=/home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
d3athsd00r said:
Having issues compiling. Here is what I get:
Code:
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
Click to expand...
Click to collapse
"make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found"
It can't find your tool chain.
Well, I just attempted to build the current 3.0.23 kernel and when I do I get
Code:
kernel/bounds.c:1: warning: switch -mcpu=cortex-a0 conflicts with -march= switch
kernel/bounds.c:1: sorry, unimplemented: -mfloat-abi=hard and VFP
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
this happens right after issuing the command of
Code:
ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
does anyone know how to fix this? Version 3.0.13 builds with no problems. Did something change? Should I be using a different toolchain now?
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
solarnz said:
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
Click to expand...
Click to collapse
thanks

[Q] need help kernel build

i tried to compile using linaro 4.8 toolchain but i always get this error... just a starter...
[email protected]:/usr/src/kernel# cd Vengeance-Kernel-MSM7x27
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export ARCH=arm
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export CROSS_COMPILE=/usr/src/toolchain/Linaro-Toolchain-4.8/bin/arm-linux-androideabi-
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/usr/src/toolchain/Linaro-Toolchain-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.1/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

[Kernel building error] SamSung Galaxy S6 G920L Kernel building error.

Hi everyone, I am gonna try to build my own kernel for my S6- G920L, but there was some errors that I havent figured out. I need your help.
I use, toolchain gcc 4.8 cross compiler.
Here is the result.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
CC scripts/mod/devicetable-offsets.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[email protected]:~/Downloads/laptrinhnhung/Kernel$
Thank you !
wrong toolchain mate.. you need to use the 4.9 arm64-linux-android as suggested in the readme for kernel in the sources
Sabermod prebuilt
for example or any other but minimum 4.9.. if you want to use a 5.0 you'll need to make some edits to the make file..
have fun
Thank you !. I got it done !... SOLVED

Kernel Source Released

Hopefully this gets the ball rolling.
https://www.essential.com/developer
I'm trying to compile it now.. Maybe I can get it to compile so we can use it to get root with masik
Guess it's time to unlock my bootloader.
hmm have to figure out why it failed:
drivers/bluetooth/btfm_slim.c:26:23: fatal error: btfm_slim.h: No such file or directory
#include <btfm_slim.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'drivers/bluetooth/btfm_slim.o' failed
make[2]: *** [drivers/bluetooth/btfm_slim.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/bluetooth' failed
make[1]: *** [drivers/bluetooth] Error 2
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/msm/qdsp6v2/q6core.o
CC sound/soc/msm/msm-dai-fe.o
LD sound/soc/mxs/built-in.o
CC sound/soc/msm/qdsp6v2/rtac.o
CC sound/soc/msm/qdsp6v2/q6lsm.o
CC sound/soc/msm/msm-cpe-lsm.o
CC sound/soc/msm/qdsp6v2/audio_slimslave.o
CC sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.o
CC sound/soc/msm/msm8998.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
sound/soc/msm/msm8998.c:36:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'sound/soc/msm/msm8998.o' failed
make[3]: *** [sound/soc/msm/msm8998.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LD sound/soc/nuc900/built-in.o
LD sound/sparc/built-in.o
LD sound/soc/msm/qdsp6v2/built-in.o
LD sound/soc/omap/built-in.o
LD sound/spi/built-in.o
LD sound/soc/pxa/built-in.o
LD sound/synth/built-in.o
LD sound/soc/qcom/built-in.o
CC sound/usb/card.o
scripts/Makefile.build:403: recipe for target 'sound/soc/msm' failed
make[2]: *** [sound/soc/msm] Error 2
scripts/Makefile.build:403: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC sound/usb/clock.o
CC sound/usb/endpoint.o
CC sound/usb/format.o
CC sound/usb/helper.o
CC sound/usb/mixer.o
CC sound/usb/mixer_quirks.o
CC sound/usb/mixer_scarlett.o
CC sound/usb/pcm.o
CC sound/usb/proc.o
CC sound/usb/quirks.o
CC sound/usb/stream.o
CC sound/usb/midi.o
LD sound/usb/6fire/built-in.o
LD sound/usb/bcd2000/built-in.o
LD sound/usb/caiaq/built-in.o
LD sound/usb/hiface/built-in.o
LD sound/usb/misc/built-in.o
LD sound/usb/usx2y/built-in.o
CC sound/usb/usb_audio_qmi_v01.o
CC sound/usb/usb_audio_qmi_svc.o
LD sound/usb/snd-usb-audio.o
LD sound/usb/snd-usbmidi-lib.o
LD sound/usb/built-in.o
Makefile:949: recipe for target 'sound' failed
make: *** [sound] Error 2
[email protected]:~/Downloads/Kernel/essential_kernel$
They tweeted that factory images are coming soon as well.
graffixnyc said:
hmm have to figure out why it failed:
drivers/bluetooth/btfm_slim.c:26:23: fatal error: btfm_slim.h: No such file or directory
#include <btfm_slim.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'drivers/bluetooth/btfm_slim.o' failed
make[2]: *** [drivers/bluetooth/btfm_slim.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/bluetooth' failed
make[1]: *** [drivers/bluetooth] Error 2
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/msm/qdsp6v2/q6core.o
CC sound/soc/msm/msm-dai-fe.o
LD sound/soc/mxs/built-in.o
CC sound/soc/msm/qdsp6v2/rtac.o
CC sound/soc/msm/qdsp6v2/q6lsm.o
CC sound/soc/msm/msm-cpe-lsm.o
CC sound/soc/msm/qdsp6v2/audio_slimslave.o
CC sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.o
CC sound/soc/msm/msm8998.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
sound/soc/msm/msm8998.c:36:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'sound/soc/msm/msm8998.o' failed
make[3]: *** [sound/soc/msm/msm8998.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LD sound/soc/nuc900/built-in.o
LD sound/sparc/built-in.o
LD sound/soc/msm/qdsp6v2/built-in.o
LD sound/soc/omap/built-in.o
LD sound/spi/built-in.o
LD sound/soc/pxa/built-in.o
LD sound/synth/built-in.o
LD sound/soc/qcom/built-in.o
CC sound/usb/card.o
scripts/Makefile.build:403: recipe for target 'sound/soc/msm' failed
make[2]: *** [sound/soc/msm] Error 2
scripts/Makefile.build:403: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC sound/usb/clock.o
CC sound/usb/endpoint.o
CC sound/usb/format.o
CC sound/usb/helper.o
CC sound/usb/mixer.o
CC sound/usb/mixer_quirks.o
CC sound/usb/mixer_scarlett.o
CC sound/usb/pcm.o
CC sound/usb/proc.o
CC sound/usb/quirks.o
CC sound/usb/stream.o
CC sound/usb/midi.o
LD sound/usb/6fire/built-in.o
LD sound/usb/bcd2000/built-in.o
LD sound/usb/caiaq/built-in.o
LD sound/usb/hiface/built-in.o
LD sound/usb/misc/built-in.o
LD sound/usb/usx2y/built-in.o
CC sound/usb/usb_audio_qmi_v01.o
CC sound/usb/usb_audio_qmi_svc.o
LD sound/usb/snd-usb-audio.o
LD sound/usb/snd-usbmidi-lib.o
LD sound/usb/built-in.o
Makefile:949: recipe for target 'sound' failed
make: *** [sound] Error 2
[email protected]:~/Downloads/Kernel/essential_kernel$
Click to expand...
Click to collapse
im hoping you get this working
Now was not the best time to discover that I think I forgot to migrate my Linux virtual hard drive file from my previous laptop.
drocny87 said:
im hoping you get this working
Click to expand...
Click to collapse
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
It might be the weekend before I have time to rebuild my Linux VM but if nobody has done it by then I will give it a go.
graffixnyc said:
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
Click to expand...
Click to collapse
im in the same boat as you unfortunately.
Exciting times.
graffixnyc said:
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
Click to expand...
Click to collapse
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
nathanchance said:
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
Click to expand...
Click to collapse
Would you mind uploading the kernel you built? It'd be great to finally install Magisk on this device.
bmg1001 said:
Would you mind uploading the kernel you built? It'd be great to finally install Magisk on this device.
Click to expand...
Click to collapse
I want to make sure I'm not missing something here. You don't have a build of TWRP right? The image I built is just the kernel, not the entire boot image that you would need to use to flash Magisk. I don't know of a way to dump a boot image off a device without root. I think you'll need to wait for the factory images.
nathanchance said:
I want to make sure I'm not missing something here. You don't have a build of TWRP right? The image I built is just the kernel, not the entire boot image that you would need to use to flash Magisk. I don't know of a way to dump a boot image off a device without root. I think you'll need to wait for the factory images.
Click to expand...
Click to collapse
Oh alright. TWRP isn't necessary to flash Magisk, as you could install it via adb so long as you have the boot.img.
bmg1001 said:
Oh alright. TWRP isn't necessary to flash Magisk, as you could install it via adb so long as you have the boot.img.
Click to expand...
Click to collapse
Yeah so you'll need to wait for them to drop factory images. This is still great for custom kernel developers (aside from the fact they dropped a zip file instead of a git repo but least the source seems relatively clean) and probably for TWRP (though you can use a prebuilt image).
Yeah, simply compiling the stock kernel isn't enough to use magisk. Otherwise we could just use the manufacturer version. Patches for various things need to be applied, such as spoof bootloader lock checks etc. We also need the ramdisk and boot offsets (these can be pulled and figured out from the existing boot image).
I would also wait until we have a safe and guaranteed way of restoring the device to stock.
If you go to Essential's open source page now, you get a 404 error code. Hopefully this means they're uploading factory images at the moment. Wishful thinking can't hurt.
nathanchance said:
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
Click to expand...
Click to collapse
Wouldnt you have to specify an ARCH and CROSS_COMPILE to compile it for arm64 though?
ardevd said:
Wouldnt you have to specify an ARCH and CROSS_COMPILE to compile it for arm64 though?
Click to expand...
Click to collapse
I'm assuming he exported them in bash before running make but if not, yeah, you'd need to add ARCH=arm64 CROSS_COMPILE=<path> to each of those make commands

Categories

Resources