Your message dated Tue, 22 Jan 2013 08:47:29 +0000
with message-id <[email protected]>
and subject line Bug#693263: fixed in qcontrol 0.4.2-7+wheezy2
has caused the Debian Bug report #693263,
regarding Please add support for disabling the PIC watchdog on TS-219p II
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
693263: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693263
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: qcontrol
Version: 0.4.2+svn-r40-1
Serverity: wishlist
Tags: patch

Hello,

recently I bought a new Qnap device (TS-219p II, the one with the USB
3.0 ports) and tried to install Debian on it. (also see the thread [1]
on the debian-arm mailing list) The Debian installer couldn't
successfully finish it's job on the device because - as we found out -
the PIC on at least this hardware revision has a watchdog which resets
the device after 5 minutes if enabled.

The solution Qnap used to solve this is simply disabling the PIC
watchdog using their own drivers and a binary called "pic_raw". Since
qcontrol is the solution on Debian used to communicate with the PIC, I
added an option to disable the PIC watchdog.

I don't know if the watchdog also exists or is enabled by default in
other Qnap devices or hardware revisions but it would probably be a
good idea to disable it at boot time for at least this device. Please
find the patch for the added lines of code attached.

[1] http://lists.debian.org/debian-arm/2012/11/threads.html#00013

- --
Helmut Pozimski


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAlCkCUoACgkQGPN+zM7FMNFiRgQAp7n+PDaHnh+zZupsTmcPwIyh
0DHlyJ1Uuc84ppFZs1DtbQmfFjRPWwLTbVr7OqM49vqgq8Icj+oEsIk7wPg7F3MU
zCD3yqEeOxTaPKfQD+qEeUNLnacz3ON25LLqF5j3E5MupdwHr3v60XkxBEjkTueA
L/mgjiqHN8TRroEqpIA=
=iPx8
-----END PGP SIGNATURE-----
diff --git a/ts219.c b/ts219.c
index b50d629..ec84925 100644
--- a/ts219.c
+++ b/ts219.c
@@ -315,6 +315,21 @@ static int ts219_autopower(int argc, const char **argv)
 	return 0;
 }
 
+static int ts219_wdt(int argc, const char **argv)
+{
+        char code = 0;
+
+        if (argc != 1)
+                return -1;
+        if (strcmp(argv[0], "off") == 0)
+                code = 0x67;
+        else
+                return -1;
+
+        return serial_write(&code, 1);
+        return 0;
+}
+
 static int ts219_init(int argc, const char **argv UNUSED)
 {
 	int err;
@@ -361,6 +376,12 @@ static int ts219_init(int argc, const char **argv UNUSED)
 	                       "Control the automatic power mechanism, options are:\n"
 	                       "\ton\n\toff\n",
 	                       ts219_autopower);
+        err = register_command("watchdog",
+                                "Disable the PIC watchdog",
+                                "Watchdog options are:\n"
+                                "\toff",
+                                ts219_wdt);
+
 
 	return pthread_create(&ts219_thread, NULL, serial_poll, NULL);
 }

--- End Message ---
--- Begin Message ---
Source: qcontrol
Source-Version: 0.4.2-7+wheezy2

We believe that the bug you reported is fixed in the latest version of
qcontrol, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ian Campbell <[email protected]> (supplier of updated qcontrol package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 06 Jan 2013 17:25:22 +0000
Source: qcontrol
Binary: qcontrol qcontrol-udeb
Architecture: source armel
Version: 0.4.2-7+wheezy2
Distribution: wheezy
Urgency: low
Maintainer: Debian QA Group <[email protected]>
Changed-By: Ian Campbell <[email protected]>
Description: 
 qcontrol   - hardware control for QNAP Turbo Station devices
 qcontrol-udeb - hardware control for QNAP Turbo Station devices (udeb)
Closes: 693263
Changes: 
 qcontrol (0.4.2-7+wheezy2) testing; urgency=low
 .
   * Backport --direct support, this is needed by the watchdog fix in the
     previous release. (Closes: #693263)
Checksums-Sha1: 
 ac4bade76cbacb39af079ac91d264133b8eb7624 1962 qcontrol_0.4.2-7+wheezy2.dsc
 aa635d67d6c4bef1033fee45b6bc42a212b3f073 13106 qcontrol_0.4.2-7+wheezy2.diff.gz
 b2460c645e7eae0e16e97413cefb4d14cd07e532 19392 
qcontrol_0.4.2-7+wheezy2_armel.deb
 c49a67f305e8f1451e793ca66afcc19094c3c33a 57478 
qcontrol-udeb_0.4.2-7+wheezy2_armel.udeb
Checksums-Sha256: 
 b81ae17744a1eaedc720b2cf106720e54bdb67353e6402c57daca2bef9af8d31 1962 
qcontrol_0.4.2-7+wheezy2.dsc
 9b42b2909e3bd55d406c5b4584b90c36bf8546694756679fe0c5313b151b2c93 13106 
qcontrol_0.4.2-7+wheezy2.diff.gz
 008a51f3dee04b151c56f59b3c8010b7bc16b0d2107b31599def41a305e0a8bc 19392 
qcontrol_0.4.2-7+wheezy2_armel.deb
 39cdc8996bfac258ea1ce763afc00ab35d0325473a51aa68604972824501afcd 57478 
qcontrol-udeb_0.4.2-7+wheezy2_armel.udeb
Files: 
 f56ef1f99cd03489ee004d49487baa36 1962 utils optional 
qcontrol_0.4.2-7+wheezy2.dsc
 6773a5d7f7db9584ec3e55c20433f2e5 13106 utils optional 
qcontrol_0.4.2-7+wheezy2.diff.gz
 b1aae7cb6a6aa6bd4685fd7832a59948 19392 utils optional 
qcontrol_0.4.2-7+wheezy2_armel.deb
 49a0734941eb4ac2ad47d14fb9283fcf 57478 debian-installer optional 
qcontrol-udeb_0.4.2-7+wheezy2_armel.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQ6dSlAAoJECouJZ9pWkbGPrYP/1l2Iftea9vdKRnHAdVHIV4C
bQF5WvR7zKyQb61uEq023QGE8CXzzyYL8xHxt3AdqxT/Q6ULlEMuPpwUHWR7qoGx
jaEkevIqxc/qFLp4VpOXL9td3VO8Z7nkrQM6JZH7AZuRU5C8q56xfqiy59YfrqGF
GOfsbhsLaPyiGDtgCsvtUtGkG1RpzfVuKdsJimOFB5KMjtyIFbAycB7Feamn1gTt
zMGQIoBHP/ik/UGrlV/syjybFVWAi0t1JGmuAdTkbfIbWP+bgxFbedTo292g1ynn
ScIVUSEMu4wz19yF4+AgdzSd46Jg+plxJQ6/TqSY8UXI+H9UFgUh3/YpiK4yRlCA
FTpIupQ/5VJ01wmBTrzmz5hDo7tcf7SYD1oc9sxB1xwSHU8OtUYJe1fBiFB4QyBY
Llgux1bHHJNVUkDAtFBszFQqY6OLLTlPA5Y0UkUIHGV0ysgbapaLQt22M7+NrqCW
CUOZ4yUxwxKnTV8J5PCsZzXXJHmv/YrTGoG1g/yu6CYB9wq2ST6VTiT3t/ziV7re
w7wJMp9KzE6Nk+lyWTT3Knv4aPEvxR6IuaFdjsgxPLQ5asL1UEN/vC6Qdp65T21R
DB/FClUWwxVRfkP4XmkOujx3ZFSINyrLdIxX63nTN7ioYBZtu3q5jJsKit11mH7h
jR27LVptQRm/2O5Na5MJ
=s2xt
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to