README.rst 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .. SPDX-License-Identifier: GPL-2.0
  2. LS1021A-TSN Board Overview
  3. ==========================
  4. - 1GB DDR3 at 800 MHz
  5. - Spansion/Cypress 64 MB (Rev. A) / 32 MB (Rev. B and C) QSPI NOR flash
  6. - Ethernet
  7. - 2 SGMII 10/100/1G Ethernet ports (Atheros AR8031)
  8. - One SJA1105T switch with 4 Ethernet ports (Broadcom BCM5464R)
  9. - One internal RGMII port connected to the switch
  10. - SDHC
  11. - microSDHC/SDXC connector
  12. - Other I/O
  13. - One Serial port
  14. - Arduino and expansion headers
  15. - mPCIE slot
  16. - SATA port
  17. - USB3.0 port
  18. LS1021A Memory map
  19. ==================
  20. The addresses in brackets are physical addresses.
  21. ============== ============== ============================== =======
  22. Start Address End Address Description Size
  23. ============== ============== ============================== =======
  24. 0x00_0000_0000 0x00_000F_FFFF Secure Boot ROM 1MB
  25. 0x00_0100_0000 0x00_0FFF_FFFF CCSRBAR 240MB
  26. 0x00_1000_0000 0x00_1000_FFFF OCRAM0 64KB
  27. 0x00_1001_0000 0x00_1001_FFFF OCRAM1 64KB
  28. 0x00_2000_0000 0x00_20FF_FFFF DCSR 16MB
  29. 0x00_4000_0000 0x00_5FFF_FFFF QSPI 512MB
  30. 0x00_6000_0000 0x00_67FF_FFFF IFC - NOR Flash 128MB
  31. 0x00_8000_0000 0x00_FFFF_FFFF DRAM1 2GB
  32. ============== ============== ============================== =======
  33. Compiling and flashing
  34. ======================
  35. The LS1021A-TSN board comes along with a microSD card with OpenIL U-Boot that
  36. can be used to update its internal QSPI flash (which is empty out of the
  37. factory).
  38. To compile and flash an SD card image::
  39. make ls1021atsn_sdcard_defconfig && make -j 8 && sudo cp u-boot-with-spl-pbl.bin /srv/tftpboot/
  40. => tftp 0x82000000 u-boot-with-spl-pbl.bin && mmc rescan && mmc erase 8 0x1100 && mmc write 0x82000000 8 0x1100
  41. For the QSPI flash, first obtain the Reset Configuration Word binary for
  42. bootimg from the QSPI flash from the rcw project
  43. (https://source.codeaurora.org/external/qoriq/qoriq-components/rcw)::
  44. make -j 8 && sudo cp ls1021atsn/SSR_PNS_30/rcw_1200_qspiboot.bin.swapped /srv/tftpboot/
  45. The above RCW binary takes care of swapping the QSPI AMBA memory, so that the
  46. U-Boot binary does not need to be swapped when flashing it.
  47. To compile and flash a U-Boot image for QSPI::
  48. make ls1021atsn_qspi_defconfig && make -j 8 && sudo cp u-boot.bin /srv/tftpboot/
  49. Then optionally create a custom uboot-env.txt file (although the default
  50. environment already supports distro boot) and convert it to binary format::
  51. mkenvimage -s 2M -o /srv/tftpboot/uboot-env.bin uboot-env.txt
  52. To program the QSPI flash with the images::
  53. => tftp 0x82000000 rcw_1200_qspiboot.bin.swapped && sf probe && sf erase 0x0 +${filesize} && sf write 0x82000000 0x0 ${filesize}
  54. => tftp 0x82000000 u-boot.bin && sf probe && sf erase 0x100000 +${filesize} && sf write 0x82000000 0x100000 ${filesize}
  55. => tftp 0x82000000 uboot-env.bin && sf probe && sf erase 0x400000 +${filesize} && sf write 0x82000000 0x400000 ${filesize}
  56. The boards contain an AT24 I2C EEPROM that is supposed to hold the MAC
  57. addresses of the Ethernet interfaces, however the EEPROM comes blank out of
  58. the factory, and the MAC addresses are printed on a label on the bottom of
  59. the boards.
  60. To write the MAC addresses to the EEPROM, the following needs to be done once::
  61. => mac id
  62. => mac 0 00:1F:7B:xx:xx:xx
  63. => mac 1 00:1F:7B:xx:xx:xx
  64. => mac 2 00:1F:7B:xx:xx:xx
  65. => mac save
  66. The switch ports do not have their own MAC address - they inherit it from the
  67. master enet2 port.
  68. Known issues and limitations
  69. ============================
  70. - The 4 SJA1105 switch ports are not functional in U-Boot for now.
  71. - Since the IFC pins are multiplexed with QSPI on LS1021A, currently there is
  72. no way to talk to the CPLD for e.g. running the "qixis_reset" command, or
  73. turning the fan on, etc.