Skip to content

Instantly share code, notes, and snippets.

View aaronautt's full-sized avatar

Aaron Crump aaronautt

  • DornerWorks Ltd.
  • Grand Rapids, MI
View GitHub Profile
@aaronautt
aaronautt / gist:2ad63b2dccde9b7d7e2b6f53c25dc769
Created September 8, 2022 13:27
Device tree entry configuration for si5344 on custom ultrascale board based on zcu102
clock entry for synth clock is <&si5344 1 0>, the synth clock needs to be at 2x the desired output clock
clocks = <&si5344 0 0>, <&si5344 0 1>, <&si5344 0 2>, <&si5344 0 3>;
clock-names = "si5344_0", "si5344_1", "si5344_2", "si5344_3";
assigned-clocks = <&si5344 0 0>, <&si5344 0 1>,
<&si5344 0 2>, <&si5344 0 3>,
<&si5344 1 0>;
assigned-clock-rates = <156250000>, <156250000>,
<156250000>, <156250000>,
@aaronautt
aaronautt / tcl
Created July 8, 2020 17:23
Vitis 2020.1 project recreation, pass in absolute path to xsa and source code you wish to import
if { $argc != 2 } {
puts "please input path to an xsa and a path to the source code"
exit
}
setws ./workspace
cd ./workspace
app create -name app_name -hw [lindex $argv 0] -os standalone -proc ps7_cortexa9_0 -template {Hello World}
importsources -name app_name -path [lindex $argv 1] -soft-link
file delete -force ./app_name/src/helloworld.c
app config -name app_name -add include-path ../../app_name/src
cd <plnx proj>/components/plnx_workspace/device-tree/device-tree
gcc -I ../../../../project-spec/meta-user/recipes-bsp/device-tree/files/ -E -nostdinc -undef -D__DTS__ -x assembler-with-cpp -o system-top.dts.tmp system-top.dts
dtc -I dts -O dtb -o system-top.dtb system-top.dts.tmp

Keybase proof

I hereby claim:

  • I am aaronautt on github.
  • I am aaroncrump (https://keybase.io/aaroncrump) on keybase.
  • I have a public key ASByS3hYjW3VzaNYdnA92w3a50HLfGXmOoWA91WCcvPrUgo

To claim this, I am signing this object:

@aaronautt
aaronautt / magit-open
Created July 11, 2019 14:44
open magit-status in a git repo , add this as an alias
emacsclient -c --eval '(let ((display-buffer-alist `(("^\\*magit: " display-buffer-same-window) ,display-buffer-alist))) (magit-status))'
@aaronautt
aaronautt / mkdts.sh
Last active April 27, 2020 14:19
script to compile dts files to dtbs outside of Linux Kernel
#!/bin/bash
PROGNAME="mkdts"
usage()
{
echo $PROGNAME "<file.dts> <output.dtb>"
echo "<file.dts> is the name of the dts to be compiled"
echo "<output.dtb> name of the output dtb"
}