Skip to content

Instantly share code, notes, and snippets.

View FrancescoConti's full-sized avatar

Francesco Conti FrancescoConti

View GitHub Profile

Looking to create a Software RAID 1 setup for your 2-disk server on Ubuntu Server 20.04?

Screen Shot 2020-06-05 at 20 55 31

Let's start with the basics: the official guide by Ubuntu (https://ubuntu.com/server/docs/install/storage) is outdated/wrong. And as of March 2021 it's possible that there's a bug as well with how the bios_grub partitions are created when using multiple disks.

Now on to the solution:

  • Select "Custom storage layout" when you reach the storage configuration step of the installer.
  • If the disks have existing partitions, click on each disk under AVAILABLE DEVICES and then select REFORMAT. This will (temporarily) wipe out the partitions.
@FrancescoConti
FrancescoConti / onnx_minitest.py
Created April 20, 2021 07:45
Small test for ONNX produced by NEMO
#
# Copyright (C) 2021 University of Bologna
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@FrancescoConti
FrancescoConti / mult.sv
Created November 14, 2019 16:33
Test 16b x 16b -> 32b multiplier
module mult(
input logic clk_i,
input logic rst_ni,
input logic signed [15:0] a_i,
input logic signed [15:0] b_i,
output logic signed [31:0] c_o
);
logic signed [15:0] a_q;
logic signed [15:0] b_q;
@FrancescoConti
FrancescoConti / postsynth.mk
Created March 8, 2019 09:46
Postsynth makefile example
#
# Copyright (C) 2019 ETH Zurich, University of Bologna
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
#
mkfile_path := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
IP=postsynth
@FrancescoConti
FrancescoConti / streamer.sv
Last active February 1, 2019 18:11
streamer ++
/*
* mac_streamer.sv
* Francesco Conti <fconti@iis.ee.ethz.ch>
*
* Copyright (C) 2018 ETH Zurich, University of Bologna
* Copyright and related rights are licensed under the Solderpad Hardware
* License, Version 0.51 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law
* or agreed to in writing, software, hardware and materials distributed under