Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Correct freedom-u-sdk branch / known-good SD Card image for U500 VC707? #38

Closed
ilebedev opened this issue Oct 16, 2017 · 9 comments
Closed

Comments

@ilebedev
Copy link

I am having a whole lot of trouble finding a working combination of hardware and SD card image for the u500 on a VC707. By way of a sanity check, I am trying to get vanilla hardware and software to boot.

I have in the past successfully done this with older versions of the repository.

I have tried the following hardware:

And the following software

  • some older vanilla freedom-u-sdk I had on an SD from a few months ago
  • Unmodified build of the latest, Dec 2 freedom-u-sdk, master branch.
  • Unmodified build of the latest, Jun 27 freedom-u-sdk, priv-1.10 branch.

In all cases, the result is the same: the bootloader runs, but fails to boot linux:

INIT
CMD0
CMD8
ACMD41
CMD58
CMD16
CMD18
LOADING  
BOOT

followed by nothing. I suspect some sort of disagreement between the priv ABI enforced by hardware, and expected by software.

These builds take a long time; any pointers would be greatly appreciated.
Is there a pre-built, known-good SD card image somewhere? This would sure help reduce the search space for this issue. Please advise.

Thanks in advance,
-ilia

@davidmin7
Copy link

davidmin7 commented Oct 18, 2017

I'm having exactly the same problem. I was trying to backtrace the problem and found something is going wrong at riscv-pk/machine/minit.c line #27 with the old vanilla branch. The statement makes u500 to print something but at the end it hangs at do_tohost_fromhost where you cannot escape the infinite loop. Don't know the reason.

+ for the new freedom-u-sdk, it hangs at riscv-pk/machine/mentry.S line# 277. It is waiting for the interrupt but it never happens. Mine doesn't have pcie so I might be getting the error for a different reason.

@saurabhpb22
Copy link

I too am having the same issue although I am trying to boot with out the FMC PCI board. I have made changes accordingly to work without the FMC but I get stuck at the same state as the above prints. I kept doubting my changes (as there was no way for me to test the base code) however thanks to this post I think there might be some issue with base SiFive code.

@terpstra
Copy link
Contributor

terpstra commented Nov 2, 2017

@palmer-dabbelt @henrystyles Is the freedom-u-sdk/master in-sync with the (very old) vc707 image on our site? We should probably also provide a newer vc707 image compatible with the latest (hopefully final) revision of the privileged spec...

@palmer-dabbelt
Copy link

Ya, we need to bump everything. If freedom/master is updated then I can go deal with the software.

@terpstra
Copy link
Contributor

terpstra commented Nov 2, 2017

I think the main effort required is to create a new VC707 image using only open-source stuff.

@ilebedev
Copy link
Author

ilebedev commented Nov 2, 2017

I am unable to get work done for nearly a month now because of this issue. Happy to build the images myself, but unclear which freedom-u-sdk is compatible with recent commits to freedom.

Is there a specific freedom-u-sdk commit that is known to boot on 22ee433 in freedom? If not, perhaps a specific earlier earlier commit to freedom? Trying pairs until a working one is found is extremely time consuming and a huge waste of time if somoene on this list knows the answer.. Surely someone here knows the answer.

Any info would help here, thanks,

@terpstra
Copy link
Contributor

terpstra commented Nov 4, 2017

freedom/master should work with freedom-u-sdk/master now. Furthermore, we are preparing an updated freedom-u-sdk which should better support FPGAs.

@ilebedev
Copy link
Author

ilebedev commented Nov 7, 2017

Hi @terpstra, thanks for the update.

A small correction, in case anyone is stuck: freedom/master successfully boots with freedom-u-sdk/priv-1.10. (/new immediately panics, and /master has seen no updates and exhibits the same opaque failure to boot).

@terpstra
Copy link
Contributor

terpstra commented Nov 7, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants