Advertisement
hak8or

SAM9N12 Almost success!

Feb 24th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. RomBOOT
  2. Start AT91Bootstrap...
  3. Init DDR... Done!
  4. Downloading image...
  5. detected dataflash id = 0x1f 0x25 0x0 0x1 0x0.
  6. Done!
  7. RomBOOT
  8. -I- -- NandFlash SAM-BA applet 2.14 --
  9. -I- -- SAM9N12-EK
  10. -I- INIT command
  11. -I- Checking if NandIsOnficompatible.
  12. -I- Got bad ONFI response. :(
  13. -I- onfi_param_table[0]: 0x30 or 0
  14. -I- onfi_param_table[1]: 0xFF or ▒
  15. -I- onfi_param_table[2]: 0xFF or ▒
  16. -I- onfi_param_table[3]: 0xFF or ▒
  17. -I- Checking if NandIsOnficompatible.
  18. -I- Got bad ONFI response. :(
  19. -I- onfi_param_table[0]: 0x20 or
  20. -I- onfi_param_table[1]: 0x20 or
  21. -I- onfi_param_table[2]: 0x20 or
  22. -I- onfi_param_table[3]: 0x20 or
  23. -I- Device Unknown due to no EBI detect
  24. -I- End of applet (command : 0 --- status : 1)
  25. -I- -- DataFlash AT45 Applet 2.14 --
  26. -I- -- SAM9N12-EK
  27. -I- SPI and at45 drivers initialized
  28. -I- Device Unknown
  29. -I- End of applet (command : 0 --- status : 1)
  30. -I- -- DataFlash AT45 Applet 2.14 --
  31. -I- -- SAM9N12-EK
  32. -I- SPI and at45 drivers initialized
  33. -I- AT45DB081D numPages : 0x1000 bufferAddr : 0x20008384
  34. -I- End of applet (command : 0 --- status : 0)
  35.  
  36.  
  37. ***** A bit later ****
  38. Comment: I can boot the AT91 bootstrap compiled by myself!! :D :D :D
  39. This means my toolchain is setup right and whatnot!
  40. Sadly it seems my u-boot isn't good, so time to fiddle a bit with that too.
  41.  
  42. -I- End of applet (command : 3 --- status : 0)
  43. -I- READ at offset: 0x43080 buffer at : 0x20008384 of: 0x18c0 Bytes
  44. -I- READ return byte read : 0x18c0 Bytes
  45. -I- End of applet (command : 3 --- status : 0)
  46. -I- READ at offset: 0x44940 buffer at : 0x20008384 of: 0x448 Bytes
  47. -I- READ return byte read : 0x448 Bytes
  48. -I- End of applet (command : 3 --- status : 0)
  49. ▒RomBOOT
  50.  
  51.  
  52. AT91Bootstrap 3.7.1-00054-gef803bb (Tue Feb 24 22:17:05 PST 2015)
  53.  
  54. SF: Got Manufacturer and Device ID:0x1f 0x25 0x0 0x1 0x0
  55. SF: Copy 0x80000 bytes from 0x8400 to 0x26f00000
  56. SF: Done to load image
  57.  
  58.  
  59. AT91Bootstrap 3.7.1-00054-gef803bb (Tue Feb 24 22:17:05 PST 2015)
  60.  
  61. SF: Got Manufacturer and Device ID:0x1f 0x25 0x0 0x1 0x0
  62. SF: Copy 0x80000 bytes from 0x8400 to 0x26f00000
  63. SF: Done to load image
  64.  
  65. **** And even later, checking if u-boot is loading correctly from dataflash ****
  66. ==============================
  67. Using Dataflash!
  68. ba_offset = 0xb ...
  69. AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Wed Feb 25 12:32:18 PST 2015)
  70. Edited by hak8or!
  71. Yey custom code execution and toolchain verification! :D
  72. ======--======--======--======
  73. SF: Got Manufacturer and Device ID:0x1f 0x25 0x0 0x1 0x0
  74. SF: Copy 0x80000 bytes from 0x8400 to 0x22000000
  75. SF: Done to load image
  76. Contents at 0x22000000 : 0xffffffff
  77. 0xffffffff
  78. 0xffffffff
  79. Jumping to 0x22000000 ...
  80.  
  81. **** later some more, adding better tests ****
  82.  
  83.  
  84. ==============================
  85. Using Dataflash!
  86. ba_offset = 0xb ...
  87. AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Wed Feb 25 15:08:45 PST 2015)
  88. Edited by hak8or!
  89. Yey custom code execution and toolchain verification! :D
  90. ======--======--======--======
  91. Doing a quick memory test (SAM-BA says all is ok but just incase) ...
  92. Contents at 0x22000000 : 0xeb00abc8
  93. Contents at 0x22000004 : 0xe3a01000
  94. Contents at 0x22000008 : 0xe3a02010
  95. Contents at 0x23fffff8 : 0x1234567
  96. Contents at 0x23fffffc : 0x1234567
  97. Writing 0xF0F0F0FA, 0xB1B2B3B4, and 0xB1B2B3B4 to JUMP_ADDR.
  98. Writing 0x01234567 to last two words in DRAM..
  99. Contents at 0x22000000 : 0xf0f0f0fa
  100. Contents at 0x22000004 : 0xb1b2b3b4
  101. Contents at 0x22000008 : 0xb1b2b3b4
  102. Contents at 0x23fffff8 : 0x1234567
  103. Contents at 0x23fffffc : 0x1234567
  104. --- MEMORY TEST SUCCEDED! :D
  105. ---^^^^^^--- done with mem test
  106. SF: Got Manufacturer and Device ID:0x1f 0x25 0x0 0x1 0x0
  107. SF: Copy 0x80000 bytes from 0x8400 to 0x22000000
  108. SF: Done to load image
  109. Contents at 0x22000000 : 0xeb00abc8
  110. Contents at 0x22000004 : 0xe3a01000
  111. Contents at 0x22000008 : 0xe3a02010
  112. Contents at 0x23fffff8 : 0x1234567
  113. Contents at 0x23fffffc : 0x1234567
  114. Jumping to JUMP_ADDR (0x22000000) ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement