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

Moderators: meveric, mdrjr, odroid

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

Unread postby shivg » Tue Oct 29, 2013 10:50 pm

Can someone give me new link for toolchain?
"http://www.mdrjr.net/odroid/tools/arm-2010q1.tar.xz" is not available!

TIA.
shivg
 
Posts: 20
Joined: Wed Sep 18, 2013 3:59 pm
languages_spoken: english
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Wed Oct 30, 2013 1:23 am

shivg wrote:Can someone give me new link for toolchain?
"http://www.mdrjr.net/odroid/tools/arm-2010q1.tar.xz" is not available!

TIA.


http://odroid.in/tools/arm-2010q1.tar.xz
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 Nachoraven » Fri Feb 14, 2014 10:36 am

Ok, so i did all the steps but i get stuck at step 3 with the following error:

root@ignacio-VirtualBox:/home/ignacio/Downloads/kernel# make ARCH=arm odroidx2_android_emmc_defconfig
***
*** Can't find default configuration "arch/arm/configs/odroidx2_android_emmc_defconfig"!
***
make[1]: *** [odroidx2_android_emmc_defconfig] Error 1
make: *** [odroidx2_android_emmc_defconfig] Error 2
root@ignacio-VirtualBox:/home/ignacio/Downloads/kernel#

anyone knows what i am doing wrong? :roll:
Nachoraven
 
Posts: 34
Joined: Sat Sep 21, 2013 2:43 am
languages_spoken: english

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

Unread postby mdrjr » Fri Feb 14, 2014 10:43 am

ls arch/arm/configs/*odroid*

and post the output here
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 skantron » Fri Feb 28, 2014 9:20 am

I'm frustrated, I was getting the kernel to build, but then I think I tried to build before doing the config, and it all went to heck, so I cleared out my working directory and now am getting an error 'gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’'

Code: Select all
skantron@ubuntu:~/mydroid/kernel$ ls
arch           CREDITS        firmware  ipc      lib          net             scripts   usr
block          crypto         fs        Kbuild   MAINTAINERS  README          security  virt
CHANGELOG.txt  Documentation  include   Kconfig  Makefile     REPORTING-BUGS  sound
COPYING        drivers        init      kernel   mm           samples         tools
skantron@ubuntu:~/mydroid/kernel$ 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
#
skantron@ubuntu:~/mydroid/kernel$ make -j4 ARCH=arm zImage modules
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
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 ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
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 ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=neon’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
skantron@ubuntu:~/mydroid/kernel$ ^C
skantron@ubuntu:~/mydroid/kernel$


This is after untarring the 2/12/14 kernel, and then make ARCH=arm odroidu_android_defconfig and
make -j4 ARCH=arm zImage modules

Any help would be greatly appreciated.
skantron
 
Posts: 51
Joined: Tue Dec 10, 2013 2:38 am
languages_spoken: english

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

Unread postby LiquidAcid » Fri Feb 28, 2014 10:31 am

gcc version?
LiquidAcid
 
Posts: 1078
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

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

Unread postby skantron » Fri Feb 28, 2014 11:48 am

LiquidAcid wrote:gcc version?

4.8.1
skantron
 
Posts: 51
Joined: Tue Dec 10, 2013 2:38 am
languages_spoken: english

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

Unread postby mdrjr » Fri Feb 28, 2014 4:01 pm

Is it a toolchain? Your gcc doens't support ARM instructions.
Read the first post.. there's a link and instructions for a toolchain.
Just follow the guide
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 skantron » Sat Mar 01, 2014 12:10 am

THanks MDRJR, I had the toolchain installed, but for some reason, it wasn't configured/path set up. it previously was, but rerunning 'export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-' let compiling run again. I think what may have happened was I may have reunpacked the toolchain in my ~/android folder and was using that, instead of the one that was in root. Thanks for the help here, I'm new to this so the errors are not always evident to me.
skantron
 
Posts: 51
Joined: Tue Dec 10, 2013 2:38 am
languages_spoken: english

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

Unread postby eugenweij » Sat Mar 01, 2014 1:41 am

Hello Everybody,

I am attempting to compile a kernel with some added drivers and since I am very new to this I may be asking 'stupid' questions.

so my first question is; I am trying to add the eeti egalax driver, since my particular touchscreen isnt supported, am I correct in assuming that this has to be done between step 3 and 4?

the 2nd question; when I have followed the steps in the eeti egalax manual can I continue with step 4 or do I have to do additional tasks before I can compile ?


Thanks in advance
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby mdrjr » Sat Mar 01, 2014 1:57 am

before 4.

run: make menuconfig or make xconfig :)
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 Nachoraven » Sat Mar 01, 2014 9:52 am

Hello, I am about to install a new compiled kernel and i wonder what is the offset address to do the dd copy in an Odroid X2.

busybox dd conv=notrunc seek=???? bs=512 if=zImage of=/dev/block/mmcblk0
Nachoraven
 
Posts: 34
Joined: Sat Sep 21, 2013 2:43 am
languages_spoken: english

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

Unread postby mdrjr » Sat Mar 01, 2014 1:14 pm

Its the offset listed on the first post.
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 eugenweij » Sat Mar 01, 2014 6:27 pm

okay, I will run make menuconfig, but here comes the noob question; what do I put in it?

Sorry for the questions that may seem stupid , but as I am new to this its very complicated to me


okay I went and gave the command to build, then I get a million questions wether or not I want any and all kind of stuff and asking me for values etc. , is there a way around that so it accepts the standard configuration plus the stuff I added with make config in order to set up the egalax stuff?
Last edited by eugenweij on Sat Mar 01, 2014 10:19 pm, edited 1 time in total.
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby LiquidAcid » Sat Mar 01, 2014 10:11 pm

Default configs are usually found in arch/xyz/configs (replace 'xyz' with the respective architecture, here it would be arm).
LiquidAcid
 
Posts: 1078
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

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

Unread postby eugenweij » Sat Mar 01, 2014 10:23 pm

yes , I found those, my next question is; when I config the kernel for my board storage with the command in post1, will I be able to edit it ?

for the installation of the egalax driver their manual states I have to enter make menuconfig, I do that , follow their instructions to add and remove certain stuff in order to make the driver work, and then it will again ask me to manually input the entire configuration.

what am I missing here?
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby LiquidAcid » Sat Mar 01, 2014 10:37 pm

You're doing something very wrong here. menuconfig offers you an ncurses-based GUI to edit the current kernel configuration. You can go through different subsystems and change stuff. Nowhere do you have to enter the whole configuration again.
LiquidAcid
 
Posts: 1078
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

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

Unread postby eugenweij » Sat Mar 01, 2014 10:40 pm

okay I made the config again according to step 3 , now I get the following result when I try to compile:

Code: Select all
eugen@eugen-To-be-filled-by-O-E-M:~/kernel_4412$ make -j4 ARCH=arm zImage modules
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
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 argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
eugen@eugen-To-be-filled-by-O-E-M:~/kernel_4412$
Last edited by eugenweij on Sun Mar 02, 2014 2:43 am, edited 1 time in total.
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby LiquidAcid » Sat Mar 01, 2014 10:45 pm

1. Use code tags!
2. Seriously, read the thread -- this toolchain problem has already been discussed.
LiquidAcid
 
Posts: 1078
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

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

Unread postby eugenweij » Sun Mar 02, 2014 2:52 am

I get this:

Code: Select all
eugen@eugen-To-be-filled-by-O-E-M:~$ sudo apt-get install package-name:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package package-name
eugen@eugen-To-be-filled-by-O-E-M:~$





tried again, build started but something went wrong somewhere, I copied modules and then kernel, did the last step as well, but odroid wont boot, I guess installation of the egalax driver wehnt wrong somewhere
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby mdrjr » Sun Mar 02, 2014 6:49 am

menuconfig is just to modify kernel options if you don't need to modify anything don't do it.
If you want to add your touchscreen refer to this month magazine..
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 LiquidAcid » Sun Mar 02, 2014 7:07 am

@eugenweij: First of all, you should stop just blindly copy&pasting stuff into a terminal. This is dangerous and also counter-productive.

You probably already realized this by now, but this here...
Code: Select all
sudo apt-get install package-name:i386

is obviously plain stupid.
LiquidAcid
 
Posts: 1078
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

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

Unread postby eugenweij » Sun Mar 02, 2014 7:59 pm

I think its a bit of an issue for me , since I am new to all this I tend to get confused and reading back and forth isnt helping much , I guess thats part of learning
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby mdrjr » Mon Mar 03, 2014 7:19 am

eugenweij wrote:I think its a bit of an issue for me , since I am new to all this I tend to get confused and reading back and forth isnt helping much , I guess thats part of learning


Don't get me wrong, please don't take as a offense.. but go learn Linux basic usage before even trying to build a kernel.
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 eugenweij » Sat Mar 08, 2014 5:28 pm

that is what I am going to do :) I slightly underestimated the task at hand hehe
eugenweij
 
Posts: 11
Joined: Mon Feb 24, 2014 4:12 am
languages_spoken: english, dutch
ODROIDs: Odroid U3

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

Unread postby bertodroid » Thu Mar 20, 2014 6:13 am

if i have this kernel (thanks mdrjr) http://odroid.in/android/kernel/bertodroid.tar.xz

who i can install this on my sdcard with android?

thanks
bertodroid
 
Posts: 26
Joined: Mon Mar 03, 2014 12:19 am
languages_spoken: english (little) spanish
ODROIDs: U3

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

Unread postby mdrjr » Thu Mar 20, 2014 6:24 am

bertodroid wrote:if i have this kernel (thanks mdrjr) http://odroid.in/android/kernel/bertodroid.tar.xz

who i can install this on my sdcard with android?

thanks


Get Android SDK running, if you are on Ubuntu 13.10 there's the adb / fastboot packages. Search for it.

Unpack that file and follow the step 5
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 bertodroid » Thu Mar 20, 2014 6:41 am

mdrjr wrote:
bertodroid wrote:if i have this kernel (thanks mdrjr) http://odroid.in/android/kernel/bertodroid.tar.xz

who i can install this on my sdcard with android?

thanks


Get Android SDK running, if you are on Ubuntu 13.10 there's the adb / fastboot packages. Search for it.

Unpack that file and follow the step 5


thanks i will try tomorrow
bertodroid
 
Posts: 26
Joined: Mon Mar 03, 2014 12:19 am
languages_spoken: english (little) spanish
ODROIDs: U3

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

Unread postby joerg » Tue Apr 01, 2014 4:50 am

Hello mdrjr,
I am new here. I am from germany.
I followed exactly your excelent guide to make new kernel. I need touchscreen support and made the changes to hid-ids.h and hid-multitouch.c and to config like is explained in ODROID-Magazine February. The kernel compiles without errors, but when I boot, my Odroid U3 crashes with VFS: Cannot open root device "(null)" or unknown-block(0,0) and Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0). This happens with or without connected touchscreen.
Do you have any idea?
BTW, the usb Ids for this touchscreen are vid=0eef and pid=0001 from eGalax.

Br Jörg

Code: Select all
[    3.315344] regulator_init_complete: LDO20 EMMC_IO_1V8: incomplete constraints, leaving on
[    3.323208] s3c-rtc s3c64xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[    3.331177] FIMC0 registered successfully
[    3.335133] FIMC1 registered successfully
[    3.339085] FIMC2 registered successfully
[    3.343086] FIMC3 registered successfully
[    3.346994] S5P TVOUT Driver v3.0 (c) 2010 Samsung Electronics
[    3.354379] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[    3.359270] Please append a correct "root=" boot option; here are the available partitions:
[    3.367619] b300         7634944 mmcblk0  driver: mmcblk
[    3.372879]   b301         4209414 mmcblk0p1 00000000-0000-0000-0000-000000000000
[    3.380336]   b302         1052353 mmcblk0p2 00000000-0000-0000-0000-000000000000
[    3.387794]   b303         2097243 mmcblk0p3 00000000-0000-0000-0000-000000000000
[    3.395252]   b304          134343 mmcblk0p4 00000000-0000-0000-0000-000000000000
[    3.402712] b320            4096 mmcblk0boot1  (driver?)
[    3.408017] usb 1-3.2: new low speed USB device number 4 using s5p-ehci
[    3.408030] b310            4096 mmcblk0boot0  (driver?)
[    3.408035] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.408039] Backtrace:
[    3.408055] [<c0050654>] (dump_backtrace+0x0/0x11c) from [<c06bb7d4>] (dump_stack+0x18/0x1c)
[    3.408059]  r6:d682bf5c r5:c003d490 r4:c08f11f8 r3:271aed2f
[    3.408069] [<c06bb7bc>] (dump_stack+0x0/0x1c) from [<c06bb848>] (panic+0x70/0x1a0)
[    3.408077] [<c06bb7d8>] (panic+0x0/0x1a0) from [<c00090c0>] (mount_block_root+0x248/0x30c)
[    3.408081]  r3:00000001 r2:271aed2f r1:d682bf5c r0:c07de8a8
[    3.408087]  r7:c08eeaa0
[    3.408093] [<c0008e78>] (mount_block_root+0x0/0x30c) from [<c00091e8>] (mount_root+0x64/0x68)
[    3.408100] [<c0009184>] (mount_root+0x0/0x68) from [<c0009394>] (prepare_namespace+0x1a8/0x1e4)
[    3.408104]  r5:c003ca6c r4:c08eeaa0
[    3.408110] [<c00091ec>] (prepare_namespace+0x0/0x1e4) from [<c0008590>] (kernel_init+0x1b4/0x1c0)
[    3.408114]  r5:c003ca6c r4:c003ca6c
[    3.408124] [<c00083dc>] (kernel_init+0x0/0x1c0) from [<c0086b7c>] (do_exit+0x0/0x7bc)
[    3.408128]  r5:c00083dc r4:00000000
[    3.408135] CPU2: stopping
[    3.408138] Backtrace:
joerg
 
Posts: 698
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

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

Unread postby odroid » Tue Apr 01, 2014 10:31 am

@joerg,

Refer this thread first.
viewtopic.php?f=74&t=3707

And open your own thread for better discussion or help.
User avatar
odroid
Site Admin
 
Posts: 25293
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby kemcityboy » Mon Apr 21, 2014 9:40 pm

Guys, this guide is relevant to? :

U3
Android 4.2.2 Jelly Bean (JB) Alpha 3.0 Release
CM
eMMС 8 Gb
kemcityboy
 
Posts: 11
Joined: Mon Apr 21, 2014 9:32 pm
languages_spoken: english, russian
ODROIDs: U3

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

Unread postby mdrjr » Mon Apr 21, 2014 9:53 pm

Yes
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 frontera » Wed Jul 16, 2014 10:12 pm

Hello!
I just started to learn kernel compile in android 4.4.2 downloaded from here http://dn.odroid.com/4412/Android/4.2.2_Alpha1/BSP/
but there is no difference between SD or eMMC?
Whether there is any difference at compile time? (because there is a difference in the firmware)
SD Kingston Class10 16 Gb...
P.S. Sorry for my Google english..
frontera
 
Posts: 9
Joined: Wed Jul 09, 2014 1:44 pm
Location: Moscow
languages_spoken: english, русский
ODROIDs: U3+

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

Unread postby mdrjr » Wed Jul 16, 2014 11:56 pm

frontera wrote:Hello!
I just started to learn kernel compile in android 4.4.2 downloaded from here http://dn.odroid.com/4412/Android/4.2.2_Alpha1/BSP/
but there is no difference between SD or eMMC?
Whether there is any difference at compile time? (because there is a difference in the firmware)
SD Kingston Class10 16 Gb...
P.S. Sorry for my Google english..


Kernel source had moved to https://github.com/hardkernel/linux/tre ... .y-android
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 frontera » Thu Jul 17, 2014 3:17 am

mdrjr wrote:Kernel source had moved to https://github.com/hardkernel/linux/tre ... .y-android

These contain the last version of kernel???... i need a working bluetooth... :-(
frontera
 
Posts: 9
Joined: Wed Jul 09, 2014 1:44 pm
Location: Moscow
languages_spoken: english, русский
ODROIDs: U3+

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

Unread postby frontera » Thu Jul 17, 2014 3:25 am

Excuse me - understood
I will understand more
frontera
 
Posts: 9
Joined: Wed Jul 09, 2014 1:44 pm
Location: Moscow
languages_spoken: english, русский
ODROIDs: U3+

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

Unread postby odroid » Thu Jul 17, 2014 12:00 pm

If you need the bluetooth, use this version.
http://com.odroid.com/sigong/nf_file_bo ... g=&bid=227
User avatar
odroid
Site Admin
 
Posts: 25293
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby stadros83 » Fri Jul 25, 2014 5:34 pm

Sorry if this question has already been answered but is it possible to extract the Kernel from the ROM ?

Or where do I found the last kernel for my U3 ?

I've seen this : http://dn.odroid.com/4412/Android/4.2.2 ... -2014/BSP/
But I'm not even sure that's the good one.

:)
stadros83
 
Posts: 87
Joined: Tue Apr 08, 2014 1:42 am
languages_spoken: english/french

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

Unread postby odroid » Fri Jul 25, 2014 9:13 pm

The latest kernel is stored/maintained in the github.
Exact github link can be found in this post.
http://com.odroid.com/sigong/nf_file_bo ... g=&bid=230
User avatar
odroid
Site Admin
 
Posts: 25293
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby Haas360 » Sun Sep 21, 2014 8:14 pm

Im so so sorry if this is explained before, but I have searched and couldnt find anything.

I have a Xenarc touch screen and want to use it.

I heard I need to compile a new kernel with HID touchscreen support built in right?

Can anyone point me to the direction of where to get started :S
Haas360
 
Posts: 27
Joined: Sat Aug 23, 2014 1:32 pm
languages_spoken: english

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

Unread postby odroid » Sun Sep 21, 2014 10:14 pm

Refer the 2014 Feb issue of our Magazine.
viewtopic.php?f=74&t=5085
User avatar
odroid
Site Admin
 
Posts: 25293
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby Haas360 » Mon Sep 22, 2014 8:43 am

odroid wrote:Refer the 2014 Feb issue of our Magazine.
viewtopic.php?f=74&t=5085


Forgot about the ever so helpful magazine!! thanks man!
Haas360
 
Posts: 27
Joined: Sat Aug 23, 2014 1:32 pm
languages_spoken: english

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

Unread postby nvitovitch » Thu Oct 02, 2014 7:42 am

mdrjr wrote:
Note: For XU you have to switch seek=2455 to seek=1263



Does "seek=1263" apply to the XU3 as well, and if not, what is the offset and/or how may I determine it?
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 mdrjr » Fri Oct 03, 2014 1:35 am

PIng me back in a week and I'll get the values for you. I'm in a Hotel room now :(
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 nvitovitch » Tue Oct 14, 2014 11:06 pm

Ping!

p.s. hope the trip went swimmingly :)
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 mdrjr » Wed Oct 15, 2014 10:15 am

Hi, sorry that I've forgot about your question :(

But yes it applies to XU3 as well! :(
Same thing as XU start is 1263 and maximum zImage size is 8Mb
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 mikecwel » Wed Oct 15, 2014 5:56 pm

Hello,
I'm trying to do the same thing with the last version of the kernel and this version of the operating system "ODROID-U3/U2/X/X2 Android 4.4.4 KitKat Alpha 4.3" and I got an error at the end

"moi@moi-ET2400IN-1G:~/linux-odroid-3.0.y-android$ for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done
failed to copy './drivers/scsi/scsi_wait_scan.ko' to '/system/lib/modules/scsi_wait_scan.ko': Read-only file system
failed to copy './drivers/gator/gator.ko' to '/system/lib/modules/gator.ko': Read-only file system
failed to copy './drivers/media/video/uvc/uvcvideo.ko' to '/system/lib/modules/uvcvideo.ko': Read-only file system
failed to copy './drivers/net/usb/ax88179_178a.ko' to '/system/lib/modules/ax88179_178a.ko': Read-only file system
failed to copy './drivers/net/usb/smsc95xx.ko' to '/system/lib/modules/smsc95xx.ko': Read-only file system
failed to copy './drivers/net/wireless/rtl8192cu_v40/rtl8192cu.ko' to '/system/lib/modules/rtl8192cu.ko': Read-only file system
failed to copy './drivers/net/wireless/rtl8191su/rtl8191su.ko' to '/system/lib/modules/rtl8191su.ko': Read-only file system
failed to copy './sound/usb/snd-usb-audio.ko' to '/system/lib/modules/snd-usb-audio.ko': Read-only file system
failed to copy './sound/usb/snd-usbmidi-lib.ko' to '/system/lib/modules/snd-usbmidi-lib.ko': Read-only file system
moi@moi-ET2400IN-1G:~/linux-odroid-3.0.y-android$ adb push arch/arm/boot/zImage /system/lib/modules
failed to copy 'arch/arm/boot/zImage' to '/system/lib/modules/zImage': Read-only file system"

What am I doing wrong?

Please help
mikecwel
 
Posts: 61
Joined: Tue Jul 09, 2013 3:51 pm
languages_spoken: english, french, polish
ODROIDs: Odroid X2

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

Unread postby odroid » Wed Oct 15, 2014 6:49 pm

You should run "adb remount" first to change the system partition to activate the Read-Write permission.
User avatar
odroid
Site Admin
 
Posts: 25293
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby mikecwel » Thu Oct 16, 2014 1:32 am

Thanks
It is working now
But I think that I have made amistake and used the wrong toolchain (422 insted of 442)
mikecwel
 
Posts: 61
Joined: Tue Jul 09, 2013 3:51 pm
languages_spoken: english, french, polish
ODROIDs: Odroid X2

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

Unread postby nvitovitch » Thu Oct 16, 2014 2:03 am

After following instructions w/ the most up-to-date (AFIK) OS, toolchain, kernel sources, etc., I am able to build, adb push, and dd zImage onto my Android installation, but upon reboot the console halts after "Starting kernel ...".

Sanity-check my sources and/or can anyone reproduce this failure?

Platform: ODROID-XU3 (use dd seek=1263)
OS: http://www.odroid.in/mirror/dn.odroid.c ... 02.img.zip
Toolchain: http://www.odroid.in/mirror/dn.odroid.c ... 0q1.tar.xz
Kernel: https://github.com/hardkernel/linux/arc ... ndroid.zip (master)
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

PreviousNext

Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest