Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/25.05.tar.gz") {} }:

let
py2hwsw_commit = "21b1f2db283dc72d3ad62995f3457c16f77592b0"; # Replace with the desired commit.
py2hwsw_sha256 = "XmNwIx3p5uhjueZ5vlNZvZbrR1ja2UiQ+B22ekFDxdI="; # Replace with the actual SHA256 hash.
py2hwsw_commit = "3ba45fe1420f3b1ef67903c90f652172f8697949"; # Replace with the desired commit.
py2hwsw_sha256 = "5ANpITrAKXw8DX+uCnyPDueEoBRpYpCMgOwSA1gqO70="; # Replace with the actual SHA256 hash.
# Get local py2hwsw root from `PY2HWSW_ROOT` env variable
py2hwswRoot = builtins.getEnv "PY2HWSW_ROOT";

Expand Down
12 changes: 12 additions & 0 deletions hardware/fpga/child2_fpga_build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ ifeq ($(UART_DEMO),1)
MINICOM_SCRIPT=minicom_uart_demo.txt
endif

# Pass ETH_DEMO flag to remote systems
UFLAGS+=ETH_DEMO=$(ETH_DEMO)

ifeq ($(ETH_DEMO),1)
GRAB_TIMEOUT= 1500
MINICOM_SCRIPT=minicom_eth_demo.txt
CONSOLE_CMD += && ( cd ../../software/tests/iob_eth && ./validate_eth.sh -S root -p root -s 192.168.74.2 -i $(ETH_IF) )
# # Override CONSOLE_CMD: skip minicom (appended by child_fpga_build.mk) and run eth test instead
# # Use = (deferred expansion) to preserve variable references for later expansion
# CONSOLE_CMD = $(IOB_CONSOLE_PYTHON_ENV) $(PYTHON_DIR)/console_ethernet.py -s $(BOARD_SERIAL_PORT) -c $(PYTHON_DIR)/console.py -m "$(RMAC_ADDR)" -i "$(ETH_IF)" && ( cd ../../software/tests/iob_eth && ./validate_eth.sh -S root -p root -s 192.168.74.2 -i $(ETH_IF) )
endif

# include fpga build segment of (level 3) child systems
# child systems can add their own child3_fpga_build.mk without having to override this one.
ifneq ($(wildcard child3_fpga_build.mk),)
Expand Down
11 changes: 11 additions & 0 deletions hardware/fpga/minicom_cache_demo.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2026 IObundle
#
# SPDX-License-Identifier: MIT

# Script for "runscript" program of minicom, to test iob_cache (with DMA loopback) in linux

# Set 15min timeout
Expand All @@ -19,6 +23,13 @@ print "\n[minicom] Detected login prompt. Logging in..."

send "root"

expect {
"Password:"
timeout 20 goto on_timeout
}

send "root"

expect {
"#"
timeout 20 goto on_timeout
Expand Down
3 changes: 0 additions & 3 deletions hardware/fpga/minicom_cache_demo.txt.license

This file was deleted.

60 changes: 60 additions & 0 deletions hardware/fpga/minicom_eth_demo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# SPDX-FileCopyrightText: 2026 IObundle
#
# SPDX-License-Identifier: MIT

# Script for "runscript" program of minicom, to test two iob_uart16550 instances in linux

# Set 15min timeout
# runscript has 2min timeout by default:
# check `timeout` in: https://linux.die.net/man/1/runscript
timeout 900

# Wait for the "buildroot login:" message
# Or jump straight to shell if we are already logged in
print "\n[minicom] Waiting for buildroot login..."
send ""
expect {
"buildroot login:"
"\n#" goto post_login
timeout 300 goto on_timeout
}

print "\n[minicom] Detected login prompt. Logging in..."

send "root"

expect {
"Password:"
timeout 20 goto on_timeout
}

send "root"

expect {
"#"
timeout 20 goto on_timeout
}

post_login:

#
# Run tests
#

print "\n[minicom] Logged in. Running tests..."

print "\n[minicom] Exit minicom to run standalone iob_eth test"

# Exit minicom
! kill `cut -f4 -d' ' /proc/$PPID/stat`


# Jump here when timeout is triggered
on_timeout:

print "\n[minicom] Timeout reached. Exiting..."

# Exit minicom
! kill `cut -f4 -d' ' /proc/$PPID/stat`


7 changes: 7 additions & 0 deletions hardware/fpga/minicom_uart_demo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ print "\n[minicom] Detected login prompt. Logging in..."

send "root"

expect {
"Password:"
timeout 20 goto on_timeout
}

send "root"

expect {
"#"
timeout 20 goto on_timeout
Expand Down
Loading
Loading