Skip to content

Commit 7897bd8

Browse files
committed
Progress with eMMC/SD driver
1 parent 4b542f5 commit 7897bd8

File tree

5 files changed

+459
-53
lines changed

5 files changed

+459
-53
lines changed

.github/workflows/test-build-riscv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ jobs:
111111
- name: Build wolfboot (riscv32)
112112
if: ${{ inputs.arch == 'riscv' }}
113113
run: |
114-
make CROSS_COMPILE=riscv32-unknown-elf- FREEDOM_E_SDK=$GITHUB_WORKSPACE/freedom-e-sdk ${{inputs.make-args}}
114+
# using riscv64 for now since riscv32 is missing "zicsr" extension
115+
make CROSS_COMPILE=riscv64-unknown-elf- FREEDOM_E_SDK=$GITHUB_WORKSPACE/freedom-e-sdk ${{inputs.make-args}}
115116
116117
- name: Build wolfboot (riscv64))
117118
if: ${{ inputs.arch == 'riscv64' }}

docs/Targets.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,40 @@ set architecture riscv:rv64
876876
#thread apply all set $pc=_start
877877
```
878878

879+
### PolarFire Example Boot Output
880+
881+
```
882+
disk_open: drv = 0
883+
mmc_set_timeout: timeout_us: 500000, tcfclk_khz: -824320848 (mhz: 3470646), timeout_val: 500000, dtcv: 15
884+
mmc_set_clock: clock_khz: 400, freq_khz: 400
885+
mmc_send_cmd: cmd_index: 0, cmd_arg: 00000000, resp_type: 0
886+
mmc_send_cmd: cmd_index: 8, cmd_arg: 00000100, resp_type: 9
887+
mmc_init: xpc:0, si8r:1, max_ma (3.3v:128 1.8v:128)
888+
mmc_send_cmd: cmd_index: 55, cmd_arg: 00000000, resp_type: 1
889+
mmc_send_cmd: cmd_index: 41, cmd_arg: 00000000, resp_type: 4
890+
ocr_reg: 0x40FF8000
891+
mmc_init: sending OCR arg: 0x41200000
892+
mmc_send_cmd: cmd_index: 55, cmd_arg: 00000000, resp_type: 1
893+
mmc_send_cmd: cmd_index: 41, cmd_arg: 41200000, resp_type: 4
894+
ocr_reg: 0x40FF8000
895+
mmc_send_cmd: cmd_index: 55, cmd_arg: 00000000, resp_type: 1
896+
mmc_send_cmd: cmd_index: 41, cmd_arg: 41200000, resp_type: 4
897+
ocr_reg: 0xC1FF8000
898+
mmc_send_cmd: cmd_index: 11, cmd_arg: 00000000, resp_type: 1
899+
mmc_send_cmd: cmd_index: 2, cmd_arg: 00000000, resp_type: 3
900+
mmc_send_cmd: cmd_index: 3, cmd_arg: 00000000, resp_type: 8
901+
mmc_init: rca: 43690
902+
mmc_send_cmd: cmd_index: 9, cmd_arg: AAAA0000, resp_type: 3
903+
mmc_init: sector size: 512
904+
mmc_init: sector count: 62333952
905+
mmc_send_cmd: cmd_index: 7, cmd_arg: AAAA0000, resp_type: 2
906+
Checking primary OS image in 0,1...
907+
Checking secondary OS image in 0,2...
908+
No valid OS image found in either partition 1 or 2
909+
wolfBoot: PANIC!
910+
```
911+
912+
879913
### PolarFire TODO
880914

881915
1) Add support for full HSS replacement using wolfboot.

0 commit comments

Comments
 (0)