Firmware error 999 and disk gets forgotten about after initiation

Discussion on setting up QNAP NAS products.
VeryFastSnail
Starting out
Posts: 14
Joined: Sun Apr 18, 2021 2:00 pm

Re: Firmware error 999 and disk gets forgotten about after initiation

Post by VeryFastSnail »

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
VeryFastSnail
Starting out
Posts: 14
Joined: Sun Apr 18, 2021 2:00 pm

Re: Firmware error 999 and disk gets forgotten about after initiation

Post by VeryFastSnail »

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

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
}
will keep on digging.
elvisimprsntr

Re: Firmware error 999 and disk gets forgotten about after initiation

Post by elvisimprsntr »

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
VeryFastSnail
Starting out
Posts: 14
Joined: Sun Apr 18, 2021 2:00 pm

Re: Firmware error 999 and disk gets forgotten about after initiation

Post by VeryFastSnail »

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.
VeryFastSnail
Starting out
Posts: 14
Joined: Sun Apr 18, 2021 2:00 pm

Re: Firmware error 999 and disk gets forgotten about after initiation

Post by VeryFastSnail »

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?
  • Modified update.sh and update-img.sh to bypass CRC check
  • Installed newest firmware there was when crc was disabled.
  • then it still failed. So removed HDD booted up and simply reinstall everything, then updated firmware from server and it worked.
I hope that this information is useful for everyone who is dealing with similar issues :)


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!
Locked

Return to “Turbo Station Installation & Setup”