From 2eba3e1f2afa235a06477fbb4659a4e33f37e481 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Wed, 7 Jun 2023 21:26:07 -0400 Subject: [PATCH] overlay stuff --- .../rootfs_overlay/etc/network/interfaces | 9 +++++++++ buildroot/configs/litex_vexriscv_defconfig | 1 - linux/test_dac.py | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces create mode 100644 linux/test_dac.py diff --git a/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces b/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces new file mode 100644 index 0000000..e6170a0 --- /dev/null +++ b/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces @@ -0,0 +1,9 @@ +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet static +address 192.168.1.100 +netmask 255.255.255.0 +network 192.168.1.0 +gateway 192.168.1.1 diff --git a/buildroot/configs/litex_vexriscv_defconfig b/buildroot/configs/litex_vexriscv_defconfig index ebfc3a9..fa62b4f 100644 --- a/buildroot/configs/litex_vexriscv_defconfig +++ b/buildroot/configs/litex_vexriscv_defconfig @@ -37,6 +37,5 @@ BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_UPSILON_PATH)/board/litex_vexriscv/rootfs_ove BR2_PACKAGE_MICROPYTHON=y BR2_PACKAGE_MICROPYTHON_LIB=y BR2_PACKAGE_DROPBEAR=y -BR2_PACKAGE_DROPBEAR_CLIENT=n BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y BR2_PACKAGE_DROPBEAR_SMALL=y diff --git a/linux/test_dac.py b/linux/test_dac.py new file mode 100644 index 0000000..43c0bab --- /dev/null +++ b/linux/test_dac.py @@ -0,0 +1,10 @@ +import machine +from micropython import const + +dac_0_arm = Const(4026531852) +dac_0_finished = Const(4026531848) + +machine.mem8[dac_0_arm] = 1 +while machine.mem8[dac_0_finished] != 1: + pass +machine.mem8[dac_0_arm] = 0