View Single Post
Old 10-19-2019, 04:55 AM   #31
WaseemAlkurdi
Zealot
WaseemAlkurdi began at the beginning.
 
Posts: 147
Karma: 20
Join Date: Jul 2019
Device: Kindle Touch (K5) Wi-Fi x 2, Kindle (7th Gen, KT2), Paperwhite 3rd Gen
Quote:
Originally Posted by smindux View Post
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.
WaseemAlkurdi is offline   Reply With Quote