Skip to content

Instantly share code, notes, and snippets.

chmod a+rw /dev/ttyu1
chmod a+rw /dev/gpioc0
chmod a+rw /tmp
# etherswitchcfg -v
etherswitch0: Marvell 88E6060 MDIO switch driver with 6 ports and 6 VLAN groups
etherswitch0: VLAN capabilities=2<PORT>
etherswitch0: VLAN mode: none
port0:
flags=0<>
media: Ethernet autoselect (none)
status: no carrier
port1:
flags=0<>
.. fis load -d kernel
.. exec
microserver % git merge upstream/master
Removing sys/powerpc/mpc85xx/fsl_sdhc.h
Removing sys/powerpc/mpc85xx/fsl_sdhc.c
Auto-merging sys/dev/sdhci/fsl_sdhci.c
Auto-merging sys/dev/hyperv/netvsc/if_hn.c
Removing sys/dev/hyperv/netvsc/hv_net_vsc.h
Auto-merging sys/dev/hyperv/netvsc/hn_rndis.h
Auto-merging sys/dev/hyperv/netvsc/hn_rndis.c
Auto-merging sys/dev/hyperv/netvsc/hn_nvs.c
Auto-merging sys/dev/fdt/fdt_intr.h
@yamori813
yamori813 / gist:55788fbf2f50ebaa9c1995dd163f2fe9
Created November 19, 2016 08:16
Add Mindspeed Comcerto platform support
[PATCH 1/3] Add Mindspeed Comcerto platform support
stanleymiao at gmail.com stanleymiao at gmail.com
Thu Oct 14 04:38:07 EDT 2010
Previous message: Add Mindspeed Comcerto platform support
Next message: [PATCH 1/3] Add Mindspeed Comcerto platform support
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Stanley.Miao <stanley.miao at windriver.com>
bash-3.2$ ./mspdebug load-bsl
MSPDebug version 0.24 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2016 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
loadbsl: recv_packet: BSL error code: 5 (BSL password error)
loadbsl: rx_password failed
loadbsl: retrying password...
Starting kernel ...
ARM Debug Architecture not supported
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #22 7db3774(zrouter)-dirty: Sun Nov 27 20:55:18 JST 2016
@yamori813
yamori813 / gist:1c06c51507a677cf92b8168b8fa7c8ff
Last active December 6, 2016 23:21
mspdebug on FreeBSD 12-CURRENT. Why error ?
microserver % sudo ./mspdebug ezfet
Password:
MSPDebug version 0.24 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2016 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
Reset communications...
Version: 2.3.0.6, HW: 0x200ff45
@yamori813
yamori813 / spi.rb
Last active December 11, 2016 02:47
# http://dlnware.com/theory/SPI-Transfer-Modes
$sck = 7
$cs = 1
$mosi = 3
$miso = 4
def txbyte(t, ch)
for num in 0..7 do
if (ch & (0x80 >> num)) == 0 then
ADD communications
Each ADB input device on the network may have up to four internal registers, which are referred to as ADB device registers. ADB devices are accessed over the network by reading from or writing to the appropriate ADB device register in that device. The registers of an ADB device may range in size from 2 bytes to 8 bytes.
Although each ADB device contains a microprocessor and can generate device identification and status information, an ADB device cannot initiate a command, nor can it interrupt the processor directly. The ADB transceiver in the computer automatically polls the last device to have sent data (known as the active device) for new data. If the active device has data to send, it shifts it out to the ADB transceiver in the computer, which sends it to the VIA. When the VIA receives ADB data, a bit in the VIA's Interrupt register is set. The ADB Manager can thus determine that the actiye device has sent data. The ADB Manager then passes control to the device driver for the active devi