[Roms, kernels and so on][help] Samsung galaxy tab a [SM-T55X series] - Samsung Galaxy Tab A series Guides, News, & Discus

So i decided to make this new thread to android tab a. here everyone can post their roms and kernels and everything to this nice device.
and if someone could help me out with my first kernel. im building it to this device.
i get this error when i try to compile kernel whatever how i change the toolchains and ubuntus and like that. nothing helps
[email protected]:~/akernel$ export ARCH=arm
[email protected]:~/akernel$ export CROSS_COMPILE=/home/pottu/toolchain/bin/arm-eabi-
[email protected]:~/akernel$ make msm8916_sec_gt510lte_eur_defconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
/home/pottu/akernel/scripts/kconfig/Makefile:130: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make[1]: *** [msm8916_sec_gt510lte_eur_defconfig] Error 1
Makefile:508: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make: *** [msm8916_sec_gt510lte_eur_defconfig] Error 2
[email protected]:~/akernel$ make VARIANT_DEFCONFIG=msm8916_sec_gt510lte_eur_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/pottu/akernel/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/pottu/akernel/Makefile:508: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
[email protected]:~/akernel$

pottu221 said:
So i decided to make this new thread to android tab a. here everyone can post their roms and kernels and everything to this nice device.
and if someone could help me out with my first kernel. im building it to this device.
i get this error when i try to compile kernel whatever how i change the toolchains and ubuntus and like that. nothing helps
[email protected]:~/akernel$ export ARCH=arm
[email protected]:~/akernel$ export CROSS_COMPILE=/home/pottu/toolchain/bin/arm-eabi-
[email protected]:~/akernel$ make msm8916_sec_gt510lte_eur_defconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
/home/pottu/akernel/scripts/kconfig/Makefile:130: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make[1]: *** [msm8916_sec_gt510lte_eur_defconfig] Error 1
Makefile:508: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make: *** [msm8916_sec_gt510lte_eur_defconfig] Error 2
[email protected]:~/akernel$ make VARIANT_DEFCONFIG=msm8916_sec_gt510lte_eur_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/pottu/akernel/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/pottu/akernel/Makefile:508: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
[email protected]:~/akernel$
Click to expand...
Click to collapse
Any Progress?

Chemnitzer said:
Any Progress?
Click to expand...
Click to collapse
nope. broke the tablet anyway so im not even trying anymore

pottu221 said:
nope. broke the tablet anyway so im not even trying anymore
Click to expand...
Click to collapse
See here for some ideas of where you're going wrong.
https://github.com/ashyx/Samsung_Galaxy_Tab_A_kernel
http://forum.xda-developers.com/showthread.php?t=3433560

pottu221 said:
nope. broke the tablet anyway so im not even trying anymore
Click to expand...
Click to collapse
Can you still access recovery mode and download mode? Reply if you want more information.

pottu221 said:
So i decided to make this new thread to android tab a. here everyone can post their roms and kernels and everything to this nice device.
and if someone could help me out with my first kernel. im building it to this device.
i get this error when i try to compile kernel whatever how i change the toolchains and ubuntus and like that. nothing helps
[email protected]:~/akernel$ export ARCH=arm
[email protected]:~/akernel$ export CROSS_COMPILE=/home/pottu/toolchain/bin/arm-eabi-
[email protected]:~/akernel$ make msm8916_sec_gt510lte_eur_defconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
/home/pottu/akernel/scripts/kconfig/Makefile:130: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make[1]: *** [msm8916_sec_gt510lte_eur_defconfig] Error 1
Makefile:508: recipe for target 'msm8916_sec_gt510lte_eur_defconfig' failed
make: *** [msm8916_sec_gt510lte_eur_defconfig] Error 2
[email protected]:~/akernel$ make VARIANT_DEFCONFIG=msm8916_sec_gt510lte_eur_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/Kconfig:414:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:745:warning: choice value used outside its choice group
drivers/misc/Kconfig:747:warning: choice value used outside its choice group
drivers/misc/Kconfig:755:warning: choice value used outside its choice group
drivers/misc/Kconfig:758:warning: choice value used outside its choice group
drivers/misc/Kconfig:760:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/pottu/akernel/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/pottu/akernel/Makefile:508: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
[email protected]:~/akernel$
Click to expand...
Click to collapse
Integrated kernel building for CM must be properly setup:
In your boardconfig you have to tell CM what kernel config to use. Note that it is usually named after your device, for the SM-T285 which is gtexslte internally it looks like this:
TARGET_KERNEL_SOURCE := kernel/samsung/gtexslte
TARGET_KERNEL_CONFIG := gtexslte_defconfig
TARGET_VARIANT_CONFIG := gtexslte_defconfig
TARGET_SELINUX_CONFIG := gtexslte_defconfig
If you don't what to use integrated kernel building and what to specify a prebuilt, comment those lines above and use something like this:
TARGET_PREBUILT_KERNEL := kernel/samsung/gtexslte/arch/arm/boot/zImage
Point it to your stock kernel image

Related

[Q] Well, I'm stuck. Make errors...

I can't seem to catch a break...
I haven't been able to compile anything with my build environment. For at least a few weeks. I know it should work, because I compiled a build of WD40M0D prior to all my merging of source. I'm using a MacBookPro running OS X 10.5.8
When trying to build a kernel, I get errors on "bounds.s" and "prepare0":
Code:
sean-whitleys-macbook-pro:kernel-msm wdfowty$ make ARCH=arm CROSS_COMPILE=$CCOMPILER
scripts/kconfig/conf -s arch/arm/Kconfig
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
cc1: error: invalid option ‘little-endian’
cc1: error: invalid option ‘abi=aapcs-linux’
cc1: error: invalid option ‘no-thumb-interwork’
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
My next error, if I skip the kernel, is in building libgps.so...It claims to not be able to find librpc.so, which to the best of my knowledge is where it's supposed to be (somewhere in the out directory).
Code:
#
/Users/wdfowty/bin/mydroid/prebuilt/darwin-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: librpc.so, needed by out/target/product/passion/obj/lib/libgps.so, not found (try using -rpath or -rpath-link)
Some things I've noticed...
*Kernel error is constant across AOSP and CM source (could it be a bad .config?)
*Errors persist even after running "make clobber" or "make installclean"
I'm hoping someone can help, as I'm running on minimal knowledge and experience...Thank you in advance!
Here's the full librpc.so error on pastebin: http://pastebin.com/VBtAffE0

[Q] Error in "make clean"

Doing a make clean in any sourcebase (official samsung or voodoo) produces the following error:
scripts/Makefile.clean:17: /home/kernel/I9000-kernel/Samsung_JPM/Kernel/drivers/fsr/Makefile: No such file or directory
make[2]: *** No rule to make target `/home/kernel/I9000-kernel/Samsung_JPM/Kernel/drivers/fsr/Makefile'. Stop.
make[1]: *** [drivers/fsr] Error 2
make: *** [_clean_drivers] Error 2
I can see that there is no fsr directory in the tree. What's wrong with this?
huxflux2003 said:
Doing a make clean in any sourcebase (official samsung or voodoo) produces the following error:
scripts/Makefile.clean:17: /home/kernel/I9000-kernel/Samsung_JPM/Kernel/drivers/fsr/Makefile: No such file or directory
make[2]: *** No rule to make target `/home/kernel/I9000-kernel/Samsung_JPM/Kernel/drivers/fsr/Makefile'. Stop.
make[1]: *** [drivers/fsr] Error 2
make: *** [_clean_drivers] Error 2
I can see that there is no fsr directory in the tree. What's wrong with this?
Click to expand...
Click to collapse
those are closed source modules. Create the fsr and rfs directories and put an empty Makefile there.
OK, that worked, thanks. When you make and flash a zImage, you only flash the kernel and not the modules, right?
How can you flash a module?

[Q]

Export includes file: bootable/recovery/voldclient/Android.mk -- /home/thewhisp/android/omni/out/target/product/nypon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/export_includes
make: *** No rule to make target `/home/thewhisp/android/omni/out/target/product/nypon/obj/STATIC_LIBRARIES/libminipigz_intermediates/export_includes', needed by `/home/thewhisp/android/omni/out/target/product/nypon/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
I am getting this error when compiling omni rom for my device xperia p

msm_fb kernel error

Hi,
I'm trying to compile my first kernel, more specifically for nethunter on cm13. I've grabbed (what I think is) the source files from github: https://github.com/CyanogenMod/android_kernel_htc_m7/tree/cm-13.0
I've then applied the mac802 patch from the nethuner wiki and have just managed to place the HID patch. When i tried to compile I get the below error, I had a quick Google and it seems to be related to video drivers which seem pretty important to me. Anyone have any ideas how to fix please or point me in the right direction? I've tried searching for the specific warning: info may blah blah blah but that didn't retrieve anything useful.
Code:
drivers/video/msm/msm_fb.c: In function 'msm_fb_commit_thread':
drivers/video/msm/msm_fb.c:2637: warning: 'info' may be used uninitialized in this function
error, forbidden warning: msm_fb.c:2637
scripts/Makefile.build:307: recipe for target 'drivers/video/msm/msm_fb.o' failed
make[3]: *** [drivers/video/msm/msm_fb.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/video/msm' failed
make[2]: *** [drivers/video/msm] Error 2
scripts/Makefile.build:443: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
EDIT: Worked it out, 'info' was a variable that wasn't being assigned in the source.

LineageOS and build error (kernel/gcc)

Hi,
I had my environment set up for building LineageOS (Ubuntu xenial) and it was working perfectly fine.
I haven't updated the machine since March 2017.
Now I did 'repo sync' and suddenly I'm getting the following errors during brunch hammerhead
Code:
LD drivers/video/msm/mdss/mdss-dsi.o
LD drivers/video/msm/mdss/built-in.o
LD drivers/video/msm/built-in.o
LD drivers/video/built-in.o
LD drivers/usb/gadget/g_android.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
ERROR: modpost: Found 12 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/media/rawi/android/lineageos/kernel/lge/hammerhead/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed
make[2]: *** [vmlinux.o] Error 1
/media/rawi/android/lineageos/kernel/lge/hammerhead/Makefile:936: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/media/rawi/android/lineageos/kernel/lge/hammerhead'
[ 12% 4387/34154] target Java: android-support-compat-ics-mr1 (/media/rawi/android/lineageos/out/target/common/obj/JAVA_LIBRARIES/android-support-compat-ics-mr1_intermediates/classes)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/media/rawi/android/lineageos'
#### make failed to build some targets (13:29 (mm:ss)) ####
What I've already googled is that it's probably wrong toolchain used but I'm using the one supplied with LineageOS which is arm-eabi-4.8.
I added (not sure if it's necessary) the following exports
Code:
export PATH="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:$PATH"
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-"
I'd like to highlight that this environment was building LineageOS (cm-14.1 branch) in March perfectly fine
I know that I can add CONFIG_NO_ERROR_ON_MISMATCH=y to config but I assume this is not the right way to do.
Any help greatly appreciated
EDIT: solved... I was compiling CAF kernel with non-caf device
Thread closed as per OP request
-XDA Staff

Categories

Resources