Skip to content

Instantly share code, notes, and snippets.

@patocarr
patocarr / fedora31-5.5.6-dmesg.txt
Created March 15, 2020 04:51
Fedora 30, 31, 32 boot logs and AMDGPU/DRM driver
Fedora 31 booting with last Fedora 30 kernel. Fedora 30 with same kernel didn't have acceleration.
AMD GTX 5500 XT Graphics card loads fine, acceleration enabled, using amdgpu driver.
Linux version 5.5.6-100.fc30.x86_64 (mockbuild@bkernel04.phx2.fedoraproject.org) (gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC)) #1 SMP Mon Feb 24 23:06:08 UTC 2020
Command line: BOOT_IMAGE=(hd5,gpt2)/vmlinuz-5.5.6-100.fc30.x86_64 root=UUID=9361e6c3-623e-42ff-8cd2-41be5b02d8c9 ro resume=UUID=b601758a-19c6-4dc7-ac67-ead9cacc7921 rhgb quiet
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'
@patocarr
patocarr / pynq-z1-2nd-try.log
Last active November 2, 2019 03:23
Pynq build for Pynq-Z1
This file has been truncated, but you can view the full file.
Compiled with:
$ make BOARDS=Pynq-Z1 PREBUILT=/home/<user>/Downloads/bionic.arm.2.5.img |& tee pynq-z1.log
-------------------------------------------------------------------------------------------
/opt/qemu/bin/qemu-arm-static -version | fgrep 4.0.0
qemu-arm version 4.0.0
vivado -version | fgrep 2019.1
Vivado v2019.1 (64-bit)
xsdk -version | fgrep 2019.1
****** SDK v2019.1 (64-bit)
@patocarr
patocarr / gist:540cddff4ce968a6f9c0862910b9b6e4
Created May 13, 2019 21:36
Lattice Diamond - online help fix on Fedora 29
Accessing Diamond's online help throws the following error on Fedora 29.
/usr/lib64/firefox/firefox: /opt/diamond/3.10_x64/bin/lin64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/firefox/firefox)
Adding a soft link to the libstdc++ local library fixes the issue:
[pcarr@localhost lin64]$ ls -l /usr/lib64/libstdc++.so*
lrwxrwxrwx. 1 root root 19 Feb 23 12:26 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.25
-rwxr-xr-x. 1 root root 1653024 Feb 23 12:33 /usr/lib64/libstdc++.so.6.0.25
@patocarr
patocarr / macb.h
Created March 23, 2019 05:00
C Macros for field addressing
#define MACB_RMII_OFFSET 0
#define MACB_RMII_SIZE 1
#define GEM_RGMII_OFFSET 0 /* GEM gigabit mode */
#define GEM_RGMII_SIZE 1
#define MACB_CLKEN_OFFSET 1
#define MACB_CLKEN_SIZE 1
<...>
/* Bit manipulation macros */
@patocarr
patocarr / gist:68aa4cc64a447d39ad1c3b4ffb060df4
Created February 3, 2019 22:18
Xilinx Docnav fix for SIGSEGV in Fedora 28,29
Docnav reported:
ERROR: Socket server not listening. QLocalServer::listen: Address in use
Restart of the local socket server was successful.
QSslSocket: cannot resolve CRYPTO_num_locks
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
@patocarr
patocarr / com.example.conf
Last active July 22, 2018 09:11
GATT profile + pydbus
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow own="com.example"/>
<allow own="com.example.profile"/>
<allow send_destination="com.example"/>
<allow send_destination="com.example.profile"/>
<allow send_destination="com.example.profile" send_interface="com.example.profile"/>
@patocarr
patocarr / TCPdump on ICMP
Last active February 6, 2017 21:30
Multihomed gateway using iptables & iproute
12:04:04.367369 IP (tos 0x0, ttl 128, id 18024, offset 0, flags [none], proto ICMP (1), length 60)
10.0.1.103 > 216.58.219.46: ICMP echo request, id 1, seq 122, length 40
12:04:04.368241 IP (tos 0x0, ttl 127, id 18024, offset 0, flags [none], proto ICMP (1), length 60)
22.3.60.33 > 216.58.219.46: ICMP echo request, id 1, seq 122, length 40
12:04:05.371982 IP (tos 0x0, ttl 54, id 0, offset 0, flags [none], proto ICMP (1), length 60)
216.58.219.46 > 22.3.60.33: ICMP echo reply, id 1, seq 122, length 40
12:04:06.572694 IP (tos 0xd8, ttl 64, id 19175, offset 0, flags [none], proto ICMP (1), length 109)
10.208.236.164 > 8.8.8.8: ICMP 10.208.236.164 udp port 64929 unreachable, length 89
IP (tos 0x58, ttl 56, id 18792, offset 0, flags [none], proto UDP (17), length 81)
8.8.8.8.53 > 10.208.236.164.64929: UDP, length 53