FORUMS
Remove All Ads from XDA

[Guide][Noobs Familiar]How To Build Android Kernel With Features!

3,021 posts
Thanks Meter: 4,088
 
Post Reply Email Thread
10th January 2018, 05:11 PM |#21  
hightech316's Avatar
Senior Member
Thanks Meter: 183
 
Donate to Me
More
Quote:
Originally Posted by Albe96

It should be inside arch/(arm/arm64)/boot folder

Thanks for a prompt reply .

Within that DIR " arch/arm64/boot " no zimage.

to double check it wasn't in some odd folder, from the source codes root dir
Quote:

ls * | grep zimage

shows nothing

within arch/arm64/boot There is a "install.sh" also a Makefile and a folder dts . The dts folder is filled with exynos7580 files .

Code:
dts  install.sh  Makefile
Is there another step to make the zimage that requires the install.sh to be ran with certain arguments ? When I attempted to run the install.sh I received ,

Code:
./install.sh: 25: exec: /sbin/: Permission denied
Made sure to make it executable by " chmod +X install.sh " .


When running " make " within "arch/arm/boot" I get this error ,

Code:
Makefile:17: /arch/arm/boot/dts/Makefile: No such file or directory
make: *** No rule to make target '/arch/arm/boot/dts/Makefile'.  Stop.
I feel so close !
Thanks for any insight

I've also tried going to arch/arm64/ and running " make " from there , and receive

Quote:

make
make: *** No rule to make target 'vmlinux', needed by 'Image.gz'. Stop.

Cannot wait to get this working and contribute to the j7 device I feel close!~
 
 
10th January 2018, 06:23 PM |#22  
Albe96's Avatar
OP Senior Member
Flag /home/albe96
Thanks Meter: 4,088
 
Donate to Me
More
Quote:
Originally Posted by hightech316

Thanks for a prompt reply .

Within that DIR " arch/arm64/boot " no zimage.

to double check it wasn't in some odd folder, from the source codes root dir
shows nothing

within arch/arm64/boot There is a "install.sh" also a Makefile and a folder dts . The dts folder is filled with exynos7580 files .

Is there another step to make the zimage that requires the install.sh to be ran with certain arguments ? When I attempted to run the install.sh I received ,

Made sure to make it executable by " chmod +X install.sh " .


When running " make " within "arch/arm/boot" I get this error ,

I feel so close !
Thanks for any insight

I've also tried going to arch/arm64/ and running " make " from there , and receive

Cannot wait to get this working and contribute to the j7 device I feel close!~

Ah J7.Had to update my RR build for it.Btw I suppose that's a toolchain or build.sh/install.sh problem.Pretty weird.so look closer into it
10th January 2018, 06:33 PM |#23  
hightech316's Avatar
Senior Member
Thanks Meter: 183
 
Donate to Me
More
Quote:
Originally Posted by Albe96

Ah J7.Had to update my RR build for it.Btw I suppose that's a toolchain or build.sh/install.sh problem.Pretty weird.so look closer into it


Thank you , Switched up toolchains to a newer uberTC that I didn't see before ... now I'm receiving

Code:
/dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../lib/gcc/aarch64-linux-android/4.9.4/../../../../aarch64-linux-android/bin/ld: /dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../libexec/gcc/aarch64-linux-android/4.9.4/liblto_plugin.so: error loading plugin: /dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../libexec/gcc/aarch64-linux-android/4.9.4/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
/dev-a7000/j7dev/techOS/Kernel/arch/arm64/kernel/vdso/Makefile:27: recipe for target 'arch/arm64/kernel/vdso/vdso.so.dbg' failed
make[2]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso' failed
make[1]: *** [arch/arm64/kernel/vdso] Error 2
Makefile:841: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....
If it's not one thing , it's always another lol...
I've been using linux for quite some time...

Looking through forums now about the VDSO.

Are you currently on the j7 forums ? Haven't seen you around. I'm mostly on the j700t1 . The T-mobile variant has one kernel with no options.. So trying to help that out

EDIT:
wait I used UBTC v4.9 on both builds >.< . Going to try linaro and try my luck
10th January 2018, 06:38 PM |#24  
Albe96's Avatar
OP Senior Member
Flag /home/albe96
Thanks Meter: 4,088
 
Donate to Me
More
Quote:
Originally Posted by hightech316

Thank you , Switched up toolchains to a newer uberTC that I didn't see before ... now I'm receiving

If it's not one thing , it's always another lol...
I've been using linux for quite some time...

Looking through forums now about the VDSO.

Are you currently on the j7 forums ? Haven't seen you around. I'm mostly on the j700t1 . The T-mobile variant has one kernel with no options.. So trying to help that out

EDIT:
wait I used UBTC v4.9 on both builds >.< .

Nah.I last built RR for j700f/h/m if I remeber clearly.Anyway the source code is pretty messed up.Is this stock kernel source? If it is try rebasing with latest kernel source or just try initialing new one.

And anyway a link to the kernel source would be sweet 👀
10th January 2018, 06:45 PM |#25  
hightech316's Avatar
Senior Member
Thanks Meter: 183
 
Donate to Me
More
Quote:
Originally Posted by Albe96

Nah.I last built RR for j700f/h/m if I remeber clearly.Anyway the source code is pretty messed up.Is this stock kernel source? If it is try rebasing with latest kernel source or just try initialing new one.

And anyway a link to the kernel source would be sweet 👀


Yes this is the stock kernel source "SM-J700T_NA_NN_Opensource.zip" grabbed from Samsung .

There are only 2 kernels posted on the j700t1 side. Only thing done to these posted kernels was making it permissive . No github or any other link to their source either.

LINK:
I'm building off of the one posted here
http://opensource.samsung.com/recept...Value=sm-j700t

EDIT:
after looking over the readme it says
- to Build
$ make j7eltetmo_00_defconfig
$ make -j64
Using make -j64 got me further. Still have the

Quote:

scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso' failed

and

Quote:

Makefile:841: recipe for target 'fs' failed
make: *** [fs] Error 2

but it seems i am making a little progress!
19th March 2018, 03:44 PM |#26  
J4jks's Avatar
Senior Member
Flag Hyderabad
Thanks Meter: 248
 
More
No rule to make target
I am very new to this
I have followed your guide and tried and I get error


This is the error with differnt kernel sources


I have downloaded the source zip and extracted and cloned gcc 4.9
After export with make command I get this error
Quote:

[email protected]:/media/raj/Apps and Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase$ make clean
Makefile:322: warning: overriding recipe for target '/media/raj/Apps'
Makefile:114: warning: ignoring old recipe for target '/media/raj/Apps'
Makefile:322: warning: overriding recipe for target 'and'
Makefile:114: warning: ignoring old recipe for target 'and'
Makefile:323: /media/raj/Apps: No such file or directory
Makefile:323: and: No such file or directory
Makefile:323: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Kbuild.include: No such file or directory
Makefile:587: /media/raj/Apps: No such file or directory
Makefile:587: and: No such file or directory
Makefile:587: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/arch/x86/Makefile: No such file or directory
make: /media/raj/Apps: Command not found
/bin/bash: /media/raj/Apps: No such file or directory
Makefile:696: /media/raj/Apps: No such file or directory
Makefile:696: and: No such file or directory
Makefile:696: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Makefile.kasan: No such file or directory
make: *** No rule to make target 'Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Makefile.kasan'. Stop.

27th March 2018, 02:11 PM |#27  
jr jimmy's Avatar
Member
Flag Bekasi
Thanks Meter: 69
 
More
Hello..i need help brother..
I succesfully build kernel and just edit for make it permissive..succesfully installed in my phone..
But selinux status still enforcing..anyone can help me..?
Btw.thx for the guide..
Attached Thumbnails
Click image for larger version

Name:	20180327_201357.png
Views:	168
Size:	194.9 KB
ID:	4459119  
27th March 2018, 02:27 PM |#28  
jr jimmy's Avatar
Member
Flag Bekasi
Thanks Meter: 69
 
More
Quote:
Originally Posted by jr jimmy

Hello..i need help brother..
I succesfully build kernel and just edit for make it permissive..succesfully installed in my phone..
But selinux status still enforcing..anyone can help me..?
Btw.thx for the guide..

Sory..its fixed now..i forgot something..
7th April 2018, 01:30 AM |#29  
Junior Member
Thanks Meter: 4
 
More
Hey, can you please point me to a guide or help me on how to enable KVM on ARM kernels? Id like to have such feature on my S8 950FD Exynos.
GuestK0010
13th April 2018, 10:52 PM |#30  
Guest
Thanks Meter: 0
 
More
@Albe96 I am trying to follow your guide and was wondering if i install a different toolchain, to compile for a different device, if it will screw up my build environment for my main device?
14th April 2018, 08:58 AM |#31  
Albe96's Avatar
OP Senior Member
Flag /home/albe96
Thanks Meter: 4,088
 
Donate to Me
More
Quote:
Originally Posted by fullofhell

@Albe96 I am trying to follow your guide and was wondering if i install a different toolchain, to compile for a different device, if it will screw up my build environment for my main device?

Nope. You can use different toolchain!
The Following User Says Thank You to Albe96 For This Useful Post: [ View ] Gift Albe96 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes