Skip to content

Commit

Permalink
k230 sdk release v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed Oct 13, 2023
1 parent 41f7d1c commit 562aeb7
Show file tree
Hide file tree
Showing 4,288 changed files with 1,100,052 additions and 42,852 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
30 changes: 19 additions & 11 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
# https://github.com/marketplace/actions/build-and-push-docker-images


on:
push:
branches: ['main']
paths: ['tools/docker/**']
pull_request:
branches: ['main']
paths: ['tools/docker/**']
#on:
# push:
# branches: ['main']
# paths: ['tools/docker/**']
# pull_request:
# branches: ['main']
# paths: ['tools/docker/**']

on:
release:
types: [released]

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -43,13 +47,17 @@ jobs:
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
#[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "main" ] && VERSION=latest
# [ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
echo "start to tag docker image"
echo "start to tag docker image with ver $VERSION"
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
echo "start to push docker image"
echo "start to tag docker image with latest tag"
docker tag $IMAGE_NAME $IMAGE_ID:latest
echo "start to push docker image with ver $VERSION"
docker push $IMAGE_ID:$VERSION
echo "start to push docker image with latest tag"
docker push $IMAGE_ID:latest
echo "finished to push docker image"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ prepare_memory
tools/post_copy_rootfs/etc/version/
**/__pycache__
**/.sconsign.dblite
board/common/gen_image_cfg/data/
board/common/post_copy_rootfs/app/
board/common/post_copy_rootfs/etc/version/
board/common/post_copy_rootfs/lib/
tools/tuning-tool-client/
7 changes: 4 additions & 3 deletions .gitlab-ci.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ build-image:
.generate_version: &generate_version
- echo "----------get version from file----------"
- pwd
- cat ./tools/post_copy_rootfs/etc/version/release_version || exit 1
- ver=$(cat ./tools/post_copy_rootfs//etc/version/release_version | grep ".*-gitlab-runner") || exit 1
- cat ./board/common/post_copy_rootfs/etc/version/release_version || exit 1
- ver=$(cat ./board/common/post_copy_rootfs//etc/version/release_version | grep ".*-gitlab-runner") || exit 1
- echo ${ver}
- echo "----------save version file to output----------"
- cp ./tools/post_copy_rootfs/etc/version/release_version ${SRC_DIR}/version || exit 1
- cp ./board/common/post_copy_rootfs/etc/version/release_version ${SRC_DIR}/version || exit 1
- ls -alht ${SRC_DIR}/version || exit 1
- cat ${SRC_DIR}/version || exit 1

Expand Down Expand Up @@ -239,3 +239,4 @@ build-image:
- echo "----------output URL----------"
- echo "${DST_DIR}/${SUB_DIR}/" | sed "s/\/data1/https:\/\/ai\.b-bug\.org/g"
- echo "----------save image done----------"

20 changes: 20 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ source Kconfig.board
source Kconfig.toolchain
source Kconfig.memory
source Kconfig.storage
source Kconfig.wifi

config SUPPORT_RTSMART
bool "support rt smart on core 1"
default y
help
support rt smart on core 1;

config SUPPORT_LINUX
bool "support linux "
default y
help
support linux ;

config LINUX_RUN_CORE_ID
depends on SUPPORT_LINUX
int "support linux on core id"
default 0
help
support linux on core num;

####################debug /realse version begain {
choice
prompt "build debug/release version"
Expand Down
25 changes: 25 additions & 0 deletions Kconfig.board
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ config BOARD_K230D
help
"siplp4 128MB ddr";

config BOARD_K230_CANMV
bool "K230 CANMV(K230PI)"
help
"CANMV(K230PI)";
endchoice

config BOARD_NAME
Expand All @@ -44,6 +48,12 @@ config UBOOT_DEFCONFIG
uboot defconfig ;
default "k230_evb"

config LINUX_DEFCONFIG
string "linux defconfig "
help
linux defconfig ;
default "k230_evb"

config LINUX_DTB
string "linux dtb name"
help
Expand All @@ -55,6 +65,21 @@ config REMOTE_TEST_PLATFORM
help
xxxe ;
default n
config GEN_IMG_SCRIPT
string "generate image scripte"
help
generate image scripte;
default "board/common/gen_image_script/gen_image.sh"
config RTT_CONSOLE_ID
int "RTT console id"
default 3

config SPI_NOR_SUPPORT_CFG_PARAM
bool "spi nor support cfg param"
depends on SPI_NOR
help
spi nor support cfg param ;
default y
endmenu


108 changes: 57 additions & 51 deletions Kconfig.memory
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,7 @@ config MEM_TOTAL_SIZE
hex "total memory size"
default 0x20000000

#MEM_PARAM_BASE
config MEM_QUICK_BOOT_CFG_BASE
hex "quick boot cfg memory address"
default 0x00000000
config MEM_QUICK_BOOT_CFG_SIZE
hex "quick boot cfg size"
default 0x00040000

config MEM_SENSOR_CFG_BASE
hex "sensor parameters memory address"
default 0x00040000
config MEM_SENSOR_CFG_SIZE
hex "sensor parameters memory size"
default 0x000c0000


if SUPPORT_RTSMART
config MEM_IPCM_BASE
hex "IPCM base memory address"
default 0x00100000
Expand All @@ -35,48 +20,69 @@ config MEM_RTT_SYS_SIZE
hex "rt-smart system memory size"
default 0x07e00000

config MEM_LINUX_SYS_BASE
hex "linux system base memory address"
default 0x08000000
config MEM_LINUX_SYS_SIZE
hex "linux system memory size"
default 0x08000000

config MEM_AI_MODEL_BASE
hex "AI model memory address"
default 0x10000000
config MEM_AI_MODEL_SIZE
hex "AI model memory size"
default 0x04000000

config MEM_FACE_DATA_BASE
hex "face database address"
default 0x14000000
config MEM_FACE_DATA_SIZE
hex "face database size"
default 0x00040000

config MEM_SPECKLE_BASE
hex "speckle pattern address"
default 0x14040000
config MEM_SPECKLE_SIZE
hex "speckle pattern size"
default 0x01000000

config MEM_MMZ_BASE
hex "MMZ base memory address"
default 0x18000000
config MEM_MMZ_SIZE
hex "MMZ memory size"
default 0x8000000
endif #SUPPORT_RTSMART

config MEM_RTAPP_BASE
hex "rtapp memory address"
default 0x18000000
config MEM_RTAPP_SIZE
hex "rtapp memory size"
default 0x8000000

if SUPPORT_LINUX
config MEM_LINUX_SYS_BASE
hex "linux system base memory address"
default 0x08000000
config MEM_LINUX_SYS_SIZE
hex "linux system memory size"
default 0x08000000
endif #SUPPORT_LINUX

menu "spi nor cfg part configuration"
depends on SPI_NOR_SUPPORT_CFG_PARAM && SPI_NOR

config MEM_QUICK_BOOT_CFG_BASE
hex "quick boot cfg memory address"
default 0x00000000
config MEM_QUICK_BOOT_CFG_SIZE
hex "quick boot cfg size"
default 0x00040000

config MEM_SENSOR_CFG_BASE
hex "sensor parameters memory address"
default 0x00040000
config MEM_SENSOR_CFG_SIZE
hex "sensor parameters memory size"
default 0x000c0000

config MEM_AI_MODEL_BASE
hex "AI model memory address"
default 0x10000000
config MEM_AI_MODEL_SIZE
hex "AI model memory size"
default 0x04000000

config MEM_FACE_DATA_BASE
hex "face database address"
default 0x14000000
config MEM_FACE_DATA_SIZE
hex "face database size"
default 0x00040000

config MEM_SPECKLE_BASE
hex "speckle pattern address"
default 0x14040000
config MEM_SPECKLE_SIZE
hex "speckle pattern size"
default 0x01000000

config MEM_RTAPP_BASE
hex "rtapp memory address"
default 0x18000000
config MEM_RTAPP_SIZE
hex "rtapp memory size"
default 0x8000000

endmenu
config MEM_BOUNDARY_RESERVED_SIZE
hex "reserved memory size, reserve 4K memory in each memeory boundary, to detect memory out of bounds access"
default 0x00001000
Expand Down
Loading

0 comments on commit 562aeb7

Please sign in to comment.