jonlamb-gh / home-phone

1 stars 0 forks source link

Home Phone

Firmware for my VoIP home phone.

cherry-enclosure

Building

cargo xbuild

Copy elf to binary if needed (no bootelf):

cargo objcopy -- -O binary target/$(TARGET)/release/home-path /tmp/home-phone.bin

Simulating

TODO

https://github.com/xpack-dev-tools/qemu-arm-xpack/releases

# For output on UART1
qemu-system-aarch64 -M raspi4 -nographic -serial null -serial mon:stdio -kernel /path/to/binORelf

Or using the custom runner:

cargo xrun

Testing

QEMU, no hardware

Using the custom runner with QEMU:

# Binary unit tests and integration tests
cargo xtest

# Libary unit tests
cargo xtext -p lib

Hardware tests

TODO

U-boot

Using 64 bit U-boot:

TODO

Environment: TODO

SD card

TODO

HAL and device crate