cu-ecen-aeld / final-project-bjornhnelson

final-project-bjornhnelson created by GitHub Classroom
0 stars 1 forks source link

MQTT / Yocto Build Issues on Raspberry Pi Client #7

Closed bjornhnelson closed 2 years ago

bjornhnelson commented 2 years ago

DoD:

Blockers: None

bjornhnelson commented 2 years ago

Error seen when building Yocto image, prior to fixes: ERROR: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: Fetcher failure: Unable to find revision 83938f78ca2d5a0ffe0c223bb96d72ccc7b71ca5 in branch master even from upstream

This was not an easy issue to solve. Various things that I tested

Slack Issue Link

rpi-distro repo become unsupportive, previously it was working with successfully build.

Previously build was working till commit a0f6dd00c0c6c551436d9c1600e9a518a5d9ddbd as per shown in the https://github.com/cu-ecen-aeld/final-project-MehulCUB/issues/5#issue-1054457123

Initial error log when building: Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:01 Sstate summary: Wanted 1081 Local 0 Mirrors 0 Missed 1081 Current 609 (0% match, 36% complete) NOTE: Executing Tasks WARNING: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: URL: git://github.com/RPi-Distro/firmware-nonfree uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url. WARNING: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: URL: git://github.com/RPi-Distro/firmware-nonfree does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls. WARNING: pi-bluetooth-0.1.17-r0 do_fetch: URL: git://github.com/RPi-Distro/pi-bluetooth uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url. WARNING: pi-bluetooth-0.1.17-r0 do_fetch: URL: git://github.com/RPi-Distro/pi-bluetooth does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls. WARNING: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: Failed to fetch URL git://github.com/RPi-Distro/firmware-nonfree, attempting MIRRORS if available WARNING: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: URL: git://github.com/RPi-Distro/firmware-nonfree;protocol=https does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls. WARNING: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: URL: git://github.com/git/RPi-Distro/firmware-nonfree;protocol=https does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls. ERROR: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: Fetcher failure: Unable to find revision 83938f78ca2d5a0ffe0c223bb96d72ccc7b71ca5 in branch master even from upstream ERROR: linux-firmware-rpidistro-20190114-1+rpt11-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/RPi-Distro/firmware-nonfree') ERROR: Logfile of failure stored in: /home/bjornnelson/Desktop/AESD/final-project-MehulCUB/build/tmp/work/all-poky-linux/linux-firmware-rpidistro/20190114-1+rpt11-r0/temp/log.do_fetch.1915788 ERROR: Task (/home/bjornnelson/Desktop/AESD/final-project-MehulCUB/meta-raspberrypi/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb:do_fetch) failed with exit code '1'

bjornhnelson commented 2 years ago

Working Yocto build with MQTT support added, latest commit found here

Screen Shot 2021-11-21 at 11 43 45 PM
bjornhnelson commented 2 years ago

Working MQTT communication between 2 Raspberry Pis, sample scripts found here

Screen Shot 2021-11-21 at 11 45 45 PM Screen Shot 2021-11-21 at 11 45 30 PM