Skip to content

Instantly share code, notes, and snippets.

View sergev's full-sized avatar

Serge Vakulenko sergev

View GitHub Profile
@sergev
sergev / adma-bug-pic32mz-dar.log
Last active October 26, 2019 18:58
ADMA error when booting latest Linux kernel on pic32mz-da starter kit, with DAR169 chip
dask # boot
1733830 bytes read in 252 ms (6.6 MiB/s)
7343 bytes read in 8 ms (895.5 KiB/s)
## Booting kernel from Legacy Image at 88500000 ...
Image Name:
Created: 2019-10-25 0:59:01 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1733766 Bytes = 1.7 MiB
Load Address: 88000000
Entry Point: 88000400
@sergev
sergev / lsusb-p1.txt
Created August 7, 2019 05:27
lsusb: Ubuntu 19.04 on Lenovo Thinkpad P1
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
@sergev
sergev / lshw-p1.txt
Created August 7, 2019 05:24
lshw: Ubuntu 19.04 on Lenovo Thinkpad P1
bumba
description: Notebook
product: 20MDS00U00 (LENOVO_MT_20MD_BU_Think_FM_ThinkPad P1)
vendor: LENOVO
version: ThinkPad P1
serial: R90VFBXE
width: 64 bits
capabilities: smbios-3.1 dmi-3.1 smp vsyscall32
configuration: administrator_password=disabled chassis=notebook family=ThinkPad P1 power-on_password=disabled sku=LENOVO_MT_20MD_BU_Think_FM_ThinkPad P1 uuid=4CFBB50B-CF2D-B211-A85C-8B31683FECCC
*-core
@sergev
sergev / lspci-p1.txt
Created August 7, 2019 05:12
lspci: Ubuntu 19.04 on Lenovo Thinkpad P1
00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec4] (rev 07)
Subsystem: Lenovo 8th Gen Core Processor Host Bridge/DRAM Registers [17aa:2267]
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>
Kernel driver in use: skl_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 121
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00003000-00003fff
@sergev
sergev / dmesg-p1.txt
Last active August 7, 2019 05:02
dmesg: Ubuntu 19.04 on Lenovo Thinkpad P1
Linux version 5.0.0-23-generic (buildd@lcy01-amd64-017) (gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)) #24-Ubuntu SMP Mon Jul 29 15:36:44 UTC 2019 (Ubuntu 5.0.0-23.24-generic 5.0.15)
Command line: BOOT_IMAGE=/boot/vmlinuz-5.0.0-23-generic root=UUID=d44372e8-3b04-4a5a-b098-4f333d7a9273 ro quiet splash vt.handoff=1
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Hygon HygonGenuine
Centaur CentaurHauls
x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@sergev
sergev / resnet50.yaml
Created July 24, 2019 03:06
ResNet-50 Keras model converted to Yaml format
backend: tensorflow
class_name: Model
config:
input_layers:
- - input_1
- 0
- 0
layers:
- class_name: InputLayer
config:
@sergev
sergev / resnet50.txt
Created July 24, 2019 03:02
Structure of ResNet-50 Keras model
Model: "resnet50"
__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
==================================================================================================
input_1 (InputLayer) [(None, 224, 224, 3) 0
__________________________________________________________________________________________________
conv1_pad (ZeroPadding2D) (None, 230, 230, 3) 0 input_1[0][0]
__________________________________________________________________________________________________
conv1 (Conv2D) (None, 112, 112, 64) 9472 conv1_pad[0][0]
__________________________________________________________________________________________________
@sergev
sergev / run.c
Created July 3, 2019 23:30
Compare libyaml and libyaml-cpp parsers for speed
//
// Compare libyaml and libyaml-cpp parsers for speed.
//
// Compile with:
// g++ -O run.cpp -lyaml-cpp -lyaml -o run
//
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <stdint.h>
Limit: 2000
Load 171 words from swled.oct
(0) *** Reset
(1) *** Clear reset
(2) K[0] = 00000
(2) C = 00000
(2) R = 1xx (k,undef)
(2) GIE = 0
(3) A = 0000 0000 0000 0000
(4) R = 100 (k,undef)
Limit: 2000
Load 160 words from swled.oct
(0) *** Reset
(1) *** Clear reset
(2) K[0] = 00000
(2) C = 00000
(2) R = 1xx (k,undef)
(2) GIE = 0
(3) A = 0000 0000 0000 0000
(4) R = 100 (k,undef)