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

Moderators: mdrjr, odroid, meveric

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

Unread postby dasaint80 » Sun Mar 24, 2013 1:21 am

Im using ubuntu. Thats the only os on that computer

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby kibergus » Sun Mar 24, 2013 1:50 am

dasaint80 wrote:Im using ubuntu. Thats the only os on that computer

There is an alternative way. Switch off odroid, detach eMMC and connect it to PC. Mount it.
Instead of steps 5, 6, 7 execute following commands:
Code: Select all
sudo -s
for module in `find . -iname *.ko`; do cp $module <folder where eMMC is mounted>/lib/modules ; done
dd conv=notrunc seek=2455 bs=512 if=arch/arm/boot/zImage of=/dev/<name of device with eMMC>
sync

You must substitute <folder where eMMC is mounted> and <name of device with eMMC> with correct values. Be especially careful with name of eMMC device, other-vice you can write kernel somewhere to your harddrive and ruin filesystem.

All this mess with adb is for windows users who don't have appropriate utilites in their systems, especially ext3 driver and dd.
Last edited by kibergus on Tue Apr 02, 2013 3:38 pm, edited 2 times in total.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

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

Unread postby dasaint80 » Sun Mar 24, 2013 2:30 am

kibergus wrote:
Code: Select all
sudo -s
for module in `find . -iname *.ko`; do cp $i <folder where eMMC is mounted>/system/lib/modules ; done
busybox dd conv=notrunc seek=2455 bs=512 if=arch/arm/boot/zImage of=/dev/<name of device with eMMC>
sync

You must substitute <folder where eMMC is mounted> and <name of device with eMMC> with correct values. Be especially careful with name of eMMC device, other-vice you can write kernel somewhere to your harddrive and ruin filesystem.

All this mess with adb is for windows users who don't have appropriate utilites in their systems, especially ext3 driver and dd.


OK so we're gonna mount this to our eMMC or SDMMC directly, correct? and I'm using the sdmmc is that ok? or it needs to be for eMMC?
does the SDMMC or eMMC have to have android already flashed onto it?
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby dasaint80 » Mon Mar 25, 2013 6:31 am

should android be loaded onto the SD card for this to work?
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Mon Mar 25, 2013 6:40 am

Works for both.
mdrjr
Site Admin
 
Posts: 11681
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 dasaint80 » Mon Mar 25, 2013 8:33 am

ok so I'm stuck again!!

Code: Select all
dasaint80@dasaint80:~/kernel_4412$ make -j4 ARCH=arm zImage modules
make: pwd/arm-none-linux-gnueabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: pwd/arm-none-linux-gnueabi-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
/bin/sh: 1: pwd/arm-none-linux-gnueabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
dasaint80@dasaint80:


but if i do
Code: Select all
echo $CROSS_COMPILE
I get this
Code: Select all
dasaint80@dasaint80:~/arm-2010q1/bin$ echo $CROSS_COMPILE export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-
pwd/arm-none-linux-gnueabi- export CROSS_COMPILE=/home/dasaint80/arm-2010q1/bin/arm-none-linux-gnueabi-
dasaint80@dasaint80:~/arm-2010q1/bin$


can I extract these files at my Download folder of they need to be at a specific folder?

Steve
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Mon Mar 25, 2013 12:19 pm

Please follow the guide exactly as its written.

Its: export CROSS_COMPILE=`pwd`/arm-none-linux/gnueabi-

Nothing else...
mdrjr
Site Admin
 
Posts: 11681
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 dasaint80 » Wed Mar 27, 2013 6:19 am

Hey mdrjr,
Can I use this rebuild onto cms build?

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Wed Mar 27, 2013 8:41 am

dasaint80 wrote:Hey mdrjr,
Can I use this rebuild onto cms build?

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2


What is CMS ?
mdrjr
Site Admin
 
Posts: 11681
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 dasaint80 » Wed Mar 27, 2013 8:55 am

cyanogenmod build 10.1


Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
dasaint80
 
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
Location: Philly, PA
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Wed Mar 27, 2013 9:19 am

dasaint80 wrote:cyanogenmod build 10.1


Sent from my SAMSUNG-SGH-I747 using Tapatalk 2


Nope, this guide is for our kernel. Check CM Wiki for information about it.
mdrjr
Site Admin
 
Posts: 11681
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 sert00 » Sun Apr 28, 2013 6:41 am

Ehi mdrjr...sorry to ask for it,i know you are busy and have more interesting things to do,but can you prepare that patchset you spoke off sometimes ago about cpu oc at 2ghz?i began using hard kernel android instead of cm,but a thing i really miss is cpu oc.
I build without problems a kernel,enabling gpu oc etc,but everytimes i rried adding\changing something to oc the cpu,compile well,but zero rsults,always 1.7 max.
If you can do something or at least some words to explain how...it would be very appreciated man!
thanks
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

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

Unread postby mdrjr » Sun Apr 28, 2013 7:03 am

sert00 wrote:Ehi mdrjr...sorry to ask for it,i know you are busy and have more interesting things to do,but can you prepare that patchset you spoke off sometimes ago about cpu oc at 2ghz?i began using hard kernel android instead of cm,but a thing i really miss is cpu oc.
I build without problems a kernel,enabling gpu oc etc,but everytimes i rried adding\changing something to oc the cpu,compile well,but zero rsults,always 1.7 max.
If you can do something or at least some words to explain how...it would be very appreciated man!
thanks


I'll take care of that :( Sorry.. Gimme a day or so and I'll have it..
mdrjr
Site Admin
 
Posts: 11681
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 sert00 » Mon Apr 29, 2013 3:48 am

ok no problems,take yours time bro!
Only know you will do it soon it's ok for me!
cheers
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

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

Unread postby mdrjr » Mon Apr 29, 2013 3:51 am

sert00 wrote:ok no problems,take yours time bro!
Only know you will do it soon it's ok for me!
cheers


are you on the latest 1.6 JB or the 4.0.3.1 ics?
mdrjr
Site Admin
 
Posts: 11681
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 sert00 » Tue Apr 30, 2013 6:31 am

latest jb image,1.6 version
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

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

Unread postby mlilja » Thu May 02, 2013 5:25 am

It works for the odroidu2 sdmmc if you use offset 1256960. I believe the u-boot is located at offset 9645568. Anyhu I only got it working if I use this command:
busybox dd conv=notrunc seek=1256960 bs=1 if=zImage of=/dev/block/mmcblk0
mlilja
 
Posts: 1
Joined: Wed May 01, 2013 4:36 pm
languages_spoken: english
ODROIDs: ODROID-U2

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

Unread postby turkerali » Thu May 09, 2013 1:44 am

The sdcard layout is explained very well here: http://www.kernelconcepts.de/~arne/odroidx/readme.txt

NAND and SD-card layout:
------------------------
block contents length (512 byte blocks)
0x0000 boot sector 0x00001
0x0001 bl1 0x0001e
0x001f bl2 0x00020
0x003f u-boot 0x00800
0x083f tzsw 0x00138
0x0977 u-boot env 0x00020
0x0997 kernel 0x04000
0x4997 rootfs-ram 0x00800
0x5197 reserved 0x1ccfa

According to this layout, kernel is located at address 0x0997 (which is 2455 in decimal) so the command below makes sense:
dd conv=notrunc seek=2455 bs=512 if=zImage of=/dev/block/mmcblk0

However for sdcard, mdrjr writes the following command, but I don't know where the "9645568" figure comes from:
dd conv=notrunc seek=9645568 bs=1 if=zImage of=/dev/mmcblk0

Any ideas?
turkerali
 
Posts: 7
Joined: Wed Mar 13, 2013 5:12 pm
languages_spoken: English, Turkish
ODROIDs: ODROID-X2

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

Unread postby mdrjr » Thu May 09, 2013 3:13 am

It was a miss-cauculation when I wrote the guide.. I've fixed the OP months ago....
mdrjr
Site Admin
 
Posts: 11681
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 turkerali » Thu May 09, 2013 5:35 pm

mdrjr wrote:It was a miss-cauculation when I wrote the guide.. I've fixed the OP months ago....


Strange, I still see 9645568 in your post: viewtopic.php?f=51&t=83#p772

Regards.
turkerali
 
Posts: 7
Joined: Wed Mar 13, 2013 5:12 pm
languages_spoken: English, Turkish
ODROIDs: ODROID-X2

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

Unread postby mdrjr » Thu May 09, 2013 10:44 pm

turkerali wrote:
mdrjr wrote:It was a miss-cauculation when I wrote the guide.. I've fixed the OP months ago....


Strange, I still see 9645568 in your post: viewtopic.php?f=51&t=83#p772

Regards.


as I said before.. OP (Original Post, the first post) had it fixed. But I also deleted that message to dont' cause confusion on people anymore.
mdrjr
Site Admin
 
Posts: 11681
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 turkerali » Thu May 09, 2013 11:33 pm

mdrjr wrote:
turkerali wrote:
mdrjr wrote:It was a miss-cauculation when I wrote the guide.. I've fixed the OP months ago....


Strange, I still see 9645568 in your post: viewtopic.php?f=51&t=83#p772

Regards.


as I said before.. OP (Original Post, the first post) had it fixed. But I also deleted that message to dont' cause confusion on people anymore.


Much apprecitated.

Btw, the current Andoid 1.6 kernel source file (http://dn.odroid.com/Android_Beta_1.6/B ... 412.tar.gz) contains the following configuration files for Odroid-X2 SDMMC:

1- odroidx2_android_sdmmc_defconfig
2- odroidx2_android_sdmmc_hdmi_defconfig

I use HDMI-out, therefore I compiled with the second file (since it contains HDMI in the filename). It compiles, but the screen never shows up for some reason.
Then I compiled with the first config file above, and HDMI works without any problems. You may want to delete the second config file to prevent any confusion.

Regards.
turkerali
 
Posts: 7
Joined: Wed Mar 13, 2013 5:12 pm
languages_spoken: English, Turkish
ODROIDs: ODROID-X2

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

Unread postby mdrjr » Thu May 09, 2013 11:53 pm

turkerali wrote:
mdrjr wrote:
turkerali wrote:
mdrjr wrote:It was a miss-cauculation when I wrote the guide.. I've fixed the OP months ago....


Strange, I still see 9645568 in your post: viewtopic.php?f=51&t=83#p772

Regards.


as I said before.. OP (Original Post, the first post) had it fixed. But I also deleted that message to dont' cause confusion on people anymore.


Much apprecitated.

Btw, the current Andoid 1.6 kernel source file (http://dn.odroid.com/Android_Beta_1.6/B ... 412.tar.gz) contains the following configuration files for Odroid-X2 SDMMC:

1- odroidx2_android_sdmmc_defconfig
2- odroidx2_android_sdmmc_hdmi_defconfig

I use HDMI-out, therefore I compiled with the second file (since it contains HDMI in the filename). It compiles, but the screen never shows up for some reason.
Then I compiled with the first config file above, and HDMI works without any problems. You may want to delete the second config file to prevent any confusion.

Regards.


well noted
mdrjr
Site Admin
 
Posts: 11681
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 sonicxtacy02 » Sat Jun 08, 2013 11:57 pm

put me in the crowd with the error message on the "make -j4 ARCH=arm zImage moodules". CROSS_COMPILE is showing as it should.

Code: Select all
sx14r@ubuntu:~/arm-2010q1/bin/kernel_4412$ make -j4 ARCH=arm zImage modules
make: /home/sx14r/arm-2010q1/bin/kernel_4412/arm-none-linux-gnueabi-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
/bin/sh: 1: /home/sx14r/arm-2010q1/bin/kernel_4412/arm-none-linux-gnueabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!
sx14r@ubuntu:~/arm-2010q1/bin/kernel_4412$


Code: Select all
sx14r@ubuntu:~/arm-2010q1/bin/kernel_4412$ echo $CROSS_COMPILE
/home/sx14r/arm-2010q1/bin/kernel_4412/arm-none-linux-gnueabi-
sx14r@ubuntu:~/arm-2010q1/bin/kernel_4412$


not sure where to go from here i'm simply attempting to make a small modification to the hidinput driver
sonicxtacy02
 
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2

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

Unread postby mdrjr » Mon Jun 10, 2013 8:10 am

your cross_compile variable is wrong...
in your case it should be
export CROSS_COMPILE=/home/sx14r/arm-2010q1/bin/arm-none-linux-gnueabi-
mdrjr
Site Admin
 
Posts: 11681
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 sonicxtacy02 » Tue Jun 11, 2013 10:06 am

mdrjr wrote:your cross_compile variable is wrong...
in your case it should be
export CROSS_COMPILE=/home/sx14r/arm-2010q1/bin/arm-none-linux-gnueabi-


I wish that were the problem but its not. I've tried it again with your code and it does the same thing. I've download toolchain multiple times from your link, downloaded the kernel from http://dn.odroid.com/Android_Beta_1.6/BSP/ , and tried the entire process on two seperate 64 ubuntu 12.04 machines. Same error on both sides with relative path OR absolute path.
sonicxtacy02
 
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2

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

Unread postby mdrjr » Tue Jun 11, 2013 10:11 am

It actually works for me.. are you sure that you are copying and pasting the steps of the guide..
mdrjr
Site Admin
 
Posts: 11681
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 sonicxtacy02 » Tue Jun 11, 2013 10:33 am

mdrjr wrote:It actually works for me.. are you sure that you are copying and pasting the steps of the guide..


absolutely certain. Just tried it again to confirm. i'm certain that CROSS_COMPILE points to the right path but i continue to see the command not found error message.
sonicxtacy02
 
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2

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

Unread postby mdrjr » Tue Jun 11, 2013 9:26 pm

Well.. if your box is 64 bit you probably need the ia32-libs package...
mdrjr
Site Admin
 
Posts: 11681
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 sonicxtacy02 » Wed Jun 12, 2013 7:49 am

mdrjr wrote:Well.. if your box is 64 bit you probably need the ia32-libs package...


You sir are a savior. Thank you for your patience. For those who may encounter this issue, here are the commands you need
sudo apt-get install package-name:i386
sudo apt-get update
sudo-apt-get install ia32-libs


Last question. My assumption is whenever i update builds (say from 1.6 to 1.7), I will have to do this process over again. Is this correct?

Thanks again!
sonicxtacy02
 
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2

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

Unread postby mdrjr » Wed Jun 12, 2013 9:46 am

sonicxtacy02 wrote:
mdrjr wrote:Well.. if your box is 64 bit you probably need the ia32-libs package...


You sir are a savior. Thank you for your patience. For those who may encounter this issue, here are the commands you need
sudo apt-get install package-name:i386
sudo apt-get update
sudo-apt-get install ia32-libs


Last question. My assumption is whenever i update builds (say from 1.6 to 1.7), I will have to do this process over again. Is this correct?

Thanks again!


Nope just need the sources..

You need two variables..
export CROSS_COMPILE=/home/.....
export ARCH=arm

and use the new sources.. toolchain is the same all time.
mdrjr
Site Admin
 
Posts: 11681
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 nbottaro » Wed Jun 12, 2013 12:33 pm

if i download the custom zimage_albertodlh, and im using terminal on a mac... is it still all the same steps as the first post? can i just push the new zimage to the fat and replace the one on there for it to work? is there a way to make this an "update" so it can be easily switched from the update folder created in post 1.6 versions? thanks!
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby elemental » Tue Jul 02, 2013 10:25 pm

Hi mdrjr,

I have been trying to build the kernel but have been trying to do it on a 64 bit VM in virtual box. The build just fails outright. I can post the make with --debug option. But at this point relating to post from "sonicxtacy02 " above. Is there a chance that the tool chain is 32 bit and I can only compile the kernel with a 32 bit machine ? or do you use a 64 bit machine as well.

Regards,

Code: Select all
elemental@elemental-VirtualBox:~/hk-kernel/kernel_4412$ echo $CROSS_COMPILE
/home/elemental/hk-kernel/arm-2010q1/bin/arm-none-linux-gnueabi-
elemental@elemental-VirtualBox:~/hk-kernel/kernel_4412$ echo $ARCH
arm
elemental@elemental-VirtualBox:~/hk-kernel/kernel_4412$ make --debug ARCH=arm zImage modules
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
make: /home/elemental/hk-kernel/arm-2010q1/bin/arm-none-linux-gnueabi-gcc: Command not found
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Updating goal targets....
 File `silentoldconfig' does not exist.
   File `scripts_basic' does not exist.
  Must remake target `scripts_basic'.
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Updating goal targets....
 File `__build' does not exist.
     File `FORCE' does not exist.
    Must remake target `FORCE'.
    Successfully remade target file `FORCE'.
   Prerequisite `FORCE' of target `scripts/basic/fixdep' does not exist.
  Must remake target `scripts/basic/fixdep'.
  Successfully remade target file `scripts/basic/fixdep'.
Must remake target `__build'.
Successfully remade target file `__build'.
  Successfully remade target file `scripts_basic'.
   File `outputmakefile' does not exist.
  Must remake target `outputmakefile'.
  Successfully remade target file `outputmakefile'.
   File `FORCE' does not exist.
  Must remake target `FORCE'.
  Successfully remade target file `FORCE'.
Must remake target `silentoldconfig'.
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Updating goal targets....
 File `silentoldconfig' does not exist.
       File `FORCE' does not exist.
      Must remake target `FORCE'.
      Successfully remade target file `FORCE'.
     Prerequisite `FORCE' of target `scripts/kconfig/conf.o' does not exist.
    Must remake target `scripts/kconfig/conf.o'.
    Successfully remade target file `scripts/kconfig/conf.o'.
     Prerequisite `FORCE' of target `scripts/kconfig/zconf.tab.o' does not exist.
    Must remake target `scripts/kconfig/zconf.tab.o'.
    Successfully remade target file `scripts/kconfig/zconf.tab.o'.
   Prerequisite `FORCE' of target `scripts/kconfig/conf' does not exist.
  Must remake target `scripts/kconfig/conf'.
  Successfully remade target file `scripts/kconfig/conf'.
Must remake target `silentoldconfig'.
scripts/kconfig/conf --silentoldconfig Kconfig

*** Error during update of the configuration.

make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
Updating goal targets....
 File `zImage' does not exist.
   File `vmlinux' does not exist.
     File `arch/arm/kernel/vmlinux.lds' does not exist.
       File `init' does not exist.
         File `prepare' does not exist.
           File `prepare0' does not exist.
             File `archprepare' does not exist.
               File `prepare1' does not exist.
                 File `prepare2' does not exist.
                   File `prepare3' does not exist.
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
elemental@elemental-VirtualBox:~/hk-kernel/kernel_4412$
elemental
 
Posts: 83
Joined: Mon Apr 22, 2013 7:54 pm
languages_spoken: english
ODROIDs: Odroid U2 running on micro-sd

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

Unread postby mdrjr » Tue Jul 02, 2013 11:00 pm

My laptop is 64bit... you need ia32-libs installed to use.. the toolchain is 32bits.
mdrjr
Site Admin
 
Posts: 11681
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 elemental » Tue Jul 02, 2013 11:12 pm

Good, I already cloned my VM.

Last time I installed this

sudo apt-get update
sudo-apt-get install ia32-libs

I winded up reinstalling the VM. I'll try carefully this time instead and not blind copy paste.

Regards,
elemental
 
Posts: 83
Joined: Mon Apr 22, 2013 7:54 pm
languages_spoken: english
ODROIDs: Odroid U2 running on micro-sd

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

Unread postby nbottaro » Sat Jul 06, 2013 12:36 am

nbottaro wrote:if i download the custom zimage_albertodlh, and im using terminal on a mac... is it still all the same steps as the first post? can i just push the new zimage to the fat and replace the one on there for it to work? is there a way to make this an "update" so it can be easily switched from the update folder created in post 1.6 versions? thanks!




no response to this? still cant figure it out
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby mdrjr » Sat Jul 06, 2013 12:44 am

nbottaro wrote:
nbottaro wrote:if i download the custom zimage_albertodlh, and im using terminal on a mac... is it still all the same steps as the first post? can i just push the new zimage to the fat and replace the one on there for it to work? is there a way to make this an "update" so it can be easily switched from the update folder created in post 1.6 versions? thanks!




no response to this? still cant figure it out


If you have Android SDK installed yes..
Otherwise, using the board, head to the site, download the image using the stock browser.
Open Android Terminal (Free on play store)
and do the dd command
mdrjr
Site Admin
 
Posts: 11681
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 nbottaro » Sat Jul 06, 2013 1:34 am

ok now i feel stupid... i can do it straight from the android terminal?! i just use the dd commands from the beginning of this thread? thanks!!
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby nbottaro » Sat Jul 06, 2013 3:46 am

if im doing it through the board, how do i copy the zimage from my sdcard/downloads to system/lib/modules? terminal says its a readonly file system, i tried chmod 777 and still wont let me
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby mdrjr » Sat Jul 06, 2013 3:50 am

you can dd it from the sdcard/downloads folder...
mdrjr
Site Admin
 
Posts: 11681
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 nbottaro » Sat Jul 06, 2013 4:02 am

dd cant open /dev/block/mmcblk0: permission denied

how do i gain permission?
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby mdrjr » Sat Jul 06, 2013 4:04 am

type: su

It will ask, grant root for it
mdrjr
Site Admin
 
Posts: 11681
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 nbottaro » Sat Jul 06, 2013 4:07 am

6767 1 record in
6767 1 record out
3465024 bytes (3.3mb) copied, 0.381078 seconds, 8.7MB/s
@android/mnt/sdcard/Download#

assuming we are good to go? is there a way to confirm the speeds? THANKS SOO MUCH!!
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby mdrjr » Sat Jul 06, 2013 4:08 am

Yep..
now type

sync && reboot
mdrjr
Site Admin
 
Posts: 11681
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 nbottaro » Sat Jul 06, 2013 4:11 am

perfect! youre the best!!!! thanks so much for the help!
nbottaro
 
Posts: 21
Joined: Tue Feb 26, 2013 11:33 pm
languages_spoken: english
ODROIDs: u2

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

Unread postby elemental » Sat Jul 06, 2013 5:19 am

elemental wrote:Good, I already cloned my VM.

Last time I installed this

sudo apt-get update
sudo-apt-get install ia32-libs

I winded up reinstalling the VM. I'll try carefully this time instead and not blind copy paste.

Regards,


Great compile worked for me as well now.

Wondering now if step 7 in post #1 from u applies to me since I have only an sdcard.

Regards,
elemental
 
Posts: 83
Joined: Mon Apr 22, 2013 7:54 pm
languages_spoken: english
ODROIDs: Odroid U2 running on micro-sd

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

Unread postby elemental » Sat Jul 06, 2013 5:23 am

Ok sorry for dumb qt, just checked my terminal, mmcblk01 exists for me as well. Also I can see mmcblk01p1 .. p4. These would be my 4 partitions I guess on the sdcard. The first device deals with the complete sdcard, is this correct.
elemental
 
Posts: 83
Joined: Mon Apr 22, 2013 7:54 pm
languages_spoken: english
ODROIDs: Odroid U2 running on micro-sd

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

Unread postby mdrjr » Sat Jul 06, 2013 12:19 pm

mmcblk0 is the device, the entire device.

p1, p2, p3, p4 those are partition..

Partition 1.. and so on..
mdrjr
Site Admin
 
Posts: 11681
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 sert00 » Thu Aug 22, 2013 1:32 am

It's a bit i didn't build a kernel for odroids...and faced a stupid problem for an hour,tried everything.
After all the headache,noticed i miss ia32 libs due to fresh install of my linux box on the laptop.
I reccomend add in OP this tips for 64bit users,otherwise someone else will face same problems(solved after reading all the pages!)things that already happened to 3\4 users like me with same errors reported! ;)

in first lines,after installing build essential and xz (for me xz don't exists,but is xz-utils)
Code: Select all
sudo apt-get install package-name:i386
sudo apt-get update
sudo apt-get install ia32-libs
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

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

Unread postby R00t » Fri Sep 13, 2013 7:36 am

Hello,

I have managed to compile the kernel with custom settings (cpu/gpu OC) but now I'm having some problem with custom modules.
I need to compile fuse.ko to be used in combination with ntfs-3g to get real RW permission on ntfs filesystem.

up to now I understood that there are two methods to build a module

1)add fuse surcecode somewhere in kernel_4412 and compile it at the same time with zimage

2)normally compile the kernel and after compile the module against the compiled kernel using a makefile that contains a link to the kernel folder and the compiler used for cross compiling.

I have followed the second method until i got an error message of a missing config.h (and i don't know how to make it or where to get it)
is the second method correct or i am just making a mess ?
How i should do ?

thanks :)

P.S. I know of paragon app but i can't use it due to some bugs when used at the same time with a sync program...also the frequent toast notification is annoying while watching movies
P.S.2 there is a NTFS_RW=y in the kernel configuration file ....what it is for ? because is not having any effect
R00t
 
Posts: 5
Joined: Tue May 28, 2013 2:19 am
languages_spoken: english/Italian
ODROIDs: x2

PreviousNext

Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest