Chris Gilbert wrote:
Measured battery voltage: 2.91 at the chip (pins 4 - 7) and 3.2 at the battery. Removed the battery for roughly an hour. Exactly the same behavior (can't read on boot up, can't write when setting date) after reinstalling the battery. I also doubled all of the delays in .../src/sys/dev/i2c/i2c_bitbang.c. Same behavior. The Debian clock driver appears to work - or at least I didn't see any errors on the console or in /var/log/messages. On the first boot-up into Debian, the clock was wrong, but OK the second time the Slug was booted.Looking at: http://www.nslu2-linux.org/wiki/Info/RTCChipInfoThere's a suggestion that the RTC sometimes stalls, and that removing the battery for a bit might unstall it. Might be worth a try.
Thanks for the suggestion, but RTC lockup doesn't appear to be the problem. If I have time tomorrow, I'll compare the Debian startup to the NetBSD startup code.
Regards, Don