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

Moderators: odroid, mdrjr

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

Unread postby mdrjr » Mon Feb 25, 2013 11:39 am

For this guide you'll need:

A regular PC running Ubuntu (or any other Linux distro).
sudo apt-get install build-essential libqt4-dev xz
those are dependencies for this guide.

Kernel sources for Android: http://dn.odroid.com/Android_Alpha_4.0. ... 412.tar.gz
(this is just a example of a kernel source, you can ALWAYS grab the newest BSP that will come with the newest Android Kernel possible)

Toolchain: http://www.mdrjr.net/odroid/tools/arm-2010q1.tar.xz

Android SDK with adb working!!!!

1. Unpack and configure toolchain:
tar -Jxvf arm-2010q1.tar.xz
cd arm-2010q1/bin
export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-

2. Unpack the kernel sources.
tar zxvf kernel_4412.tar.gz
cd kernel_4412

3. Configure it for your board/storage type:
ls arch/arm/configs/odroid*android*
Code: Select all
odroidq2_android_defconfig       odroidu2_android_sdmmc_defconfig  odroidx2_android_emmc_defconfig        odroidx_android_emmc_defconfig
odroidq_android_defconfig        odroidu_android_emmc_defconfig    odroidx2_android_sdmmc_defconfig       odroidx_android_sdmmc_defconfig
odroidu2_android_emmc_defconfig  odroidu_android_sdmmc_defconfig   odroidx_android_42Inch_demo_defconfig


I'll set as example for this, odroidx2 using eMMC. You can choose anything else!

make ARCH=arm odroidx2_android_emmc_defconfig


4. Build the kernel and modules!
make -j4 ARCH=arm zImage modules

This should takes a few minutes.....

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

6. Copying the kernel:
adb push arch/arm/boot/zImage /system/lib/modules

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


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

8. Enjoy your new Android kernel ;)
mdrjr
Site Admin
 
Posts: 10212
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 mdrjr » Mon Feb 25, 2013 11:40 am

Mali overclock!

To be added between steps 3 and 4.

1. edit the .config file
2. Search for MALI_OVERCLOCK
Code: Select all
# CONFIG_MALI_OVERCLOCK_533 is not set
# CONFIG_MALI_OVERCLOCK_640 is not set
# CONFIG_MALI_OVERCLOCK_733 is not set
# CONFIG_MALI_OVERCLOCK_800 is not set

3. Change one of those that you may want. to something like:
CONFIG_MALI_OVERCLOCK_640=y


By default Mali runs at 440Mhz, but you can try higher frequencies. I've let up to 800Mhz because that's the max that -U2 can do.. so.. results may not be the same for everyone ;)
mdrjr
Site Admin
 
Posts: 10212
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 Feb 25, 2013 4:00 pm

in the first command when i try to install it say that xz packet isn't finded.then i tried the same command without xz in the end,all good and download 27mb (mint 14 64bit)
Last edited by sert00 on Mon Feb 25, 2013 6:48 pm, edited 1 time in total.
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 722
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

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

Unread postby mdrjr » Mon Feb 25, 2013 6:21 pm

I guess that you downloaded while I was uploading...
mdrjr
Site Admin
 
Posts: 10212
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 Feb 25, 2013 6:47 pm

i referred to this command
sudo apt-get install build-essential libqt4-dev xz
with the xz it say package xz not found
then i did
sudo apt-get install build-essential libqt4-dev

i have an error in the building referring to drivers...can you point me in the right direction?i choosed the android_u2_emmc.defconfig and changed only the frequency of gpu in this manner because i want to see the gain in benchmarks:
from
# CONFIG_MALI_OVERCLOCK_533 is not set
# CONFIG_MALI_OVERCLOCK_640 is not set
# CONFIG_MALI_OVERCLOCK_733 is not set
# CONFIG_MALI_OVERCLOCK_800 is not set

to:(last line without the #)

# CONFIG_MALI_OVERCLOCK_533 is not set
# CONFIG_MALI_OVERCLOCK_640 is not set
# CONFIG_MALI_OVERCLOCK_733 is not set
CONFIG_MALI_OVERCLOCK_800=y

http://pastebin.com/niMLGdi9 it's the output
I don't sync the jb stock sources,but the cyanogen one,from here with git clone git@github.com:CyanogenMod/hardkernel-kernel-4412.git

an help it could be greatly appreciated,and it's not the right place,feel free to say me and i'll switch to issues section.i posted here to reply to yours post mdrjr!
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 722
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

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

Unread postby mdrjr » Mon Feb 25, 2013 9:42 pm

I don't know CM way to build the kernel, but I think that you must use their toolchain.

I've tried to build their kernel and still have this error.. Not sure why, didn't even tested.

Our default kernel does build
mdrjr
Site Admin
 
Posts: 10212
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 Feb 26, 2013 3:39 am

ok thank you very much mauro!i'll try to switch toolchain..if not works,i'll do jb standard one!
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 722
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

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

Unread postby waldorf » Wed Feb 27, 2013 9:30 pm

we would also need to know how to update the kernel on a SD card as many of us do not have eMMC (and no debug board unfortunately). can you explain? many thanks in advance ! :)
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby waldorf » Thu Feb 28, 2013 10:02 pm

hmm, are you sure the dd command is exactly the same for the eMMC and uSD card?
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Thu Feb 28, 2013 10:04 pm

waldorf wrote:hmm, are you sure the dd command is exactly the same for the eMMC and uSD card?


Yes
mdrjr
Site Admin
 
Posts: 10212
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 ingans » Sat Mar 02, 2013 4:23 am

At step 4 i have this error

Code: Select all
TOSHIBA-NB200:~/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
  HOSTCC  scripts/mod/mk_elfconfig
gcc: error: no se reconoce la opción de línea de órdenes ‘-mlittle-endian’
gcc: error: no se reconoce la opción de línea de órdenes ‘-marm’
gcc: error: no se reconoce la opción de línea de órdenes ‘-mfpu=neon’
gcc: error: no se reconoce la opción de línea de órdenes ‘-mfloat-abi=softfp’
gcc: error: no se reconoce la opción de línea de órdenes ‘-mapcs’
gcc: error: no se reconoce la opción de línea de órdenes ‘-mno-sched-prolog’
gcc: error: no se reconoce el argumento en la opción ‘-mabi=aapcs-linux’
gcc: nota: los argumentos válidos para ‘-mabi=’ son: ms sysv
gcc: error: no se reconoce la opción de línea de órdenes ‘-mno-thumb-interwork’
gcc: error: no se reconoce la opción de línea de órdenes ‘-mfpu=neon’
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Se espera a que terminen otras tareas....


You can help me? My device is a U2
Thanks
ingans
 
Posts: 10
Joined: Mon Feb 25, 2013 8:15 am
languages_spoken: Spanish
ODROIDs: U2

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

Unread postby mdrjr » Sat Mar 02, 2013 4:34 am

You missed the export CROSS_COMPILE step.
mdrjr
Site Admin
 
Posts: 10212
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 ingans » Sat Mar 02, 2013 4:53 am

mdrjr wrote:You missed the export CROSS_COMPILE step.


Dont missed this step, you can see here

Code: Select all
TOSHIBA-NB200:~/arm-2010q1/bin$ export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-


but there was no reaction
ingans
 
Posts: 10
Joined: Mon Feb 25, 2013 8:15 am
languages_spoken: Spanish
ODROIDs: U2

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

Unread postby mdrjr » Sat Mar 02, 2013 9:51 am

echo $CROSS_COMPILE and paste here.
mdrjr
Site Admin
 
Posts: 10212
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 ingans » Sat Mar 02, 2013 4:52 pm

mdrjr wrote:echo $CROSS_COMPILE and paste here.


Nothing, not response
ingans
 
Posts: 10
Joined: Mon Feb 25, 2013 8:15 am
languages_spoken: Spanish
ODROIDs: U2

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

Unread postby mdrjr » Sun Mar 03, 2013 12:55 am

ingans wrote:
mdrjr wrote:echo $CROSS_COMPILE and paste here.


Nothing, not response



Something is wrong on your side...

Code: Select all
mdrjr@sushi:~/bin/arm-2010q1/bin$ export CROSS_COMPILE=`pwd`/arm-none-linux-gnueabi-
mdrjr@sushi:~/bin/arm-2010q1/bin$ echo $CROSS_COMPILE
/home/mdrjr/bin/arm-2010q1/bin/arm-none-linux-gnueabi-
mdrjr@sushi:~/bin/arm-2010q1/bin$
mdrjr
Site Admin
 
Posts: 10212
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 ingans » Sun Mar 03, 2013 3:43 am

Now works!!

Code: Select all
oscar@oscar-TOSHIBA-NB200:~/arm-2010q1/bin$ echo $CROSS_COMPILE
/home/oscar/arm-2010q1/bin/arm-none-linux-gnueabi-
oscar@oscar-TOSHIBA-NB200:~/arm-2010q1/bin$


What would the next step?

Sorry buy im a authentic noob in Ubuntu and Linux :?
ingans
 
Posts: 10
Joined: Mon Feb 25, 2013 8:15 am
languages_spoken: Spanish
ODROIDs: U2

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

Unread postby boss1019 » Sun Mar 03, 2013 3:54 am

Can someone try to make a flashable file or set of files for different speeds. Also will this work on ics and jellybean or just jellybean or just ics.
boss1019
 
Posts: 11
Joined: Thu Feb 28, 2013 1:39 pm
languages_spoken: english
ODROIDs: Odroid X2

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

Unread postby mdrjr » Sun Mar 03, 2013 6:20 am

ingans wrote:Now works!!

Code: Select all
oscar@oscar-TOSHIBA-NB200:~/arm-2010q1/bin$ echo $CROSS_COMPILE
/home/oscar/arm-2010q1/bin/arm-none-linux-gnueabi-
oscar@oscar-TOSHIBA-NB200:~/arm-2010q1/bin$


What would the next step?

Sorry buy im a authentic noob in Ubuntu and Linux :?


Follow the guide from step 2.. now..
mdrjr
Site Admin
 
Posts: 10212
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 mdrjr » Sun Mar 03, 2013 6:20 am

boss1019 wrote:Can someone try to make a flashable file or set of files for different speeds. Also will this work on ics and jellybean or just jellybean or just ics.



Works for both!
mdrjr
Site Admin
 
Posts: 10212
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 boss1019 » Sun Mar 03, 2013 6:28 am

thanks
boss1019
 
Posts: 11
Joined: Thu Feb 28, 2013 1:39 pm
languages_spoken: english
ODROIDs: Odroid X2

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

Unread postby bernabap » Thu Mar 07, 2013 10:45 am

I have built this kernel but after flashing to my u2 and reboot I have lost ethernet connectivity, lights does not turn on.

I could not run the step 5 command, it just shows me adb man page. So, I have copied all this modules one by one to /system/lib/modules/:

./drivers/scsi/scsi_wait_scan.ko
./drivers/char/ramoops.ko
./drivers/net/usb/smsc95xx.ko
./drivers/net/wireless/rtl8191su/rtl8191su.ko
./drivers/media/video/gspca/gspca_main.ko
./drivers/input/keyboard/gpio_keys_polled.ko
./drivers/input/input-polldev.ko
./crypto/ansi_cprng.ko
./net/ipv4/tcp_westwood.ko
./net/ipv4/tcp_bic.ko
./net/ipv4/tcp_htcp.ko

from dmesg I see some problem but I dont know what to do with this info!? I haven't changed anything from the source files.

<3>[ 22.798847] rtl8191su: version magic '3.0.51 SMP mod_unload ARMv7 p2v8 ' should be '3.0.51 SMP preempt mod_unload ARMv7 p2v8 '
<3>[ 223.059954] init: no such service 'hciattach'
<3>[ 836.161078] init: no such service 'dhcpcd_sit0'
<3>[ 841.168749] init: no such service 'dhcpcd_sit0:-h android-2354e19bba075dd2 sit0'
<3>[ 891.431259] init: no such service 'dhcpcd_ip6tnl0'
<3>[ 896.436782] init: no such service 'dhcpcd_ip6tnl0:-h android-2354e19bba075dd2 ip6tnl0'

Any tip for a noob?
bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Thu Mar 07, 2013 11:20 am

Sorry, my bad.. do a
adb remount

first.. them the command to upload all modules.. it should work.
mdrjr
Site Admin
 
Posts: 10212
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 bernabap » Thu Mar 07, 2013 11:32 am

I already knew that this was missing from your steps, I had to do it to copy the modules one by one. But even after remount my file system with write permission the step 5 command did not worked for me.

Did I copy all the needed modules? All the modules that I have listed are in my /system/lib/modules folder but as I said my ethernet still does not work.
bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Thu Mar 07, 2013 11:43 am

See if the module on /system/lib/modules matchs the one in the kernel.
md5sum or something...
mdrjr
Site Admin
 
Posts: 10212
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 bernabap » Thu Mar 07, 2013 11:53 am

They are the same files.

Code: Select all
bernabap@lmde ~/Downloads/Android/Device/ODROID-U2/kernel_4412/drivers/net/wireless/rtl8191su $ md5sum rtl8191su.ko
8623a87e856f46389ac06c52fd199304  rtl8191su.ko
bernabap@lmde ~/Downloads/Android/Device/ODROID-U2/kernel_4412/drivers/net/wireless/rtl8191su $ adb shell
root@android:/ # cd /sys
sys/    system/
root@android:/ # cd /system/lib/modules/                                       
root@android:/system/lib/modules # md5sum r
ramoops.ko   rtl8191su.ko
root@android:/system/lib/modules # md5sum rtl8191su.ko                         
8623a87e856f46389ac06c52fd199304  rtl8191su.ko
bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Thu Mar 07, 2013 12:05 pm

have you dd'ed the new kernel?
mdrjr
Site Admin
 
Posts: 10212
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 bernabap » Thu Mar 07, 2013 12:12 pm

If this means success:

Code: Select all
bernabap@lmde ~/Downloads/Android/Device/ODROID-U2/kernel_4412 $ adb shell
root@android:/ # cd /system/lib/modules
busybox dd conv=notrunc seek=9645568 bs=1 if=zImage of=/dev/mmcblk0                                 <
3353504+0 records in
3353504+0 records out
3353504 bytes (3.2MB) copied, 22.525162 seconds, 145.4KB/s
root@android:/system/lib/modules #



yes.
bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Thu Mar 07, 2013 12:21 pm

hmmm are you on jb 1.3.1 or android 4.0.3.1?
mdrjr
Site Admin
 
Posts: 10212
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 bernabap » Thu Mar 07, 2013 12:27 pm

bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby mdrjr » Thu Mar 07, 2013 12:46 pm

I guess that the kernel offset is wrong... -.-..

I'll reply here tomorrow with a proper address.. gotta sleep now :( 1am here.
mdrjr
Site Admin
 
Posts: 10212
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 bernabap » Thu Mar 07, 2013 12:50 pm

Zzzzz

Edit: I did update my build to the latest ICS from 08 feb and now I don't lose ethernet after flashing this kernel. So the problem only occurs with the old build.
bernabap
 
Posts: 18
Joined: Mon Feb 25, 2013 9:03 am
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: ODROID-U2

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

Unread postby waldorf » Mon Mar 11, 2013 8:46 pm

@mdrjr

I have dd'ed a new zImage following the guide - odroid booted up but the kernel version was not chenged (no change in Settings/about),
then when I actually looked in /dev I saw there is no mmcblk0 device, but there is one in /dev/block/

so I dd'ed again zImage with of=/dev/block/mmcblk0 and now odroid does not boot up, the blue led is on for about 1 sec and then goes off completely

can you help? I run odroid from uSD card, I don't have emmc, the ICS android version is from 8 Feb, and my zImage is older (from January)
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Mon Mar 11, 2013 8:56 pm

waldorf wrote:@mdrjr

I have dd'ed a new zImage following the guide - odroid booted up but the kernel version was not chenged (no change in Settings/about),
then when I actually looked in /dev I saw there is no mmcblk0 device, but there is one in /dev/block/

so I dd'ed again zImage with of=/dev/block/mmcblk0 and now odroid does not boot up, the blue led is on for about 1 sec and then goes off completely

can you help? I run odroid from uSD card, I don't have emmc, the ICS android version is from 8 Feb, and my zImage is older (from January)


Sure, I'll check the exactly position today.. I think it either changed or I was wrong about it :(

If you have the UART kit you can fastboot the kernel..
mdrjr
Site Admin
 
Posts: 10212
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 Mar 12, 2013 12:21 am

hi guys,i noticed the same problem than the user "Ingans" at compiling android kernel...(viewtopic.php?f=51&t=83#p1151)
same error,tried the export another time,and here the result
echo $CROSS_COMPILE
result (only when i'm in arm-2010q1/bin folder,otherwise it's empty if i launch the command from every other place.is right,no?
/home/simo/ICS_kernel/arm-2010q1/bin/arm-none-linux-gnueabi-

i'm with a fresh installed linux mint 14 Mate edition 64bit,and trying building ics kernel using the sources from kernel-4412 pack (http://www.mdrjr.net/odroid/mirror/BSPs/Alpha4/unpacked/kernel_4412.tar.gz)

any help would be appreciated.began with freshly installed mint to avoid problems like i had before..but seems the things are not different.
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 722
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

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

Unread postby mdrjr » Tue Mar 12, 2013 1:07 am

It should be exactly like it.. as you are exporting based on your current path! :)

if you want to set it like this forever, in your case

export CROSS_COMPILE=/home/simo/ICS_kernel/arm-2010q1/bin/arm-none-linux-gnueabi-
mdrjr
Site Admin
 
Posts: 10212
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 waldorf » Tue Mar 12, 2013 11:36 pm

mdrjr wrote:
waldorf wrote:@mdrjr

I have dd'ed a new zImage following the guide - odroid booted up but the kernel version was not chenged (no change in Settings/about),
then when I actually looked in /dev I saw there is no mmcblk0 device, but there is one in /dev/block/

so I dd'ed again zImage with of=/dev/block/mmcblk0 and now odroid does not boot up, the blue led is on for about 1 sec and then goes off completely

can you help? I run odroid from uSD card, I don't have emmc, the ICS android version is from 8 Feb, and my zImage is older (from January)


Sure, I'll check the exactly position today.. I think it either changed or I was wrong about it :(


have you checked the correct position perhaps...? I can't stand waiting to try it out !

and don't worry if you were wrong, you do a great job for this community anyway,
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby waldorf » Sat Mar 16, 2013 5:46 am

hmm, mdrjr can you check and report on the position for the dd command to flash a new kernel on uSD card? this is really important as we cannot move forward with our project...
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Sat Mar 16, 2013 11:28 am

waldorf wrote:hmm, mdrjr can you check and report on the position for the dd command to flash a new kernel on uSD card? this is really important as we cannot move forward with our project...


Everything is for yesterday right?

I've updated the guide with the correct kernel position.. tested here and its all fun :)
mdrjr
Site Admin
 
Posts: 10212
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 waldorf » Sun Mar 17, 2013 6:40 am

mdrjr wrote:
waldorf wrote:hmm, mdrjr can you check and report on the position for the dd command to flash a new kernel on uSD card? this is really important as we cannot move forward with our project...


Everything is for yesterday right?

I've updated the guide with the correct kernel position.. tested here and its all fun :)


ok, thanks for updating the guide!

so I've just tested the new command, but :( unfortunately the board does not boot up, the blue led is constantly on :(

what does it mean when the blue led is solid on ?

can you help? please remember I work with uSD card , and not emmc, thanks :)
waldorf
 
Posts: 6
Joined: Wed Feb 27, 2013 9:20 pm
languages_spoken: english
ODROIDs: U2

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

Unread postby mdrjr » Sun Mar 17, 2013 10:19 am

Tested here and it works perfectly!
Tested with:
Odroid-U2
microSD
OdroidU2_SD_image_08-Feb-2013.img as my test image.
mdrjr
Site Admin
 
Posts: 10212
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 » Fri Mar 22, 2013 12:41 pm

I got pretty far but when I get to the adb remount i cant seem to fix the "error: device not found" error. I copy adb to usr/bin.
I got the SDK,and the adt bundle and nothing.... I'm running Ubuntu.

Good Tutorial btw!!

Also, is the a way to overclock the odroid as well? since we're overclocking mali i was just wondering, I saw the setting for performance didn't have "=y" next to it so, i'm wondering if I set that, is there a place where I can set the speed of the CPU?


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 sert00 » Fri Mar 22, 2013 11:45 pm

good question.i haven't find cpu settings,like instead i can see on cm's kernel sources.i tried adding some lines related to cpu overclock,adding 1.7 to 2 ghz frequencies but no luck in seeing cpu oc then on the board.compile all well,no errors,but gpu oc works,cpu oc not.i think there's something to change in some file .mk on rom?or i miss something?what i add is working in cm..
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 722
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

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

Unread postby mdrjr » Sat Mar 23, 2013 1:14 am

sert00 wrote:good question.i haven't find cpu settings,like instead i can see on cm's kernel sources.i tried adding some lines related to cpu overclock,adding 1.7 to 2 ghz frequencies but no luck in seeing cpu oc then on the board.compile all well,no errors,but gpu oc works,cpu oc not.i think there's something to change in some file .mk on rom?or i miss something?what i add is working in cm..


Gimme a few days and I'll have a patchset to enable that...
mdrjr
Site Admin
 
Posts: 10212
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 » Sat Mar 23, 2013 3:38 am

if i wanna start from scratch, what command do I put into terminal?
i know that some files go to /usr/src/.... anything to start from scratch or just delete forlder un compress and start all over??


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 » Sat Mar 23, 2013 4:11 am

dasaint80 wrote:if i wanna start from scratch, what command do I put into terminal?
i know that some files go to /usr/src/.... anything to start from scratch or just delete forlder un compress and start all over??


steve



Just follow the guide, on Android nothing does to /usr/src.
mdrjr
Site Admin
 
Posts: 10212
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 » Sat Mar 23, 2013 2:13 pm

mdrjr wrote:\
5. Copying modules:
adb remount
for module in `find . -iname *.ko`; do adb push $i /system/lib/modules ; done

6. Copying the kernel:
adb push arch/arm/boot/zImage /system/lib/modules

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


8. Enjoy your new Android kernel ;)



I'm having an issue with these last few steps.

Where should I be doing this? downloads? kernel_4412?
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 » Sat Mar 23, 2013 11:33 pm

yes on kernel_4412
mdrjr
Site Admin
 
Posts: 10212
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 » Sun Mar 24, 2013 12:21 am

When I put adb remonunt I get no device found. But when I have my phone pluged in it detects it.

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 odroid » Sun Mar 24, 2013 1:15 am

dasaint80 wrote:When I put adb remonunt I get no device found. But when I have my phone pluged in it detects it.


You need to configure the adb driver for ODROID.
Do you use Linux in your host PC? or Windows?
User avatar
odroid
Site Admin
 
Posts: 8035
Joined: Fri Feb 22, 2013 11:14 pm
Location: Seoul Korea
languages_spoken: english
ODROIDs: ODROID

Next

Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest