project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.39k stars 1.98k forks source link

[Platform] Building lighting example with pigweed RPC following steps in readme have left SD cards in an unusable state #22639

Closed dwgaul closed 1 year ago

dwgaul commented 2 years ago

Attempting to build on raspi/ubuntu the lighting-app with pigweed RPC enabled. Followed the steps in connectedhomeip/examples/lighting-app/linux/README.md

So far it seems I have corrupted two SD cards, essentially they become read only. FSCK is unable to repair the damage. Neither is a reformat of the SD card using the Raspberry PI imager application.

This appears to the the result of running git submodule update --init step as afterwards I am unable to make any modifications to my file system on the Raspi.

Not sure if maybe these steps need to be updated (and there's an assumed "Don't do this step as it will break your filesystem"), or a low quality brand of SD cards that cannot handle many read/writes, or if its related to this failure seen cloning the bouffalo labs repo:

Cloning into '/home/ubuntu/connectedhomeip/third_party/bouffalolab/repo'...
error: inflate: data stream error (unknown compression method)
fatal: serious inflate inconsistency
fatal: fetch-pack: invalid index-pack output
fatal: clone of 'https://github.com/bouffalolab/bl_iot_sdk.git' into submodule path '/home/ubuntu/connectedhomeip/third_party/bouffalolab/repo' failed
Failed to clone 'third_party/bouffalolab/repo'. Retry scheduled
  1. Setup raspberrypi 4 with recommended Ubuntu 21.10 (GNU/Linux 5.13.0-1025-raspi aarch64)
  2. Run the following steps as listed in connectedhomeip/examples/lighting-app/linux/README.md
  3. cd ~/connectedhomeip/examples/lighting-app/linux
  4. git submodule update --init
  5. source third_party/connectedhomeip/scripts/activate.sh
  6. gn gen out/debug --args='import("//with_pw_rpc.gni")'
  7. ninja -C out/debug

After step 4 completes, the entire filesystem is hosed.



### Platform

raspi

### Platform Version(s)

Ubuntu 21.10 (GNU/Linux 5.13.0-1025-raspi aarch64)

### Type

Manually tested with SDK

### (Optional) If manually tested please explain why this is only manually tested

_No response_

### Anything else?

Attaching full output of the output from step 4:
[GitLogs.txt](https://github.com/project-chip/connectedhomeip/files/9569829/GitLogs.txt)
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 1 year ago

This stale issue has been automatically closed. Thank you for your contributions.