页次: 1
这个坑踩了两天
来这里回复记录一下:
如果你是F1C100s,这里的地址配置应该是
(0x01c25000) Physical base address of debug UART
(0xf1c25000) Virtual base address of debug UART
如果不输出内核解压的信息,看看这个选项有没有开
[*] Enable decompressor debugging via DEBUG_LL output
如果你的设备不是F1C100s,最好参考手册确定寄存器基地址
F1C100s的UART寄存器与8250是一样的,所以基本都不用改可以直接用,但不排除你的芯片有改动,所以最好一切以手册为准
贴一下我的配置
[ ] Export kernel pagetable layout to userspace via debugfs
[ ] Warn on W+X mappings at boot
Choose kernel unwinder (Frame pointer unwinder) --->
[ ] Verbose user fault messages
[*] Kernel low-level debugging functions (read help!)
Kernel low-level debugging port (Kernel low-level debugging messages via sunXi UART0) --->
[ ] Enable flow control (CTS) for the debug UART
(0x01c25000) Physical base address of debug UART
(0xf1c25000) Virtual base address of debug UART
(2) Register offset shift for the 8250 debug UART
[ ] Use 32-bit accesses for 8250 UART
[ ] 8250 UART is Palmchip BK-310x
[*] Enable decompressor debugging via DEBUG_LL output
[*] Early printk
< > CoreSight Tracing Support ----
我这里安装上面说的把地址配置成了0x01c28000,但是没有成功进系统,卡在了Starting kernel ... 结合汇编排查应该是putc函数尝试向0x01c28000写入数据但是这里并不是UART0的寄存器,导致内部硬件出错程序跑飞了,改成0x01c25000现在正常了.....
页次: 1