question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test SDCard boot with OrangeCrab

See original GitHub issue

I just added SDCard SPI-Mode support to the OrangeCrab with: https://github.com/litex-hub/litex-boards/commit/6e6b6dac5524e2b9ebef0d3d1be316674a7bd012 and https://github.com/litex-hub/linux-on-litex-vexriscv/commit/dc61f0acf95506b08e8486e33590ff9ddf8b3095 but don’t have the harware to test it.

@pdp7, @gregdavill interested in testing? 😃

If so, you can use the attached bitstream and copy the attached images to a FAT16 formated SDCard.

Then just try to boot with spisdcardboot command. (that’s possible you’ll have to type it twice since the SDCard does not always seem to be initialized correctly the first time).

orangecrab_linux_images.zip orangecrab_bitstream_with_spisdcard.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:29 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
enjoy-digitalcommented, Mar 28, 2020

@pdp7: you should be able to build it with upstream repos. ValentyUSB is automatically cloned when building the OrangeCrab bitstream: https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/make.py#L221.

0reactions
enjoy-digitalcommented, Jun 20, 2020

The code has been refactored (to use FatFs and allow FAT16/FAT32 partitions), performance has been improved (>1MB/s transfers) and has been tested recently on the OrangeCrab: https://twitter.com/enjoy_digital/status/1271128930385362947

A new wiki page that explains the different boot options is also available at: https://github.com/enjoy-digital/litex/wiki/Load-Application-Code-To-CPU

Read more comments on GitHub >

github_iconTop Results From Across the Web

Summer of FPGAs -- OrangeCrab Dev Bd - Review
The board comes pre-loaded with a USB DFU bootloader (Open source), so users can load new FPGA code (bitstreams aka gateware) or RISC-V...
Read more >
OrangeCrab - 1BitSquared
The OrangeCrab is a feather form factor electronics development board. For the Lattice ECP5 ... Pre-loaded DFU bootloader (No external programmer required!)
Read more >
Guide: Working with SD Cards - CS107e
The Raspberry Pi card reader slot accepts an un-jacketed micro-SD card. ... The Pi boot sequence next looks for a file called kernel.img...
Read more >
SD card/USB boot device revised guidance (85685)
There is no way to reliably check and monitor for the SD card endurance, as these devices usually do not provide support for...
Read more >
litex setup
The Debian microSD card was set up with the kernel, rootfs, ... up host network load a MicroPython binary and boot it on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found