> But does not check what was on the 
> partitions before, or if they were used at all or not.

This is what our impish image looks like:

Number  Start (sector)    End (sector)  Size       Code  Name
   1          235554         7339998   3.4 GiB     8300  
  12          227362          235553   4.0 MiB     8300  CIDATA
  13              34            2081   1024.0 KiB  FFFF  loader1
  14            2082           10273   4.0 MiB     FFFF  loader2
  15           10274          227361   106.0 MiB   EF00

Partitions 13 and 14 are only protective partitions. They are not needed
at all to boot via U-Boot.

The place to flash U-Boot SPL (sector 34) is hard coded in the boot ROM.
The offset of 1 MiB to main U-Boot is encoded as jump address in OpenSBI.
The total length of main U-Boot is well below 4 MiB. But those 4 MiB will be 
large enough to install EDK II once released.

If U-Boot was previously installed it cannot be in a different place.

What you could check is that no partition with data (type 8300, EF00,
...) collides with what you flash.

Best regards

Heinrich

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936370

Title:
  u-boot-sifive does not upgrade u-boot on disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/1936370/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to