Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcm2708_wdog.ko module not compiled since 4.3.3 #1285

Closed
magarto opened this issue Feb 10, 2016 · 6 comments
Closed

bcm2708_wdog.ko module not compiled since 4.3.3 #1285

magarto opened this issue Feb 10, 2016 · 6 comments

Comments

@magarto
Copy link

magarto commented Feb 10, 2016

Hi,

Since 4.3.3 kernel release, bcm2708_wdog.ko is not being compiled any longer. The only compiled watchdog is for poweroff (bcm2835_wdt) for for reboot (bcm2708_wdog).

There is only a CONFIG_BCM2835_WDT=m in the 4.3 configuration.
https://github.com/raspberrypi/linux/blob/rpi-4.3.y/arch/arm/configs/bcm2709_defconfig#L634

I tried adding CONFIG_BCM2708_WDOG=m to the .config but it doesn't work.

How can I compile it? My goal is to apply the following rebooting watchdog:
http://blog.ricardoarturocabral.com/2013/01/auto-reboot-hung-raspberry-pi-using-on.html

@pelwell
Copy link
Contributor

pelwell commented Feb 10, 2016

Have you tried adding dtparam=watchdog=on to your config.txt? That will create /dev/watchdog without the need to edit /etc/modules. The rest of the instructions should then work.

Give it a try, then report back.

@magarto
Copy link
Author

magarto commented Feb 10, 2016

Thanks! Solved!

With that in adding /etc/watchdog the following line it worked
watchdog-device = /dev/watchdog0

@pelwell
Copy link
Contributor

pelwell commented Feb 10, 2016

The watchdog is always a hardware device - you can't rely on software to run when the system gets stuck.

We are switching from a Pi-specific driver (bcm2708_wdog) to the Linux standard driver (bcm2835-wdog), but they do the same job. We have also changed to using Device Tree to describe the watchdog hardware (and cause the driver module to be loaded), rather than using Pi-specific initialisation code and /etc/modules.

Although the watchdog is hardware you still need to run some software to activate it, and to keep refreshing it to stop it resetting the board (like the movie Speed you can't go below 50mph). So install the watchdog package, edit /etc/watchdog and uncomment the watchdog-device line and then arrange that watchdog process is run at startup - on Jessie that should be a systemctl operation.

@magarto
Copy link
Author

magarto commented Feb 10, 2016

Thanks for all!
I have problems with new OpenGL drivers but I will post in another thread.
One question: Will Linux 4.5 include original Linux drivers instead of your patches? I ask it to compile original linux kernel git directly or using rapberry git
Thanks!

@pelwell
Copy link
Contributor

pelwell commented Feb 10, 2016

Report OpenGL driver bugs here: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=135790

We will be using fewer and fewer downstream drivers - our rpi-4.4.y branch has already moved a long way towards upstream only, thanks to people like @notro and @msperl.

@magarto
Copy link
Author

magarto commented Feb 10, 2016

Thanks for all your work and efficiency.
I close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants