View Single Post
Old 10-30-2023, 11:10 PM   #9
lamadaemon
Junior Member
lamadaemon began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2023
Location: Vancouver
Device: PW4
In my case, PW4 with FW 5.16.2.1.1, mrpi failed to read the build numbers. I try to debug it, and I find out that awk is not working at all. Even when I use gawk it still does not work. So I tried other ways to get version numbers, and at last, I did it by using sed multiple times.

Code:
Package 'Update_KUALBooklet_ff4134d_install.bin' (KUALBooklet ff4134d I) is not targeting your FW version [!(1679530004 <  < 18446744073709551615)] skipping . . . :(
And here is the fix in the function compute_current_ota_version.

Code:
	
# Lama fix
fw_build_maj="$(cat /etc/version.txt | sed -n '/Version/p' | sed 's/System Software Version: \?//g' | sed 's/-.*-/\n/g' | tail -n 1)"
fw_build_min="$(cat /etc/version.txt | sed -n '/Version/p' | sed 's/System Software Version: \?//g' | sed 's/-.*-/\n/g' | head -n 1)"
I tried it out and it works perfectlly.

Last edited by lamadaemon; 10-30-2023 at 11:12 PM.
lamadaemon is offline   Reply With Quote