[SOLVED] Update Kernel on Android XU3. BLOCKED!

Moderators: meveric, mdrjr, odroid

[SOLVED] Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Fri Jul 10, 2015 12:29 am

Hi all.

I'm new on this development board and I'm working on Android and SDcard as storage.

I have a big issue that is blocking for me and I spend a lot of time to solve this problem with no result.

I compiled from scratch a new kernel with no problem and, following the guide in the forum with seek to 1263, I updated zImage and modules.

With serial port I see that Board is stopped to 'Starting kernel' message. No other changes! (no boot, not partition, no...)

I accept every type of hint to solve! :-( please please....

Thanks, flashman
Last edited by flashman on Mon Jul 13, 2015 5:23 pm, edited 1 time in total.
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby tobetter » Fri Jul 10, 2015 12:44 am

flashman wrote:Hi all.

I'm new on this development board and I'm working on Android and SDcard as storage.

I have a big issue that is blocking for me and I spend a lot of time to solve this problem with no result.

I compiled from scratch a new kernel with no problem and, following the guide in the forum with seek to 1263, I updated zImage and modules.

With serial port I see that Board is stopped to 'Starting kernel' message. No other changes! (no boot, not partition, no...)

I accept every type of hint to solve! :-( please please....

Thanks, flashman

It would be better to have full log what you have from power cycle. And have you updated .dtb as well?
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Fri Jul 10, 2015 4:00 pm

No. I don't update dtb. DTB is not generated during my kernel compilation.

Is present some way to configure during make process? I don't know.

I attach my log as soon as possible.

Thanks.
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby tobetter » Fri Jul 10, 2015 4:09 pm

flashman wrote:No. I don't update dtb. DTB is not generated during my kernel compilation.

Is present some way to configure during make process? I don't know.

I attach my log as soon as possible.

Thanks.

I think this is problem why your XU3 is blocked. exynos5422-odroidxu3.dtb have to copied and paired with your kernel build, it will be created with just make command by default. Check the file at arch/arm/boot/dts/exynos5422-odroidxu3.dtb.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Fri Jul 10, 2015 4:46 pm

I checked and dtb is not generated by default. This is the problem. I'm using odroidxu3_defconfig as suggested.

I generate also dtb doing :
Code: Select all
make odroidxu3_defconfig && make dtbs
make
make module


I copy modules:
Code: Select all
for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done

and kernel:
Code: Select all
adb shell
cd /system/lib/modules
busybox dd conv=notrunc seek=1263 bs=512 if=zImage of=/dev/block/mmcblk0
sync


What about dtb. Now I have zImage.dtb. How push it inside my sdcard?

Thanks for your help.
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Fri Jul 10, 2015 5:36 pm

I have a lot of points to clarify! :-(

As described inhttp://odroid.com/dokuwiki/doku.php?id=en:xu3_building_android

I flashed by fastboot the file zImage-dtb. That's all. There is no additional step to do.

I have exynos5422-odroidxu3.dtb file as you indicated.

Can you clarify the steps to install a working kernel? I have all files.

modules
zImage
zImage-dtb
and :
exynos5422-odroidxu3.dtb

There are some redundant info about installation on android? Please help!
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby tobetter » Fri Jul 10, 2015 7:29 pm

flashman wrote:I have a lot of points to clarify! :-(

As described inhttp://odroid.com/dokuwiki/doku.php?id=en:xu3_building_android

I flashed by fastboot the file zImage-dtb. That's all. There is no additional step to do.

I have exynos5422-odroidxu3.dtb file as you indicated.

Can you clarify the steps to install a working kernel? I have all files.

modules
zImage
zImage-dtb
and :
exynos5422-odroidxu3.dtb

There are some redundant info about installation on android? Please help!

zImage-dtb itself already have exynos5422-odroidxu3.dtb, since no need to download it. Doesn't your boot boot up? Do you have captured log on uart port?
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Fri Jul 10, 2015 8:15 pm

Finally I did it with this steps:

1.compile kernel,modules,dtb
2. copy modules: for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done
3. copy zImage: busybox dd conv=notrunc seek=1263 bs=512 if=zImage of=/dev/block/mmcblk0
4. copy zImage-dtb : fastboot flash kernel zImage-dtb

Is it correct? or some points are unecessary?

Following my Log at boot. I see that there are some errors that i don't understand:

Code: Select all
U-Boot 2012.07 (Jul 21 2014 - 12:04:06) for Exynos5422

CPU: Exynos5422 Rev0.1 [Samsung SOC on SMP Platform Base on ARM CortexA7]
APLL = 800MHz, KPLL = 800MHz
MPLL = 532MHz, BPLL = 825MHz

Board: HardKernel ODROID
DRAM:  2 GiB
WARNING: Caches not enabled

TrustZone Enabled BSP
BL1 version: �/��
VDD_KFC: 0x44
LDO19: 0xf2

Checking Boot Mode ... SDMMC
MMC:   S5P_MSHC2: 0, S5P_MSHC0: 1
MMC Device 0: 14.9 GiB
MMC Device 1: [ERROR] response error : 00000006 cmd 8
[ERROR] response error : 00000006 cmd 55
[ERROR] response error : 00000006 cmd 2
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press 'Enter' or 'Space' to stop autoboot:  0
there are pending interrupts 0x00000001
reading boot.ini

** Unable to read "boot.ini" from mmc 0:1 **
>>> Load Boot Script from mmc 0:1 <<<
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
>>> Load Boot Script from mmc 0:2 <<<

** Unable to use mmc 0:2 for fatload **
>>> Run Default Bootcmd <<<
reading kernel..device 0 Start 1263, Count 16384
MMC read: dev # 0, block # 1263, count 16384 ... 16384 blocks read: OK
completed
reading RFS..device 0 Start 17647, Count 2048
MMC read: dev # 0, block # 17647, count 2048 ... 2048 blocks read: OK
completed

Starting kernel ...

[    0.000000] [c0] Booting Linux on physical CPU 0x100
[    0.000000] [c0] Initializing cgroup subsys cpu
[    0.000000] [c0] Initializing cgroup subsys cpuacct
[    0.000000] [c0] Linux version 3.10.9-ge9b0135 (sateam@caronte) (gcc version
4.6.x-google 20120106 (prerelease) (GCC) ) #2 SMP PREEMPT Fri Jul 10 10:04:28 CE
ST 2015
[    0.000000] [c0] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c53
87d
[    0.000000] [c0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instr
uction cache
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby tobetter » Sat Jul 11, 2015 12:48 am

flashman wrote:Finally I did it with this steps:

1.compile kernel,modules,dtb
2. copy modules: for module in `find . -iname *.ko`; do adb push $module /system/lib/modules ; done
3. copy zImage: busybox dd conv=notrunc seek=1263 bs=512 if=zImage of=/dev/block/mmcblk0
4. copy zImage-dtb : fastboot flash kernel zImage-dtb

Is it correct? or some points are unecessary?

Following my Log at boot. I see that there are some errors that i don't understand:

Code: Select all
U-Boot 2012.07 (Jul 21 2014 - 12:04:06) for Exynos5422

CPU: Exynos5422 Rev0.1 [Samsung SOC on SMP Platform Base on ARM CortexA7]
APLL = 800MHz, KPLL = 800MHz
MPLL = 532MHz, BPLL = 825MHz

Board: HardKernel ODROID
DRAM:  2 GiB
WARNING: Caches not enabled

TrustZone Enabled BSP
BL1 version: �/��
VDD_KFC: 0x44
LDO19: 0xf2

Checking Boot Mode ... SDMMC
MMC:   S5P_MSHC2: 0, S5P_MSHC0: 1
MMC Device 0: 14.9 GiB
MMC Device 1: [ERROR] response error : 00000006 cmd 8
[ERROR] response error : 00000006 cmd 55
[ERROR] response error : 00000006 cmd 2
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press 'Enter' or 'Space' to stop autoboot:  0
there are pending interrupts 0x00000001
reading boot.ini

** Unable to read "boot.ini" from mmc 0:1 **
>>> Load Boot Script from mmc 0:1 <<<
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
>>> Load Boot Script from mmc 0:2 <<<

** Unable to use mmc 0:2 for fatload **
>>> Run Default Bootcmd <<<
reading kernel..device 0 Start 1263, Count 16384
MMC read: dev # 0, block # 1263, count 16384 ... 16384 blocks read: OK
completed
reading RFS..device 0 Start 17647, Count 2048
MMC read: dev # 0, block # 17647, count 2048 ... 2048 blocks read: OK
completed

Starting kernel ...

[    0.000000] [c0] Booting Linux on physical CPU 0x100
[    0.000000] [c0] Initializing cgroup subsys cpu
[    0.000000] [c0] Initializing cgroup subsys cpuacct
[    0.000000] [c0] Linux version 3.10.9-ge9b0135 (sateam@caronte) (gcc version
4.6.x-google 20120106 (prerelease) (GCC) ) #2 SMP PREEMPT Fri Jul 10 10:04:28 CE
ST 2015
[    0.000000] [c0] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c53
87d
[    0.000000] [c0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instr
uction cache

I think step 3 is not required, and what's the error are you meaning on your log?
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Mon Jul 13, 2015 4:32 pm

Yes! You are right. Step 3 is not necessary. Practically zImage-dtb has the same info and I can flash zImage-dtb with dd, as 3, or 4 with fastboot.

About errors in my log, I'm referring to :

Code: Select all
Unable to read "boot.ini" from mmc 0:1 **
>>> Load Boot Script from mmc 0:1 <<<
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
>>> Load Boot Script from mmc 0:2 <<<

** Unable to use mmc 0:2 for fatload **
>>> Run Default Bootcmd <<<


What about those messages? I don't understand.
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby tobetter » Mon Jul 13, 2015 4:42 pm

flashman wrote:Yes! You are right. Step 3 is not necessary. Practically zImage-dtb has the same info and I can flash zImage-dtb with dd, as 3, or 4 with fastboot.

About errors in my log, I'm referring to :

Code: Select all
Unable to read "boot.ini" from mmc 0:1 **
>>> Load Boot Script from mmc 0:1 <<<
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
>>> Load Boot Script from mmc 0:2 <<<

** Unable to use mmc 0:2 for fatload **
>>> Run Default Bootcmd <<<


What about those messages? I don't understand.

This means simple boot loader can not find boot.ini or boot.scr. But since Android does not use such file, if your ODROID can boot up properly you can ignore it.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Update Kernel on Android XU3. BLOCKED!

Unread postby flashman » Mon Jul 13, 2015 5:22 pm

Perfect! Thank you very much for your support.

I'll update post with SOLVED word :-)

Thank you again.
flashman
 
Posts: 23
Joined: Fri Jul 10, 2015 12:10 am
languages_spoken: english
ODROIDs: XU3


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest