Skip to content

Instantly share code, notes, and snippets.

💭
Linux on RISC-V with open FPGA tools!

Drew Fustini pdp7

💭
Linux on RISC-V with open FPGA tools!
View GitHub Profile
@pdp7
pdp7 / BeagleBoard.org Debian Buster IoT Image 2020-04-06
Last active Jul 3, 2020
BeagleBoard.org Debian Buster IoT Image 2020-04-06
View BeagleBoard.org Debian Buster IoT Image 2020-04-06
root@beaglebone:/# find . |grep -i Adafruit
./opt/source/bb.org-overlays/src/arm/BB-LCD-ADAFRUIT-18-SPI1-00A0.dts
./opt/source/adafruit-beaglebone-io-python
./opt/source/adafruit-beaglebone-io-python/overlays
./opt/source/adafruit-beaglebone-io-python/overlays/ADAFRUIT-UART2-00A0.dts
./opt/source/adafruit-beaglebone-io-python/overlays/__pycache__
./opt/source/adafruit-beaglebone-io-python/overlays/__pycache__/builder.cpython-37.pyc
./opt/source/adafruit-beaglebone-io-python/overlays/__pycache__/__init__.cpython-37.pyc
./opt/source/adafruit-beaglebone-io-python/overlays/ADAFRUIT-UART1-00A0.dts
./opt/source/adafruit-beaglebone-io-python/overlays/ADAFRUIT-UART4-00A0.dts
@pdp7
pdp7 / ftrace beaglebone
Created Jun 22, 2020
ftrace beaglebone
View ftrace beaglebone
cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 earlyprintk ftrace=function_graph ftrace_filter=*pcs*,*pinconf*,*pinctrl*,*gpio* ftrace_notrace=gpio_omap_cpu_notifier,pinctrl_pm_select_idle_state,parse_gpio*,gpiochip_get_data,pinctrl_dev_get_drvdata
@pdp7
pdp7 / pinconf notes
Created Jun 18, 2020
pinconf notes for beaglebone
View pinconf notes
======================================================================
include/dt-bindings/pinctrl/hisi.h
/* iocg bit definition */
#define PULL_MASK (3)
#define PULL_DIS (0)
#define PULL_UP (1 << 0)
#define PULL_DOWN (1 << 1)
View run.sh
# adebian@beaglebone:~$ cat run.sh
sudo /home/debian/extract.sh
ls -ltar /lib/modules/5.7*
ls -ltar /boot/dtbs/5.7*
echo sudo reboot
# debian@beaglebone:~$ cat extract.sh
sudo date -s "9 JUL 2020 11:14:00"
sudo tar -C / -xvf 5.7.0-rc6-omap2plus-r0-modules.tar.gz
sudo tar -C /boot/dtbs/5.7.0-rc6-omap2plus-r0/ -xvf 5.7.0-rc6-omap2plus-r0-dtbs.tar.gz
sudo cp 5.7.0-rc6-omap2plus-r0.zImage /boot/vmlinuz-5.7.0-rc6-omap2plus-r0
@pdp7
pdp7 / dmesg with pcs_parse_pinconf patch
Created Jun 8, 2020
dmesg with pcs_parse_pinconf patch
View dmesg with pcs_parse_pinconf patch
ddebian@beaglebone:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.7.0-rc6-omap2plus-r0 (pdp7@x1) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)), GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #89 Mon Jun 8 01:52:07 CEST 2020
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x PocketBeagle
[ 0.000000] printk: bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x9e800000
[ 0.000000] On node 0 totalpages: 130816
@pdp7
pdp7 / small config for pocketbeagle with usb gadget ethernet only sorted.txt
Last active Jun 8, 2020
small config for pocketbeagle with usb gadget ethernet only
View small config for pocketbeagle with usb gadget ethernet only sorted.txt
CONFIG_ADVISE_SYSCALLS=y
CONFIG_AEABI=y
CONFIG_AIO=y
CONFIG_ALIGNMENT_TRAP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_AM335X_CONTROL_USB=m
CONFIG_AM335X_PHY_USB=m
CONFIG_ARCH_32BIT_OFF_T=y
CONFIG_ARCH_HAS_BANDGAP=y
CONFIG_ARCH_HAS_BINFMT_FLAT=y
@pdp7
pdp7 / dmesg_5.4.20-ti-rt-r6
Last active Jun 3, 2020
dmesg_bbai-5.4.20-ti-rt-r6
View dmesg_5.4.20-ti-rt-r6
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
#uname_r=4.19.94-ti-r42
uname_r=5.4.20-ti-rt-r6
#uuid=
#dtb=
cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet
#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e
@pdp7
pdp7 / am33xx-gpio-ranges.csv
Last active Jun 2, 2020
AM33XX GPIO Ranges
View am33xx-gpio-ranges.csv
gpiochip gpio-line pinctrl-PIN pinctrl-address
0 0 82 44e10948
0 1 83 44e1094c
0 2 84 44e10950
0 3 85 44e10954
0 4 86 44e10958
0 5 87 44e1095c
0 6 88 44e10960
0 7 89 44e10964
0 8 52 44e108d0
@pdp7
pdp7 / boot after force num_maps=1
Created May 29, 2020
boot after force num_maps=1
View boot after force num_maps=1
U-Boot SPL 2019.04-00002-g3d8c979660 (Nov 01 2019 - 09:14:23 -0500)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
U-Boot 2019.04-00002-g3d8c979660 (Nov 01 2019 - 09:14:23 -0500), Build: jenkins-github_Bootloader-Builder-134
@pdp7
pdp7 / dmesg.txt
Last active May 29, 2020
beaglebone boot failure
View dmesg.txt
U-Boot SPL 2019.04-00002-g3d8c979660 (Nov 01 2019 - 09:14:23 -0500)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
U-Boot 2019.04-00002-g3d8c979660 (Nov 01 2019 - 09:14:23 -0500), Build: jenkins-github_Bootloader-Builder-134
You can’t perform that action at this time.