Debug Linux kernel pre-decompression stage

夙愿已清 提交于 2019-12-03 09:04:22

There are assembler macros that print out stuff when compiling with low level debug. You have to make sure the macros are appropriate for your board.

linux-latest/arch/arm$ find . -name debug-macro.S | wc
 56      56    2306

Find the file for your board and ensure the correct serial port registers are hit. You can instrument the code with out using JTAG. These macros are used in the decompress code. Of course configure with *CONFIG_DEBUG_LL*.

Most likely the ATAGs are not correct or one of the other requirements. Checkout Documentation/arm/Booting to make sure you have registers set properly. Note there is a new requirement with recent kernels to send a dt list.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!