ALL IN ONE SDK install script for linux or bash on windows


  • Staff

    ok, I found how to edit post...

    https://github.com/manageryzy/k210-install

    just run wget https://raw.githubusercontent.com/manageryzy/k210-install/master/install.sh && chmod +x install.sh && bash install.sh

    it will download SDK,toolchains,openocd,demos and generate a EVN file like this:

    #!/bin/bash
    export PATH=/mnt/d/work/k210_install/kendryte/kendryte-openocd/bin:/mnt/d/work/k210_install/kendryte/kendryte-toolchain/bin:$PATH
    alias k210gdb='riscv64-unknown-elf-gdb --eval-command="target remote localhost:3333"'
    alias k210openocd='cmd.exe /C "D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\bin\openocd.exe -f D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\tcl\openocd.cfg "'
    alias k210openocd-m0='cmd.exe /C "D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\bin\openocd.exe -f D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\tcl\openocd.cfg -m0 "'
    alias k210openocd-m1='cmd.exe /C "D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\bin\openocd.exe -f D:\work\k210_install\kendryte\kendryte-openocd-0.1.3\tcl\openocd.cfg -m1 "'
    alias k210freertos-cmake='cmake -DSDK_ROOT=$FREERTOS_SDK_DIR -DTOOLCHAIN=$K210_TOOLCHAIN'
    alias k210standalone-cmake='cmake -DSDK_ROOT=$STANDALONE_SDK_DIR -DTOOLCHAIN=$K210_TOOLCHAIN'
    alias k210cmake='cp /mnt/d/work/k210_install/kendryte/CMakeLists_DEMO.txt CMakeLists.txt'
    
    export FREERTOS_SDK_DIR=/mnt/d/work/k210_install/kendryte/kendryte-freertos-sdk
    export STANDALONE_SDK_DIR=/mnt/d/work/k210_install/kendryte/kendryte-standalone-sdk
    export K210_TOOLCHAIN=/mnt/d/work/k210_install/kendryte/kendryte-toolchain/bin
    
    echo 'k210 env setup'
    
    

    and this script can test sdk demo if you want

    welcome star watch and pr on github


  • Staff

    @kprasadvnsi forum editor mess up my code, and I don't know how to fix it



  • @manageryzy what do you mean by "script was destroyed by the editor" ?


  • Staff


  • Staff

    I found the script was destroyed by the editor

    i upload to amazon

    https://s3-ap-northeast-1.amazonaws.com/kagurazaka-mana/k210/install.sh

    you can run it by wget https://s3-ap-northeast-1.amazonaws.com/kagurazaka-mana/k210/install.sh -O install.sh && chmod +x install.sh && bash install.sh


  • Staff |  Mod

    Brilliant!