Quote:
Originally Posted by smindux
Quite. He explains enabling debugging for QEMU and it is giving me some output ... not very helpful though.
CFLAGS is for enabling u-boot debugging and LOGLEVEL=8 should be quite verbose as per documentation.
Maybe trying this setup for i386 just for verification is sound idea, but this is an exercise for another day.
|
Attempting to debug the kernel panic (using
gdb and
addr2line) results in:
Code:
$ arm-linux-gnueabi-addr2line -f -e /path/to/vmlinux 800233bc
clk_pllv3_generic_recalc_rate
/path/to/kernel/arch/arm/mach-imx/clk-pllv3.c:370
This is the function involved:
Code:
357 static unsigned long clk_pllv3_generic_recalc_rate(struct clk_hw *hw,
358 unsigned long parent_rate)
359 {
360 struct clk_pllv3 *pll = to_clk_pllv3(hw);
361 u32 div = (readl_relaxed(pll->base) >> pll->div_shift) & pll->div_mask;
362 u32 mfn = readl_relaxed(pll->base + pll->num_offset);
363 u32 mfd = readl_relaxed(pll->base + pll->denom_offset);
364 u64 temp64 = (u64)parent_rate;
365
366 temp64 *= mfn;
367 do_div(temp64, mfd);
368
369 return (parent_rate * ((div == 1) ? 22 : 20)) + (u32)temp64;
370 }
If you have time, attach
gdb and see what you can achieve on your end.