diff --git a/.github/workflows/fh8632_images.yml b/.github/workflows/fh8632_images.yml index 255015f3..9582449b 100644 --- a/.github/workflows/fh8632_images.yml +++ b/.github/workflows/fh8632_images.yml @@ -1,4 +1,4 @@ -name: FH8632 +name: "FH8632 " on: workflow_dispatch: @@ -62,9 +62,12 @@ jobs: make PLATFORM=fullhan BOARD=unknown_unknown_fh8632_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... FH8632" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... FH8632" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.fh8632 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.fh8632 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8632 uImage.fh8632 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.fh8632 + mv rootfs.squashfs rootfs.squashfs.fh8632 + md5sum rootfs.squashfs.fh8632 > rootfs.squashfs.fh8632.md5sum + md5sum uImage.fh8632 > uImage.fh8632.md5sum + tar -cvzf $ARCHIVE_FW *fh8632* - name: Build FH8632 SDK id: build-fh8632-sdk diff --git a/.github/workflows/fh8852_images.yml b/.github/workflows/fh8852_images.yml index 7e67f70f..dc9ae42e 100644 --- a/.github/workflows/fh8852_images.yml +++ b/.github/workflows/fh8852_images.yml @@ -1,4 +1,4 @@ -name: FH8852 +name: "FH8852 " on: workflow_dispatch: @@ -62,9 +62,12 @@ jobs: make PLATFORM=fullhan BOARD=unknown_unknown_fh8852_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... FH8852" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... FH8852" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.fh8852 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.fh8852 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8852 uImage.fh8852 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.fh8852 + mv rootfs.squashfs rootfs.squashfs.fh8852 + md5sum rootfs.squashfs.fh8852 > rootfs.squashfs.fh8852.md5sum + md5sum uImage.fh8852 > uImage.fh8852.md5sum + tar -cvzf $ARCHIVE_FW *fh8852* - name: Build FH8852 SDK id: build-fh8852-sdk diff --git a/.github/workflows/fh8856_images.yml b/.github/workflows/fh8856_images.yml index c26c0347..42c0041e 100644 --- a/.github/workflows/fh8856_images.yml +++ b/.github/workflows/fh8856_images.yml @@ -1,4 +1,4 @@ -name: FH8856 +name: "FH8856 " on: workflow_dispatch: @@ -62,9 +62,12 @@ jobs: make PLATFORM=fullhan BOARD=unknown_unknown_fh8856_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... FH8856" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... FH8856" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.fh8856 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.fh8856 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8856 uImage.fh8856 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.fh8856 + mv rootfs.squashfs rootfs.squashfs.fh8856 + md5sum rootfs.squashfs.fh8856 > rootfs.squashfs.fh8856.md5sum + md5sum uImage.fh8856 > uImage.fh8856.md5sum + tar -cvzf $ARCHIVE_FW *fh8856* - name: Build FH8856 SDK id: build-fh8856-sdk diff --git a/.github/workflows/gk7102s_images.yml b/.github/workflows/gk7102s_images.yml index 50b5c312..3ac4e647 100644 --- a/.github/workflows/gk7102s_images.yml +++ b/.github/workflows/gk7102s_images.yml @@ -1,4 +1,4 @@ -name: GK7102S +name: "GK7102S " on: workflow_dispatch: @@ -62,8 +62,9 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7102s_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7102S" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7102S" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7102s - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7102s + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7102s + mv rootfs.squashfs rootfs.squashfs.gk7102s tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8856 uImage.gk7102s - name: Build GK7102S SDK diff --git a/.github/workflows/gk7202v300_images.yml b/.github/workflows/gk7202v300_images.yml index 17682130..3c341b93 100644 --- a/.github/workflows/gk7202v300_images.yml +++ b/.github/workflows/gk7202v300_images.yml @@ -1,4 +1,4 @@ -name: GK7202v300 +name: "GK7202v300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7202v300_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7202V300" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7202V300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7202v300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7202v300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.gk7202v300 uImage.gk7202v300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7202v300 + mv rootfs.squashfs rootfs.squashfs.gk7202v300 + md5sum rootfs.squashfs.gk7202v300 > rootfs.squashfs.gk7202v300.md5sum + md5sum uImage.gk7202v300 > uImage.gk7202v300.md5sum + tar -cvzf $ARCHIVE_FW *gk7202v300* - name: Build GK7202v300 SDK id: build-gk7202v300-sdk diff --git a/.github/workflows/gk7205v200_fpv_images.yml b/.github/workflows/gk7205v200_fpv_images.yml index 21f13fea..ec73f4b9 100644 --- a/.github/workflows/gk7205v200_fpv_images.yml +++ b/.github/workflows/gk7205v200_fpv_images.yml @@ -1,4 +1,4 @@ -name: GK7205v200 (fpv) +name: "GK7205v200 (fpv) " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7205v200_fpv all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7205V200 (fpv)" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7205V200 (fpv)" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7205v200-fpv - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7205v200-fpv - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.gk7205v200-fpv uImage.gk7205v200-fpv + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7205v200-fpv + mv rootfs.squashfs rootfs.squashfs.gk7205v200-fpv + md5sum rootfs.squashfs.gk7205v200-fpv > rootfs.squashfs.gk7205v200-fpv.md5sum + md5sum uImage.gk7205v200-fpv > uImage.gk7205v200-fpv.md5sum + tar -cvzf $ARCHIVE_FW *gk7205v200-fpv* - name: Build GK7205v200 (fpv) SDK id: build-gk7205v200-fpv-sdk diff --git a/.github/workflows/gk7205v200_images.yml b/.github/workflows/gk7205v200_images.yml index a138b6a1..bf52ed9a 100644 --- a/.github/workflows/gk7205v200_images.yml +++ b/.github/workflows/gk7205v200_images.yml @@ -1,4 +1,4 @@ -name: GK7205v200 +name: "GK7205v200 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7205v200_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7205V200" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7205V200" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7205v200 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7205v200 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.gk7205v200 uImage.gk7205v200 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7205v200 + mv rootfs.squashfs rootfs.squashfs.gk7205v200 + md5sum rootfs.squashfs.gk7205v200 > rootfs.squashfs.gk7205v200.md5sum + md5sum uImage.gk7205v200 > uImage.gk7205v200.md5sum + tar -cvzf $ARCHIVE_FW *gk7205v200* - name: Build GK7205v200 SDK id: build-gk7205v200-sdk diff --git a/.github/workflows/gk7205v300_images.yml b/.github/workflows/gk7205v300_images.yml index 3b75922d..18399dec 100644 --- a/.github/workflows/gk7205v300_images.yml +++ b/.github/workflows/gk7205v300_images.yml @@ -1,4 +1,4 @@ -name: GK7205v300 +name: "GK7205v300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7205v300_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7205V300" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7205V300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7205v300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7205v300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.gk7205v300 uImage.gk7205v300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7205v300 + mv rootfs.squashfs rootfs.squashfs.gk7205v300 + md5sum rootfs.squashfs.gk7205v300 > rootfs.squashfs.gk7205v300.md5sum + md5sum uImage.gk7205v300 > uImage.gk7205v300.md5sum + tar -cvzf $ARCHIVE_FW *gk7205v300* - name: Build GK7205v300 SDK id: build-gk7205v300-sdk diff --git a/.github/workflows/gk7605v100_images.yml b/.github/workflows/gk7605v100_images.yml index ed698ce4..2d59d509 100644 --- a/.github/workflows/gk7605v100_images.yml +++ b/.github/workflows/gk7605v100_images.yml @@ -1,4 +1,4 @@ -name: GK7605v100 +name: "GK7605v100 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=goke BOARD=unknown_unknown_gk7605v100_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7605V100" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7605V100" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.gk7605v100 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.gk7605v100 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.gk7605v100 uImage.gk7605v100 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.gk7605v100 + mv rootfs.squashfs rootfs.squashfs.gk7605v100 + md5sum rootfs.squashfs.gk7605v100 > rootfs.squashfs.gk7605v100.md5sum + md5sum uImage.gk7605v100 > uImage.gk7605v100.md5sum + tar -cvzf $ARCHIVE_FW *gk7605v100* - name: Build GK7605v100 SDK id: build-gk7605v100-sdk diff --git a/.github/workflows/hi3516av100_images.yml b/.github/workflows/hi3516av100_images.yml new file mode 100644 index 00000000..b56a6f3a --- /dev/null +++ b/.github/workflows/hi3516av100_images.yml @@ -0,0 +1,136 @@ +name: "Hi3516Av100 " + +on: + push: + branches: + - production + tags: + - "v*" + schedule: + - cron: "00 03 * * *" + workflow_dispatch: + +jobs: + build_core: + name: OpenIPC v2.1 for Hi3516Av100 + runs-on: ubuntu-latest + + steps: + + - name: Checkout + id: checkout + uses: actions/checkout@v2 + + - name: Install build dependencies + id: install + run: | + make install-deps + mkdir -p tmp + + - name: Free disk space + id: freshing + run: | + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + docker rmi $(docker image ls -aq) + df -h + + - name: Prepare buildroot + id: prepare + run: | + HEAD_TAG=$(git tag --points-at HEAD) + GIT_HASH=$(git rev-parse --short $GITHUB_SHA) + BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) + if [ -z "$HEAD_TAG" ]; then + TAG_NAME="latest" + RELEASE_NAME="Development Build" + PRERELEASE=true + else + TAG_NAME=${{ github.ref }} + RELEASE_NAME="Release ${{ github.ref }}" + PRERELEASE=false + fi + echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV + echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV + echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV + echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV + cd $GITHUB_WORKSPACE + make prepare + + - name: Build Hi3516Av100 firmware + id: build-hi3516av100-firmware + continue-on-error: true + run: | + ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.hi3516av100-br.tgz" + echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV + cd $GITHUB_WORKSPACE + make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516av100_openipc all + [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... Hi3516Av100" >> $GITHUB_ENV && exit 1 + [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... Hi3516Av100" >> $GITHUB_ENV && exit 1 + mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516av100 + mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516av100 + tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516av100 uImage.hi3516av100 + + - name: Build Hi3516Av100 SDK + id: build-hi3516av100-sdk + continue-on-error: true + run: | + ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" + echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV + cd $GITHUB_WORKSPACE/output + make sdk + + - name: Send warning message to telegram channel + env: + TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} + TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} + if: steps.build-hi3516av100-firmware.outcome != 'success' || steps.build-hi3516av100-sdk.outcome != 'success' + run: | + TG_OPTIONS="-s --connect-timeout 30 --max-time 30" + TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... Hi3516Av100}" + TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") + curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ + -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" + + - name: Create release + uses: actions/create-release@v1 + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.TAG_NAME }} + release_name: ${{ env.RELEASE_NAME }} + draft: false + prerelease: ${{ env.PRERELEASE }} + + - name: Upload FW to release + uses: svenstaro/upload-release-action@v2 + continue-on-error: true + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ env.ARCHIVE_FW }} + asset_name: "openipc.hi3516av100-br.tgz" + tag: ${{ env.TAG_NAME }} + overwrite: true + + - name: Upload SDK to release + uses: svenstaro/upload-release-action@v2 + continue-on-error: true + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ env.ARCHIVE_SDK }} + asset_name: "arm-openipc-hi3516av100-linux-musleabi_sdk-buildroot.tar.gz" + tag: ${{ env.TAG_NAME }} + overwrite: true + + - name: Send binary file to telegram channel + env: + TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} + TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} + run: | + TG_OPTIONS="-s --connect-timeout 30 --max-time 30" + TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") + curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ + -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" diff --git a/.github/workflows/hi3516av300_images.yml b/.github/workflows/hi3516av300_images.yml index f4d37d9e..43eb26c2 100644 --- a/.github/workflows/hi3516av300_images.yml +++ b/.github/workflows/hi3516av300_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Av300 +name: "Hi3516Av300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516av300_openipc all # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516AV300" >> $GITHUB_ENV && exit 1 # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516AV300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516av300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516av300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516av300 uImage.hi3516av300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516av300 + mv rootfs.squashfs rootfs.squashfs.hi3516av300 + md5sum rootfs.squashfs.hi3516av300 > rootfs.squashfs.hi3516av300.md5sum + md5sum uImage.hi3516av300 > uImage.hi3516av300.md5sum + tar -cvzf $ARCHIVE_FW *hi3516av300* - name: Build Hi3516Av300 SDK id: build-hi3516av300-sdk diff --git a/.github/workflows/hi3516cv200_images.yml b/.github/workflows/hi3516cv200_images.yml index 0bb614b0..ae474edb 100644 --- a/.github/workflows/hi3516cv200_images.yml +++ b/.github/workflows/hi3516cv200_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Cv200 +name: "Hi3516Cv200 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516cv200_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516CV200" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516CV200" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516cv200 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516cv200 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516cv200 uImage.hi3516cv200 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516cv200 + mv rootfs.squashfs rootfs.squashfs.hi3516cv200 + md5sum rootfs.squashfs.hi3516cv200 > rootfs.squashfs.hi3516cv200.md5sum + md5sum uImage.hi3516cv200 > uImage.hi3516cv200.md5sum + tar -cvzf $ARCHIVE_FW *hi3516cv200* - name: Build Hi3516Cv200 SDK id: build-hi3516cv200-sdk diff --git a/.github/workflows/hi3516cv300_images.yml b/.github/workflows/hi3516cv300_images.yml index 2de69934..00beecf6 100644 --- a/.github/workflows/hi3516cv300_images.yml +++ b/.github/workflows/hi3516cv300_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Cv300 +name: "Hi3516Cv300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516cv300_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516CV300" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516CV300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516cv300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516cv300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516cv300 uImage.hi3516cv300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516cv300 + mv rootfs.squashfs rootfs.squashfs.hi3516cv300 + md5sum rootfs.squashfs.hi3516cv300 > rootfs.squashfs.hi3516cv300.md5sum + md5sum uImage.hi3516cv300 > uImage.hi3516cv300.md5sum + tar -cvzf $ARCHIVE_FW *hi3516cv300* - name: Build Hi3516Cv300 SDK id: build-hi3516cv300-sdk diff --git a/.github/workflows/hi3516cv500_images.yml b/.github/workflows/hi3516cv500_images.yml index 0f72e783..a2746521 100644 --- a/.github/workflows/hi3516cv500_images.yml +++ b/.github/workflows/hi3516cv500_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Cv500 +name: "Hi3516Cv500 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516cv500_openipc all # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516CV500" >> $GITHUB_ENV && exit 1 # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516CV500" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516cv500 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516cv500 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516cv500 uImage.hi3516cv500 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516cv500 + mv rootfs.squashfs rootfs.squashfs.hi3516cv500 + md5sum rootfs.squashfs.hi3516cv500 > rootfs.squashfs.hi3516cv500.md5sum + md5sum uImage.hi3516cv500 > uImage.hi3516cv500.md5sum + tar -cvzf $ARCHIVE_FW *hi3516cv500* - name: Build Hi3516Cv500 SDK id: build-hi3516cv500-sdk diff --git a/.github/workflows/hi3516dv100_images.yml b/.github/workflows/hi3516dv100_images.yml index 42ef03d4..bddced92 100644 --- a/.github/workflows/hi3516dv100_images.yml +++ b/.github/workflows/hi3516dv100_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Dv100 +name: "Hi3516Dv100 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516dv100_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... Hi3516Dv100" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... Hi3516Dv100" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516dv100 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516dv100 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516dv100 uImage.hi3516dv100 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516dv100 + mv rootfs.squashfs rootfs.squashfs.hi3516dv100 + md5sum rootfs.squashfs.hi3516dv100 > rootfs.squashfs.hi3516dv100.md5sum + md5sum uImage.hi3516dv100 > uImage.hi3516dv100.md5sum + tar -cvzf $ARCHIVE_FW *hi3516dv100* - name: Build Hi3516Dv100 SDK id: build-hi3516dv100-sdk diff --git a/.github/workflows/hi3516dv200_images.yml b/.github/workflows/hi3516dv200_images.yml index c11e511a..4629f5b6 100644 --- a/.github/workflows/hi3516dv200_images.yml +++ b/.github/workflows/hi3516dv200_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Dv200 +name: "Hi3516Dv200 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516dv200_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516DV200" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516DV200" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516dv200 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516dv200 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516dv200 uImage.hi3516dv200 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516dv200 + mv rootfs.squashfs rootfs.squashfs.hi3516dv200 + md5sum rootfs.squashfs.hi3516dv200 > rootfs.squashfs.hi3516dv200.md5sum + md5sum uImage.hi3516dv200 > uImage.hi3516dv200.md5sum + tar -cvzf $ARCHIVE_FW *hi3516dv200* - name: Build Hi3516Dv200 SDK id: build-hi3516dv200-sdk diff --git a/.github/workflows/hi3516dv300_images.yml b/.github/workflows/hi3516dv300_images.yml index 57e12c06..aeec7bf8 100644 --- a/.github/workflows/hi3516dv300_images.yml +++ b/.github/workflows/hi3516dv300_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Dv300 +name: "Hi3516Dv300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516dv300_openipc all # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516DV300" >> $GITHUB_ENV && exit 1 # [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516DV300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516dv300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516dv300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516dv300 uImage.hi3516dv300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516dv300 + mv rootfs.squashfs rootfs.squashfs.hi3516dv300 + md5sum rootfs.squashfs.hi3516dv300 > rootfs.squashfs.hi3516dv300.md5sum + md5sum uImage.hi3516dv300 > uImage.hi3516dv300.md5sum + tar -cvzf $ARCHIVE_FW *hi3516dv300* - name: Build Hi3516Dv300 SDK id: build-hi3516dv300-sdk diff --git a/.github/workflows/hi3516ev100_images.yml b/.github/workflows/hi3516ev100_images.yml index 34838f27..b51f1d5c 100644 --- a/.github/workflows/hi3516ev100_images.yml +++ b/.github/workflows/hi3516ev100_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Ev100 +name: "Hi3516Ev100 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev100_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516EV100" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516EV100" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516ev100 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516ev100 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516ev100 uImage.hi3516ev100 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516ev100 + mv rootfs.squashfs rootfs.squashfs.hi3516ev100 + md5sum rootfs.squashfs.hi3516ev100 > rootfs.squashfs.hi3516ev100.md5sum + md5sum uImage.hi3516ev100 > uImage.hi3516ev100.md5sum + tar -cvzf $ARCHIVE_FW *hi3516ev100* - name: Build Hi3516Ev100 SDK id: build-hi3516ev100-sdk diff --git a/.github/workflows/hi3516ev200_images.yml b/.github/workflows/hi3516ev200_images.yml index c5803e80..ceb6e4cb 100644 --- a/.github/workflows/hi3516ev200_images.yml +++ b/.github/workflows/hi3516ev200_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Ev200 +name: "Hi3516Ev200 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev200_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516EV200" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516EV200" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516ev200 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516ev200 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516ev200 uImage.hi3516ev200 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516ev200 + mv rootfs.squashfs rootfs.squashfs.hi3516ev200 + md5sum rootfs.squashfs.hi3516ev200 > rootfs.squashfs.hi3516ev200.md5sum + md5sum uImage.hi3516ev200 > uImage.hi3516ev200.md5sum + tar -cvzf $ARCHIVE_FW *hi3516ev200* - name: Build Hi3516Ev200 SDK id: build-hi3516ev200-sdk diff --git a/.github/workflows/hi3516ev300_images.yml b/.github/workflows/hi3516ev300_images.yml index c26bf368..d983d942 100644 --- a/.github/workflows/hi3516ev300_images.yml +++ b/.github/workflows/hi3516ev300_images.yml @@ -1,4 +1,4 @@ -name: Hi3516Ev300 +name: "Hi3516Ev300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev300_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3516EV300" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3516EV300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3516ev300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3516ev300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3516ev300 uImage.hi3516ev300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3516ev300 + mv rootfs.squashfs rootfs.squashfs.hi3516ev300 + md5sum rootfs.squashfs.hi3516ev300 > rootfs.squashfs.hi3516ev300.md5sum + md5sum uImage.hi3516ev300 > uImage.hi3516ev300.md5sum + tar -cvzf $ARCHIVE_FW *hi3516ev300* - name: Build Hi3516Ev300 SDK id: build-hi3516ev300-sdk diff --git a/.github/workflows/hi3518ev200_images.yml b/.github/workflows/hi3518ev200_images.yml index d464c061..7028bd3a 100644 --- a/.github/workflows/hi3518ev200_images.yml +++ b/.github/workflows/hi3518ev200_images.yml @@ -1,4 +1,4 @@ -name: Hi3518Ev200 +name: "Hi3518Ev200 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3518ev200_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3518EV200" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3518EV200" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3518ev200 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3518ev200 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3518ev200 uImage.hi3518ev200 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3518ev200 + mv rootfs.squashfs rootfs.squashfs.hi3518ev200 + md5sum rootfs.squashfs.hi3518ev200 > rootfs.squashfs.hi3518ev200.md5sum + md5sum uImage.hi3518ev200 > uImage.hi3518ev200.md5sum + tar -cvzf $ARCHIVE_FW *hi3518ev200* - name: Build Hi3518Ev200 SDK id: build-hi3518ev200-sdk diff --git a/.github/workflows/hi3518ev300_images.yml b/.github/workflows/hi3518ev300_images.yml index 4e250ae9..66333144 100644 --- a/.github/workflows/hi3518ev300_images.yml +++ b/.github/workflows/hi3518ev300_images.yml @@ -1,4 +1,4 @@ -name: Hi3518Ev300 +name: "Hi3518Ev300 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3518ev300_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... HI3518EV300" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... HI3518EV300" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3518ev300 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3518ev300 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3518ev300 uImage.hi3518ev300 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3518ev300 + mv rootfs.squashfs rootfs.squashfs.hi3518ev300 + md5sum rootfs.squashfs.hi3518ev300 > rootfs.squashfs.hi3518ev300.md5sum + md5sum uImage.hi3518ev300 > uImage.hi3518ev300.md5sum + tar -cvzf $ARCHIVE_FW *hi3518ev300* - name: Build Hi3518Ev300 SDK id: build-hi3518ev300-sdk diff --git a/.github/workflows/hi3536cv100_images.yml b/.github/workflows/hi3536cv100_images.yml index 3149bce8..b31099b4 100644 --- a/.github/workflows/hi3536cv100_images.yml +++ b/.github/workflows/hi3536cv100_images.yml @@ -1,4 +1,4 @@ -name: Hi3536Cv100 +name: "Hi3536Cv100 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3536cv100_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... Hi3536Cv100" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... Hi3536Cv100" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3536cv100 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3536cv100 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3536cv100 uImage.hi3536cv100 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3536cv100 + mv rootfs.squashfs rootfs.squashfs.hi3536cv100 + md5sum rootfs.squashfs.hi3536cv100 > rootfs.squashfs.hi3536cv100.md5sum + md5sum uImage.hi3536cv100 > uImage.hi3536cv100.md5sum + tar -cvzf $ARCHIVE_FW *hi3536cv100* - name: Build Hi3536Cv100 SDK id: build-hi3536cv100-sdk diff --git a/.github/workflows/hi3536dv100_images.yml b/.github/workflows/hi3536dv100_images.yml index 157e1da8..0befbcbf 100644 --- a/.github/workflows/hi3536dv100_images.yml +++ b/.github/workflows/hi3536dv100_images.yml @@ -1,4 +1,4 @@ -name: Hi3536Dv100 +name: "Hi3536Dv100 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=hisilicon BOARD=unknown_unknown_hi3536dv100_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... Hi3536Dv100" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... Hi3536Dv100" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.hi3536dv100 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.hi3536dv100 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.hi3536dv100 uImage.hi3536dv100 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.hi3536dv100 + mv rootfs.squashfs rootfs.squashfs.hi3536dv100 + md5sum rootfs.squashfs.hi3536dv100 > rootfs.squashfs.hi3536dv100.md5sum + md5sum uImage.hi3536dv100 > uImage.hi3536dv100.md5sum + tar -cvzf $ARCHIVE_FW *hi3536dv100* - name: Build Hi3536Dv100 SDK id: build-hi3536dv100-sdk diff --git a/.github/workflows/nt98562_images.yml b/.github/workflows/nt98562_images.yml index 6dc29c1c..06a84dda 100644 --- a/.github/workflows/nt98562_images.yml +++ b/.github/workflows/nt98562_images.yml @@ -1,4 +1,4 @@ -name: NT98562 +name: "NT98562 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=novatek BOARD=unknown_unknown_nt98562_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... NT98562" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... NT98562" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.nt98562 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.nt98562 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.nt98562 uImage.nt98562 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.nt98562 + mv rootfs.squashfs rootfs.squashfs.nt98562 + md5sum rootfs.squashfs.nt98562 > rootfs.squashfs.nt98562.md5sum + md5sum uImage.nt98562 > uImage.nt98562.md5sum + tar -cvzf $ARCHIVE_FW *nt98562* - name: Build NT98562 SDK id: build-nt98562-sdk diff --git a/.github/workflows/nt98566_images.yml b/.github/workflows/nt98566_images.yml index 149c43c0..bbaf3ea5 100644 --- a/.github/workflows/nt98566_images.yml +++ b/.github/workflows/nt98566_images.yml @@ -1,4 +1,4 @@ -name: NT98566 +name: "NT98566 " on: workflow_dispatch: @@ -62,9 +62,12 @@ jobs: make PLATFORM=novatek BOARD=unknown_unknown_nt98566_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... NT98566" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... NT98566" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.nt98566 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.nt98566 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.nt98566 uImage.nt98566 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.nt98566 + mv rootfs.squashfs rootfs.squashfs.nt98566 + md5sum rootfs.squashfs.nt98566 > rootfs.squashfs.nt98566.md5sum + md5sum uImage.nt98566 > uImage.nt98566.md5sum + tar -cvzf $ARCHIVE_FW *nt98566* - name: Build NT98566 SDK id: build-nt98566-sdk diff --git a/.github/workflows/ssc325_images.yml b/.github/workflows/ssc325_images.yml index 039473eb..dbe61f71 100644 --- a/.github/workflows/ssc325_images.yml +++ b/.github/workflows/ssc325_images.yml @@ -1,4 +1,4 @@ -name: SSC325 +name: "SSC325 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=sigmastar BOARD=unknown_unknown_ssc325_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... SSC325" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... SSC325" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.ssc325 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.ssc325 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.ssc325 uImage.ssc325 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.ssc325 + mv rootfs.squashfs rootfs.squashfs.ssc325 + md5sum rootfs.squashfs.ssc325 > rootfs.squashfs.ssc325.md5sum + md5sum uImage.ssc325 > uImage.ssc325.md5sum + tar -cvzf $ARCHIVE_FW *ssc325* - name: Build SSC325 SDK id: build-ssc325-sdk diff --git a/.github/workflows/ssc335_images.yml b/.github/workflows/ssc335_images.yml index ccb07fad..dc41b7d0 100644 --- a/.github/workflows/ssc335_images.yml +++ b/.github/workflows/ssc335_images.yml @@ -1,4 +1,4 @@ -name: SSC335 +name: "SSC335 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=sigmastar BOARD=unknown_unknown_ssc335_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... SSC335" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... SSC335" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.ssc335 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.ssc335 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.ssc335 uImage.ssc335 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.ssc335 + mv rootfs.squashfs rootfs.squashfs.ssc335 + md5sum rootfs.squashfs.ssc335 > rootfs.squashfs.ssc335.md5sum + md5sum uImage.ssc335 > uImage.ssc335.md5sum + tar -cvzf $ARCHIVE_FW *ssc335* - name: Build SSC335 SDK id: build-ssc335-sdk diff --git a/.github/workflows/ssc337_images.yml b/.github/workflows/ssc337_images.yml index 153261d3..fd76d51b 100644 --- a/.github/workflows/ssc337_images.yml +++ b/.github/workflows/ssc337_images.yml @@ -1,4 +1,4 @@ -name: SSC337 +name: "SSC337 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=sigmastar BOARD=unknown_unknown_ssc337_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... SSC337" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... SSC337" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.ssc337 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.ssc337 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.ssc337 uImage.ssc337 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.ssc337 + mv rootfs.squashfs rootfs.squashfs.ssc337 + md5sum rootfs.squashfs.ssc337 > rootfs.squashfs.ssc337.md5sum + md5sum uImage.ssc337 > uImage.ssc337.md5sum + tar -cvzf $ARCHIVE_FW *ssc337* - name: Build SSC337 SDK id: build-ssc337-sdk diff --git a/.github/workflows/ssc337de_images.yml b/.github/workflows/ssc337de_images.yml index 95c25837..b25ec6f0 100644 --- a/.github/workflows/ssc337de_images.yml +++ b/.github/workflows/ssc337de_images.yml @@ -1,4 +1,4 @@ -name: SSC337DE +name: "SSC337DE " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=sigmastar BOARD=unknown_unknown_ssc337de_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... SSC337DE" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... SSC337DE" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.ssc337de - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.ssc337de - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.ssc337de uImage.ssc337de + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.ssc337de + mv rootfs.squashfs rootfs.squashfs.ssc337de + md5sum rootfs.squashfs.ssc337de > rootfs.squashfs.ssc337de.md5sum + md5sum uImage.ssc337de > uImage.ssc337de.md5sum + tar -cvzf $ARCHIVE_FW *ssc337de* - name: Build SSC337DE SDK id: build-ssc337de-sdk diff --git a/.github/workflows/t31_images.yml b/.github/workflows/t31_images.yml index 8585e70f..170633e0 100644 --- a/.github/workflows/t31_images.yml +++ b/.github/workflows/t31_images.yml @@ -1,4 +1,4 @@ -name: T31 +name: "T31 " on: workflow_dispatch: @@ -62,9 +62,12 @@ jobs: make PLATFORM=ingenic BOARD=unknown_unknown_t31_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... T31" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... T31" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.t31 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.t31 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.t31 uImage.t31 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.t31 + mv rootfs.squashfs rootfs.squashfs.t31 + md5sum rootfs.squashfs.t31 > rootfs.squashfs.t31.md5sum + md5sum uImage.t31 > uImage.t31.md5sum + tar -cvzf $ARCHIVE_FW *t31* - name: Build T31 SDK id: build-t31-sdk diff --git a/.github/workflows/xm510_images.yml b/.github/workflows/xm510_images.yml index d4144a1f..fe2650c5 100644 --- a/.github/workflows/xm510_images.yml +++ b/.github/workflows/xm510_images.yml @@ -1,4 +1,4 @@ -name: XM510 +name: "XM510 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=xiongmai BOARD=unknown_unknown_xm510_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... XM510" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... XM510" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.xm510 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.xm510 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.xm510 uImage.xm510 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.xm510 + mv rootfs.squashfs rootfs.squashfs.xm510 + md5sum rootfs.squashfs.xm510 > rootfs.squashfs.xm510.md5sum + md5sum uImage.xm510 > uImage.xm510.md5sum + tar -cvzf $ARCHIVE_FW *xm510* - name: Build XM510 SDK id: build-xm510-sdk diff --git a/.github/workflows/xm530_images.yml b/.github/workflows/xm530_images.yml index 20d743ad..28b8a47f 100644 --- a/.github/workflows/xm530_images.yml +++ b/.github/workflows/xm530_images.yml @@ -1,4 +1,4 @@ -name: XM530 +name: "XM530 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=xiongmai BOARD=unknown_unknown_xm530_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... XM530" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... XM530" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.xm530 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.xm530 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.xm530 uImage.xm530 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.xm530 + mv rootfs.squashfs rootfs.squashfs.xm530 + md5sum rootfs.squashfs.xm530 > rootfs.squashfs.xm530.md5sum + md5sum uImage.xm530 > uImage.xm530.md5sum + tar -cvzf $ARCHIVE_FW *xm530* - name: Build XM530 SDK id: build-xm530-sdk diff --git a/.github/workflows/xm550_images.yml b/.github/workflows/xm550_images.yml index dcc4507f..1d51b761 100644 --- a/.github/workflows/xm550_images.yml +++ b/.github/workflows/xm550_images.yml @@ -1,4 +1,4 @@ -name: XM550 +name: "XM550 " on: push: @@ -69,9 +69,12 @@ jobs: make PLATFORM=xiongmai BOARD=unknown_unknown_xm550_openipc all [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... XM550" >> $GITHUB_ENV && exit 1 [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... XM550" >> $GITHUB_ENV && exit 1 - mv ${GITHUB_WORKSPACE}/output/images/uImage ${GITHUB_WORKSPACE}/output/images/uImage.xm550 - mv ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs.xm550 - tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.xm550 uImage.xm550 + cd ${GITHUB_WORKSPACE}/output/images + mv uImage uImage.xm550 + mv rootfs.squashfs rootfs.squashfs.xm550 + md5sum rootfs.squashfs.xm550 > rootfs.squashfs.xm550.md5sum + md5sum uImage.xm550 > uImage.xm550.md5sum + tar -cvzf $ARCHIVE_FW *xm550* - name: Build XM550 SDK id: build-xm550-sdk diff --git a/docs/index.md b/docs/index.md index de78e5c4..3bea7b0a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,124 +1,168 @@ -## OpenIPC v2.1 (Buildroot based..) +![OpenIPC Logo](https://cdn.themactep.com/images/logo_openipc.png) -Alternative firmware for IP cameras based on the HiSilicon (and other) SoC's +## OpenIPC v2.1 +_(based on Buildroot)_ -More information about the project is available in our [Wiki](https://github.com/OpenIPC/openipc-2.1/wiki) and [Site](https://openipc.org) +OpenIPC is a rapidly developing open source alternative firmware for popular IP cameras. + +Historically, OpenIPC firmware supports SoC manufactured by HiSilicon, but as the development continues, +the list of supported processors expands. Today, it also includes chips from Goke, SigmaStar, Xiongmai, +and is expected to grow further. + +More information about the project is available [in our wiki](https://github.com/OpenIPC/openipc-2.1/wiki) +and [on the website](https://openipc.org/). + +### Current development status * [![CI status](https://img.shields.io/github/downloads/OpenIPC/openipc-2.1/total.svg)](https://github.com/OpenIPC/openipc-2.1/releases) ![GitHub repo size](https://img.shields.io/github/repo-size/OpenIPC/openipc-2.1) ![GitHub issues](https://img.shields.io/github/issues/OpenIPC/openipc-2.1) ![GitHub pull requests](https://img.shields.io/github/issues-pr/OpenIPC/openipc-2.1) [![License](https://img.shields.io/github/license/OpenIPC/openipc-2.1)](https://opensource.org/licenses/MIT) +![Backers](https://opencollective.com/openipc/tiers/backer/badge.svg) +![Backers](https://opencollective.com/openipc/tiers/badge.svg) + +_NB! Downloads are for research only, without any guarantee._ + +| SoC | U-Boot | Kernel | Rootfs | USB | WiFi | MMC | IPv6 | D/L | Status | +|--------------------------------------------------------|:------:|:------:|:------:|:---:|:----:|:---:|:----:|:---------:|--------| +| `Fullhan FH8632`
![FH8632][FH8632] | | | | | | | | | R&D | +| `Fullhan FH8852`
![FH8652][FH8852] | | | | | | | | | R&D | +| `Fullhan FH8856`
![FH8856][FH8856] | | | | | | | | | R&D | +| `Goke GK7102S`
![GK7102S][GK7102S] | | | | | | | | | R&D | +| `Goke GK7202v300`
![GK7202v300][GK7202v300] | | | | | | | | [⬇][dl01] | WIP | +| `Goke GK7205v200`
![GK7205v200][GK7205v200] | + | + | + | + | + | | | [⬇][dl02] | DONE | +| `Goke GK7205v300`
![GK7205v300][GK7205v300] | | | | | | | | [⬇][dl03] | WIP | +| `Goke GK7605v100`
![GK7605v100][GK7605v100] | + | + | + | | | | | [⬇][dl04] | WIP | +| `HiSilicon Hi3516Av100`
![Hi3516Av100][Hi3516Av100] | | + | + | | | | | [⬇][dl05] | WIP | +| `HiSilicon Hi3516Av300`
![Hi3516Av300][Hi3516Av300] | | + | + | | | | | [⬇][dl06] | WIP | +| `HiSilicon Hi3516Cv200`
![Hi3516Cv200][Hi3516Cv200] | | + | + | + | + | + | | [⬇][dl07] | DONE | +| `HiSilicon Hi3516Cv300`
![Hi3516Cv300][Hi3516Cv300] | + | + | + | + | + | + | + | [⬇][dl08] | DONE | +| `HiSilicon Hi3516Cv500`
![Hi3516Cv500][Hi3516Cv500] | | + | + | | | | | [⬇][dl09] | WIP | +| `HiSilicon Hi3516Dv100`
![Hi3516Dv100][Hi3516Dv100] | | + | + | | | | | [⬇][dl10] | WIP | +| `HiSilicon Hi3516Dv200`
![Hi3516Dv200][Hi3516Dv200] | + | + | + | + | + | + | + | [⬇][dl11] | DONE | +| `HiSilicon Hi3516Dv300`
![Hi3516Dv300][Hi3516Dv300] | | + | + | | | | | [⬇][dl12] | WIP | +| `HiSilicon Hi3516Ev100`
![Hi3516Ev100][Hi3516Ev100] | + | + | + | + | + | + | + | [⬇][dl13] | DONE | +| `HiSilicon Hi3516Ev200`
![Hi3516Ev200][Hi3516Ev200] | + | + | + | + | + | + | + | [⬇][dl14] | DONE | +| `HiSilicon Hi3516Ev300`
![Hi3516Ev300][Hi3516Ev300] | + | + | + | + | + | + | + | [⬇][dl15] | DONE | +| `HiSilicon Hi3518Ev200`
![Hi3518Ev200][Hi3518Ev200] | | + | + | + | + | + | | [⬇][dl16] | DONE | +| `HiSilicon Hi3518Ev300`
![Hi3518Ev300][Hi3518Ev300] | + | + | + | + | + | + | + | [⬇][dl17] | DONE | +| `MStar MSC313E`
![MSC313E][MSC313E] | | | | | | | | | R&D | +| `MStar MSC316D`
![MSC316D][MSC316D] | | | | | | | | | R&D | +| `Novatek NT98562`
![NT98562][NT98562] | | | | | | | | [⬇][dl18] | R&D | +| `Novatek NT98566`
![NT98566][NT98566] | | | | | | | | [⬇][dl19] | R&D | +| `SigmaStar SSC325`
![SSC325][SSC325] | | + | + | | | | | [⬇][dl20] | R&D | +| `SigmaStar SSC335`
![SSC335][SSC335] | | + | + | + | | + | | [⬇][dl21] | MVP | +| `SigmaStar SSC337`
![SSC337][SSC337] | | + | + | + | | + | | [⬇][dl22] | MVP | +| `SigmaStar SSC337DE`
![SSC337DE][SSC337DE] | | + | + | | | | | [⬇][dl23] | WIP | +| `Ingenic T10`
![T10][T10] | | | | | | | | | R&D | +| `Ingenic T20`
![T20][T20] | | | | | | | | | R&D | +| `Ingenic T21`
![T21][T21] | | | | | | | | | R&D | +| `Ingenic T31`
![T31][T31] | | | | | | | | | R&D | +| `Xiongmai XM510`
![XM510][XM510] | | + | + | | | | | [⬇][dl24] | MVP | +| `Xiongmai XM530`
![XM530][XM530] | | + | + | | | | | [⬇][dl25] | MVP | +| `Xiongmai XM550`
![XM550][XM550] | | + | + | | | | | [⬇][dl26] | MVP | ----- -### Supporting +### Support -If you like our work, please consider supporting us on [Opencollective](https://opencollective.com/openipc/contribute/backer-14335/checkout) or [PayPal](https://www.paypal.com/donate/?hosted_button_id=C6F7UJLA58MBS) or [YooMoney](https://openipc.org/donation/yoomoney.html). +OpenIPC offers two levels of support. -[![Backers](https://opencollective.com/openipc/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/openipc) -[![Backers](https://opencollective.com/openipc/tiers/badge.svg)](https://opencollective.com/openipc) +- Free support through the community (via [chat](https://openipc.org/#telegram-chat-groups) and [mailing lists](https://github.com/OpenIPC/firmware/discussions)). +- Paid commercial support (from the team of developers). -[![Backers](https://opencollective.com/openipc/tiers/backer.svg?avatarHeight=36)](https://opencollective.com/openipc#support) +Please consider subscribing for paid commercial support if you intend to use our product for business. +As a paid customer, you will get technical support and maintenance services directly from our skilled team. +Your bug reports and feature requests will get prioritized attention and expedited solutions. It's a win-win +strategy for both parties, that would contribute to the stability your business, and help core developers +to work on the project full-time. -### Thanks a lot !!! +If you have any specific questions concerning our project, feel free to [contact us](mailto:flyrouter@gmail.com). -

-OpenCollective donate button -PayPal donate button -YooMoney donate button -

+### Participating and Contribution ------ +If you like what we do, and willing to intensify the development, please consider participating. -### Downloads (for research only, without any guarantee) * +You can improve existing code and send us patches. You can add new features missing from our code. -| Manufacturer | SoC | Files | Status | -|--------------|-----|-------|--------| -|Fullhan |![Image](https://img.shields.io/static/v1?label=FH8632&message=help%20needed&color=5500ff&logo=github) | | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/fh8852_images.yml/badge.svg) | | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/fh8856_images.yml/badge.svg) | | R&D | -|Goke |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7102s_images.yml/badge.svg) | | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7202v300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7202v300-br.tgz) | WIP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7205v200_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7205v200-br.tgz) | DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7205v300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7205v300-br.tgz) | WIP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7605v100_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7605v100-br.tgz) | WIP | -|HiSilicon| | | | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516av100_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516av100-br.tgz)| WIP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv100_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv100-br.tgz)| WIP | -| | | | | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv200_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv200-br.tgz)| DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3518ev200_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3518ev200-br.tgz)| DONE | -| | | | | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv300-br.tgz)| DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev100_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev100-br.tgz)| DONE | -| | | | | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev300-br.tgz)| DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev200_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev200-br.tgz)| DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3518ev300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3518ev300-br.tgz)| DONE | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv200_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv200-br.tgz)| DONE | -| | | | | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv500_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv500-br.tgz)| WIP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516av300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516av300-br.tgz)| WIP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv300_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv300-br.tgz)| WIP | -|MStar | | | | -| |![Image](https://img.shields.io/static/v1?label=MSC313E&message=help%20needed&color=5500ff&logo=github) | | R&D | -| |![Image](https://img.shields.io/static/v1?label=MSC316D&message=help%20needed&color=5500ff&logo=github) | | R&D | -|Novatek |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/nt98562_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.nt98562-br.tgz) | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/nt98566_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.nt98566-br.tgz) | R&D | -|SigmaStar|![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc325_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc325-br.tgz) | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc335_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc335-br.tgz) | MVP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc337_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc337-br.tgz) | MVP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc337de_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc337de-br.tgz) | WIP | -|Ingenic |![Image](https://img.shields.io/static/v1?label=T20&message=help%20needed&color=5500ff&logo=github) | | R&D | -| |![Image](https://img.shields.io/static/v1?label=T21&message=help%20needed&color=5500ff&logo=github) | | R&D | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/t31_images.yml/badge.svg) | | R&D | -|Xiongmai |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm510_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm510-br.tgz) | MVP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm530_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm530-br.tgz) | MVP | -| |![Image](https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm550_images.yml/badge.svg) |[uImage + rootfs](https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm550-br.tgz) | MVP | +You can help us to write a better documentation, proofread and correct our websites. ------ +You can just donate some money to cover the cost of development and long-term maintaining of what we believe +is going to be the most stable, flexible, and open IP Network Camera Framework for users like yourself. -### Current development status +You can make a financial contribution to the project +at [Open Collective](https://opencollective.com/openipc/contribute/backer-14335/checkout), +or via [PayPal](https://www.paypal.com/donate/?hosted_button_id=C6F7UJLA58MBS), +or via [YooMoney](https://openipc.org/donation/yoomoney.html). -| Chip | U-Boot | Kernel | Rootfs | Video | Audio | GPIO | USB | WiFi | MMC | IPv6 | -|-------------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------| -| FH8632 | | | | | | | | | | | -| FH8852 | | | | | | | | | | | -| FH8856 | | | | | | | | | | | -| GK7102S | | | | | | | | | | | -| GK7202v300 | | | | | | | | | | | -| GK7205v200 | ✅ | ✅ | ✅ | ✅ | ✅ | | ✅ | ✅ | | | -| GK7205v300 | | | | | | | | | | | -| GK7605v100 | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | -| Hi3516Cv300 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3516Ev100 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3516Ev200 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3516Ev300 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3518Ev300 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3516Dv200 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| Hi3516Av300 | | ✅ | ✅ | ✅ | | | | | | | -| Hi3516Cv500 | | ✅ | ✅ | ✅ | | | | | | | -| Hi3516Dv300 | | ✅ | ✅ | ✅ | | | | | | | -| MSC313E | | | | | | | | | | | -| NT98562 | | | | | | | | | | | -| NT98566 | | | | | | | | | | | -| SSC325 | | ✅ | ✅ | | | | | | | | -| SSC335 | | ✅ | ✅ | ✅ | | ✅ | ✅ | | ✅ | | -| SSC337 | | ✅ | ✅ | ✅ | | ✅ | ✅ | | ✅ | | -| SSC337DE | | ✅ | ✅ | | | | | | | | -| T20 | | | | | | | | | | | -| T21 | | | | | | | | | | | -| T31 | | | | | | | | | | | -| XM510 | | ✅ | ✅ | ✅ | | | | | | | -| XM530 | | ✅ | ✅ | ✅ | | | | | | | -| XM550 | | ✅ | ✅ | ✅ | | | | | | | +Thank you. -### Commercial Support - +Open Collective donate button +PayPal donate button +YooMoney donate button -If you're using OpenIPC in your product consider buying commercial support. It's -a win-win strategy that supports your business and helps core developers to work -full-time on the project. -Please contact [OpenIPC](mailto:flyrouter@gmail.com) to inquire further. +[FH8632]: https://img.shields.io/static/v1?label=FH8632&message=help%20needed&color=5500ff&logo=github +[FH8852]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/fh8852_images.yml/badge.svg +[FH8856]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/fh8856_images.yml/badge.svg +[GK7102S]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7102s_images.yml/badge.svg +[GK7202v300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7202v300_images.yml/badge.svg +[GK7205v200]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7205v200_images.yml/badge.svg +[GK7205v300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7205v300_images.yml/badge.svg +[GK7605v100]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/gk7605v100_images.yml/badge.svg +[Hi3516Av100]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516av100_images.yml/badge.svg +[Hi3516Av300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516av300_images.yml/badge.svg +[Hi3516Cv200]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv200_images.yml/badge.svg +[Hi3516Cv300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv300_images.yml/badge.svg +[Hi3516Cv500]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516cv500_images.yml/badge.svg +[Hi3516Dv100]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv100_images.yml/badge.svg +[Hi3516Dv200]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv200_images.yml/badge.svg +[Hi3516Dv300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516dv300_images.yml/badge.svg +[Hi3516Ev100]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev100_images.yml/badge.svg +[Hi3516Ev200]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev200_images.yml/badge.svg +[Hi3516Ev300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3516ev300_images.yml/badge.svg +[Hi3518Ev200]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3518ev200_images.yml/badge.svg +[Hi3518Ev300]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/hi3518ev300_images.yml/badge.svg +[MSC313E]: https://img.shields.io/static/v1?label=MSC313E&message=help%20needed&color=5500ff&logo=github +[MSC316D]: https://img.shields.io/static/v1?label=MSC316D&message=help%20needed&color=5500ff&logo=github +[NT98562]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/nt98562_images.yml/badge.svg +[NT98566]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/nt98566_images.yml/badge.svg +[SSC325]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc325_images.yml/badge.svg +[SSC335]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc335_images.yml/badge.svg +[SSC337]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc337_images.yml/badge.svg +[SSC337DE]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/ssc337de_images.yml/badge.svg +[T10]: https://img.shields.io/static/v1?label=T10&message=help%20needed&color=5500ff&logo=github +[T20]: https://img.shields.io/static/v1?label=T20&message=help%20needed&color=5500ff&logo=github +[T21]: https://img.shields.io/static/v1?label=T21&message=help%20needed&color=5500ff&logo=github +[T31]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/t31_images.yml/badge.svg +[XM510]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm510_images.yml/badge.svg +[XM530]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm530_images.yml/badge.svg +[XM550]: https://github.com/OpenIPC/openipc-2.1/actions/workflows/xm550_images.yml/badge.svg + +[dl01]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7202v300-br.tgz +[dl02]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7205v200-br.tgz +[dl03]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7205v300-br.tgz +[dl04]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.gk7605v100-br.tgz +[dl05]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516av100-br.tgz +[dl06]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516av300-br.tgz +[dl07]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv200-br.tgz +[dl08]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv300-br.tgz +[dl09]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516cv500-br.tgz +[dl10]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv100-br.tgz +[dl11]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv200-br.tgz +[dl12]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516dv300-br.tgz +[dl13]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev100-br.tgz +[dl14]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev200-br.tgz +[dl15]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3516ev300-br.tgz +[dl16]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3518ev200-br.tgz +[dl17]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.hi3518ev300-br.tgz +[dl18]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.nt98562-br.tgz +[dl19]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.nt98566-br.tgz +[dl20]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc325-br.tgz +[dl21]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc335-br.tgz +[dl22]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc337-br.tgz +[dl23]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.ssc337de-br.tgz +[dl24]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm510-br.tgz +[dl25]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm530-br.tgz +[dl26]: https://github.com/OpenIPC/openipc-2.1/releases/download/latest/openipc.xm550-br.tgz diff --git a/general/overlay/etc/crontabs/root b/general/overlay/etc/crontabs/root new file mode 100644 index 00000000..f4362695 --- /dev/null +++ b/general/overlay/etc/crontabs/root @@ -0,0 +1,13 @@ +# +# Example of job definition: +# .---------------- minute (0 - 59) +# | .------------- hour (0 - 23) +# | | .---------- day of month (1 - 31) +# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... +# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat +# | | | | | +# * * * * * command to be executed +# +# +*/5 * * * * /usr/bin/logger -p cron.info -t crond WTF ? +# diff --git a/general/overlay/etc/init.d/S49ntpd b/general/overlay/etc/init.d/S49ntpd index f161689d..a070ed98 100755 --- a/general/overlay/etc/init.d/S49ntpd +++ b/general/overlay/etc/init.d/S49ntpd @@ -3,7 +3,7 @@ DAEMON="ntpd" PIDFILE="/var/run/$DAEMON.pid" -NTPD_ARGS="" +NTPD_ARGS="-n" # shellcheck source=/dev/null [ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" @@ -14,7 +14,7 @@ start() { printf 'Starting %s: ' "$DAEMON" # shellcheck disable=SC2086 # we need the word splitting start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \ - -- -n $NTPD_ARGS + -- $NTPD_ARGS status=$? if [ "$status" -eq 0 ]; then echo "OK" diff --git a/general/overlay/etc/init.d/S60crond b/general/overlay/etc/init.d/S60crond new file mode 100755 index 00000000..fa465316 --- /dev/null +++ b/general/overlay/etc/init.d/S60crond @@ -0,0 +1,57 @@ +#!/bin/sh + +DAEMON="crond" +PIDFILE="/var/run/$DAEMON.pid" + +CROND_ARGS="-f -c /etc/crontabs" + +# shellcheck source=/dev/null +[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" + +# The mini-snmpd does not create a pidfile, so pass "-n" in the command line +# and use "-m" to instruct start-stop-daemon to create one. +start() { + printf 'Starting %s: ' "$DAEMON" + [ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, " + # shellcheck disable=SC2086 # we need the word splitting + start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \ + -- $CROND_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + [ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, " + start-stop-daemon -K -q -p "$PIDFILE" + status=$? + if [ "$status" -eq 0 ]; then + rm -f "$PIDFILE" + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +case "$1" in + start|stop|restart) + "$1";; + reload) + # Restart, since there is no true "reload" feature. + restart;; + *) + echo "Usage: $0 {start|stop|restart|reload}" + exit 1 +esac diff --git a/general/overlay/etc/openipc_donators b/general/overlay/etc/openipc_donators index 3bce46d2..996e8d19 100644 --- a/general/overlay/etc/openipc_donators +++ b/general/overlay/etc/openipc_donators @@ -1,8 +1,12 @@ -OpenIPC is asking for your help to support development cost and long-term maintenance of what we believe will serve a fundamental -role in the advancement of a stable, flexible and most importantly, Open IP Network Camera Framework for users worldwide. +OpenIPC is asking for your help ! -Your contribution will help us advance development proposals forward, and interact with the community on a regular basis. +Please help the Team of OpenIPC project to cover the cost of development +and long-term maintenance of what we believe will be a stable, flexible +Open IP Network Camera Framework for users worldwide. - https://openipc.org/sponsor/ +Your contribution could help us to advance the development and keep you +updated on improvements and new features more regularly. + +Please visit https://openipc.org/sponsor/ to learn more. Thank you. diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index ad795a69..9271fa5b 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -5,7 +5,7 @@ export TZ=$(cat /etc/TZ) if [ "$PS1" ]; then [ -f /etc/os-release ] && . /etc/os-release - [ -f /etc/openipc_banner ] && echo -ne "\n\e[1;36m$(cat /etc/openipc_banner) v$OPENIPC_VERSION\e[0m\n\n" + [ -f /etc/openipc_banner ] && echo -ne "\n\e[1;36m$(cat /etc/openipc_banner) $GITHUB_VERSION\e[0m\n\n" [ -f /etc/openipc_donators ] && echo -e "\n\e[1;36m$(cat /etc/openipc_donators)\e[0m\n\n" # if [ "`id -u`" -eq 0 ]; then diff --git a/general/package/hisilicon-osdrv-hi3516cv200/files/script/load_hisilicon b/general/package/hisilicon-osdrv-hi3516cv200/files/script/load_hisilicon index a65ef6fd..e00c5136 100755 --- a/general/package/hisilicon-osdrv-hi3516cv200/files/script/load_hisilicon +++ b/general/package/hisilicon-osdrv-hi3516cv200/files/script/load_hisilicon @@ -100,11 +100,11 @@ insert_isp() insert_sns() { case $SENSOR in - ar0130|9m034) + 9m034|ar0130|ov9732|sc2235) devmem 0x200f0040 32 0x2; # I2C0_SCL devmem 0x200f0044 32 0x2; # I2C0_SDA - #cmos pinmux + # Cmos pinmux devmem 0x200f007c 32 0x1; # VI_DATA13 devmem 0x200f0080 32 0x1; # VI_DATA10 devmem 0x200f0084 32 0x1; # VI_DATA12 @@ -113,7 +113,7 @@ insert_sns() devmem 0x200f0090 32 0x2; # VI_HS devmem 0x200f0094 32 0x1; # VI_DATA9 - devmem 0x2003002c 32 0xc4001; # sensor unreset, clk 24MHz, VI 99MHz + devmem 0x2003002c 32 0xc4001; # Sensor unreset, clk 24MHz, VI 99MHz ;; sc1135|sc1145|sc2135) @@ -130,21 +130,6 @@ insert_sns() devmem 0x2003002c 32 0xb4001; # clk 27MHz, VI 99MHz ;; - sc2235) - devmem 0x200f0040 32 0x2; # I2C0_SCL - devmem 0x200f0044 32 0x2; # I2C0_SDA - - #cmos pinmux - devmem 0x200f007c 32 0x1; # VI_DATA13 - devmem 0x200f0080 32 0x1; # VI_DATA10 - devmem 0x200f0084 32 0x1; # VI_DATA12 - devmem 0x200f0088 32 0x1; # VI_DATA11 - devmem 0x200f008c 32 0x2; # VI_VS - devmem 0x200f0090 32 0x2; # VI_HS - devmem 0x200f0094 32 0x1; # VI_DATA9 - - devmem 0x2003002c 32 0xc4001; # sensor unreset, clk 24MHz, VI 99MHz - ;; *) echo "xxxx Invalid sensor type $SENSOR xxxx" report_error;; @@ -173,7 +158,7 @@ insert_ko() insert_isp; insmod hi3518e_viu.ko detect_err_frame=10; insmod hi3518e_vpss.ko rfr_frame_comp=1; - insmod hi3518e_vou.ko + #insmod hi3518e_vou.ko #insmod hi3518e_vou.ko transparentTransmit=1 #enable transparentTransmit #insmod hifb.ko video="hifb:vram0_size:1620" # default pal @@ -183,10 +168,10 @@ insert_ko() insmod hi3518e_h264e.ko H264eMiniBufMode=1 insmod hi3518e_jpege.ko insmod hi3518e_ive.ko save_power=0; -# insmod hi3518e_ive.ko + #insmod hi3518e_ive.ko insmod sensor_i2c.ko insmod pwm.ko - insmod piris.ko + #insmod piris.ko insert_sns insert_audio @@ -211,7 +196,7 @@ remove_ko() rmmod hi3518e_venc rmmod hifb - rmmod hi3518e_vou + #rmmod hi3518e_vou rmmod hi3518e_vpss rmmod hi3518e_viu rmmod hi_mipi @@ -220,7 +205,7 @@ remove_ko() rmmod hi3518e_region rmmod hi3518e_tde - rmmod piris + #rmmod piris rmmod hi3518e_isp rmmod hi3518e_sys rmmod hi3518e_base diff --git a/general/package/ipctool/ipctool.mk b/general/package/ipctool/ipctool.mk index aac9b481..a4e237e4 100644 --- a/general/package/ipctool/ipctool.mk +++ b/general/package/ipctool/ipctool.mk @@ -1,10 +1,10 @@ ################################################################################ # -# ipctool | updated 2021.12.10 +# ipctool # ################################################################################ -IPCTOOL_VERSION = 0982b23b234e6d156e4a325ea6c29b9cbd91e2c7 +IPCTOOL_VERSION = master IPCTOOL_SITE = $(call github,openipc,ipctool,$(IPCTOOL_VERSION)) IPCTOOL_LICENSE = MIT IPCTOOL_LICENSE_FILES = LICENSE diff --git a/general/package/majestic-gk7205v200/majestic-gk7205v200.mk b/general/package/majestic-gk7205v200/majestic-gk7205v200.mk index 7b97af1c..4d170135 100644 --- a/general/package/majestic-gk7205v200/majestic-gk7205v200.mk +++ b/general/package/majestic-gk7205v200/majestic-gk7205v200.mk @@ -13,6 +13,7 @@ MAJESTIC_GK7205V200_LICENSE_FILES = LICENSE define MAJESTIC_GK7205V200_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-hi3516av100/majestic-hi3516av100.mk b/general/package/majestic-hi3516av100/majestic-hi3516av100.mk index 71af8fb6..1cb827d1 100644 --- a/general/package/majestic-hi3516av100/majestic-hi3516av100.mk +++ b/general/package/majestic-hi3516av100/majestic-hi3516av100.mk @@ -13,6 +13,7 @@ MAJESTIC_HI3516AV100_LICENSE_FILES = LICENSE define MAJESTIC_HI3516AV100_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-hi3516cv200/majestic-hi3516cv200.mk b/general/package/majestic-hi3516cv200/majestic-hi3516cv200.mk index 89f1bad9..b5c108f1 100644 --- a/general/package/majestic-hi3516cv200/majestic-hi3516cv200.mk +++ b/general/package/majestic-hi3516cv200/majestic-hi3516cv200.mk @@ -13,6 +13,7 @@ MAJESTIC_HI3516CV200_LICENSE_FILES = LICENSE define MAJESTIC_HI3516CV200_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-hi3516cv300/majestic-hi3516cv300.mk b/general/package/majestic-hi3516cv300/majestic-hi3516cv300.mk index 7b311d07..79822f83 100644 --- a/general/package/majestic-hi3516cv300/majestic-hi3516cv300.mk +++ b/general/package/majestic-hi3516cv300/majestic-hi3516cv300.mk @@ -13,6 +13,7 @@ MAJESTIC_HI3516CV300_LICENSE_FILES = LICENSE define MAJESTIC_HI3516CV300_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-hi3516cv500/majestic-hi3516cv500.mk b/general/package/majestic-hi3516cv500/majestic-hi3516cv500.mk index c33ce9c1..64501de6 100644 --- a/general/package/majestic-hi3516cv500/majestic-hi3516cv500.mk +++ b/general/package/majestic-hi3516cv500/majestic-hi3516cv500.mk @@ -13,6 +13,7 @@ MAJESTIC_HI3516CV500_LICENSE_FILES = LICENSE define MAJESTIC_HI3516CV500_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-hi3516ev300/majestic-hi3516ev300.mk b/general/package/majestic-hi3516ev300/majestic-hi3516ev300.mk index 547c6d24..1130a629 100644 --- a/general/package/majestic-hi3516ev300/majestic-hi3516ev300.mk +++ b/general/package/majestic-hi3516ev300/majestic-hi3516ev300.mk @@ -13,6 +13,7 @@ MAJESTIC_HI3516EV300_LICENSE_FILES = LICENSE define MAJESTIC_HI3516EV300_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-nt9856x/majestic-nt9856x.mk b/general/package/majestic-nt9856x/majestic-nt9856x.mk index db9d9e96..b333c0f8 100644 --- a/general/package/majestic-nt9856x/majestic-nt9856x.mk +++ b/general/package/majestic-nt9856x/majestic-nt9856x.mk @@ -13,6 +13,7 @@ MAJESTIC_NT9856X_LICENSE_FILES = LICENSE define MAJESTIC_NT9856X_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-ssc335/majestic-ssc335.mk b/general/package/majestic-ssc335/majestic-ssc335.mk index c10116f7..085c275a 100644 --- a/general/package/majestic-ssc335/majestic-ssc335.mk +++ b/general/package/majestic-ssc335/majestic-ssc335.mk @@ -13,6 +13,7 @@ MAJESTIC_SSC335_LICENSE_FILES = LICENSE define MAJESTIC_SSC335_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-xm510/majestic-xm510.mk b/general/package/majestic-xm510/majestic-xm510.mk index ddbac224..e243c6e3 100644 --- a/general/package/majestic-xm510/majestic-xm510.mk +++ b/general/package/majestic-xm510/majestic-xm510.mk @@ -13,6 +13,7 @@ MAJESTIC_XM510_LICENSE_FILES = LICENSE define MAJESTIC_XM510_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/majestic-xm530/majestic-xm530.mk b/general/package/majestic-xm530/majestic-xm530.mk index 394e29a0..eea355f6 100644 --- a/general/package/majestic-xm530/majestic-xm530.mk +++ b/general/package/majestic-xm530/majestic-xm530.mk @@ -13,6 +13,7 @@ MAJESTIC_XM530_LICENSE_FILES = LICENSE define MAJESTIC_XM530_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml + $(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/majestic diff --git a/general/package/mini-snmpd-openipc/0001-Prepend-zero-byte-before-unsigned-integers.patch b/general/package/mini-snmpd-openipc/0001-Prepend-zero-byte-before-unsigned-integers.patch new file mode 100644 index 00000000..36ddee42 --- /dev/null +++ b/general/package/mini-snmpd-openipc/0001-Prepend-zero-byte-before-unsigned-integers.patch @@ -0,0 +1,31 @@ +From 949ae648bf7c654b8fae607a0988bfa672607156 Mon Sep 17 00:00:00 2001 +From: Patrick Rauscher +Date: Fri, 18 Aug 2017 17:31:23 +0200 +Subject: [PATCH] Prepend zero-byte before unsigned integers + +fixes #8 + +Signed-off-by: Alexander Sverdlin +--- + mib.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/mib.c b/mib.c +index 7d2e513..a9ffbe2 100644 +--- a/mib.c ++++ b/mib.c +@@ -207,6 +207,11 @@ static int encode_unsigned(data_t *data, int type, unsigned int ticks_value) + else + length = 1; + ++ /* check if the integer could be interpreted negative during a signed decode and prepend a zero-byte if necessary */ ++ if ((ticks_value >> (8 * (length - 1))) & 0x80) { ++ length++; ++ } ++ + *buffer++ = type; + *buffer++ = length; + while (length--) +-- +2.13.2 + diff --git a/general/package/mini-snmpd-openipc/0002-mib.c-allow-unsigned-integers-to-have-an-extra-byte.patch b/general/package/mini-snmpd-openipc/0002-mib.c-allow-unsigned-integers-to-have-an-extra-byte.patch new file mode 100644 index 00000000..045d2969 --- /dev/null +++ b/general/package/mini-snmpd-openipc/0002-mib.c-allow-unsigned-integers-to-have-an-extra-byte.patch @@ -0,0 +1,28 @@ +From 556c8a406c9e08dd9444222e072f7eb9c82a81e8 Mon Sep 17 00:00:00 2001 +From: Patrick Rauscher +Date: Fri, 18 Aug 2017 17:44:32 +0200 +Subject: [PATCH] mib.c: allow unsigned integers to have an extra byte + +The extra byte can be needed when encoding huge unsigned numbers (i.e. 0x80000000 or higher). In this case, during encoding we need an extra byte to make sure clients decoding as signed int do not get negative numbers. For further details, see commit 949ae648 + +Signed-off-by: Alexander Sverdlin +--- + mib.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mib.c b/mib.c +index a9ffbe2..83cc20d 100644 +--- a/mib.c ++++ b/mib.c +@@ -372,7 +372,7 @@ static int data_alloc(data_t *data, int type) + case BER_TYPE_COUNTER: + case BER_TYPE_GAUGE: + case BER_TYPE_TIME_TICKS: +- data->max_length = sizeof(unsigned int) + 2; ++ data->max_length = sizeof(unsigned int) + 3; + data->encoded_length = 0; + data->buffer = allocate(data->max_length); + break; +-- +2.13.2 + diff --git a/general/package/mini-snmpd-openipc/Config.in b/general/package/mini-snmpd-openipc/Config.in new file mode 100644 index 00000000..437dab7d --- /dev/null +++ b/general/package/mini-snmpd-openipc/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_MINI_SNMPD_OPENIPC + bool "mini-snmpd-openipc" + help + Mini SNMPd is a minimal implementation targeted at small or + embedded UNIX systems with limited resources + + http://troglobit.com/mini-snmpd.html diff --git a/general/package/mini-snmpd-openipc/files/S50snmpd b/general/package/mini-snmpd-openipc/files/S50snmpd new file mode 100755 index 00000000..e925ced5 --- /dev/null +++ b/general/package/mini-snmpd-openipc/files/S50snmpd @@ -0,0 +1,57 @@ +#!/bin/sh + +DAEMON="mini-snmpd" +PIDFILE="/var/run/$DAEMON.pid" + +SNMPD_ARGS="-n -4 -c openipc -i eth0 -D OpenIPC -C https://openipc.org -L Internet -l notice" + +# shellcheck source=/dev/null +[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" + +# The mini-snmpd does not create a pidfile, so pass "-n" in the command line +# and use "-m" to instruct start-stop-daemon to create one. +start() { + printf 'Starting %s: ' "$DAEMON" + [ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, " + # shellcheck disable=SC2086 # we need the word splitting + start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \ + -- $SNMPD_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + [ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, " + start-stop-daemon -K -q -p "$PIDFILE" + status=$? + if [ "$status" -eq 0 ]; then + rm -f "$PIDFILE" + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +case "$1" in + start|stop|restart) + "$1";; + reload) + # Restart, since there is no true "reload" feature. + restart;; + *) + echo "Usage: $0 {start|stop|restart|reload}" + exit 1 +esac diff --git a/general/package/mini-snmpd-openipc/mini-snmpd.mk b/general/package/mini-snmpd-openipc/mini-snmpd.mk new file mode 100644 index 00000000..74959cd4 --- /dev/null +++ b/general/package/mini-snmpd-openipc/mini-snmpd.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# mini-snmpd-openipc +# +################################################################################ + +MINI_SNMPD_OPENIPC_VERSION = 1.4 +MINI_SNMPD_OPENIPC_SITE = $(call github,troglobit,mini-snmpd,v$(MINI_SNMPD_OPENIPC_VERSION)) +MINI_SNMPD_OPENIPC_LICENSE = GPL-2.0 +MINI_SNMPD_OPENIPC_LICENSE_FILES = COPYING +MINI_SNMPD_OPENIPC_AUTORECONF = YES + +define MINI_SNMPD_OPENIPC_INSTALL_TARGET_CMDS + + $(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d + cp ../general/package/mini-snmpd-openipc/files/S50snmpd $(TARGET_DIR)/etc/init.d + +endef + +$(eval $(autotools-package)) diff --git a/general/package/yaml-cli/yaml-cli.mk b/general/package/yaml-cli/yaml-cli.mk index 685e5913..acf45c19 100644 --- a/general/package/yaml-cli/yaml-cli.mk +++ b/general/package/yaml-cli/yaml-cli.mk @@ -1,11 +1,11 @@ ################################################################################ # -# yaml-cli | updated 2021.11.09 +# yaml-cli # ################################################################################ -YAML_CLI_VERSION = 0.0.4 -YAML_CLI_SITE = $(call github,openipc,yaml-cli,v$(YAML_CLI_VERSION)) +YAML_CLI_VERSION = master +YAML_CLI_SITE = $(call github,openipc,yaml-cli,$(YAML_CLI_VERSION)) YAML_CLI_LICENSE = MIT YAML_CLI_LICENSE_FILES = LICENSE diff --git a/scripts/executing_commands_for_glibc.sh b/scripts/executing_commands_for_glibc.sh index c94c8861..e71ff152 100755 --- a/scripts/executing_commands_for_glibc.sh +++ b/scripts/executing_commands_for_glibc.sh @@ -4,6 +4,7 @@ # date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +date "+GITHUB_VERSION=\"${BRANCH_NAME}+${GIT_HASH}, %Y-%m-%d\"" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"' # diff --git a/scripts/executing_commands_for_musl.sh b/scripts/executing_commands_for_musl.sh index 906668af..95ed288c 100755 --- a/scripts/executing_commands_for_musl.sh +++ b/scripts/executing_commands_for_musl.sh @@ -4,6 +4,7 @@ # date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +date "+GITHUB_VERSION=\"${BRANCH_NAME}+${GIT_HASH}, %Y-%m-%d\"" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"' # diff --git a/scripts/executing_commands_for_uclibc.sh b/scripts/executing_commands_for_uclibc.sh index 20c5a971..a5d6f3c1 100755 --- a/scripts/executing_commands_for_uclibc.sh +++ b/scripts/executing_commands_for_uclibc.sh @@ -4,6 +4,7 @@ # date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +date "+GITHUB_VERSION=\"${BRANCH_NAME}+${GIT_HASH}, %Y-%m-%d\"" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"' #