GaloisInc / BESSPIN-CloudGFE

The AWS cloud deployment of the BESSPIN GFE platform.
Apache License 2.0
2 stars 2 forks source link

Boot Debian in FireSim #80

Closed dhand-galois closed 4 years ago

dhand-galois commented 4 years ago

Generate a bootable OS binary for FireSim, login, and use all peripherals (block, ethernet, UART).

dhand-galois commented 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

dmzimmerman commented 4 years ago

I guess this is a randomness/entropy issue?

dhand-galois commented 4 years ago

Fixed the issues with Debian by following these steps:

The 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.

kiniry commented 4 years ago

See #91