plug.words 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. global scale sheevaplug & guruplug
  2. marvell 88f6281 (feroceon kirkwood) SoC
  3. arm926ej-s rev 1 [56251311] (armv5tejl) 1.2GHz cpu
  4. l1 I & D VIVT caches 16K each: 4-way, 128 sets, 32-byte lines
  5. l1 D is write-through, l1 I is write-back
  6. unified l2 PIPT cache 256K: 4-way, 2048 sets, 32-byte lines
  7. potentially 512K: 8-way
  8. apparently the mmu walks the page tables in dram and won't look in the
  9. l2 cache. there is no hardware cache coherence, thus the l1 caches
  10. need to be flushed or invalidated when mmu mappings change, but l2
  11. only needs to be flushed or invalidated around dma operations and page
  12. table changes, and only the affected dma buffers and descriptors or
  13. page table entries need to be flushed or invalidated in l2.
  14. we arrange that device registers are uncached.
  15. be aware that cache operations act on cache lines (of CACHELINESZ
  16. bytes) as atomic units, so if you invalidate one word of a cache line,
  17. you invalidate the entire cache line, whether it's been written back
  18. (is clean) or not (is dirty). mixed data structures with parts
  19. maintained by hardware and other parts by software are especially
  20. tricky. we try to pad the initial hardware parts so that the software
  21. parts start in a new cache line.
  22. there are no video controllers so far, so this port is a cpu
  23. kernel only.
  24. 512MB of dram at physical address 0
  25. 512MB of nand flash
  26. 16550 uart for console
  27. see http://www.marvell.com/files/products/embedded_processors/kirkwood/\
  28. FS_88F6180_9x_6281_OpenSource.pdf, stored locally as
  29. /public/doc/marvell/88f61xx.kirkwood.pdf
  30. If you plan to use flash, it would be wise to avoid touching the first
  31. megabyte, which contains u-boot, right up to 0x100000. There's a
  32. linux kernel from there to 0x400000, if you care. You'll also likely
  33. want to use paqfs rather than fossil or kfs for file systems in flash
  34. since there is no wear-levelling.
  35. The code is fairly heavy-handed with the use of barrier instructions
  36. (BARRIERS in assembler, coherence in C), partly in reaction to bad
  37. experience doing Power PC ports, but also just as precautions against
  38. modern processors, which may feel free to execute instructions out of
  39. order or some time later, store to memory out of order or some time
  40. later, otherwise break the model of traditional sequential processors,
  41. or any combination of the above.
  42. this plan 9 port is based on the port of native inferno to the
  43. sheevaplug by Salva Peiró (saoret.one@gmail.com) and Mechiel Lukkien
  44. (mechiel@ueber.net).
  45. ___
  46. # type this once at u-boot, replacing 00504301c49e with your plug's
  47. # mac address; thereafter the plug will pxe boot:
  48. setenv bootdelay 2
  49. setenv bootcmd 'bootp; bootp; tftp 0x1000 /cfg/pxe/00504301c49e; bootp; tftp 0x800000; go 0x800000'
  50. saveenv
  51. # see /cfg/pxe/example-kw
  52. physical mem map
  53. hex addr size what
  54. ----
  55. 0 512MB sdram
  56. 80000000 512MB pcie mem # default
  57. c8010000 2K cesa sram
  58. d0000000 1MB internal regs default address at reset
  59. d8000000 128MB nand flash # actually 512MB addressed through this
  60. e8000000 128MB spi serial flash
  61. f0000000 128MB boot rom # default
  62. f0000000 16MB pcie io # mapped from 0xc0000000 by u-boot
  63. f1000000 1MB internal regs as mapped by u-boot
  64. f1000000 64K dram regs
  65. f1010000 64K uart, flashes, rtc, gpio, etc.
  66. f1030000 64K crypto accelerator (cesa)
  67. f1040000 64K pci-e regs
  68. f1050000 64K usb otg regs (ehci-like)
  69. f1070000 64K gbe regs
  70. f1080000 64K non-ahci sata regs
  71. f1090000 64K sdio regs
  72. f8000000 128MB boot device # default, mapped to 0 by u-boot
  73. f8000000 16MB spi flash # mapped by u-boot
  74. f9000000 8MB nand flash # on sheeva/openrd, mapped by u-boot
  75. fb000000 64KB crypto engine
  76. ff000000 16MB boot rom # u-boot
  77. virtual mem map
  78. hex addr size what
  79. ----
  80. 0 512MB user process address space
  81. 60000000 kzero, mapped to 0
  82. 90000000 256MB pcie mem # mapped by u-boot
  83. c0000000 64KB pcie i/o # mapped by u-boot
  84. ... as per physical map