Skip to content

Instantly share code, notes, and snippets.

@shenki
shenki / gist:8eb53fbcf5658440f2deb8e98761fc81
Created September 18, 2019 05:33
linux 5.0 on vexriscv on arty
VexRiscv Machine Mode software built Jul 9 2019 11:58:09
--========== Booting Linux =============--
[ 0.000000] No DTB passed to the kernel
[ 0.000000] Linux version 5.0.13 (joel@voyager) (gcc version 8.3.0 (Buildroot 2019.11-git-00298-g5c9e9ef10087)) #1 Tue Sep 17 22:24:09 ACST 2019
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] Initial ramdisk at: 0x(ptrval) (8388608 bytes)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000c0000000-0x00000000cfffffff]
[ 0.000000] Movable zone start for each node
@shenki
shenki / gist:3dcf7829efef7cc1d8e3a7ca065d9045
Created September 18, 2019 05:32
linux 5.3 on vexriscv on arty
VexRiscv Machine Mode software built Jul 9 2019 11:58:09
--========== Booting Linux =============--
[ 0.000000] Linux version 5.3.0-00010-g61c146e3169a (joel@voyager) (gcc version 8.3.0 (Buildroot 2019.11-git-00298-g5c9e9ef10087)) #1 Wed Sep 18 14:45:08 ACST 2019
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] Initial ramdisk at: 0x(ptrval) (8388608 bytes)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000c0000000-0x00000000cfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
URL: https://goo.gl/6YzpZ1
cd litex-buildenv
git revert 8ebd52c65e10b8a25f1f9d8342c7c6d82320d44c
Add following snippet to device tree located at third_party/linux/arch/openrisc/boot/dts/or1klitex.dts:
+ green_led_gpios: gpio@e0006800 {
+ compatible = "wd,mbl-gpio", "basic-mmio-gpio";
@shenki
shenki / sbe_info.py
Created July 5, 2017 06:52
Dump out the state of your SBE with pdbg
#!/usr/bin/python2
#
# OpenPOWER sbe Project
#
# Copyright 2016,2017 International Business Machines Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#!/usr/bin/env python3
#
# Copyright 2017 IBM Corporation
# Licensed under the Apache License, Version 2.0
#
# Joel Stanley <joel@jms.id.au>
#
# This program takes the output of Buildroot's legal-info target and shows a
# diff against an older version. It is used for working out which new versions
# of packages are included between OpenPower op-build releases.
@shenki
shenki / uavanut-ghetto-parser.py
Created February 18, 2015 10:31
uAvaNut Parser
#!/usr/bin/python2
# Joel Stanley <joel@jms.id.au>
# Apache 2.1
import math
# Hard coded start location
start_lon = -34.92454
start_lat = 138.60033

Keybase proof

I hereby claim:

  • I am shenki on github.
  • I am jstanley (https://keybase.io/jstanley) on keybase.
  • I have a public key whose fingerprint is FA71 CC02 DF4F 0810 C7EB 7C01 6B76 5907 8147 709E

To claim this, I am signing this object:

@shenki
shenki / download.cmd
Created April 15, 2013 12:13
Xilinx iMPACT batch file
setMode -bscan
setCable -p auto
identify
assignfile -p 1 -file hdmi2usb_onboard.bit
program -p 1
quit