
[GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
Hi, you should use zImage-dtb 

- odroid
- Site Admin
- Posts: 29671
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
For XU3, you need to refer below links.
http://odroid.com/dokuwiki/doku.php?id=en:odroid-xu3
http://com.odroid.com/sigong/nf_file_bo ... g=&bid=238
http://odroid.com/dokuwiki/doku.php?id=en:odroid-xu3
http://com.odroid.com/sigong/nf_file_bo ... g=&bid=238
- nvitovitch
- Posts: 10
- Joined: Thu Oct 02, 2014 7:37 am
- languages_spoken: english
- ODROIDs: ODROID-XU3
ODROID-XU
ODROID-U2 - Location: Princeton, New Jersey, USA
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
I've since flashed my kernel with great success XD
- odroid
- Site Admin
- Posts: 29671
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
It was already described well. "fastboot flash kernel arch/arm/boot/zImage-dtb" 

- nvitovitch
- Posts: 10
- Joined: Thu Oct 02, 2014 7:37 am
- languages_spoken: english
- ODROIDs: ODROID-XU3
ODROID-XU
ODROID-U2 - Location: Princeton, New Jersey, USA
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
- odroid
- Site Admin
- Posts: 29671
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
I meant that was described on our WiKi.
http://odroid.com/dokuwiki/doku.php?id=en:odroid-xu3
-
- Posts: 101
- Joined: Wed Apr 24, 2013 12:18 am
- languages_spoken: english
- ODROIDs: Odroid-U2, Odroid-XU4
- Location: Hoboken, NJ
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
What am I doing wrong?
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
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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...
Your limitation will be the RAM speed...
So.. this is pretty much deprecated...
-
- Posts: 101
- Joined: Wed Apr 24, 2013 12:18 am
- languages_spoken: english
- ODROIDs: Odroid-U2, Odroid-XU4
- Location: Hoboken, NJ
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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.
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
You should open a thread so we can discuss your UI Lag.. but overclocking the GPU will certainly not help on that.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.
-
- Posts: 101
- Joined: Wed Apr 24, 2013 12:18 am
- languages_spoken: english
- ODROIDs: Odroid-U2, Odroid-XU4
- Location: Hoboken, NJ
- Contact:
-
- Posts: 13
- Joined: Tue Dec 02, 2014 2:10 am
- languages_spoken: english
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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.
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.
-
- Posts: 1
- Joined: Tue Dec 02, 2014 6:44 pm
- languages_spoken: english
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
http://com.odroid.com/sigong/nf_file_bo ... ag=&bid=22
-
- Posts: 13
- Joined: Tue Dec 02, 2014 2:10 am
- languages_spoken: english
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
I use Linux Ubuntu 14.04LTS, exist solution?
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
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
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
If there's no zImage the kernel didn't built properly.
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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...
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...
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
Toolchain? Any changes to the defconfig?
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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.
in the make menuconfig i changed the settings for usb Touchscreens also changed the hid.ids and hid.multitouch drivers as recommended.
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
So, nothing changed - just tried again make -j4 ARCH=arm zImage modules
Got this:
# configuration written to .config
#
include/config/auto.conf:156
symbol value 'elf32-i386' invalid for OUTPUT_FORMAT
include/config/auto.conf:228
symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG
include/config/auto.conf:511
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
Got this:
# configuration written to .config
#
include/config/auto.conf:156

include/config/auto.conf:228

include/config/auto.conf:511

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
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
You didn't set the CROSS_COMPILE variable.
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
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
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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?
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?
- odroid
- Site Admin
- Posts: 29671
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Contact:
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
Okay, this worked for me then:
export ARCH=arm
make odroidu_android_defconfig
make menuconfig
make -j4 zImage modules
THX
Image succesfully created
export ARCH=arm
make odroidu_android_defconfig
make menuconfig
make -j4 zImage modules
THX

-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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 http://forum.odroid.com/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
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 http://forum.odroid.com/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
- odroid
- Site Admin
- Posts: 29671
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
Did you check the toolchain or its path?
http://odroid.com/dokuwiki/doku.php?id= ... xynos-4412
http://odroid.com/dokuwiki/doku.php?id= ... xynos-4412
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
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

-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
That should be correct...
-
- Posts: 13
- Joined: Thu Oct 30, 2014 1:33 am
- languages_spoken: english german
- ODROIDs: Odroid u3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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
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
-
- Posts: 3
- Joined: Wed Dec 24, 2014 6:08 am
- languages_spoken: german, english
- ODROIDs: ODROID-U3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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:
Again, no errors so far. Only the Odroid won't boot properly.
Any tips?
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

Any tips?
-
- Site Admin
- Posts: 11698
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Contact:
-
- Posts: 3
- Joined: Wed Dec 24, 2014 6:08 am
- languages_spoken: german, english
- ODROIDs: ODROID-U3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
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)
^^ Compiling starts.
(Is there any logfile i dont know?)
When compiling is finished:
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.
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
(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
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.
-
- Posts: 1
- Joined: Tue Dec 30, 2014 12:53 am
- languages_spoken: english
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
I am following this tutorial
http://forum.xda-developers.com/showthr ... ?t=2152819
I get the following when i execute
make: Nothing to be done for `maker.defconfig'.
Then i set the CROSS_COMPILER and echo it
/usr/bin/arm-none-eabi-
and when i execute
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
http://forum.xda-developers.com/showthr ... ?t=2152819
I get the following when i execute
Code: Select all
$make maker.defconfig
Then i set the CROSS_COMPILER and echo it
Code: Select all
$ echo $CROSS_COMPILE
and when i execute
Code: Select all
$make ARCH=arm
///////////////////////////////////////
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
-
- Posts: 3
- Joined: Wed Dec 24, 2014 6:08 am
- languages_spoken: german, english
- ODROIDs: ODROID-U3
- Contact:
Re: [GUIDE] Rebuilding Android Kernel (Incl. Mali Overclock)
Found my problem. 
instead of
and all worked fine. 

Code: Select all
make ARCH=arm odroidu_android_442_defconfig
Code: Select all
make ARCH=arm odroidu_android_defconfig

Who is online
Users browsing this forum: No registered users and 0 guests