These are my installation-tricks and notes for running Linux on a 2021 Thinkpad
P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/wireless/ath/ath10k/mac.c | |
+++ b/drivers/net/wireless/ath/ath10k/mac.c | |
@@ -3399,6 +3399,8 @@ | |
const struct ieee80211_hdr *hdr = (void *)skb->data; | |
__le16 fc = hdr->frame_control; | |
+ skb_orphan(skb); | |
+ | |
if (!vif || vif->type == NL80211_IFTYPE_MONITOR) | |
return ATH10K_HW_TXRX_RAW; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app-id": "org.apitrace.Apitrace", | |
"runtime": "org.kde.Platform", | |
"runtime-version": "5.11", | |
"sdk": "org.kde.Sdk", | |
"command": "qapitrace", | |
"modules": [ | |
{ | |
"name": "apitrace", | |
"buildsystem": "cmake", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
const int WIN_WIDTH = 640; | |
const int WIN_HEIGHT = 480; | |
int main(int argc, char **argv){ | |
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){ | |
printf("SDL_Init failed: %s\n", SDL_GetError()); | |
return 1; |
I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.
- This really demystified configfs for me, and stopped me being afraid of it: http://events.linuxfoundation.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf
- I borrowed heavily from this Mindstorms EV3 script: https://github.com/ev3dev/ev3-systemd/blob/ev3dev-jessie/scripts/ev3-usb.sh
- Desperately trawled this thread for answers: https://answers.microsoft.com/en-us/windows/forum/windows_10-networking-winpc/windows-10-vs-remote-ndis-ethernet-usbgadget-not/cb30520a-753c-4219-b908-ad3d45590447?auth=1
- This guide is handy: http://irq5.io/2016/12/22/raspberry-pi-zero-as-multiple-usb-gadgets/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project('button', 'cs') | |
mono = dependency('efl-mono') | |
# Somehow meson doesn't seem to be passing the --libs option correctly to | |
# the mono compiler | |
mono_libs = mono.get_pkgconfig_variable('mono_libs') | |
executable('button', 'button.cs', dependencies : mono, cs_args : mono_libs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using ImGuiNET; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Input; | |
using Vector2 = ImGuiNET.Vector2; | |
using Vector3 = ImGuiNET.Vector3; | |
using Vector4 = ImGuiNET.Vector4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VIVADO_PATH=/opt/Xilinx/Vivado/2017.2 | |
VIVADO_TMP_DIR=`mktemp -d /tmp/vivado2017.2.XXXX` | |
export J2D_D3D=false | |
export _JAVA_OPTIONS="-Dsun.java2d.dpiaware=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true" | |
export SWT_GTK3=0 | |
wmname LG3 | |
source $VIVADO_PATH/settings64.sh |
NewerOlder