Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
Hi Sandy, I'm pleased to learn that it does fix for you. On 2016年07月26日 21:16, Sandy Patterson wrote: Hi Ziyuan, good work! This does in fact fix it for me. I followed through your notes. What is isr() supposed to do? it looks like it just tells the compiler that the memory cache has been i

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Sandy Patterson
Hi Ziyuan, good work! This does in fact fix it for me. I followed through your notes. What is isr() supposed to do? it looks like it just tells the compiler that the memory cache has been invalidated. But in the TRM it says we need to actually do an ISB. Would fixing the dcache flush so it does

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
+ Simon and heiko On 2016年07月26日 14:30, Ziyuan Xu wrote: Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
+Simon and heiko On 2016年07月26日 14:30, Ziyuan Xu wrote: Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch/

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch/arm/cpu/armv7/cpu.c @@ -43,6 +43,7 @@ int cleanup_before_l

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Sandy Patterson
Ah, thanks. Your debugging looks the same as what I've seen from printf debugging. I'll try to verify though. On Mon, Jul 25, 2016 at 10:58 AM, Ziyuan Xu wrote: > hi Stany, > > The difference is that you print out assertion log. > > Reset not supported on this platform > ### ERROR ### Please RES

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
hi Stany, The difference is that you print out assertion log. Reset not supported on this platform ### ERROR ### Please RESET the board ### You can add show_boot_progress() function in your bsp file to find out something. #define CONFIG_SHOW_BOOT_PROGRESS void show_boot_progress(int progress)

[U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
Hi All, I'm sorry to tell you that I failed to boot linux kernel with the mainline u-boot on rk3288 board(both evb-rk3288 & fennec-rk3288). It was stuck in cleanup_before_linux() before jumping to linux, and the boot_stage_flag is BOOTSTAGE_ID_BOOTM_HANDOFF. ## Current stack ends at 0x7df638