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