Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
import os
import time
import sys
temp_raw = open("/sys/bus/iio/devices/iio:device0/in_temp_raw", "r")
temp_offset = open("/sys/bus/iio/devices/iio:device0/in_temp_offset", "r")
temp_scale = open("/sys/bus/iio/devices/iio:device0/in_temp_scale", "r")
@RobertCNelson
RobertCNelson / bbai-01
Last active October 4, 2022 16:06
bbai64-emmc-flasher-debian-11.5-minimal-arm64-2022-10-01-4gb.img.xz
U-Boot SPL 2021.01-g3419da0b (Jan 13 2022 - 15:29:57 +0000)
Model: Texas Instruments K3 J721E SoC
Board: BBONEAI-64-B0- rev B0
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
Trying to boot from MMC1
init_env from device 17 not supported!
Starting ATF on ARM64 core...
NOTICE: BL31: v2.5(release):e0d9fdb
NOTICE: BL31: Built : 20:08:51, Jan 7 2022
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2015 Robert Nelson <[email protected]>
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
# vim: ft=udevrules
# apply this file only to pruss_uio devices and their children
# (unfortunately DRIVERS!="pruss_uio" doesn't work, hence this workaround)
DRIVERS=="pruss_uio", GOTO="PRUSS"
GOTO="END"
LABEL="PRUSS"
# obtain pruss instance name:
sudo ./setup_sdcard.sh --img-4gb bone-debian-11.3-iot-armhf-2022-06-28 --dtb beaglebone --distro-bootloader --enable-cape-universal --optional-uboot-uio-pru --enable-bypass-bootup-scripts
syncing media...
0+0 records in
0+0 records out
0 bytes copied, 8.6362e-05 s, 0.0 kB/s
-----------------------------
U-Boot Overlays Enabled...
Debug: ARM rootfs: armhf-rootfs-debian-bullseye.tar
Using Distro Bootloader
Installing collected packages: wrapt, typing-extensions, msgpack, python-can, psutil, future, pylink-square, pyelftools, progress, intelhex, canopen, anytree
Successfully installed anytree-2.8.0 canopen-2.0.0 future-0.18.2 intelhex-2.3.0 msgpack-1.0.3 progress-1.6 psutil-5.9.1 pyelftools-0.28 pylink-square-0.13.0 python-can-4.0.0 typing-extensions-4.2.0 wrapt-1.14.1
west build -d build/sensortest zephyr/samples/boards/beagle_bcf/sensortest -- -DOVERLAY_CONFIG=overlay-subghz.conf
-- west build: generating a build system
-- Application: /opt/source/bcf-zephyr/zephyr/samples/boards/beagle_bcf/sensortest
-- Zephyr version: 2.7.99 (/opt/source/bcf-zephyr/zephyr), build: 56855547db5c
-- Found Python3: /usr/bin/python3.9 (found suitable exact version "3.9.2") found components: Interpreter
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: beagleconnect_freedom
-- Cache files will be written to: /opt/source/bcf-zephyr/zephyr/.cache
diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index 8716e782f6..25367190a7 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -13,6 +13,8 @@
#include <mapmem.h>
#include <lcd.h>
#include <net.h>
+#include <fdt_support.h>
+#include <linux/libfdt.h>
U-Boot SPL 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)
DRA752-GP ES2.0
Trying to boot from MMC1
no pinctrl state for default mode
U-Boot 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)
CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15 rev C
# This file takes repo entries in the format
# repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
bitbake,git://git.openembedded.org/bitbake,1.46,f18b65d0b9a6b983d53bde491e1bf2ca56949444
meta-arago,git://git.yoctoproject.org/meta-arago,dunfell,08.01.00.006,layers=meta-arago-distro:meta-arago-extras
meta-psdkla,git://git.ti.com/jacinto-linux/meta-psdkla.git,master,f030757ec1e3657a26fdfa75c5148eae6c264580,layers=
#meta-browser,git://github.com/OSSystems/meta-browser.git,master,5f365ef0f842ba4651efe88787cf9c63bc8b6cb3,layers=
meta-qt5,git://github.com/meta-qt5/meta-qt5.git,dunfell,b4d24d70aca75791902df5cd59a4f4a54aa4a125,layers=
meta-virtualization,git://git.yoctoproject.org/meta-virtualization,dunfell,180241e0eee718fc52c7b6b25dbd1d845a8047c4,layers=
meta-openembedded,git://git.openembedded.org/meta-openembedded,dunfell,69f94af4d91215e7d4e225bab54bf3bcfee42f1c,layers=meta-networking:meta-python:meta-oe:meta-gnome:meta-filesystems
U-Boot SPL 2021.01-g3419da0b (Jan 11 2022 - 23:17:53 +0000)
Model: Texas Instruments K3 J721E SoC
Board: BBONEAI-64-B0- rev B0
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
Trying to boot from MMC1
init_env from device 17 not supported!
Starting ATF on ARM64 core...
NOTICE: BL31: v2.5(release):e0d9fdb
NOTICE: BL31: Built : 20:08:51, Jan 7 2022