Activity log for bug #1782121

Date Who What changed Old value New value Message
2018-07-17 11:10:46 Paolo Pisati bug added bug
2018-07-17 11:11:05 Paolo Pisati attachment added 0001-UBUNT-SAUCE-arm64-dtbs-Add-symbols-when-compiling-dt.patch https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1782121/+attachment/5164457/+files/0001-UBUNT-SAUCE-arm64-dtbs-Add-symbols-when-compiling-dt.patch
2018-07-17 11:11:43 Paolo Pisati description Impact: Overlay dtb files should be applied to the main board dtb, before it's being passed down to the kernel for boot - but this didn't happen in the arm64 variant of the bionic/raspi2 kernel. /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 But the attached second display is never initialized. Fix: The main dtb must be built with symbols, to let overlay files find which section to patch - the applied patch does exactly that. Apply, build, install and reboot: dmesg: ... [ 5.144664] fbtft: module is from the staging directory, the quality is unknown, you have been warned. [ 5.145814] fbtft: module verification failed: signature and/or required key missing - tainting kernel [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. --- Impact: Overlay dtb files should be applied to the main board dtb, before it's being passed down to the kernel for boot - but this didn't happen in the arm64 variant of the bionic/raspi2 kernel. /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 But the attached second display is never initialized. Fix: The main dtb must be built with symbols, to let overlay files find which section to patch - the applied patch does exactly that. Apply, build, install and reboot: dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. ---
2018-07-17 11:13:13 Paolo Pisati nominated for series Ubuntu Bionic
2018-07-17 11:20:17 Paolo Pisati description Impact: Overlay dtb files should be applied to the main board dtb, before it's being passed down to the kernel for boot - but this didn't happen in the arm64 variant of the bionic/raspi2 kernel. /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 But the attached second display is never initialized. Fix: The main dtb must be built with symbols, to let overlay files find which section to patch - the applied patch does exactly that. Apply, build, install and reboot: dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. --- Impact: Overlay files are dtb fragments that, upon boot, patch the main dtb board file to enable Raspberry Pi board hardware extension commonly know as Raspberry HATs. This mechanism works fine for the bionic/raspi2 kernel, while it didn't work for the arm64 variant since are dtb files are missing all symbols there. This patch instruct the device tree compiler to add symbols to the dtb files during the 'make dtbs' target, and fix overlay patching for bionic/raspi2 arm64. /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 But the attached second display is never initialized. Fix: The main dtb must be built with symbols, to let overlay files find which section to patch - the applied patch does exactly that. Apply, build, install and reboot: dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. ---
2018-07-17 11:23:11 Paolo Pisati description Impact: Overlay files are dtb fragments that, upon boot, patch the main dtb board file to enable Raspberry Pi board hardware extension commonly know as Raspberry HATs. This mechanism works fine for the bionic/raspi2 kernel, while it didn't work for the arm64 variant since are dtb files are missing all symbols there. This patch instruct the device tree compiler to add symbols to the dtb files during the 'make dtbs' target, and fix overlay patching for bionic/raspi2 arm64. /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 But the attached second display is never initialized. Fix: The main dtb must be built with symbols, to let overlay files find which section to patch - the applied patch does exactly that. Apply, build, install and reboot: dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. --- Impact: Overlay files are dtb fragments that, upon boot, patch the main dtb board file to enable Raspberry Pi board hardware extension commonly know as Raspberry HATs. This mechanism works fine for the bionic/raspi2 kernel, while it didn't work for the raspi2 arm64 variant since our dtb files are missing symbols there. This patch instruct the device tree compiler to add symbols to the dtb files during the 'make dtbs' target, and fix overlay patching for bionic/raspi2 arm64. The resulting increase is size is negligible (~30kb for the whole kernel package). Fix: Apply the patch, build, install and reboot: /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. ---
2018-07-17 11:44:08 Paolo Pisati description Impact: Overlay files are dtb fragments that, upon boot, patch the main dtb board file to enable Raspberry Pi board hardware extension commonly know as Raspberry HATs. This mechanism works fine for the bionic/raspi2 kernel, while it didn't work for the raspi2 arm64 variant since our dtb files are missing symbols there. This patch instruct the device tree compiler to add symbols to the dtb files during the 'make dtbs' target, and fix overlay patching for bionic/raspi2 arm64. The resulting increase is size is negligible (~30kb for the whole kernel package). Fix: Apply the patch, build, install and reboot: /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. --- Impact: Overlay files are dtb fragments that, upon boot, patch the main dtb board file to enable Raspberry Pi hardware extension (commonly known as Raspberry HATs) to work. This mechanism works fine for the bionic/raspi2 kernel, but it didn't work for the raspi2 arm64 variant since our dtb files are missing symbols there. This patch instruct the device tree compiler to add symbols to the dtb files during the 'make dtbs' target, and fix the overlay patching mechanism for bionic/raspi2 arm64. The resulting increase in size is negligible (~30kb for the whole kernel package). Fix: Apply the patch, build, install and reboot: /boot/firmware/config.txt: ... dtoverlay=pitft35-resistive /boot/firmware/cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 dmesg: ... [ 5.157547] fb_hx8357d: module is from the staging directory, the quality is unknown, you have been warned. [ 5.158349] fbtft_of_value: buswidth = 8 [ 5.158362] fbtft_of_value: debug = 0 [ 5.158366] fbtft_of_value: rotate = 90 [ 5.158372] fbtft_of_value: fps = 25 ubuntu@raspi64:~$ ls -la /dev/fb1 crw-rw---- 1 root video 29, 1 Jan 28 15:58 /dev/fb1 Regression risk: We only change how the arm64 raspi2 dtbs are generated, and since we didn't produce any image using this kernel so far, the regression risk is zero. ---
2018-07-17 16:25:00 Ubuntu Foundations Team Bug Bot tags patch
2018-07-17 16:25:00 Ubuntu Foundations Team Bug Bot bug added subscriber Joseph Salisbury
2018-07-17 17:22:46 Joseph Salisbury bug task added linux-raspi2 (Ubuntu Bionic)
2018-07-29 20:12:59 Khaled El Mously linux-raspi2 (Ubuntu Bionic): status New Fix Committed
2018-08-23 13:29:22 Launchpad Janitor linux-raspi2 (Ubuntu Bionic): status Fix Committed Fix Released
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-10323
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-10840
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-10881
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-1108
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-11412
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-11506
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-12232
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-12233
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-12904
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-13094
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-13405
2018-08-23 13:29:22 Launchpad Janitor cve linked 2018-13406
2018-09-10 11:06:15 Launchpad Janitor linux-raspi2 (Ubuntu): status New Fix Released