Skip to content

Commit 249c828

Browse files
dgarskedanielinux
authored andcommitted
Add kernel boot args (for rootfs). Added optional SD tuning support. Yocto Linux is fully working now!
1 parent 2e54cf7 commit 249c828

File tree

5 files changed

+305
-15
lines changed

5 files changed

+305
-15
lines changed

docs/Targets.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ n
883883
n
884884
4
885885
886+
886887
t
887888
1
888889
4
@@ -920,6 +921,9 @@ Device Start End Sectors Size Type
920921
2) Build, Sign and copy images
921922
922923
```sh
924+
# Copy wolfBoot to "BIOS" partition
925+
sudo dd if=wolfboot.bin of=/dev/sdc1 bs=512 && sudo cmp wolfboot.bin /dev/sdc1
926+
923927
# make test-app
924928
make test-app/image.elf
925929
@@ -930,8 +934,22 @@ sudo dd if=test-app/image_v1_signed.bin of=/dev/sdc2 bs=512 && sudo cmp test-app
930934

931935
4) Insert SDCARD into PolarFire and let HSS start wolfBoot. You may need to use `boot sdcard` or configure/build HSS to disable MMC / enable SDCARD.
932936

937+
### PolarFire Building Hart Software Services (HSS)
938+
939+
The Hart Software Services (HSS) is the zero-stage bootloader for the PolarFire SoC. It runs on the E51 monitor core and is responsible for system initialization, hardware configuration, and booting the U54 application cores. The HSS provides essential services including watchdog management, inter-processor communication (IPC), and loading payloads from various boot sources (eMMC, SD card, or SPI flash).
940+
941+
```sh
942+
git clone https://github.com/polarfire-soc/hart-software-services.git
943+
cd hart-software-services
944+
make clean
945+
make BOARD=mpfs-video-kit
946+
make BOARD=mpfs-video-kit program
947+
```
948+
933949
### PolarFire Building Yocto-SDK Linux
934950

951+
The Yocto Project provides a customizable embedded Linux distribution for PolarFire SoC. Microchip maintains the `meta-mchp` layer with board support packages (BSP), drivers, and example applications for their devices. The build system uses OpenEmbedded and produces bootable images that can be flashed to eMMC or SD card.
952+
935953
See:
936954
* https://github.com/linux4microchip/meta-mchp/blob/scarthgap/meta-mchp-common/README.md
937955
* https://github.com/linux4microchip/meta-mchp/blob/scarthgap/meta-mchp-polarfire-soc/README.md
@@ -958,6 +976,9 @@ Build images are output to: `./tmp-glibc/deploy/images/mpfs-video-kit/`
958976
#### Custom FIT image, signing and coping to SDCard
959977

960978
```sh
979+
# Copy wolfBoot to "BIOS" partition
980+
sudo dd if=wolfboot.bin of=/dev/sdc1 bs=512 && sudo cmp wolfboot.bin /dev/sdc1
981+
961982
# Extract GZIP compressed linux kernel to wolfboot root
962983
gzip -cdvk ../yocto-dev-polarfire/build/tmp-glibc/work/mpfs_video_kit-oe-linux/linux-mchp/6.12.22+git/build/linux.bin > kernel.bin
963984

@@ -1003,7 +1024,7 @@ sudo dd if=fitImage_v1_signed.bin of=/dev/sdc2 bs=512 status=progress && sudo cm
10031024
sudo dd if=fitImage_v1_signed.bin of=/dev/sdc3 bs=512 status=progress && sudo cmp fitImage_v1_signed.bin /dev/sdc3
10041025

10051026
# Copy root file system
1006-
sudo dd if=../yocto-dev-polarfire/build/tmp-glibc/deploy/images/mpfs-video-kit/mchp-base-image-sdk-mpfs-video-kit.rootfs.ext4 of=/dev/sdb4 bs=512 status=progress
1027+
sudo dd if=../yocto-dev-polarfire/build/tmp-glibc/deploy/images/mpfs-video-kit/mchp-base-image-sdk-mpfs-video-kit.rootfs.ext4 of=/dev/sdc4 bs=4M status=progress
10071028
```
10081029

10091030
### PolarFire Soc Debugging

hal/mpfs.dtb

-19.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)