words 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. beagleboard rev c3:
  2. cortex-a8 cpu: arm v7-a arch. rev 3, 500MHz, dual-issue
  3. OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
  4. OMAP3 Beagle board + LPDDR/NAND
  5. DRAM: 256 MB
  6. NAND: 256 MiB
  7. Board revision C
  8. Serial #784200230000000004013f790401d018
  9. igepv2 board:
  10. cortex-a8 cpu: arm v7-a arch. rev 3, 720MHz, dual-issue
  11. OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz
  12. IGEP v2.x rev. B + LPDDR/ONENAND
  13. DRAM: 512 MB
  14. Muxed OneNAND(DDP) 512MB 1.8V 16-bit (0x58)
  15. OneNAND version = 0x0031
  16. Chip support all block unlock
  17. Chip has 2 plane
  18. Scanning device for bad blocks
  19. Bad eraseblock 3134 at 0x187c0000
  20. Bad eraseblock 3135 at 0x187e0000
  21. OneNAND: 512 MB
  22. omap3530 SoC
  23. CORE_CLK runs at 26MHz
  24. see spruf98d from ti.com (/public/doc/ti/omap35x.ref.spruf98d.pdf)
  25. separate i & d tlbs, each 32 entries
  26. can invalidate i, d or both tlbs by { all, mva, or asid match }
  27. i & d L1 caches, 16K each, 4 ways, 64 sets, 64-byte lines
  28. i is VIPT, d is PIPT
  29. no `test and clean D & U all' operations
  30. no prefetching, no cache maintenance
  31. can invalidate i, d or both cache but not D & U all
  32. can invalidate entire i-cache only
  33. can clean or invalidate by set and way data/unified cache
  34. unified L2 PIPT cache, 256K, 8 ways, 512 sets, 64-byte lines
  35. no hardware cache coherence
  36. l3 interconnect firewalls are all off at boot time, except for a bit of
  37. secure ram
  38. sram at 0x40200000 size 1MB
  39. l4 interconnect firewalls seem to be sane at boot time
  40. ___
  41. The state of the Beagleboard/IGEPv2 (TI OMAP35 SoC, Cortex-A8) port.
  42. Plan 9 runs on the IGEPv2 board.
  43. On the Beagleboard, Plan 9 is not yet usable but it gets as far as
  44. trying to access the USB ethernet (since the Beagleboard has no
  45. built-in ethernet and must use USB ethernet).
  46. IGEP Ethernet
  47. The igep's smsc9221 ethernet consumes a lot of system time. The
  48. design decision to use fifos rather than buffer rings and to not
  49. incorporate dma into the ethernet controller is probably responsible.
  50. With only a single core, running the 9221 consumes a lot of the
  51. available CPU time. It's probably worth trying to use the system dma
  52. controller again.
  53. USB
  54. The ohci and ehci controllers are seen, but no devices yet.
  55. There are four USB errata that need to be looked into for the igepv2
  56. (silicon 3.1) at least. From the omap3530 errata (rev e):
  57. - 3.1.1.130 only one usb dma channel (rx or tx) can be active
  58. at one time: use interrupt mode instead
  59. - 3.1.1.144 otg soft reset doesn't work right
  60. - 3.1.1.183 ohci and ehci controllers cannot work concurrently
  61. - §3.1.3 usb limitations: all ports must be configured to identical speeds
  62. (high vs full/low)
  63. Flash
  64. access to nand flash would be handy for nvram and paqfs or sacfs file
  65. systems.
  66. In the flash, x-loader occupies up to 0x20000, then u-boot from
  67. 0x80000 to 0x1e0000, and there's a linux kernel after that (if you
  68. care). The beagle's flash chip is a micron pop 2Gb nand
  69. mt29f2g16abdhc-et (physical marking jw256), and the igep's is a
  70. samsung onenand.
  71. VFPv3 Floating Point
  72. The Cortex-A8 has VFPv3 floating point, which uses different opcodes
  73. than 5c/5l currently generate. New 5c or 5l is in the works.
  74. Video
  75. The video controller may be documented and source is available for a
  76. Linux driver.
  77. ___
  78. The code is fairly heavy-handed with the use of barrier instructions
  79. (BARRIERS in assembler, coherence in C), partly in reaction to bad
  80. experience doing Power PC ports, but also just as precautions against
  81. modern processors, which may feel free to execute instructions out of
  82. order or some time later, store to memory out of order or some time
  83. later, otherwise break the model of traditional sequential processors,
  84. or any combination of the above.
  85. ___
  86. There are a few rough edges:
  87. - the clock.c scheduling rate (HZ) is quite approximate. The OMAP
  88. timers are complex, but one could eventually do better (or just let
  89. timesync compensate).
  90. - Serial console printing is rudimentary. I tried repeatedly to hook
  91. into devuart, but failed. "g 'CRUDEPRINT|LASTRESORT' ." should find
  92. the workarounds.
  93. - User processes are limited to 512MB (mainly by the IGEPv2 Ethernet
  94. being at 0x2c000000), which isn't a problem since Beagleboards only
  95. have 256MB of dram and IGEPv2s have 512MB.
  96. - might use ucalloc.c to allocate uncached scratch space for generated code
  97. in coproc.c.
  98. - the C implementation of cache primitives failed with mmu off; still true?
  99. - unlock, setup: protect module register target APE (PM_RT) per spruf98c §1.6.7
  100. - setup mpp (multi-purpose pins)?
  101. ___
  102. memory map (mostly from omap35x ref)
  103. hex addr size what
  104. ----
  105. 0 16MB physical address of flash registers, buffers
  106. 20000000 16MB virtual address of flash registers, buffers
  107. 2c000000 ? smc 9221 ethernet
  108. 38000000 16MB 256MB (beagle) or 512MB (igep) nand flash mapped here
  109. 40000000 112K boot rom, top of user space
  110. 40200000 64K sram
  111. 48000000 16MB L4 core
  112. 48002000 8K system control (scm)
  113. 48004000 16K clock manager
  114. 48040000 8K L4-core config
  115. 48050000 4K graphics
  116. 48062000 4K usb tll
  117. 48064000 1K usb uhh_config
  118. 48064400 1K ohci
  119. 48064800 1K ehci
  120. 4806a000 8K 8250 uart0
  121. 4806c000 8K 8250 uart1
  122. 48086000 4K gptimer10
  123. 48088000 4K gptimer11
  124. 4809c000 8K mmc/sd goo
  125. 480ab000 8K hs usb otg
  126. 480ad000 8K mmc/sd goo
  127. 480b4000 8K mmc/sd goo
  128. 480c7000 device intr controller
  129. 48200000 2K intr ctlr (intc)
  130. 48300000 256K L4-wakeup
  131. 48304000 4K gptimer12
  132. 48318000 8K gptimer1
  133. 49000000 1MB L4 peripherals
  134. 49020000 8K 8250 uart2 (with exposed connector for console)
  135. 49032000 4K gptimer2
  136. 49034000 4K gptimer3
  137. 49040000 4K gptimer9
  138. 49050000 8K gpio2
  139. 49058000 8K gpio6
  140. 50000000 64K graphics accelerator
  141. 68000000 1K L3 config (rt)
  142. 68004000 1K L3 hs usb host
  143. 68004400 1K L3 hs usb otg
  144. 68005400 1K L3 graphics
  145. 68006800 1K L4-core config
  146. 68010000 L3 protection mechanism
  147. 6e000000 ? gpmc
  148. 80000000 256MB dram on beagle
  149. 512MB dram on igep
  150. c0000000 1GB kernel virtual space, mapped to 80000000
  151. apparently the vector address (0 or 0xffff0000) is virtual,
  152. so we're expected to map it to ram.