Hi, I am trying to set up the hardware watchdog on my MCF5373L and run into problems with the flash/JFFS2 it seems.
I use U-Boot for booting the system, which already has support for the WDT module. I made a very simple watchdog driver for the linux kernel that - up to now - does nothing but initialise a task to service the watchdog service register. This works well on my development board which has already been running the kernel. However, when a new board is started up for the first time, the watchdog driver is initialised so late that the reset already happens before there is a chance to service the watchdog. I suspect some internal flash initialization (I once experimented with a JFFS2 filesystem and there seem to be some relics left). So here are some questions: - why are the watchdog drivers initialized that late (see the boot log below)? - would it really help if the watchdog driver would be initialized earlier, or does handling the flash block the complete kernel? - is anybody working on a watchdog driver for MCF532x/537x or would it make sense to try to supply a proper patch? (The watchdog documentation and most of the drivers are somewhat naive IMHO, because they seem to imply that I can simply disable the watchdog before starting the kernel and then re-enable it when the initialization is done, which is not the case with (most?) harware watchdogs.) Regards, Wolfgang ttyS2 at 0xfc068000 (irq = 92) is a builtin ColdFire UART RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: module loaded nbd: registered device at major 43 ASTRO5373L flash device: 2000000 at 0 ASTRO5373LFlash: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled Creating 9 MTD partitions on "ASTRO5373LFlash": 0x00000000-0x02000000 : "Complete Flash" 0x00000000-0x00080000 : "bootloader" 0x00080000-0x00280000 : "kernel" 0x00280000-0x00540000 : "root" 0x00540000-0x00800000 : "FPGA" 0x00800000-0x01f40000 : "data" 0x01f40000-0x01f80000 : "Parameters1" 0x01f80000-0x01fc0000 : "Parameters2" 0x01fc0000-0x02000000 : "Parameters_ext" QSPI device driver installed OK MCF532x QSPI driver ok i2c /dev entries driver MCF532x/537x Watchdog Timer Loaded mcf53xx_wdt: keep-alive handler activated TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Freeing unused kernel memory: 496k freed (0x4019d000 - 0x40218000) _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
