gdbinit 449 B

12345678910111213141516171819202122232425
  1. tar jtag jtag://127.0.0.1:1025
  2. reset
  3. # setup CCR (Cache Config Reg)
  4. # 0-1:MP,2:IE,3:DE,4:WB,5:RS,6:Z,7:BE
  5. set $cr18 = 0x7d
  6. # vendor custom setup, double cache line & preload
  7. set $cr30 = 0xc
  8. # pin mux for serial8250
  9. set *(unsigned int *) 0xa030a14c |= (1 << 22) | (1 << 23)
  10. # pass devicetree blob
  11. # r2 is magic
  12. # r3 is address
  13. set $r2 = 0x20150401
  14. set $r3 = 0x92000000
  15. restore gx6605s.dtb binary 0x92000000
  16. # flush cache
  17. set $cr17 = 0x33
  18. load