diff options
| author | lejeune quentin <qle@odoo.com> | 2021-03-30 14:01:51 +0000 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2021-04-08 15:08:15 +0000 |
| commit | 04c58aa229781ad165492765414483ae8e8d6693 (patch) | |
| tree | ed21ab466e2bdebb0a76793e4dc4b1ed9e98f888 | |
| parent | 73f2e9be09b4e874f0c78b5b08a29c640854b57e (diff) | |
[FIX] point_of_sale: Fix wifi firmware for IoT
With the new OS RaspiOS the firmware for the wifi card are unstable.
We need to keep a specific version of firmware-brcm80211 to keep
a stable and usable wifi connection.
So we fallback on a previous version of Buster and hold the
version of the package firmware-brcm80211 before the upgrade when
we build the box.
closes odoo/odoo#68836
Id: 2499855
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
| -rwxr-xr-x | addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh | 2 | ||||
| -rwxr-xr-x | addons/point_of_sale/tools/posbox/posbox_create_image.sh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh index 9f580af436d..c11bf0cf6dc 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh @@ -20,6 +20,8 @@ echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc locale-gen source ~/.bashrc +# upgrade firmware-brcm80211 broke access point on rpi4 +apt-mark hold firmware-brcm80211 apt-get update && apt-get -y upgrade # Do not be too fast to upgrade to more recent firmware and kernel than 4.38 # Firmware 4.44 seems to prevent the LED mechanism from working diff --git a/addons/point_of_sale/tools/posbox/posbox_create_image.sh b/addons/point_of_sale/tools/posbox/posbox_create_image.sh index e46d0027779..6187252cec7 100755 --- a/addons/point_of_sale/tools/posbox/posbox_create_image.sh +++ b/addons/point_of_sale/tools/posbox/posbox_create_image.sh @@ -33,11 +33,11 @@ VERSION_IOTBOX=21.03 REPO=https://github.com/odoo/odoo.git if ! file_exists *raspios*.img ; then - wget 'http://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-lite.zip' -O raspios.img.zip + wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2020-02-07/2020-02-05-raspbian-buster-lite.zip' -O raspios.img.zip unzip raspios.img.zip fi -RASPIOS=$(echo *raspios*.img) +RASPIOS=$(echo *raspbian*.img) rsync -avh --progress "${RASPIOS}" iotbox.img CLONE_DIR="${OVERWRITE_FILES_BEFORE_INIT_DIR}/home/pi/odoo" |
