1*4882a593SmuzhiyunIntro 2*4882a593Smuzhiyun===== 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunThe default configuration described below will allow you to start 5*4882a593Smuzhiyunexperimenting with the buildroot environment for the SolidRun Clearfog GT-8K 6*4882a593Smuzhiyunbased on the Marvell Armada 8040 SoC. 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunThis default configuration will bring up the board and allow shell command 9*4882a593Smuzhiyunline access through the serial console. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunHow to build 12*4882a593Smuzhiyun============ 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun $ make solidrun_clearfog_gt_8k_defconfig 15*4882a593Smuzhiyun $ make 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunHow to write the SD card 18*4882a593Smuzhiyun======================== 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunOnce the build process is finished you will have an image file named 21*4882a593Smuzhiyun"sdcard.img" in the output/images/ directory. 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunCopy the bootable "sdcard.img" onto an SD card with "dd": 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun $ sudo dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunHow to boot the board 28*4882a593Smuzhiyun===================== 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunThe Clearfog GT-8K can be setup to load the bootloader from different sources 31*4882a593Smuzhiyunincluding eMMC, SPI flash, and SD-card. 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunTo select boot from SD-card the DIP switches in SW6 (at the bottom of the 34*4882a593Smuzhiyunboard) should be configured as follows: 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun SW6: 11010 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunInsert the micro SDcard in the Cleargfog GT-8K and power it up. 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunSerial console 41*4882a593Smuzhiyun============== 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunThe serial console is accessible at the J27 pins header (TTL UART) with the 44*4882a593Smuzhiyunfollowing pinout (pin #1 is marked with triangle on the PCB): 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun pin #1: Ground 47*4882a593Smuzhiyun pin #2: Armada 8040 Rx 48*4882a593Smuzhiyun pin #3: Armada 8040 Tx 49*4882a593Smuzhiyun 50*4882a593SmuzhiyunEnable the switch (yellow) Ethernet ports 51*4882a593Smuzhiyun========================================= 52*4882a593Smuzhiyun 53*4882a593SmuzhiyunTo enable the Clearfog GT-8K internal switch port make sure to load the 54*4882a593Smuzhiyun'mv88e6xxx' kernel module, and up the switch up-link port (eth2 by default): 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun modprobe mv88e6xxx 57*4882a593Smuzhiyun ifconfig eth2 up 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunThen you can configure each switch port separately. These port are named 60*4882a593Smuzhiyun'lan1' to 'lan4' by default. 'lan1' is closest to the USB port, while 'lan4' 61*4882a593Smuzhiyunis closest to the blue Ethernet port. 62