Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
RobertCNelson / 00_a_opencl
Last active March 20, 2019 17:42
x15 TI opencl sdk
This is the OpenCL page...
@RobertCNelson
RobertCNelson / uio
Created October 20, 2015 22:18
todo: 20151020
<zmatt> rcn-ee: btw, could you maybe include the modprobe rule and udev rule (or variation) for uio in your rootfs? it shouldn't affect any non-uio users, but it would allow using uio with nothing more than an overlay
<zmatt> http://pastebin.com/GrHwgYiR <-- contains the two files and a DT fragment example
<rcn-ee> zmatt, looks cool, i'll add it.. do you want to fork beagle/bb.org-overlays and push a bbb-adc-uio.dts option?
<zmatt> well the adc is just an example, you can use almost peripheral using uio
<rcn-ee> true, many of those are just examples. ;)
<zmatt> you can also use it to create interrupts to userspace simpler than the sysfs mechanism
<zmatt> e.g. http://pastebin.com/Yxb7Q8CY
<zmatt> (the reg declaration is simply because I also wanted access to that address range for the example)
@RobertCNelson
RobertCNelson / microSD flash
Last active October 26, 2015 15:46
x15_2015-10-25
Requires: microSD (4GB)
Files:
https://rcn-ee.com/rootfs/bb.org/testing/2015-10-25/lxqt-4gb/bbx15-eMMC-flasher-debian-8.2-lxqt-4gb-armhf-2015-10-25-4gb.bmap
https://rcn-ee.com/rootfs/bb.org/testing/2015-10-25/lxqt-4gb/bbx15-eMMC-flasher-debian-8.2-lxqt-4gb-armhf-2015-10-25-4gb.img.xz
Write to microSD via bmaptools: (3.2)
sudo bmaptool copy --bmap bbx15-eMMC-flasher-debian-8.2-lxqt-4gb-armhf-2015-10-25-4gb.bmap bbx15-eMMC-flasher-debian-8.2-lxqt-4gb-armhf-2015-10-25-4gb.img.xz /dev/sdd
Or via dd:
#!/bin/bash
linaro_builds="15.06"
export CC=/home/voodoo/dl/gcc/gcc-linaro-5.1-2015.08-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
mkdir -p ./aarch64/bin
cd ./aarch64
git clone --reference /opt/github/u-boot git://git.denx.de/u-boot.git
voodoo@hestia:/opt/images/am57$ git clone git://git.denx.de/u-boot.git
Cloning into 'u-boot'...
remote: Counting objects: 356655, done.
remote: Compressing objects: 100% (69117/69117), done.
remote: Total 356655 (delta 286224), reused 351361 (delta 281270)
Receiving objects: 100% (356655/356655), 79.12 MiB | 5.24 MiB/s, done.
Resolving deltas: 100% (286224/286224), done.
Checking connectivity... done.
voodoo@hestia:/opt/images/am57$ cd u-boot/
voodoo@hestia:/opt/images/am57/u-boot$ git checkout v2015.07 -b tmp
Green Factory: (network and ftdi plugged in)
3.8.13-bone71.1
5v 0.19->0.20A
Jessie:
https://rcn-ee.com/rootfs/bb.org/testing/2015-11-29/console/BBB-eMMC-flasher-debian-8.2-console-armhf-2015-11-29-2gb.bmap
https://rcn-ee.com/rootfs/bb.org/testing/2015-11-29/console/BBB-eMMC-flasher-debian-8.2-console-armhf-2015-11-29-2gb.img.xz
4.1.13-ti-r34
http://www.imx6rex.com/
= Factory microSD Image =
== microSD Setup ==
touch /uEnv.txt
cp /uImage /uImage_original
== Kernel ==
git clone https://github.com/RobertCNelson/imx-devel.git
cd imx-devel/
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index f56d17e..a577579 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -511,6 +511,9 @@ int board_late_init(void)
if ( (header.version[0] == 0x1a) && (header.version[1] == 0x00) &&
(header.version[2] == 0x00) && (header.version[3] == 0x00) ) {
setenv("board_rev", "BBG1");
+ } else if ( (header.version[0] == 0x74) && (header.version[1] == 0x0a) &&
+ (header.version[2] == 0x75) && (header.version[3] == 0x65) ) {
From 14ed2526aeb35cc7a9b289dff20601f45dc263cd Mon Sep 17 00:00:00 2001
From: Robert Nelson <[email protected]>
Date: Sun, 20 Dec 2015 18:06:19 -0600
Subject: [PATCH 2/2] am335x-olimex-som: no regulator for voltdm
Signed-off-by: Robert Nelson <[email protected]>
---
arch/arm/boot/dts/am335x-olimex-som.dts | 2 +-
arch/arm/mach-omap2/opp33xx_data.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
/ {
onewire {
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&dallas_w1_pins>;
status = "okay";
gpios = <&gpio1 17 0>;
};
};