patchutils python screen texinfo unzip zlib1g-dev
Clone the freedom-u-sdk Repository
After installing the prerequisite packages, clone and initialize the
freedom-u-sdk
with these
commands:
git clone https://github.com/sifive/freedom-u-sdk.git
cd freedom-u-sdk
git checkout v1_0
git submodule update --init --recursive
Note: this command can take up to thirty minutes or one hour to complete.
Once the repository has been cloned and its sub-modules initialized, you are ready to build the
system. Simply issue a
make
command from the
freedom-u-sdk
directory:
unset RISCV
make
Note: this command can take several hours on a fast machine.
Assuming all prerequisite packages were installed and the
freedom-u-sdk
repository’s sub-
modules were successfully initialized, the
make
command from the previous step
should
com-
plete with a message describing how to copy the boot image to an SD card.
Before executing this command, you will need to know the device name of your SD card. You
will also need to delete Master Boot Record (MBR) partitions from the SD card and create a
GUID Partition Table with no partitions defined.
Under current revisions of Ubuntu Linux, it is not uncommon for SD cards to be auto-mounted
upon insertion if they contain a valid partition table and file system. You may use the
mount
command to determine if this is the case. They should be unmounted before proceeding.
For example purposes, we will assume the device name of your SD card is
/dev/exb
. (This is
almost certainly
not
the name of an actual device; you will need to substitute the name of your
actual SD card device for
/dev/exb
in the commands which follow.)
If your SD card was auto-mounted when you inserted it, you can likely find the device name by
running the
mount
command. You may also find the name of the device by running the
dmesg
command and looking for log entries with the word "mounted".
If this is the first time you have installed a
freedom-u-sdk
image onto an SD card, it likely still
has a legacy partition table in the Master Boot Record. Before proceeding, you must delete par-
16