Back in March, I was fortunate enough to pick up an interesting little cheap RISC-V board off AliExpress and begin messing around. There was a buildroot patch released which compiled well but didn’t include full functionality at the time.
The following will provide the steps I took to build the K210 image for my MAiX BiT from a staging repo, but will eventually be available from Buildroot’s master repo
The K210 changes didn’t exist in the Buildroot’s master during the time of testing, so Damien’s repo is referenced until changes are merged
# git clone https://github.com/damien-lemoal/buildroot.git
or
# git clone git://git.buildroot.net/buildroot
Here’s the fun part
# make kendryte_k210_defconfig
# make menuconfig
This part copies over the K210 config an allows you to change packages and settings before compiling the final binary
Once you’ve made your final changes, its time to bring everything together
# make -j 8
(8 because that’s how many cores I have, feel free to add or subtract)
We’re almost there, now its time to copy that image onto the K210’s memory
# kflash -B bit_mic -b 115200 -p /dev/ttyUSB0 output/images/loader.bin
Mine board is a SiPEED MAiX BiT, but kflash supports other boards as well:
“kd233”, “dan”, “bit”, “bit_mic”, “goE”, “goD”, “maixduino”, “trainer”
(Also, I was only able to get 115200 baud to work, higher speeds may work on other boards)
Your board is ready for use. Fire up your serial monitor and connect at 115200 baud
# screen /dev/ttyUSB0 115200
You should be presented with a prompt. Have Fun!
Vowstar’s Nommu Github
Damien’s Buildroot Github
Buildroot K210 Patch Thread