Skip to content

Instantly share code, notes, and snippets.

View brchiu's full-sized avatar

Bi-Ruei, Chiu brchiu

  • Taipei, Taiwan, Republic of China
View GitHub Profile
@brchiu
brchiu / gist:ad28dea3283f3e7d39031006a7256aae
Created September 27, 2019 08:19
[devel-server] netopeer2-server print "nc_ps_poll: failed to wait for a pollsession condition"
root@xilinx-zcu111-2019_1:~# netopeer2-server -d -v 4
[INF]: LY: Plugin "/usr/lib/libyang/extensions/metadata.so" successfully loaded.
[INF]: LY: Plugin "/usr/lib/libyang/extensions/yangdata.so" successfully loaded.
[INF]: LY: Plugin "/usr/lib/libyang/extensions/nacm.so" successfully loaded.
[INF]: LY: Plugin "/usr/lib/libyang/user_types/user_yang_types.so" successfully loaded.
[INF]: LY: Plugin "/usr/lib/libyang/user_types/user_inet_types.so" successfully loaded.
[INF]: LY: Reading module "ietf-yang-metadata".
[INF]: LY: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented.
[INF]: LY: Reading module "yang".
[INF]: LY: Resolving "yang" unresolved schema nodes and their constraints...
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/errno.h>
#include <string.h>
#include <arpa/inet.h>
#define SERV_PORT 5134
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <string.h>
elf2hex --input=xxx.elf --base=0x00020000 --end=0x00040000 --output=xxx.hex --width=32 --no-zero-fill
@brchiu
brchiu / gist:db0031018e34241695dbce09cc04c614
Created April 26, 2017 02:55
Edit /etc/udev/rules.d/51-usbblaster.rules for Altera Jtag on Ubuntu
# USB-Blaster
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666"
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6002", MODE="0666"
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6003", MODE="0666"
# USB-Blaster II
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6010", MODE="0666"
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6810", MODE="0666"