How to config kernel from odroid-n2 source code.

Post Reply
ali2019
Posts: 25
Joined: Tue Jan 21, 2020 12:04 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

How to config kernel from odroid-n2 source code.

Unread post by ali2019 » Wed Feb 12, 2020 5:52 pm

Hello, everybody.

I am building from odroid-n2 source code.
I already clone 64bit android source code from hardkernel repository.

repo init -u https://github.com/hardkernel/android.git -b s922_9.0.0_64_master

Then.
$ source build/envsetup.sh
$ lunch odroidn2-eng
$ make -j<core number> bootimage

By this command, I am going to build boot image.
But before this step, I want config kernel.

Of course, I can config and build kernel from kernel source code. Then by abootimage tool, can create bootimage.
But I think that android source code has kernel source code, so I want config and build kernel from source code.

Please advise me how can I config kernel on android source code.
How can I config by menuconfig command?

Regards

User avatar
codewalker
Posts: 841
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 39 times
Contact:

Re: How to config kernel from odroid-n2 source code.

Unread post by codewalker » Wed Feb 12, 2020 6:17 pm

Code: Select all

$ cd common
$ make odroidn2_android_defconfig
$ make menuconfig
...
$ cp .config arch/arm64/config/odroidn2_android_defconfig
$ make mproper
$ cd ../
$ make -j8

...

$ fastboot flash boot out/target/product/odroidn2/boot.img

ali2019
Posts: 25
Joined: Tue Jan 21, 2020 12:04 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to config kernel from odroid-n2 source code.

Unread post by ali2019 » Wed Feb 12, 2020 6:30 pm

Thanks for your reply.

I have a question.
$ make odroidn2_android_defconfig

On above command, you used odroidn2_android_defconfig.
If my android source code is not for odroidn2, how should I find proper defconfig name?

Thanks.

Luke.go
Posts: 429
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 16 times
Been thanked: 34 times
Contact:

Re: How to config kernel from odroid-n2 source code.

Unread post by Luke.go » Thu Feb 13, 2020 9:00 am

Please check *_defconfig files from the path.

Code: Select all

<KERNEL ROOT>/arch/<ARCHITECTURE>/configs/*_defconfig

ali2019
Posts: 25
Joined: Tue Jan 21, 2020 12:04 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to config kernel from odroid-n2 source code.

Unread post by ali2019 » Thu Feb 13, 2020 3:33 pm

Thanks for your reply.

Best Regards

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 6 guests