linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux-compatible watchdog add-on?
@ 2016-08-25 16:31 Nicolas Boullis
  2016-08-26  4:58 ` Oleksij Rempel
  2016-08-29 23:53 ` Guenter Roeck
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Boullis @ 2016-08-25 16:31 UTC (permalink / raw)
  To: linux-watchdog

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

Hi,

Sorry if my question is off-topic for this list.

I have a computer that experienced a kernel failure while a was far away 
and nobody could reboot it. So I thought it would be nice to have a 
watchdog. Unfortunately, to the best of my knowledge, it has no hardware 
watchdog, so I thought I should add one.

Hence, do you have suggestions for I²C-, serial- or USB-connected 
watchdog add-ons? It should of course be compatible with linux.

I found 
  http://www.berkprod.com/Product_Web_Pages/usb_v1_pc_watchdog.aspx
but I think it is a little too expensive.

If no such thing exists, I might consider designing my own (open 
hardware) I²C- or USB-connected watchdog add-on, using a cheap MCU. But 
then I would welcome opinions on what the interface between the host and 
watchdog should look like.


Cheers,

-- 
Nicolas Boullis

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux-compatible watchdog add-on?
  2016-08-25 16:31 Linux-compatible watchdog add-on? Nicolas Boullis
@ 2016-08-26  4:58 ` Oleksij Rempel
  2016-08-26 23:14   ` Nicolas Boullis
  2016-08-29 23:53 ` Guenter Roeck
  1 sibling, 1 reply; 5+ messages in thread
From: Oleksij Rempel @ 2016-08-26  4:58 UTC (permalink / raw)
  To: Nicolas Boullis, linux-watchdog


[-- Attachment #1.1: Type: text/plain, Size: 1258 bytes --]

Hi

Am 25.08.2016 um 18:31 schrieb Nicolas Boullis:
> Hi,
> 
> Sorry if my question is off-topic for this list.
> 
> I have a computer that experienced a kernel failure while a was far away 
> and nobody could reboot it. So I thought it would be nice to have a 
> watchdog. Unfortunately, to the best of my knowledge, it has no hardware 
> watchdog, so I thought I should add one.
> 
> Hence, do you have suggestions for I²C-, serial- or USB-connected 
> watchdog add-ons? It should of course be compatible with linux.
> 
> I found 
>   http://www.berkprod.com/Product_Web_Pages/usb_v1_pc_watchdog.aspx
> but I think it is a little too expensive.
> 
> If no such thing exists, I might consider designing my own (open 
> hardware) I²C- or USB-connected watchdog add-on, using a cheap MCU. But 
> then I would welcome opinions on what the interface between the host and 
> watchdog should look like.

How about SPI?
If yes, you can try this project:
https://plus.google.com/102032716864870215256/posts/PwMMKYP5PKR
https://plus.google.com/102032716864870215256/posts/QJqPxSi1Str

Linux side is configured as watchdog, MCU side currently do only demo
blinking, but watchdog should be a main future.


-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux-compatible watchdog add-on?
  2016-08-26  4:58 ` Oleksij Rempel
@ 2016-08-26 23:14   ` Nicolas Boullis
  2016-08-27 11:38     ` Oleksij Rempel
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Boullis @ 2016-08-26 23:14 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: linux-watchdog

Hi,

On Fri, Aug 26, 2016 at 06:58:15AM +0200, Oleksij Rempel wrote:
> 
> How about SPI?
> If yes, you can try this project:
> https://plus.google.com/102032716864870215256/posts/PwMMKYP5PKR
> https://plus.google.com/102032716864870215256/posts/QJqPxSi1Str
> 
> Linux side is configured as watchdog, MCU side currently do only demo
> blinking, but watchdog should be a main future.

Thanks for telling me about this project.

But, to be honnest, I don’t really understand what this project is 
about. I never hearded about the SSI32 protocol (while I know the SPI 
protocol)…

Anyway, as far as I know, my motherboard has no SPI bus… I guess I might 
buy or design an USB-SPI interface, but I wonder if designing an USB 
watchdog wouldn’t be easier…

Anyway, I would still be interested to understand a little more what 
that project is about; it might at least be a good source for 
inspiration…


Cheers,

-- 
Nicolas Boullis
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux-compatible watchdog add-on?
  2016-08-26 23:14   ` Nicolas Boullis
@ 2016-08-27 11:38     ` Oleksij Rempel
  0 siblings, 0 replies; 5+ messages in thread
From: Oleksij Rempel @ 2016-08-27 11:38 UTC (permalink / raw)
  To: Nicolas Boullis; +Cc: linux-watchdog


[-- Attachment #1.1: Type: text/plain, Size: 2434 bytes --]

Hi

Am 27.08.2016 um 01:14 schrieb Nicolas Boullis:
> Hi,
> 
> On Fri, Aug 26, 2016 at 06:58:15AM +0200, Oleksij Rempel wrote:
>>
>> How about SPI?
>> If yes, you can try this project:
>> https://plus.google.com/102032716864870215256/posts/PwMMKYP5PKR
>> https://plus.google.com/102032716864870215256/posts/QJqPxSi1Str
>>
>> Linux side is configured as watchdog, MCU side currently do only demo
>> blinking, but watchdog should be a main future.
> 
> Thanks for telling me about this project.
> 
> But, to be honnest, I don’t really understand what this project is 
> about. I never hearded about the SSI32 protocol (while I know the SPI 
> protocol)…
> 
> Anyway, as far as I know, my motherboard has no SPI bus… I guess I might 
> buy or design an USB-SPI interface, but I wonder if designing an USB 
> watchdog wouldn’t be easier…
> 
> Anyway, I would still be interested to understand a little more what 
> that project is about; it might at least be a good source for 
> inspiration…
>
This project have different components levels:
1. SPI - it is cheap any mostly available on all SoCs and MCUs. IMO same
can be implemented on UART.
2. Flow control line. SPI don't have it and if we use  MCU with many
tasks on other end, there is no way to predict where we can start our
transfer. The are many ways to implement flow control on SPI, some of
them implemented directly to IPcore which is not really portable.
3. Request/Interrupt line is muxed with Flow Control, it means by using
5 wire we still able to do slave to master transfer and flow control.
4. on transport level it has 4 byte header with some control
information, size and checksumming. Practice has show that even on
stable products we can get some weard DMA or FIFO related bugs so the
transfer got corrupted.
4. LUN or Endpoint number, so one MCU can provide different functions at
same time. For example watchdog, rtc clock, package filter, gpio
extender. At same time since it all done in software we can use unified
linux drivers.
5. App to App acknowledgement, so each side knows if package was
actually delivered.
6. linux side bus implementation, so on linux we create a device tree
with MCU capabilities and drivers are loaded automatically.

In my link i provided a example watchdog driver, but in this case MCU is
only toggling LEDs. Need more time to finish it.

-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux-compatible watchdog add-on?
  2016-08-25 16:31 Linux-compatible watchdog add-on? Nicolas Boullis
  2016-08-26  4:58 ` Oleksij Rempel
@ 2016-08-29 23:53 ` Guenter Roeck
  1 sibling, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2016-08-29 23:53 UTC (permalink / raw)
  To: Nicolas Boullis; +Cc: linux-watchdog

On Thu, Aug 25, 2016 at 06:31:49PM +0200, Nicolas Boullis wrote:
> Hi,
> 
> Sorry if my question is off-topic for this list.
> 
> I have a computer that experienced a kernel failure while a was far away 
> and nobody could reboot it. So I thought it would be nice to have a 
> watchdog. Unfortunately, to the best of my knowledge, it has no hardware 
> watchdog, so I thought I should add one.
> 
> Hence, do you have suggestions for I²C-, serial- or USB-connected 
> watchdog add-ons? It should of course be compatible with linux.
> 
> I found 
>   http://www.berkprod.com/Product_Web_Pages/usb_v1_pc_watchdog.aspx
> but I think it is a little too expensive.
> 
> If no such thing exists, I might consider designing my own (open 
> hardware) I²C- or USB-connected watchdog add-on, using a cheap MCU. But 
> then I would welcome opinions on what the interface between the host and 
> watchdog should look like.
> 
Anything you come up with will need a connection to the system reset,
so you'll have to have an in-chassis solution. Any cheap MCU with USB
or I2C port and a couple of GPIO ports would probably do.

If you consider the above product, make sure that you get an assurance
that its Linux driver still works - it is quite old.

Guenter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-29 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 16:31 Linux-compatible watchdog add-on? Nicolas Boullis
2016-08-26  4:58 ` Oleksij Rempel
2016-08-26 23:14   ` Nicolas Boullis
2016-08-27 11:38     ` Oleksij Rempel
2016-08-29 23:53 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).