Open minexo79 opened 2 years ago
First, u should confirm the existence of your board. $ls /dev/tty.usb or $ls /dev/ttyUSB* u need check your serialprot shows in the system.
This Two port is existed when I plugged it to computer. (/dev/ttyUSB0
, /dev/ttyUSB1
)
@minexo79 thanks for giving this a try! Some boards have their quirks and need some special handling.
Have you built for the board in the basic LiteX environment (outside of CFU Playground) and interacted with the BIOS?
The next step would be to try running the LiteX bare metal demo, to confirm that software can be loaded by the BIOS.
@tcal-x Thanks your helping! Next time I will try.
@minexo79 let me know if you want some hints about the "basic LiteX" build for your board.
@tcal-x I Found the problem!
The CFU Playground Command make prog
just only flash bitstream into sram, but LiteX needs bios/bootloader.
In basic LiteX, Type litex_boards.targets.<board name> --flash
can flash bitstream to embbed flash and bios to external flash.
@minexo79 Ok, then it's a bit like Fomu. With Fomu, we flash the bitstream and the binary together (to the same external flash).
There is board-specific code to handle it here: https://github.com/google/CFU-Playground/blob/main/soc/board_specific_workflows/kosagi_fomu.py
I'm not sure if the exact same approach (building a single image to flash) will work with the Tang Nano 9k, but perhaps it is a good starting point.
Or, we might change CFU Playground to directly use the LiteX flash utility for the 9k board.
Im simply write some note to record my operation that can successfully run CFU In my tang nano 9k, hope It can help! https://hackmd.io/@minexo79/rkuYE0FUq
I'm Try To Run CFU-Playground in Tang Nano 9K, But It's Stucked. The Command:
The Output:
The Program Was Stucked At Last Output. I'm Also Try To Tun Same Command With Another Com Port(
/dev/ttyUSB0
), But Result is same: