[PATCH v2 1/2] riscv: Support booting SiFive Unmatched from SPI.
Thomas Skibo
thomas-git at skibo.net
Wed Nov 24 21:11:42 CET 2021
On 11/23/21 8:39 PM, Sean Anderson wrote:
> On 11/23/21 11:27 PM, Thomas Skibo wrote:
>> +
>> +
>> +Booting from SPI
>> +----------------
>> +
>> +Use Building steps from "Booting from uSD using U-Boot SPL" section.
>> +
>> +Partition the SPI in Linux via mtdblock.
>> +
>> +.. code-block:: none
>> +
>> + sgdisk --clear -a 1 \
>> + --new=1:40:2087 --change-name=1:spl
>> --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 \
>> + --new=2:2088:10279 --change-name=2:uboot
>> --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 \
>> + --new=3:10280:10535 --change-name=3:env
>> --typecode=3:0FC63DAF-8483-4772-8E79-3D69D8477DE4 \
>
> nit: Please use hexcodes as printed with sgdisk -L. And also document
> what the type is. Documentation is for us humans after all :)
>
> --Sean
>
The first two partitions' typecodes are unique to the SiFive chip so
they don't have a short hexcode. The third partition, storage for the
environment, is hexcode 8300 which is a Linux filesystem. I wonder if
there is better partition type for the environment.
I can change the typecode for the third partition and add a note about
what the other partitions are.
-Thomas
More information about the U-Boot
mailing list