Skip to content

Instantly share code, notes, and snippets.

@IS-KH
IS-KH / t.md
Created October 24, 2017 07:43
example.md
  • This requires a C cross-compiler for ARM. In most cases, it's only available in Linux.
  • Follow steps here to install the GO compiler/toolset first.
  • cross compile a GO program mixed with C. specify the CC as the C cross compiler of your target platform
CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc  GOARCH=arm GOARM=7 GOOS=linux go build -o hellowithc hellowithc.go # for Cortex A7/A8/A9
CGO_ENABLED=1 CC=arm-mv5sft-linux-gnueabi-gcc  GOARCH=arm GOARM=5 GOOS=linux go build -o hellowithc hellowithc.go # for Marvell Poncat
#Master
status : init
get config lists
discovery topology
if get complete topology (means a ring and include two masters)
if config is empty
change status to topology_without_config
@IS-KH
IS-KH / vlan.diff
Last active August 29, 2015 14:10
diff --git a/src/vlan.coffee b/src/vlan.coffee
index 4d928f9..37c94e4 100644
--- a/src/vlan.coffee
+++ b/src/vlan.coffee
@@ -535,7 +535,7 @@ class vlan
no : 'portlist'
type : 'string_access,trunk,hybrid'
pvid : 'vlan'
- tags : 'vlan'
+ tags : 'vlanarrayempty'