Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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
Old 10-19-2019, 04:58 AM   #32
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
Introductory ARM Assembly if you want to dive.
This is worth its weight in pure gold.
WaseemAlkurdi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with these compilation errors darkbreath Sigil 24 07-22-2016 11:47 AM
How to show kernel boot information instead Amazon boot picture? madtrapper Kindle Developer's Corner 8 01-04-2013 08:51 AM
Can I make a compilation within a compilation? Villordsutch Amazon Kindle 5 01-04-2012 03:10 AM
Opus cannot boot, stuck on boot screen baloma Bookeen 35 11-13-2010 04:20 AM
Compilation of Q&A FGFuzaxx iRex 14 07-17-2006 07:51 AM


All times are GMT -4. The time now is 07:56 PM.


MobileRead.com is a privately owned, operated and funded community.