artiq-zynq/src
mwojcik c834e4f503 enable network and mgmt during Rust panic, make RTIO PLL lock failure a panic
Closes #198 #200

Making it a soft panic makes it more involved with a bit of code duplication - setting up mgmt requires setting up the interface and sockets. Maybe can be done a bit cleaner.

```
[spaqin@hera:~/m-labs/artiq-zynq]$ artiq_sinara_tester
****** Sinara system tester ******
[...]
ConnectionRefusedError: [Errno 111] Connection refused

[spaqin@hera:~/m-labs/artiq-zynq]$ artiq_coremgmt -D 192.168.1.56 log
[     0.000067s]  INFO(runtime): NAR3/Zynq7000 starting...
[     0.005238s]  INFO(runtime): detected gateware: GenericMaster
[     0.016152s]  INFO(libboard_zynq::i2c): PCA9548 detected
[     0.023004s]  WARN(runtime): config initialization failed: SD error: Card initialization error: No card inserted, check if the card is inserted properly.
[     0.036730s]  WARN(runtime::rtio_clocking): error reading configuration. Falling back to default.
[     0.213000s] ERROR(runtime::rtio_clocking): RTIO PLL failed to lock
[     0.224443s]  INFO(libboard_zynq::i2c): PCA9548 detected
[     0.256197s]  INFO(runtime::comms): network addresses: MAC=e8-eb-1b-13-49-8b IPv4=192.168.1.56 IPv6-LL=fe80::eaeb:1bff:fe13:498b IPv6: no configured address
[     0.270183s] ERROR(runtime::comms): There has been an error configuring the device: RTIO PLL failed to lock. Only mgmt interface will be available.
[     4.000095s]  INFO(libboard_zynq::eth): eth: got Link { speed: S1000, duplex: Full }
[    33.148521s]  INFO(runtime::mgmt): received connection
```

Reviewed-on: M-Labs/artiq-zynq#199
Co-authored-by: mwojcik <mw@m-labs.hk>
Co-committed-by: mwojcik <mw@m-labs.hk>
2022-10-21 17:56:34 +08:00
..
.cargo cargo: remove outdated runner entry 2020-05-07 13:50:21 +08:00
gateware kasli_soc: ident = variant name 2022-10-21 11:55:24 +08:00
include fix permissions 2020-07-02 10:28:40 +08:00
libboard_artiq drtio: port 64-bit padding from mainline 2022-05-24 15:43:01 +08:00
libbuild_zynq add satman firmware (#136) 2021-10-08 16:04:50 +08:00
libc fix compilation with nixpkgs 21.05 2021-06-25 15:57:39 +08:00
libdwarf change catch type to single reference 2022-05-31 18:26:30 +08:00
libdyld dyld/rebind: support rela generation with nac3ld 2022-06-01 21:27:38 +08:00
libio add libio (to be shared between runtime and satman) 2021-10-06 13:01:52 +08:00
libunwind libunwind: enable lto 2022-01-06 14:04:04 +08:00
llvm_libunwind runtime/eh_artiq: use forced unwind 2022-01-14 13:35:24 +08:00
runtime enable network and mgmt during Rust panic, make RTIO PLL lock failure a panic 2022-10-21 17:56:34 +08:00
satman satellites: add rtio_crg cfg 2022-04-12 13:44:53 +08:00
armv7-none-eabihf.json Exception handling: patched exception handling for ARTIQ. 2020-07-02 10:13:42 +08:00
Cargo.lock update dependencies 2022-10-07 18:30:39 +08:00
Cargo.toml update build scripts for DRTIO 2021-10-08 16:25:13 +08:00
Makefile added explicit runtime/satman targets for makefile 2021-10-08 21:06:23 +08:00