[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

**To**:**Steve Woodford <scw%netbsd.org@localhost>****Subject**:**Re: Clock error on bootup - NSLU2****From**:**Donald T Hayford <don%donhayford.com@localhost>**- Date: Tue, 15 Apr 2008 00:10:18 -0400

Steve Woodford wrote:

It is looking less likely to be a hardware problem. I'll try to findsome time to fire up a current kernel on an NSLU2 over the next fewdays to see if I can reproduce the problem.

int i2c_bitbang_write_byte(void *v, uint8_t val, int flags, i2c_bitbang_ops_t ops) { uint32_t bit; uint8_t mask; int error; for (mask = 0x80; mask != 0; mask >>= 1) { bit = (val & mask) ? SDA : 0; DIR(OUTPUT); SETBITS(bit ); delay(1); /* data setup time (250 nS) */ SETBITS(bit | SCL); if (i2c_wait_for_scl(v, ops)) return EIO; delay(4); /* clock high time (4.0 uS) */ DIR(OUTPUT); SETBITS(bit ); delay(5); /* clock low time (4.7 uS) */ } DIR(OUTPUT); SETBITS(SDA ); delay(5); SETBITS(SDA | SCL); if (i2c_wait_for_scl(v, ops) != 0) return EIO; delay(4); DIR(INPUT); >>>>> error = (READ & SDA) ? EIO : 0; DIR(OUTPUT); SETBITS(SDA ); delay(5); if (flags & I2C_F_STOP) (void) i2c_bitbang_send_stop(v, flags, ops); return (error); }

xrtc0: xrtc_clock_read: failed to read rtc at 0x0

ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 48: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 ntering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 49: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 50: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 51: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 52: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 53: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 54: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 55: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 48: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 49: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 50: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 51: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 52: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 53: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 54: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 ibbix-2 entering ibbwb with 222: ibbwb-3 entering ibbwb with 0: ibbwb-3 entering ibbwb with 55: ibbwb-3 ibbix-2 entering ibbwb with 223: ibbwb-3 entering ibbrb: read 255 WARNING: preposterous TOD clock time WARNING: using filesystem time WARNING: CHECK AND RESET THE DATE! So, it looks like the sequence is write 222 0 48 write 223 read 255 write 222 0 49 write 223 read 255 write 222 0 50 write 223 read 255 write 222 0 51 write 223 read 255 write 222 0 52 write 223 read 255 write 222 0 53 write 223 read 255 write 222 0 54 write 223 read 255 write 222 0 55 write 223 read 255 and repeat.

Regards, Don

**References**:**Clock error on bootup - NSLU2***From:*Donald T Hayford

**Re: Clock error on bootup - NSLU2***From:*Steve Woodford

**Re: Clock error on bootup - NSLU2***From:*Donald T Hayford

**Re: Clock error on bootup - NSLU2***From:*Steve Woodford

- Prev by Date:
**Re: SA-11xx PCMCIA can't detect cards present on boot** - Next by Date:
**Re: wdc @ pcmcia lost interrupts in -current (JORNADA 720)** - Previous by Thread:
**Re: Clock error on bootup - NSLU2** - Next by Thread:
**Re: Clock error on bootup - NSLU2** - Indexes: