Quick start
This page is the shortest path from a checkout to a running board. The build and boot pages hold the details; the simulator on the overview page is available if you do not have the board yet.
Prerequisites
Section titled “Prerequisites”- A Yuzuki CardSight board and a USB cable for its OTG port.
- A TF card for testing.
- A USB-UART adapter on UART0: PH13/PH14, 115200 8N1.
xfelfor FEL loads and SPI NOR writes.- The XuanTie-900 GCC elf newlib toolchain, exposed through
XUANTIE_TOOLCHAIN. - Git, CMake 3.20 or newer, and a C compiler for the host tests.
- For the documentation site only: Node.js, Emscripten and Doxygen.
git clone --recurse-submodules https://github.com/YuzukiHD/CardSight.gitcd CardSightexport XUANTIE_TOOLCHAIN=/path/to/Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0cd softwarecmake --preset riscvcmake --build build/riscvThe images are written to software/build/riscv/images/:
| File | Purpose |
|---|---|
init_psram_efex.bin |
Initialises PSRAM on the E907 and returns to FEL |
cardsight.bin |
C907 application image, linked at 0x12000000 |
c907_boot_efex.bin |
Releases the C907 at entry 0x12000000 |
No prebuilt images are published. If you only want to inspect the UI, use the simulator on the overview page instead.
Load into RAM
Section titled “Load into RAM”With the board in FEL mode:
xfel write 0x00100000 software/build/riscv/images/init_psram_efex.binxfel exec 0x00100000xfel write 0x12000000 software/build/riscv/images/cardsight.binxfel write 0x00100000 software/build/riscv/images/c907_boot_efex.binxfel exec 0x00100000xfel write copies the files into SRAM and PSRAM. It does not program the SPI NOR, and the image is
lost on power-off.
Flash SPI NOR
Section titled “Flash SPI NOR”To keep firmware across power cycles, write a boot image to the SPI NOR with
xfel spinor write <address> <image>. Back up the existing flash with xfel spinor read first, and
read the written range back to verify it. The address and image must match the board’s boot layout;
the RAM images above are not a NOR boot image. The complete commands, the eFEX split and the memory
map are in Flashing and boot.
First boot
Section titled “First boot”Open the UART at 115200 8N1. The firmware starts the console, then the application, and the UI is drawn on the panel. The prompt is:
cardsight>Useful first checks:
cardsight> mmccardsight> blkmmc reports the card identity, mode and tuning state. blk lists mmcblk0 and its partitions.
Insert a TF card if the slot is empty; the hot-plug task identifies it and publishes the disk.
The five-page UI is described in On-screen UI. Use Stop safely before removing the card while USB or the storage proxy is running.
Next steps
Section titled “Next steps”- On-screen UI: the five pages and their controls.
- Card and files: partition and filesystem operations.
- USB export: export the card or a proxy view to a host.
- Shell commands: the complete serial command reference.
- Build and Testing: contributor workflows.