Closed dhand-galois closed 4 years ago
I am able to boot a gfe Debian image nearly to completion, but it is getting stuck at starting the SSH server:
[ 223.060000] systemd[1]: modprobe@drm.service: Succeeded.
[ 223.260000] systemd[1]: Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module drm.
[ *** ] (2 of 4) A start job is running forb&y Kernel Variables (9s / 1min 32s)
[ OK ] Finished Remount Root and Kernel File Systems.
[ 228.260000] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 228.300000] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 228.830000] systemd[1]: Starting Load/Save Random Seed...
Starting Load/Save Random Seed...
[ 229.520000] systemd[1]: Starting Create System Users...
Starting Create System Users...
[ 230.070000] systemd[1]: Finished Apply Kernel Variables.
[ OK ] Finished Apply Kernel Variables.
[ **] (3 of 4) A start job is running forb&eate System Users (15s / 1min 41s)
[ OK ] Started Journal Service.
[ OK ] Finished Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting udev Kernel Device Manager...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Finished Create Volatile Files and Directories.
[ OK ] Finished udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting System Logging Service...
Starting OpenBSD Secure Shell server...
Starting Login Service...
Starting Permit User Sessions...
[ OK ] Started System Logging Service.
[ OK ] Finished Permit User Sessions.
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start Load/Save Random Seed.
See 'systemctl status systemd-random-seed.service' for details.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
This is running on a Bluespec P2. I will try again on a Chisel P2 at some point. But I could use help identifying other people that would be able to assist debugging this so I can work on other issues @kiniry
I guess this is a randomness/entropy issue?
Fixed the issues with Debian by following these steps:
riscv-pk
to include SiFive UART fixes, set the UART divisor value to 27
if building designs with a 100MHz effective periphery bus frequency.ssh.service
in the Debian install-systemd.sh
script.GFE_DEBIAN_URL
to the one used in testgen, which is a slightly older snapshotThe last point will be fixed once we add in the IceNIC/IceBLK/SiFive UART drivers into the GFE linux kernel.
With those changes, Debian boots to login prompt in about 3-4 mins. Going to call this done and open a new issue for bringing up all the peripherals.
See #91
Generate a bootable OS binary for FireSim, login, and use all peripherals (block, ethernet, UART).