Urgent.News

What's breaking now, across hundreds of outlets.

Tech

NixOS bring-up on an Alibaba RISC-V board

In the process of searching for an affordable Versal devkit on Alibaba, the author unexpectedly acquired a Zhihe Computing A210 RISC-V System on Chip (SoC). This board boasts an impressive number of exposed input/output interfaces and eight cores operating at 1.9 GHz. While the author is hesitant to recommend purchasing any RISC-V SoC at present, they decided to repurpose the board as a NixOS build server to explore RISC-V support within NixOS and gain hands-on experience with Linux bringup.

The author's complete A210 NixOS configuration can be accessed, and they confirmed functionality of sound, HDMI, Bluetooth/Wi-Fi, Ethernet, and the GPU. Building packages with Nix is straightforward, as the command nix build nixpkgs#pkgsCross.riscv64.hello generates a genuine RISC-V executable without needing a Nix file. However, some cross-compilation challenges were encountered, such as rust-bindgen utilizing an incorrect version of clang and ministream failing to configure correctly for cross compilation.

These issues were surmounted by temporarily reducing the build parallelism and running the problematic builds overnight.

The author also faced some peculiar out-of-memory (OOM) problems during compilation, particularly when compiling from x86_64-linux. To alleviate this, they reduced the build parallelism significantly and executed the offending builds during off-peak hours. Despite the cross-compilation being somewhat tricky with Nix flakes, as they require encoding the buildPlatform in the output schema and nixosConfigurations not supporting nesting, the author devised a workaround.

They exposed the essential build artifacts of the NixOS configuration (ISO and flashing script) under packages.${system} by creating a "wrapper" NixOS configuration for each buildPlatform that extends nixosConfigurations.a210. This allowed NixOS to be agnostic to the buildPlatform, resulting in a seamless cross-compilation process when running nix build .#image on an x86_64-linux machine.

The ultimate goal was to boot the board using U-Boot FSBL - OpenSBI - U-Boot SSBL - Linux - NixOS userspace, by referencing the vendor's Buildroot scripts. The vendor's U-Boot, Linux, and OpenSBI were easily integrated by overriding the source and applying a few patches to address compiler warnings that had transformed into errors in recent versions of GCC/Clang in nixpkgs.

Once the bootloader and NixOS image were in place, the A210 was connected to the author's MacBook, which initially failed to recognize the device due to macOS not supporting Fastboot. The author examined the datasheet for alternative boot methods and attempted to use PD resistors to initiate QSPI boot from NORbert, a substitute for a real QSPI device, which ultimately led to booting Linux from eMMC. However, the UART remained silent, and the author suspected an issue with the serial connection.

Rewritten by urgent.news; may contain errors — check the original.

Source: feyor.sh

Read the original at feyor.sh →

Report a problem with this story

More in Tech

Testing DHCP on tagged VLANs from a Raspberry Pi

A trunk port can look fine and still hand the wrong VLAN a DHCP lease. The usual check is to re-cable a laptop and add a temporary VLAN interface.

  • Raspberry Pi used as reliable DHCP test client
  • PathProbe tool checks untagged and tagged VLAN assignments
  • Failure in second test indicates port, trunk, or DHCP issue

Scripting network console sessions with a local API

A lot of network work still happens on a console: a USB-serial cable for the first SSH key, a Telnet jump on a lab switch, then a normal SSH session once the box is up.

  • JackedIN provides API for scripting network console sessions
  • Supports Junos, Cisco IOS/NX-OS, Arista, Nokia, MikroTik devices
  • Offers 72-hour free trial without registration

Why Sea of Thieves Bet on Unreal Engine 4: The Borrowed Water Tech Behind a 40-Million-Pirate Shared World

The short answer is boring on purpose: Sea of Thieves runs on Unreal Engine 4 . Rare lists UE4 in the game's engine field, and the timeline makes UE5 impossible — Rare conceived the pirate pitch in 2014, shipped on Windows and Xbox One on March 20, 2018, added a native Xbox Series X/S build on March 13, 2024, then sailed to PlayStation 5…

  • Sea of Thieves built on Unreal Engine 4 since 2014
  • Game launched on March 20, 2018, with Xbox Series X/S in 2024
  • UE4's modular pipeline enabled rapid updates for 10 years

More from Sunday, 22 November 2026 →