Skip to content

Instantly share code, notes, and snippets.

View superna9999's full-sized avatar
🤡

Neil Armstrong superna9999

🤡
View GitHub Profile
@superna9999
superna9999 / uart.c
Created August 31, 2022 15:52
no comments
#include <piccolo_config.h>
#include "termios.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "fcntl.h"
#include "unistd.h"
#include "sys/signal.h"
#include "sys/socket.h"
#include "sys/types.h"
10-20 14:40:36.082 413 2019 V V4L2Decoder: V4L2Decoder()
10-20 14:40:36.082 413 2019 V V4L2Decoder: start(codec=H264, inputBufferSize=12582912, minNumOutputBuffers=25)
10-20 14:40:36.174 413 2019 V V4L2Decoder: setupInputFormat(inputPixelFormat=875967048, inputBufferSize=12582912)
10-20 14:40:36.795 413 2019 V V4L2Decoder: setState(Idle)
10-20 14:40:36.799 413 2019 V V4L2Decoder: serviceDeviceTask(event=0) state=Idle InputQueue(streamon):16+0/16, OutputQueue(streamoff):0+0/0
10-20 14:40:36.946 413 2019 V V4L2Decoder: decode(id=0)
10-20 14:40:36.946 413 2019 V V4L2Decoder: setState(Decoding)
10-20 14:40:36.946 413 2019 I V4L2Decoder: Set state Idle => Decoding
10-20 14:40:36.946 413 2019 V V4L2Decoder: pumpDecodeRequest()
10-20 14:40:36.947 413 2019 V V4L2Decoder: QBUF to input queue, bitstreadId=0
ff100000.gpu Status:
identity
model: 0x8000
revision: 0x7131
product_id: 0x8000001
customer_id: 0x99
eco_id: 0x2000000
features
major_features: 0xe0287cad
minor_features0: 0xc9799eff
https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/log/?h=pci/dwc "PCI: dwc: Use DBI accessors"
With NVMe:
[ 3.677241] meson-pcie fc000000.pcie: Link up
[ 3.677319] meson-pcie fc000000.pcie: PCI host bridge to bus 0000:00
[ 3.682264] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.687691] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff]
[ 3.693900] pci_bus 0000:00: root bus resource [mem 0xfc700000-0xfdffffff]
[ 3.700728] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.706675] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
#!/bin/sh
FIPDIR=$1
mkdir fip
cp $FIPDIR/gxl/bl2.bin fip/
cp $FIPDIR/gxl/acs.bin fip/
cp $FIPDIR/gxl/bl21.bin fip/
cp $FIPDIR/gxl/bl30.bin fip/
# table X96, type: nec
0x140 KEY_POWER
0x144 KEY_SUBTITLE # KD
0x155 KEY_PREVIOUS
0x15a KEY_PLAYPAUSE
0x152 KEY_STOP
0x154 KEY_NEXT
0x143 KEY_CONFIG
0x10f KEY_INFO # Green/APP KEY_I (toggle info)
0x110 KEY_VOLUMEDOWN
#!/bin/sh
if [ "$#" -gt 0 ] ; then
if [ "$1" == "1" ] ; then
CPU="cpu0"
MSR="sys_cpu_div16"
devmem 0xFF63C15C 32 0x15002A2
elif [ "$1" == "2" ] ; then
CPU="cpu2"
MSR="sys_cpub_div16"
#!/bin/bash
# SPDX-License-Identifier: WTFPL
# Copyright © 2018 Neil "Superna" Armstrong
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file or http://www.wtfpl.net/
# for more details.
PREV="$(date +%s%N | cut -b1-13)"
TAPS="0"
@superna9999
superna9999 / i2c_lsm9ds0_test.patch
Created June 1, 2017 08:15
zephyr hacky i2c test
diff --git a/samples/drivers/i2c_lsm9ds0/src/main.c b/samples/drivers/i2c_lsm9ds0/src/main.c
index 5622e13..43a5670 100644
--- a/samples/drivers/i2c_lsm9ds0/src/main.c
+++ b/samples/drivers/i2c_lsm9ds0/src/main.c
@@ -15,60 +15,126 @@
*/
#include <zephyr.h>
+#include <device.h>
+
@superna9999
superna9999 / gist:444ffe6c96555f93b640b2a90baf7f52
Created February 27, 2017 14:03
All contributions and involvement on BayLibre only patches in Linux 4.10
Neil Armstrong (71) commits (+11794/-1759):
ARM64: dts: meson-gx: Add firmware reserved memory zones (+18/-0)
ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS (+5/-1)
ARM64: dts: meson-gx: Add Graphic Controller nodes (+92/-0)
ARM64: dts: meson-gxl: Add support for Nexbox A95X (+207/-0)
ARM64: dts: meson-gxm: Add support for the Nexbox A1 (+171/-0)
ARM64: dts: Add support for Meson GXM (+264/-3)
ARM64: dts: meson-gxl-s905x: Enable internal ethernet PHY (+6/-0)
ARM64: dts: meson-gxl-p23x: Enable ethernet (+35/-0)
ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY (+43/-0)