Skip to content

Instantly share code, notes, and snippets.

View xobs's full-sized avatar

Sean Cross xobs

View GitHub Profile
Section "Device"
Identifier "novena"
Driver "armada"
Option "UseGPU" "true" # change to "false" to disable 2D acceleration
Option "XvPreferOverlay" "FALSE" # FALSE enables xv acceleration
# The next two options switch it from galcore to etnadrm mode
Option "Screen" "0"
Option "AccelModule" "etnadrm_gpu"
EndSection
[ 2.052750] imx6q-pcie 1ffc000.pcie: Looking up vdd3p3-supply from device tree
[ 2.052855] imx6q-pcie 1ffc000.pcie: Looking up vdd1p5-supply from device tree
[ 2.167875] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 2.170339] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 2.172789] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 2.175224] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.177625] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 2.177647] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 2.177662] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 2.177708] pci 0000:00:00.0: supports D1
#include "Arduino.h"
#include "ChibiOS.h"
#include "kl02.h"
#include "memio.h"
// Enable interpolation to make the output smoother.
// Set to 0 to disable interpolation.
// Note that some instruments don't support interpolation.
#define INTERPOLATION_ENABLED 1
/* Hook up a speaker to pins 0 and 1.
* Touch pin 4 for "Previous Song"
* Touch pin 5 for "Next Song"
*/
#include "Arduino.h"
#include "ChibiOS.h"
#include "kl02.h"
#include "memio.h"
// The system is running off of a 32.768 kHz crystal going through
@xobs
xobs / crc32.c
Created January 20, 2019 23:21
/* crc32.c -- compute the CRC-32 of a data stream
* Copyright (C) 1995-1998 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include <crc.h>
#ifdef CRC32_FAST
static const unsigned int crc_table[256] = {
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
@xobs
xobs / csr-test.py
Created February 18, 2019 09:09
Sample CSR failing simulation
#!/usr/bin/env python3
# This variable defines all the external programs that this module
# relies on. lxbuildenv reads this variable in order to ensure
# the build will finish without exiting due to missing third-party
# programs.
LX_DEPENDENCIES = ["riscv", "icestorm", "yosys"]
# Import lxbuildenv to integrate the deps/ directory
import lxbuildenv
@xobs
xobs / csr-test2.py
Created February 18, 2019 09:17
An example of CSRs failing with "AttributeError: 'CSR' object has no attribute 'get_fragment_called'"
#!/usr/bin/env python3
# This variable defines all the external programs that this module
# relies on. lxbuildenv reads this variable in order to ensure
# the build will finish without exiting due to missing third-party
# programs.
LX_DEPENDENCIES = ["riscv", "icestorm", "yosys"]
# Import lxbuildenv to integrate the deps/ directory
import lxbuildenv
@xobs
xobs / csr-test3.py
Created February 18, 2019 09:54
An example of a CSR write failing
#!/usr/bin/env python3
# This variable defines all the external programs that this module
# relies on. lxbuildenv reads this variable in order to ensure
# the build will finish without exiting due to missing third-party
# programs.
LX_DEPENDENCIES = ["riscv", "icestorm", "yosys"]
# Import lxbuildenv to integrate the deps/ directory
import lxbuildenv
@xobs
xobs / csr-test4.py
Last active February 18, 2019 09:59
#!/usr/bin/env python3
# This variable defines all the external programs that this module
# relies on. lxbuildenv reads this variable in order to ensure
# the build will finish without exiting due to missing third-party
# programs.
LX_DEPENDENCIES = ["riscv", "icestorm", "yosys"]
# Import lxbuildenv to integrate the deps/ directory
import lxbuildenv