[GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Moderators: meveric, mdrjr, odroid

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Thu Oct 16, 2014 10:00 am

Hi, you should use zImage-dtb :)
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid » Thu Oct 16, 2014 10:02 am

User avatar
odroid
Site Admin
 
Posts: 25323
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby nvitovitch » Fri Oct 17, 2014 12:56 am

Thank you for the clarification, zImage-dtb isn't mentioned in the initial posting. Edit to include links to ODROID-XU3 wiki?

I've since flashed my kernel with great success XD
User avatar
nvitovitch
 
Posts: 10
Joined: Thu Oct 02, 2014 7:37 am
Location: Princeton, New Jersey, USA
languages_spoken: english
ODROIDs: ODROID-XU3
ODROID-XU
ODROID-U2

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid » Fri Oct 17, 2014 1:07 pm

It was already described well. "fastboot flash kernel arch/arm/boot/zImage-dtb" ;)
User avatar
odroid
Site Admin
 
Posts: 25323
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby nvitovitch » Fri Oct 17, 2014 9:59 pm

Indeed, the wiki is wonderful and very clear! I am referring to the initial post for this thread, quoted below. This thread isn't on a hardware specific sub-forum, hence my goof-up.

mdrjr wrote:7. Flashing the kernel from Android itself:
adb shell
cd /system/lib/modules
busybox dd conv=notrunc seek=2455 bs=512 if=zImage of=/dev/block/mmcblk0
sync
exit
adb reboot
User avatar
nvitovitch
 
Posts: 10
Joined: Thu Oct 02, 2014 7:37 am
Location: Princeton, New Jersey, USA
languages_spoken: english
ODROIDs: ODROID-XU3
ODROID-XU
ODROID-U2

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid » Sat Oct 18, 2014 11:01 pm

Oh.. this thread was made for ODROID-X/X2/U2/U3 which are based on Exynos-4412.

I meant that was described on our WiKi.
http://odroid.com/dokuwiki/doku.php?id=en:odroid-xu3
User avatar
odroid
Site Admin
 
Posts: 25323
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby brando56894 » Fri Nov 07, 2014 7:28 am

I'm trying to compile a kernel for Android 4.4.4 but I can't seem to find the config options for the mali overclock.

I pulled down the repo from git using the following command: git clone https://github.com/hardkernel/linux.git -b odroid-3.0.y-android

Then I made the correct config by issuing the command make ARCH=arm odroidu_android_442_defconfig (I didn't see the files for EMMC vs SD, as shown in post one, is this correct?)

But when I go to edit the values they aren't found
Code: Select all
[bran@ra /tmp/linux]$ grep -i mali .config
CONFIG_MALI400_UMP=y
CONFIG_MALI400=y
# CONFIG_MALI450 is not set
# CONFIG_MALI400_DEBUG is not set
CONFIG_MALI400_PROFILING=y
# CONFIG_MALI400_INTERNAL_PROFILING is not set
# CONFIG_MALI400_POWER_PERFORMANCE_POLICY is not set
# CONFIG_MALI_SHARED_INTERRUPTS is not set
# CONFIG_MALI_PMU_PARALLEL_POWER_UP is not set
# CONFIG_DRM_MALI is not set


What am I doing wrong?
brando56894
 
Posts: 101
Joined: Wed Apr 24, 2013 12:18 am
Location: Hoboken, NJ
languages_spoken: english
ODROIDs: Odroid-U2, Odroid-XU4

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Fri Nov 07, 2014 8:38 am

The fact is that even if you overclock it you won't get performance.. Even that the GPU can and will go to 800Mhz...
Your limitation will be the RAM speed...
So.. this is pretty much deprecated...
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby brando56894 » Fri Nov 07, 2014 8:50 am

So the GPU is already overclocked to the max in the 9/23 build of Android 4.4.4? That's what I'm currently running and the GUI lags a fair amount.
brando56894
 
Posts: 101
Joined: Wed Apr 24, 2013 12:18 am
Location: Hoboken, NJ
languages_spoken: english
ODROIDs: Odroid-U2, Odroid-XU4

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Fri Nov 07, 2014 8:52 am

brando56894 wrote:So the GPU is already overclocked to the max in the 9/23 build of Android 4.4.4? That's what I'm currently running and the GUI lags a fair amount.


You should open a thread so we can discuss your UI Lag.. but overclocking the GPU will certainly not help on that.
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby brando56894 » Fri Nov 07, 2014 9:15 am

brando56894
 
Posts: 101
Joined: Wed Apr 24, 2013 12:18 am
Location: Hoboken, NJ
languages_spoken: english
ODROIDs: Odroid-U2, Odroid-XU4

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby linuxrp » Tue Dec 02, 2014 7:14 pm

Hi,
I finish the step 4. In step 5 the command "adb remount" show the message "error: device not found".
What am I doing wrong?
I want buid the kernel with some changes to run in oDROID-U3.
Last edited by linuxrp on Tue Dec 02, 2014 7:22 pm, edited 1 time in total.
linuxrp
 
Posts: 13
Joined: Tue Dec 02, 2014 2:10 am
languages_spoken: english

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid11 » Tue Dec 02, 2014 7:16 pm

If you use a Windows PC, install the ADB device driver on your PC.
http://com.odroid.com/sigong/nf_file_bo ... ag=&bid=22
odroid11
 
Posts: 1
Joined: Tue Dec 02, 2014 6:44 pm
languages_spoken: english

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby linuxrp » Tue Dec 02, 2014 7:57 pm

I use Linux Ubuntu 14.04LTS, exist solution?
linuxrp
 
Posts: 13
Joined: Tue Dec 02, 2014 2:10 am
languages_spoken: english

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Wed Dec 03, 2014 4:58 am

What?
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Thu Dec 04, 2014 2:03 am

Hi there, i am stuck after Nr. 4
I start compiling: make -j4 ARCH=arm zImage modules
Everything is fine. Starts compiling and no errors

BUT no zImage can be found in this directory: kernel_4412/arch/arm/boot

so when i do: adb remount i get the succeed message
At adb push arch/arm/boot/zImage /system/lib/modules
i get this: cannot stat 'arch/arm/boot/zImage': No such file or directory

why is there no zImage?

THX for your help
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Thu Dec 04, 2014 2:10 am

If there's no zImage the kernel didn't built properly.
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Thu Dec 04, 2014 2:20 am

Hi again,

so i tried again and startet compiling and finished again with no error at the bottom line.
But he has some errors at the begining:
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected ')' before numeric constant
make[1]: *** [arch/arm/mach-exynos/cpu-exynos4.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Thu Dec 04, 2014 4:04 am

Toolchain? Any changes to the defconfig?
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Thu Dec 04, 2014 4:08 am

Using your toolchain http://www.mdrjr.net/odroid/tools/arm-2010q1.tar.xz
in the make menuconfig i changed the settings for usb Touchscreens also changed the hid.ids and hid.multitouch drivers as recommended.
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Thu Dec 04, 2014 4:38 am

So, nothing changed - just tried again make -j4 ARCH=arm zImage modules
Got this:
# configuration written to .config
#
include/config/auto.conf:156:warning: symbol value 'elf32-i386' invalid for OUTPUT_FORMAT
include/config/auto.conf:228:warning: symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG
include/config/auto.conf:511:warning: symbol value '-fcall-saved-ecx -fcall-saved-edx' invalid for ARCH_HWEIGHT_CFLAGS
warning: (USE_LEGACY_MFC) selects VIDEO_MFC5X which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_CAPTURE_DRIVERS && VIDEO_V4L2 && (CPU_EXYNOS4210 || CPU_EXYNOS4212 || CPU_EXYNOS4412) && USE_LEGACY_MFC)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-marm’
gcc: error: unrecognized command line option ‘-mfpu=neon’
gcc: error: unrecognized command line option ‘-mfloat-abi=softfp’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
gcc: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [scripts/mod/empty.o] Fehler 1
make[1]: *** [scripts/mod] Fehler 2
make: *** [scripts] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-marm’
gcc: error: unrecognized command line option ‘-mfpu=neon’
gcc: error: unrecognized command line option ‘-mfloat-abi=softfp’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
gcc: error: unrecognized command line option ‘-mfpu=neon’
make[1]: *** [kernel/bounds.s] Fehler 1
make: *** [prepare0] Fehler 2
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Thu Dec 04, 2014 9:29 am

You didn't set the CROSS_COMPILE variable.
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Sat Dec 06, 2014 5:09 am

okay thanks, set the cross_compile variable now.
Now got a new error :(

CC arch/arm/kernel/module.o
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected ')' before numeric constant
make[1]: *** [arch/arm/mach-exynos/cpu-exynos4.o] Fehler 1
make: *** [arch/arm/mach-exynos] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
AS arch/arm/kernel/sleep.o


So this is the file and the lines 222 he seems to have a prob. But as i am not into programming - i got no idea what the Problem could be :(

}

/*
* exynos4_map_io
*
* register the standard cpu IO areas
*/
void __init exynos4_map_io(void)
{
iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc));

if (soc_is_exynos4210()) {
iotable_init(exynos4210_iodesc, ARRAY_SIZE(exynos4210_iodesc));
if (samsung_rev() == EXYNOS4210_REV_0)
iotable_init(exynos4210_iodesc_rev_0,
ARRAY_SIZE(exynos4210_iodesc_rev_0));
else
iotable_init(exynos4210_iodesc_rev_1,
ARRAY_SIZE(exynos4210_iodesc_rev_1));
} else {
iotable_init(exynos4212_iodesc, ARRAY_SIZE(exynos4212_iodesc));
}

I made no changes to the kernel at all. Just downloaded it and made the defconfig and the make -j4
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Sat Dec 06, 2014 5:55 am

Okay, i think i am close to the error.
As for the egalax Touchscreen i added the VID and PID in the driver hid.ids and saved it. startet the defconfig WITHOUT make menuconfig -> zImage built
BUT as soon as i make the Changes into the make menuconfig as mentioned in the odroid magazine feb -> i get the error as in the posting above...

Anybody a clue?
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid » Sat Dec 06, 2014 5:29 pm

User avatar
odroid
Site Admin
 
Posts: 25323
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Sat Dec 06, 2014 8:33 pm

Okay, this worked for me then:

export ARCH=arm
make odroidu_android_defconfig
make menuconfig
make -j4 zImage modules

THX :) Image succesfully created
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Mon Dec 08, 2014 8:06 am

So i´ve got a new Problem.
As posted above, the kernel4412 built succesfully.

BUT: if i am trying to compile the new Kernel from Android 4.4.4 with same toolchain, i get an Error.
CC arch/arm/mach-exynos/ppmu.o
CC arch/arm/mm/mmap.o
CC arch/arm/mach-exynos/cpu-exynos4.o
CC arch/arm/kernel/module.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/smp.o
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:222: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:279: error: expected ')' before numeric constant
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected identifier or '(' before 'void'
arch/arm/mach-exynos/cpu-exynos4.c:410: error: expected ')' before numeric constant
make[1]: *** [arch/arm/mach-exynos/cpu-exynos4.o] Fehler 1
make: *** [arch/arm/mach-exynos] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/mm/pgd.o
CC arch/arm/kernel/smp_scu.o

referring to this link viewtopic.php?f=51&t=83
getting the kernel via git clone from there: https://github.com/hardkernel/linux/tre ... .y-android

Any changes needed to the toolchain due to the new Kernel Version?

THX for help
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby odroid » Mon Dec 08, 2014 2:03 pm

Did you check the toolchain or its path?
http://odroid.com/dokuwiki/doku.php?id= ... xynos-4412
User avatar
odroid
Site Admin
 
Posts: 25323
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Mon Dec 08, 2014 8:28 pm

Sorry for a lot of unqualified questions.
it took me a while to get into how to use vi ~/.bashrc
finally i entered there:

# ~/.bashrc: executed by bash(1) for non-login shells.

# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

export PATH=$PATH:/opt/toolchains/arm-2010q1/bin
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
~

Is this correct? Adt bundle is also located in this path ;)
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Tue Dec 09, 2014 7:55 am

That should be correct...
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby evilknievel » Tue Dec 09, 2014 8:17 am

Okay thanks for the confirmation.
So if i follow the guide from codewalker or even this guide from the first page i get the error as posted above (mach exynos)
But only with the actual Kernel of Android 4.4.4
If i take the Kernel referring in this post on Page 1 it works just perfect. Even if i change the multitouch file in the Driver Directory of the kernel or changing the menuconfig.

Trying it with the new Kernel i get an error
evilknievel
 
Posts: 13
Joined: Thu Oct 30, 2014 1:33 am
languages_spoken: english german
ODROIDs: Odroid u3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby Done82 » Mon Dec 29, 2014 12:36 am

Hello everyone.

First, I'm a absolute and complete Linux noob, so i have literally no idea what all these terminal commands mean. But im learning.
After a couple of hours full of failures, i successfully managed it to compile a kernel without errors and copy it on my Odroid-U3.
After reboot the U3 seems to start, but the screen stays black. The blue LED blinks slowly, like the normal heartbeat.

I tried it with this Kernel, unmodified: https://github.com/hardkernel/linux/tre ... .y-android
These are the steps I did:
Code: Select all
cd arm-2010q1/bin
export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-

cd linux-odroid-3.0.y-android
make ARCH=arm odroidu_android_defconfig

make -j4 ARCH=arm zImage modules

adb remount
for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done

adb push arch/arm/boot/zImage /system/lib/modules

adb shell
cd /system/lib/modules
busybox dd conv=notrunc seek=2455 bs=512 if=zImage of=/dev/block/mmcblk0
sync
exit
adb reboot


Again, no errors so far. Only the Odroid won't boot properly. :?
Any tips?
Done82
 
Posts: 3
Joined: Wed Dec 24, 2014 6:08 am
languages_spoken: german, english
ODROIDs: ODROID-U3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby mdrjr » Mon Dec 29, 2014 3:53 am

Any logs?
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby Done82 » Mon Dec 29, 2014 7:27 am

I copy pasted this from the terminal, because i dont know if there is any log file for this process. (As said, i'm a absolute Linux noob)

Code: Select all
done@Frankenstein-PC:~$ cd Android
done@Frankenstein-PC:~/Android$ cd arm-2010q1/bin
done@Frankenstein-PC:~/Android/arm-2010q1/bin$ export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-
done@Frankenstein-PC:~/Android/arm-2010q1/bin$ cd
done@Frankenstein-PC:~$ cd Android/linux-odroid-3.0.y-android
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ ls arch/arm/configs/odroid*android*
arch/arm/configs/odroidq2_android_defconfig
arch/arm/configs/odroidq_android_defconfig
arch/arm/configs/odroidu_android_422_defconfig
arch/arm/configs/odroidu_android_442_defconfig
arch/arm/configs/odroidu_android_defconfig
arch/arm/configs/odroidu_android_recovery_defconfig
arch/arm/configs/odroidx2_android_422_defconfig
arch/arm/configs/odroidx2_android_442_defconfig
arch/arm/configs/odroidx2_android_defconfig
arch/arm/configs/odroidx2_android_recovery_defconfig
arch/arm/configs/odroidx_android_422_defconfig
arch/arm/configs/odroidx_android_42Inch_demo_defconfig
arch/arm/configs/odroidx_android_442_defconfig
arch/arm/configs/odroidx_android_defconfig
arch/arm/configs/odroidx_android_recovery_defconfig
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ make ARCH=arm odroidu_android_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.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
#
# configuration written to .config
#
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ make -j4 ARCH=arm zImage modules


^^ Compiling starts.
(Is there any logfile i dont know?)
When compiling is finished:

Code: Select all
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ adb remount
remount succeeded
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done
2869 KB/s (182483 bytes in 0.062s)
3005 KB/s (1312369 bytes in 0.426s)
3007 KB/s (1075961 bytes in 0.349s)
2940 KB/s (192260 bytes in 0.063s)
2899 KB/s (201059 bytes in 0.067s)
3008 KB/s (9815448 bytes in 3.185s)
2658 KB/s (6347643 bytes in 2.331s)
736 KB/s (30044 bytes in 0.039s)
2894 KB/s (972894 bytes in 0.328s)
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ adb push arch/arm/boot/zImage /system/lib/modules
3018 KB/s (3469068 bytes in 1.122s)
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ adb shell
root@odroidu:/ # cd /system/lib/modules
root@odroidu:/system/lib/modules #  busybox dd conv=notrunc seek=2455 bs=512 if=zImage of=/dev/block/mmcblk0
6775+1 records in
6775+1 records out
3469068 bytes (3.3MB) copied, 0.616531 seconds, 5.4MB/s
root@odroidu:/system/lib/modules # sync
root@odroidu:/system/lib/modules # exit
done@Frankenstein-PC:~/Android/linux-odroid-3.0.y-android$ adb reboot


Then Odroid reboots. Screen stays black and the blue LED blinks like heartbeat.
I also tried it with the kernel in the first post (kernel_4412). This one also doesnt work for me. Screen stays black, the blue LED is constant on.
Done82
 
Posts: 3
Joined: Wed Dec 24, 2014 6:08 am
languages_spoken: german, english
ODROIDs: ODROID-U3

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby kaaliakahn » Tue Dec 30, 2014 1:50 am

I am following this tutorial

http://forum.xda-developers.com/showthr ... ?t=2152819

I get the following when i execute

Code: Select all
$make maker.defconfig

make: Nothing to be done for `maker.defconfig'.

Then i set the CROSS_COMPILER and echo it

Code: Select all
$ echo $CROSS_COMPILE

/usr/bin/arm-none-eabi-

and when i execute

Code: Select all
$make ARCH=arm

i get the following errors

///////////////////////////////////////

CHK include/linux/version.h

CHK include/generated/utsrelease.h

HOSTCC scripts/basic/fixdep

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’

gcc: note: valid arguments to ‘-mabi=’ are: ms sysv

gcc: error: unrecognized command line option ‘-mlittle-endian’

gcc: error: unrecognized command line option ‘-mapcs’

gcc: error: unrecognized command line option ‘-mno-sched-prolog’

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2

////////////////////////////////////////////////////

Any idea how to resolve these

I got the same errors using Android NDK toolchain.

Thanks
kaaliakahn
 
Posts: 1
Joined: Tue Dec 30, 2014 12:53 am
languages_spoken: english

Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)

Unread postby Done82 » Tue Dec 30, 2014 10:59 pm

Found my problem. :)

Code: Select all
make ARCH=arm odroidu_android_442_defconfig

instead of
Code: Select all
make ARCH=arm odroidu_android_defconfig

and all worked fine. :D
Done82
 
Posts: 3
Joined: Wed Dec 24, 2014 6:08 am
languages_spoken: german, english
ODROIDs: ODROID-U3

Previous

Return to Android

Who is online

Users browsing this forum: No registered users and 2 guests