Skip to content

Instantly share code, notes, and snippets.

-
key: 'system'
title: 'System'
url: '/system'
children:
-
key: 'info'
title: 'Information'
url: '/sysconf'
templateUrl: 'views/sysconf.html'
@changtimwu
changtimwu / angular_es6_howto.md
Last active August 29, 2015 14:23
angular es6
  • use a recent version of nodejs ex. v0.12.2
  • install necessary modules
npm install -g npm
npm install -g coffee-script 
npm install -g jade babel jade-babel
npm install -g gulp
npm install -g yo jspm
npm install -g generator-systemjs 
@changtimwu
changtimwu / getsysinfo.go
Created May 29, 2015 08:04
GO get sysinfo
package main
import "fmt"
import "golang.org/x/sys/unix"
func main() {
var si unix.Sysinfo_t
unix.Sysinfo( &si)
fmt.Println("Hello, playground", si)
@changtimwu
changtimwu / arx3303_renew.md
Last active February 27, 2016 07:53
ARX-3303 renew procedure

Board 1.0

from top to bottom

*Serial

  • Debug
  • A
  • B
  • I For digging data, you should try Debug port first.
@changtimwu
changtimwu / update_bootloader.md
Last active August 29, 2015 14:19
how to update uboot in poncat
# show original value
Marvell>>print linux_parts
linux_parts=mtdparts=nand_mtd:0xc0000(uboot)ro,0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)

# set linux_parts to new value
Marvell>>set linux_parts "mtdparts=nand_mtd:0xc0000(uboot),0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)"

# check the new value
Marvell>>print linux_parts
@changtimwu
changtimwu / tcn_ethernet.md
Created April 20, 2015 09:26
Train communication network implemented with ethernet

列車系統常常為了營運彈性進行車廂重組

  • 市區, 交通尖峰時需要較多節車廂, 離峰時需要少節車廂
  • 合併多個短程列車的車廂, 形成一個長途列車

列車重組後, 網路以及相關系統是否能快速組態重設, 是運輸系統營運效率的一部分

多節車廂控制長途跨城市列車與 可以設定為多點目的地

  • 長途列車到達中繼點後, 切分車廂形成多部列車, 外表塗裝改變, 再各自通往不同目地
@changtimwu
changtimwu / suturex1.go
Created April 3, 2015 01:30
suture example
package main
import "fmt"
import "github.com/thejerf/suture"
import "time"
type FIB struct {
last int
current int
chans chan int
@changtimwu
changtimwu / cmnetpowersupply.md
Created March 3, 2015 04:09
the proposal for coolmaster
  • data grabber & server

    • access data through USB HID
    • first time installation wizard
    • continuous data grab & store
    • LAN advertisement
    • sync data with the cloud hub(optional)
  • Clients

    • Desktop, IOS, Android
  • power supply devices LAN discovery
afunc = (arg0, arg1, arg2)->
console.log 'arg0:', arg0
console.log 'arg1:', arg1
console.log 'arg2:', arg2
afunc 1,2,3
afunc 1,
2
3
@changtimwu
changtimwu / dma_init_fail.md
Last active March 1, 2019 23:20
description of the eth1 DMA initialization fail problem
  • code clip of the error message. drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
   /* DMA initialization and SW reset */
    ret = stmmac_init_dma_engine(priv);
    if (ret < 0) {                                                                                  
        pr_err("%s: DMA initialization failed\n", __func__);
        goto open_error;
    }