Documentation ¶
Index ¶
- Constants
- Variables
- func DoI2cRpc() error
- func GetEnv(q bool) (env []string, bootargs int, err error)
- func GetPer(q bool) (b []byte, err error)
- func PutEnv(e []string, q bool) (err error)
- func PutPer(b []byte, q bool) (err error)
- func ReadBlk(blknam string, q bool) (b []byte, err error)
- func UpdateEnv(q bool) (err error)
- func WriteBlk(blknam string, b []byte, q bool) (err error)
- type Command
- type EraseInfo
- type FlashFmt
- type I
- type I2cReq
- type MTDinfo
- type R
Constants ¶
View Source
const ( MEMGETINFO = 0x80204d01 //from linux: mtd-abi.h MEMERASE = 0x40084d02 MEMLOCK = 0x40084d05 MEMUNLOCK = 0x40084d06 MEMERASE64 = 0x40104d14 MTDdevice = "/dev/mtd0" VERSION_OFFSET = 0x000 VERSION_LEN = 0x008 VERSION_DEV = 0x003 JSON_OFFSET = 0x100 ENVSIZE = 8192 ENVCRC = 4 )
View Source
const MAXOPS = 30
View Source
const (
Machine = "platina-mk1-bmc"
)
Variables ¶
View Source
var Qfmt = map[string]FlashFmt{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.