UPDATE: update.sh calls update_img.sh but depends if there is file in /tmp/update.sh (in my case there is one.) so if there is /tmp/update.sh and I think it might be faulty. as my logs provided before I can see there are errors in whole update proccess starting from update_img
[...]
OLD MODEL NAME = TS-219P
Allow upgrade
gzip: crc error
Allow upgrade
/mnt/HDA_ROOT/update
tune2fs 1.41.4 (27-Jan-2009)
[...]
well as I understand bad crc would throw FW999 error... HMM... will keeep on looking
Firmware error 999 and disk gets forgotten about after initiation
-
- Starting out
- Posts: 14
- Joined: Sun Apr 18, 2021 2:00 pm
-
- Starting out
- Posts: 14
- Joined: Sun Apr 18, 2021 2:00 pm
Re: Firmware error 999 and disk gets forgotten about after initiation
Well another update, code doesn't lie update-img.sh file has function called CRC_check and what it does it loops thru array of elements called IMG_FILE_LIST. this is the code that shows error FW999
will keep on digging.
Code: Select all
CRC_check()
{
for i in $IMG_FILE_LIST rootfs_ext.tgz qpkg.tar qpatch.tgz
do
if [ -f "$UPDATE_FOLDER/$i" ]; then
check_sum "$UPDATE_FOLDER/$i" "$UPDATE_FOLDER/$i.cksum"
[ $? = 0 ] || do_exit $FW_CRC_ERROR
/bin/echo "$i" cksum ... Pass
fi
done
return 0
}
Re: Firmware error 999 and disk gets forgotten about after initiation
Have you tried to follow the instructions to copy the image file to another directory to avoid the image file error?
https://wiki.qnap.com/wiki/Manually_Updating_Firmware
https://wiki.qnap.com/wiki/Manually_Updating_Firmware
-
- Starting out
- Posts: 14
- Joined: Sun Apr 18, 2021 2:00 pm
Re: Firmware error 999 and disk gets forgotten about after initiation
UPDATE: managed to flash firmware by disabling checksum and editing both files update.sh and update_img.sh, crc passed ,and all updated, now will try and inform.
UPDATE 2: Successfully flashed 4.3.3.1624 firmware, will try to initialize drive now.
UPDATE 2: Successfully flashed 4.3.3.1624 firmware, will try to initialize drive now.
-
- Starting out
- Posts: 14
- Joined: Sun Apr 18, 2021 2:00 pm
Re: Firmware error 999 and disk gets forgotten about after initiation
Well guys, managed to fix it, and to be honest I spent 3 days on it just because I looked at it as a challange to myself.
What did I do?
For your information firmware 999 means that checksum has failed, I look up update.sh script and it throws that error when checking checksum. In my case crc was good, but somehow it didn't passed, so had nothing to loose by bypassing it.\
Have a nice day!
What did I do?
- Modified update.sh and update-img.sh to bypass CRC check
- Installed newest firmware there was when crc was disabled.
- Then installed 16mb DOM flash memory using those modified files (https://wiki.qnap.com/wiki/NAS_Firmware ... _Installed)
- then it still failed. So removed HDD booted up and simply reinstall everything, then updated firmware from server and it worked.
For your information firmware 999 means that checksum has failed, I look up update.sh script and it throws that error when checking checksum. In my case crc was good, but somehow it didn't passed, so had nothing to loose by bypassing it.\
Have a nice day!