readme.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Marvell ESPRESSObin
  2. ===================
  3. This default configuration allows you to quickly get up and running with
  4. the Marvell ESPRESSObin board by Globalscale Technologies Inc.
  5. The ESPRESSObin is based on the Marvell Armada 88F3720 SoC, coupled with
  6. a Marvell 88E6341 switch core "Topaz", with three exposed gigabit ports.
  7. _________________________
  8. |# U W L L U #|
  9. |# S A A A S #|
  10. |# B N N N B #|
  11. |# 0 1 #|
  12. |# Mini #|
  13. |# -PCI #|
  14. |# #|
  15. |# 5 #|
  16. |#__V___usb_PWR_SATA__SW_#|
  17. Fig 1: Overview of board
  18. Notice difference in Ethernet port layout compared to the Globalscale
  19. docs. They order the ports; LAN2, LAN1, WAN (left to right in figure
  20. above). For more information, see http://espressobin.net
  21. Building
  22. --------
  23. $ make globalscale_espressobin_defconfig
  24. $ make
  25. This generates the kernel image, the devicetree binary, the rootfs as a
  26. tar.gz, and a filesystem image containing everything.
  27. All build artifacts are located in `output/images/`
  28. Booting
  29. -------
  30. To boot, you need a UART connection, using the on-board micro USB port
  31. set to 115200 8N1.
  32. By default, the ESPRESSObin comes with a pre-flashed U-Boot set up to
  33. load the kernel, device-tree and rootfs from SPI NOR flash. The board
  34. jumpers can be changed to boot from different sources, see the quick
  35. start guide for each board revision for details:
  36. - ftp://downloads.globalscaletechnologies.com/Downloads/Espressobin/ESPRESSObin%20V5/
  37. - ftp://downloads.globalscaletechnologies.com/Downloads/Espressobin/ESPRESSObin%20V7/
  38. Note: the v5, and earlier, cannot boot from sdcard, so you have to set
  39. up the factory U-Boot to boot into Buildroot:
  40. 1. Flash rootfs image to sdcard drive, your `of=` device may differ:
  41. $ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0 bs=1M
  42. $ sync
  43. 2. Boot board from SPI NOR, interrupt boot by pressing any key ...
  44. 3. Check with `printenv` that the default setup is OK, otherwise ensure
  45. the following are set, and define `bootcmd` for automatic boot:
  46. > setenv kernel_addr 0x5000000
  47. > setenv fdt_addr 0x1800000
  48. > setenv fdt_name boot/armada-3720-espressobin.dtb
  49. > setenv console console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000
  50. > setenv bootcmd 'mmc dev 0; ext4load mmc 0:1 $kernel_addr $image_name;ext4load mmc 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/mmcblk0p1 rw rootwait; booti $kernel_addr - $fdt_addr'
  51. 4. Call the boot command, or `reset` the board to start:
  52. > run bootcmd
  53. Networking
  54. ----------
  55. To enable Ethernet networking, load the `mv88e6xxx` kernel module, and
  56. bring up each respective interface needed:
  57. # modprobe mv88e6xxx
  58. # ifconfig wan up
  59. A more advanced scenario is setting up switching between the ports using
  60. the Linux bridge. The kernel switchdev layer, and DSA driver, ensure
  61. switch functions are "offloaded" to the HW switch, i.e., all traffic
  62. between LAN ports never reach the CPU. For this you need the iproute2
  63. suite of tools.