Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update polarfire.md #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Hardware/polarfire.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,19 @@ fatload mmc 0 0x1000200000 seL4-uImage
fatload mmc 0 0x1020200000 kernel.dtb
bootm 0x1000200000 - 0x1020200000
```

## Booting on emulated Polarfire in QEMU

QEMU support emulation of the polarfire and can boot sel4test via direct kernel boot like this:

```
qemu-system-riscv64 -M microchip-icicle-kit -smp 5 -m 2G -display none -serial stdio -serial null -serial null -kernel images/sel4test-driver-image-riscv-polarfire -dtb mpfs_icicle.dtb
```

where the dtb is generated by running:

```
dtc -I dts -O dtb seL4/tools/dts/mpfs_icicle.dts > mpfs_icicle.dtb
Copy link
Member

@wom-bat wom-bat Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

dtc -I dts -O dtb ../kernel/tools/dts/mpfs_icicle.dts > mpfs_icicle.dtb

assuming your current directory is the same as for the QEMU command above.

```

note that the dtb has ommitted any overlays that were used by seL4 because they caused QEMU to not print to the UART.
Loading