You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.1 KiB
Markdown

1 year ago
# Table of Contents
1 year ago
1. [About the Board](#orgd72d6fe)
2. [Creating a Bootable Yocto Linux Image](#org320b6b1)
1. [Create a workspace (OPTIONAL)](#org3ac88ae)
2. [Update the repo workspace](#orgf613432)
3. [Set up the Bitbake environment](#org5551fb8)
4. [Building Board Disk Image](#orge48b62d)
1. [Building a Linux Image with a root file system (RootFS)](#org260c449)
2. [Building a RAM-based Root Filestystem](#org920972e)
3. [Building a Linux Image for an external QSPI flash memory](#org31f047f)
4. [Flashing an SD Card](#org0ce15e7)
3. [References](#org47ba498)
1 year ago
1 year ago
<a id="orgd72d6fe"></a>
1 year ago
# About the Board
![img](./doc/img/PolarFire-Board.png)
1 year ago
<a id="org320b6b1"></a>
1 year ago
# Creating a Bootable Yocto Linux Image
We have two options: Create a new workspace, or we can use this repo as a workspace because this repo is my working workspace.
1 year ago
<a id="org3ac88ae"></a>
1 year ago
## Create a workspace (OPTIONAL)
mkdir yocto-dev && cd yocto-dev
repo init -u https://github.com/polarfire-soc/polarfire-soc-yocto-manifests.git -b main -m default.xml
1 year ago
<a id="orgf613432"></a>
1 year ago
## Update the repo workspace
repo sync
repo rebase
1 year ago
<a id="org5551fb8"></a>
1 year ago
## Set up the Bitbake environment
. ./meta-polarfire-soc-yocto-bsp/polarfire-soc_yocto_setup.sh
1 year ago
<a id="orge48b62d"></a>
1 year ago
## Building Board Disk Image
1 year ago
<a id="org260c449"></a>
1 year ago
### Building a Linux Image with a root file system (RootFS)
MACHINE=icicle-kit-es bitbake mpfs-dev-cli
1 year ago
<a id="org920972e"></a>
1 year ago
### Building a RAM-based Root Filestystem
MACHINE=icicle-kit-es bitbake -R conf/initramfs.conf mpfs-initramfs-image
1 year ago
<a id="org31f047f"></a>
1 year ago
### Building a Linux Image for an external QSPI flash memory
1 year ago
<a id="org0ce15e7"></a>
1 year ago
### Flashing an SD Card
zcat build/tmp-glibc/deploy/images/icicle-kit-es/mpfs-dev-cli-icicle-kit-es.wic.gz | sudo dd of=/dev/sdX bs=4096 iflag=fullblock oflag=direct conv=fsync status=progress
1 year ago
<a id="org47ba498"></a>
1 year ago
# References
1. [PolarFire SoC Yocto](https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp)
**\*\***