ambiot / ambz2_sdk

sdk for amebaz2
46 stars 39 forks source link

git submodule update fail #47

Open cw-20021349 opened 10 months ago

cw-20021349 commented 10 months ago

Hello,

I attempted to build following the guide as shown here: https://github.com/ambiot/ambz2_sdk/commit/f83d6295310a4f35915640937ade06b74008d061

GCC

  1. git clone -b amazon https://github.com/ambiot/ambz2_sdk.git
  2. git submodule update --init --recursive --depth 1
  3. modified lib_amazon/freertos_LTS/vendors/realtek/boards/amebaZ2/aws_demos/config_files/aws_demo_config.h
  4. cd project/realtek_amebaz2_v0_example/GCC-RELEASE/
  5. make amazon
  6. make is

However, when I try the command "git submodule update --init --recursive --depth 1," I encounter the following error:

Submodule 'component/os/freertos/freertos_v10.4.3' (https://github.com/FreeRTOS/FreeRTOS-Kernel.git) registered for path 'component/os/freertos/freertos_v10.4.3' Submodule 'lib_amazon/freertos_LTS' (https://github.com/ambiot/amazon-freertos) registered for path 'lib_amazon/freertos_LTS' Cloning into 'component/os/freertos/freertos_v10.4.3'... remote: Enumerating objects: 792, done. remote: Counting objects: 100% (792/792), done. remote: Compressing objects: 100% (521/521), done. remote: Total 792 (delta 329), reused 510 (delta 230), pack-reused 0 Receiving objects: 100% (792/792), 1.36 MiB | 0 bytes/s, done. Resolving deltas: 100% (329/329), done. Checking connectivity... done. fatal: reference is not a tree: 1e0843929477c8f2e2679b70d18341ee312a5fce Cloning into 'lib_amazon/freertos_LTS'... remote: Enumerating objects: 5285, done. remote: Counting objects: 100% (5285/5285), done. remote: Compressing objects: 100% (3969/3969), done. remote: Total 5285 (delta 1383), reused 4008 (delta 1044), pack-reused 0 Receiving objects: 100% (5285/5285), 83.81 MiB | 19.44 MiB/s, done. Resolving deltas: 100% (1383/1383), done. Checking connectivity... done. fatal: reference is not a tree: ad1ea0a1e123c35e79008d43d3af50bb113d24ce Unable to checkout '1e0843929477c8f2e2679b70d18341ee312a5fce' in submodule path 'component/os/freertos/freertos_v10.4.3' Unable to checkout 'ad1ea0a1e123c35e79008d43d3af50bb113d24ce' in submodule path 'lib_amazon/freertos_LTS'

Do you have any suggestions for resolving this error?

Your advice would be greatly appreciated.

Thank you.

cw-20021349 commented 10 months ago

hi

https://github.com/ambiot/ambz2_sdk/blob/amazon/readme_for_support_Amazon_v202012-LTS_v02.txt Referring to the readme file below, is it possible to address the two errors above?

Unable to checkout '1e0843929477c8f2e2679b70d18341ee312a5fce' in submodule path 'component/os/freertos/freertos_v10.4.3' Unable to checkout 'ad1ea0a1e123c35e79008d43d3af50bb113d24ce' in submodule path 'lib_amazon/freertos_LTS'

renpeipei-realtek commented 6 days ago

Hi @cw-20021349 , Sorry for the late reply. I tried with the latest repo, there is no problem when update submodule. Please try again with the latest version.