On Thu, Apr 07, 2016 at 10:04:42AM +0800, Leo Yan wrote:
Hi Liming,
On Thu, Apr 07, 2016 at 12:45:56AM +0800, Liming Wang wrote:
On Tue, Apr 05, 2016 at 03:33:38PM -0700, Jorge Ramirez-Ortiz wrote:
On 04/05/2016 09:51 AM, Liming Wang wrote:
Hi all,
I'm trying to boot kernel with u-boot on a hikey board(lemaker version). I followed the steps of u-boot/board/hisilicon/hikey/README and everything is OK except the kernel hangs at "Starting kernel ..."
I used the latest Image and hi6220-hikey.dtb from [1]. And boot log is attached. I don't know whether there is anything block the kernel to boot.
Thanks, Liming Wang
https://builds.96boards.org/snapshots/hikey/linaro/debian/latest/
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev
It seems to me that the console might not be properly setup for early printk. could you try one of these two settings please?
Hi,
Thank you for your help, now early printk is OK and kernel prints something:
Starting kernel ...
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.18.0-linaro-hikey (buildslave@x86-64-08) (gcc version 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Thu Feb 25 07:17:29 UTC 2016 [ 0.000000] CPU: AArch64 Processor [410fd033] revision 3 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] Early serial console at I/O port 0x0 (options '') [ 0.000000] bootconsole [uart0] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 128 MiB at 0x0000000036c00000 [ 0.000000] Kernel panic - not syncing: ERROR: Failed to allocate 0x1000 bytes below 0x0. [ 0.000000] [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.0-linaro-hikey #1 [ 0.000000] Call trace: [ 0.000000] [<ffffffc0000886d8>] dump_backtrace+0x0/0x118 [ 0.000000] [<ffffffc000088800>] show_stack+0x10/0x20 [ 0.000000] [<ffffffc000807be4>] dump_stack+0x7c/0xc0 [ 0.000000] [<ffffffc000806378>] panic+0xd0/0x210 [ 0.000000] [<ffffffc000b30fa4>] memblock_alloc_base+0x2c/0x3c [ 0.000000] [<ffffffc000b30fc0>] memblock_alloc+0xc/0x18 [ 0.000000] [<ffffffc000b232b4>] early_alloc.constprop.1+0x14/0x4c [ 0.000000] [<ffffffc000b2349c>] __create_mapping+0x1b0/0x2b8 [ 0.000000] [<ffffffc000b236f0>] paging_init+0xf4/0x1a8 [ 0.000000] [<ffffffc000b2059c>] setup_arch+0x2a0/0x598 [ 0.000000] [<ffffffc000b1d664>] start_kernel+0x98/0x3b4 [ 0.000000] ---[ end Kernel panic - not syncing: ERROR: Failed to allocate 0x1000 bytes below 0x0. [ 0.000000]
It seems that kernel hangs at somewhere. After diggged the kernel, I found below commit triggers the panic:
commit 69005556c01cb7095d213be970010beeb27d1a22 Author: Leo Yan leo.yan@linaro.org Date: Fri Aug 7 11:40:37 2015 +0800
arm64: dts: add Hi6220 mailbox node
Which kernel are you using? You are using mainline kernel or 96boards
git://github.com/96boards/linux.git tag 96boards-hikey-15.05 git://github.com/96boards/linux.git tag 96boards-hikey-15.11
The first one boots OK and the second one failed to boot.
kernel? Could you check if your code base has included below commit ID:
Both kernel don't have the commit ID.
Author: Leo Yan leo.yan@linaro.org Date: Fri Oct 9 07:46:48 2015 +0800
arm64: dts: Reserve memory regions for hi6220
On Hi6220, below memory regions in DDR have specific purpose:
0x05e0,0000 - 0x05ef,ffff: For MCU firmware using at runtime; 0x06df,f000 - 0x06df,ffff: For mailbox message data; 0x0740,f000 - 0x0740,ffff: For MCU firmware's section; 0x3e00,0000 - 0x3fff,ffff: For OP-TEE.
This patch reserves these memory regions in DT.
Signed-off-by: Leo Yan leo.yan@linaro.org
If I revert this commit, the kernel can boot to rootfs. Do you know why this commit can't work for booting kernel from u-boot? ( This kernel can boot from UEFI bootloader)
Another problem is that: after I revert above commit, the kernel boots successfully except multi cpus come online as follows:
[ 0.163734] EFI services will not be available. [ 1.248801] CPU1: failed to come online [ 2.269222] CPU2: failed to come online [ 3.289645] CPU3: failed to come online [ 4.310081] CPU4: failed to come online [ 5.330510] CPU5: failed to come online [ 6.350935] CPU6: failed to come online [ 7.371356] CPU7: failed to come online [ 7.375269] Brought up 1 CPUs [ 7.378265] SMP: Total of 1 processors activated.
I don't know whether this problem is related with above commit.
I don't think it's related with above commit ID. Which ATF/UEFI you are using?
I'm using ATF and u-boot. ATF is from git://github.com/96boards/arm-trusted-firmware.git. u-boot is from mainline u-boot: git://git.denx.de/u-boot.git
BR, Liming Wang
Thanks, Leo Yan
Thanks, Liming Wang
console=ttyAMA0,115200 earlycon=pl011,0xf8015000
or,
console=ttyAMA3,115200 earlycon=pl011,0xf7113000
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev