You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Targets.md
+58-29Lines changed: 58 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -831,63 +831,92 @@ Example one-shot command:
831
831
cp ./config/examples/polarfire_mpfs250.config .config && make clean && make wolfboot.elf && size wolfboot.elf && hss-payload-generator -vvv -c ./hal/mpfs.yaml wolfboot.bin && file wolfboot.bin && ls -la wolfboot.bin
832
832
```
833
833
834
-
#### Build PolarFire test-application, sign it and apply to uSD
834
+
### Flashing PolarFire SoC
835
+
836
+
The HSS MMC boot source looks for GPT with GUID "21686148-6449-6E6F-744E-656564454649" or sector "0" if no GPT found. That GUID is the default "BIOS" boot partition.
837
+
838
+
The resulting image from `hss-payload-generator` can be directly placed into GPT BIOS partition. The HSS tinyCLI supports the `USBDMSC` command to mount the eMMC or SD card as a USB device. You can then use "dd" to copy the boot image to the BOOT partition 2. Example:
839
+
840
+
```
841
+
sudo dd if=wolfboot.bin of=/dev/sdc2 bs=512
842
+
```
843
+
844
+
### PolarFire testing
845
+
846
+
This section describes how to build the test-application, create a custom uSD with required partitions and copying signing test-application to uSD partitions.
847
+
848
+
To use your own application (Linux FIT Image, ELF, etc) just replace test-app/image.elf with your own filename.
The HSS MMC boot source looks for GPT with GUID "21686148-6449-6E6F-744E-656564454649" or sector "0" if no GPT found. That GUID is the default "BIOS" boot partition.
874
-
875
-
The resulting image from `hss-payload-generator` can be directly placed into GPT BIOS partition. The HSS tinyCLI supports the `USBDMSC` command to mount the eMMC or SD card as a USB device. You can then use "dd" to copy the boot image to the BOOT partition 2. Example:
876
-
877
-
```
878
-
sudo dd if=wolfboot.bin of=/dev/sde2 bs=1024
879
893
```
894
+
Disk /dev/sdc: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk identifier: 9A5E3FBC-AAB2-483E-941C-7797802BD173
880
901
881
-
Flashing to eNVM:
882
-
883
-
The boot rom expects a 0x100 byte secure boot header added. It also requires the .ld is offset by 0x100 to leave room for this. The mpfsBootmodeProgrammer adds 0x100 of meta information for secure boot.
902
+
Device Start End Sectors Size Type
903
+
/dev/sdc1 2048 18431 16384 8M BIOS boot
904
+
/dev/sdc2 18432 149503 131072 64M Linux filesystem
905
+
/dev/sdc3 149504 280575 131072 64M Linux filesystem
906
+
/dev/sdc4 280576 62332927 62052352 29.6G Linux filesystem
0 commit comments