2008年3月7日 星期五

用AxD debug Linux

只能看Assembly, 不過可以看reg, PCI的IO register,

1. Run AxD directly, load CPU only
2. [Option] -> [Config Target] 選FA5
3. [Option] -> [Config Processor] Clear all Vector catch 與 semihosting
4. 打開Register View, 選 [Current] -> [pc] 設定為0x0 (reboot)
(..............)
5. 在要debug時選 [Execute] -> [Stop]
6. 由於Linux有用MMU,知道virtual address可直接
7. 若是只知道physical address, 要先把MMU關掉才能存取
disable [Register View] -> [CP15] -> [Control] 的m bit (bit 0)
8. 若是要繼續run, 要先打開mmu才能開始run

沒有留言: