On 09.11.23 15:55, Root Mailer wrote:
> Yes in Linux it seems to work. We tested this by following the guide in
> [1]. When we cat to the /dev/watchdog0 device the system reboots after
> 30 seconds.
> 
> [1]
> https://www.thomas-krenn.com/de/wiki/Watchdog#Testen_der_Watchdog_Funktion
> 

Then something is wrong with what the EBG driver does, possibly around
clearing the no-reboot flag. Someone near to a hardware would have to
sit down and compare, e.g. if EBG is using the same addresses for that
flag change as Linux does.

Jan

> On Thursday, November 9, 2023 at 2:19:31 PM UTC+1 Jan Kiszka wrote:
> 
>     On 08.11.23 14:51, Root Mailer wrote:
>     > Watchdog is now (allegedly) supported, thanks for that.
>     Unfortunately,
>     > it does not work as expected.
>     >
>     > We set watchdog timeout to 30 seconds via "bg_setenv --part=0/1
>     > --watchdog=30". Looks good:
>     >
>     > Screenshot from 2023-11-08 10-02-55.png
>     >
>     > We then manipulated the bzImage and the part where
>     bg_gen_unified_kernel
>     > checks for a valid bzImage to simulate a non-working kernel here:
>     >
>     >
>     
> https://github.com/siemens/efibootguard/blob/master/tools/bg_gen_unified_kernel#L112
>  
> <https://github.com/siemens/efibootguard/blob/master/tools/bg_gen_unified_kernel#L112>
>     >
>     > But the system does not reboot, it just hangs after the last line EFI
>     > stub: etc. Any ideas what's missing?
>     >
> 
>     If you start the watchdog from Linux and let it expire there, will the
>     machine reboot in that case? If no, then we have a hardware or firmware
>     issue. If yes, then we could look for missing bits in the Linux code.
> 
>     Jan
> 
>     -- 
>     Siemens AG, Technology
>     Linux Expert Center
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "EFI Boot Guard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/efibootguard-dev/b273b8d6-d84e-4709-8915-860113531e12n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/efibootguard-dev/b273b8d6-d84e-4709-8915-860113531e12n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
Siemens AG, Technology
Linux Expert Center

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/13270c76-4d79-49c3-9ba8-8ece8b56cdaf%40siemens.com.

Reply via email to