Skip to content

Commit

Permalink
k230 linux sdk release v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed Oct 18, 2024
1 parent 99674bd commit de0d362
Show file tree
Hide file tree
Showing 1,902 changed files with 931,762 additions and 263 deletions.
309 changes: 251 additions & 58 deletions .gitlab-ci.yml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ make linux-dirclean #linux clean
make menuconfig #buildroot(sdk) modify configuration
make savedefconfig #buildroot(sdk) savedefconfig
```

## ai_demo

[ai demo usage guide](https://developer.canaan-creative.com/k230_linux/dev/zh/01_software/K230_AI_Demo%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97.html)
15 changes: 12 additions & 3 deletions buildroot-overlay/board/canaan/k230-soc/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,25 @@ gz_file_add_ver()


local storage="$(echo "$f" | sed -nE "s#[^-]*-([^\.]*).*#\1#p")"
local conf_name="${CONF%%_defconfig}"

if [ "${CONF}" = "k230_canmv_defconfig" ] ; then
canaan_site_name="CanMV-K230";
elif [ "${CONF}" = "k230_evb_defconfig" ] ; then
canaan_site_name="EVB-K230";
else
canaan_site_name="${CONF%%_defconfig}" ;
fi



sdk_ver=$(awk -F- '/^sdk:/ { print $1}' ${sdk_ver_file} | cut -d: -f2 )

if [ -e "${nncase_ver_file}" ]; then
cat ${nncase_ver_file} | grep NNCASE_VERSION -w | cut -d\" -f 2 > /dev/null && \
nncase_ver=$(cat ${nncase_ver_file} | grep NNCASE_VERSION -w | cut -d\" -f 2)
fi
rm -rf ${conf_name}_linux_${sdk_ver}_nncase_v${nncase_ver}.img.gz;
ln -s $f ${conf_name}_linux_${sdk_ver}_nncase_v${nncase_ver}.img.gz;
rm -rf ${canaan_site_name}_linux_${sdk_ver}_nncase_v${nncase_ver}.img.gz;
ln -s $f ${canaan_site_name}_linux_${sdk_ver}_nncase_v${nncase_ver}.img.gz;
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
android_msg_level=1
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#K016-CW43-SW_20211022
# 2.4 GHz, 20 MHz BW mode

# The following parameter values are just placeholders, need to be updated.
manfid=0x2d0
prodid=0x0726
vendid=0x14e4
devid=0x43e2
boardtype=0x0726
boardrev=0x1101
boardnum=22
macaddr=00:90:4c:c5:12:38
sromrev=11
boardflags=0x00404201
xtalfreq=26000
nocrc=1
ag0=255
aa2g=1
ccode=CN
regrev=38

pa0itssit=0x20
extpagain2g=0

#PA parameters for 2.4GHz, measured at CHIP OUTPUT
pa2ga0=-215,5267,-656
AvVmid_c0=0x0,0xc8
cckpwroffset0=5

# PPR params
maxp2ga0=84
txpwrbckof=6
cckbw202gpo=0x6666
legofdmbw202gpo=0xaaaaaaaa
mcsbw202gpo=0xcccccccc

# OFDM IIR :
ofdmdigfilttype=18
ofdmdigfilttypebe=18
# PAPD mode:
papdmode=2

il0macaddr=00:90:4c:c5:12:38
wl0id=0x431b

#OOB parameters
hostwake=0x40
hostrdy=0x41
usbrdy=0x03
usbrdydelay=100
deadman_to=0xffffffff

ed_thresh2g=-54
eu_edthresh2g=-54

# muxenab: 0x1 for UART enable, 0x10 for Host awake
muxenab=0x10
# CLDO PWM voltage settings - 0x4 - 1.1 volt
#cldo_pwm=0x4
glitch_based_crsmin=1
3 changes: 2 additions & 1 deletion buildroot-overlay/configs/BPI-CanMV-K230D-Zero_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="bananapi-canmv-k230d-zero $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/bananapi-canmv-k230d-zero"
Expand Down Expand Up @@ -55,3 +55,4 @@ BR2_TARGET_UBOOT_BOARDNAME="k230d_canmv_bpi"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230d-canmv $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/bananapi-canmv-k230d-zero.dts"
Expand Down Expand Up @@ -53,3 +53,4 @@ BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_VG_LITE=y
BR2_PACKAGE_VG_LITE_DEMOS=y
BR2_PACKAGE_LVGL=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
3 changes: 2 additions & 1 deletion buildroot-overlay/configs/k230_canmv_01studio_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230-canmv-01studio $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/k230-canmv-01studio"
Expand Down Expand Up @@ -68,3 +68,4 @@ BR2_TARGET_UBOOT_BOARDNAME="k230_canmv_01studio"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
4 changes: 3 additions & 1 deletion buildroot-overlay/configs/k230_canmv_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230-canmv $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/k230-canmv"
Expand Down Expand Up @@ -73,3 +73,5 @@ BR2_TARGET_UBOOT_BOARDNAME="k230_canmv"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
3 changes: 2 additions & 1 deletion buildroot-overlay/configs/k230_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230-evb $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/k230-evb"
Expand Down Expand Up @@ -68,3 +68,4 @@ BR2_TARGET_UBOOT_BOARDNAME="k230_evb"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
3 changes: 2 additions & 1 deletion buildroot-overlay/configs/k230d_canmv_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230d-canmv $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/k230d-canmv"
Expand Down Expand Up @@ -51,3 +51,4 @@ BR2_TARGET_UBOOT_BOARDNAME="k230d_canmv"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
3 changes: 2 additions & 1 deletion buildroot-overlay/configs/k230d_canmv_ilp32_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="k230d-canmv $(LINUX_DIR)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ruyisdk/linux-xuantie-kernel.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5bbfb4fbf6326dbcba9d16c9ca9013e908a8074f"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b5c8e48a9ebf3f5726dc056f71430ddd3f598e07"
BR2_LINUX_KERNEL_DEFCONFIG="k230"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/k230d-canmv"
Expand Down Expand Up @@ -53,3 +53,4 @@ BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_VG_LITE=y
BR2_PACKAGE_VG_LITE_DEMOS=y
BR2_PACKAGE_LVGL=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
Loading

0 comments on commit de0d362

Please sign in to comment.