Am 23.01.2017 um 21:10 schrieb Brüns, Stefan:
On Montag, 23. Januar 2017 20:56:06 CET Frank Kunz wrote:
Hello,
I have a problem when adding a new board to openSUSE (DE0-nano-SoC). The upstream u-boot for that board enables the watchdog with a 30 seconds timeout. That causes the board to get reset during the system partition resizing at first startup. To get watchdog support enabled I added the dw_wdt kernel module in config.sh to the dracut config. That is not enough, some service needs to use the driver to periodically trigger the watchdog (systemd, etc.). Is there a way to get that at the fist startup phase while the installation is completed?
https://build.opensuse.org/package/show/home:frank_kunz:branches:openSUSE:Fa ctory:ARM/JeOS-socfpgade0nanosoc
According to the buildlog, dw_wdt has been removed from the initial initrd:
osc rbl home:frank_kunz:branches:openSUSE:Factory:ARM JeOS-socfpgade0nanosoc factory armv7l | grep dw_wdt [ 400s] Deleting unwanted module: /kernel-tree/4.9.4-1-default/kernel/ drivers/watchdog/dw_wdt.ko
It might be sufficient to add the following in the Images.kiwi.in at the appropriate position:
#if IS_FLAVOR_socfpgade0nanosoc <file name="drivers/watchdog/dw_wdt.ko"/> <!-- WDT is enabled by u-boot --> #endif
I tested that and the module is no more deleted: [ 959s] Jan-23 20:38:33 <1> : Added following drivers: [ 959s] Jan-23 20:38:33 <1> : --> drivers/dma/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/gpu/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/mmc/card/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/mmc/host/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/phy/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/regulator/* [ 959s] Jan-23 20:38:33 <1> : --> drivers/watchdog/dw_wdt.ko But the watchdog triggers anyway during the system partition rewrite. So nothing pings the watchdog during that operation. I think there is still a service missing that pings the watchdog. Is there a possibility to add that to the boot initrd? Br, Frank -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org