24c24
< * $FreeBSD: head/sys/boot/arm/at91/boot0iic/main.c 164132 2006-11-09 19:55:25Z imp $
---
> * $FreeBSD: head/sys/boot/arm/at91/boot0iic/main.c 164322 2006-11-16 00:49:50Z imp $
34a35
> int len, sec;
36c37,38
< while (xmodem_rx(addr) == -1)
---
> printf("\nSend data to be written into EEPROM\n");
> while ((len = xmodem_rx(addr)) == -1)
37a40,44
> sec = GetSeconds() + 1;
> while (sec >= GetSeconds())
> continue;
> printf("\nWriting EEPROM from 0x%x to addr 0, 0x%x bytes\n", addr,
> len);
39,41c46,48
< printf("Writing EEPROM from 0x%x to addr 0\n", addr);
< WriteEEPROM(0, addr, 8192);
< printf("Write complete. Press reset\n");
---
> printf("init done\n");
> WriteEEPROM(0, addr, len);
> printf("\nWrote %d bytes. Press reset\n", len);
< * $FreeBSD: head/sys/boot/arm/at91/boot0iic/main.c 164132 2006-11-09 19:55:25Z imp $
---
> * $FreeBSD: head/sys/boot/arm/at91/boot0iic/main.c 164322 2006-11-16 00:49:50Z imp $
34a35
> int len, sec;
36c37,38
< while (xmodem_rx(addr) == -1)
---
> printf("\nSend data to be written into EEPROM\n");
> while ((len = xmodem_rx(addr)) == -1)
37a40,44
> sec = GetSeconds() + 1;
> while (sec >= GetSeconds())
> continue;
> printf("\nWriting EEPROM from 0x%x to addr 0, 0x%x bytes\n", addr,
> len);
39,41c46,48
< printf("Writing EEPROM from 0x%x to addr 0\n", addr);
< WriteEEPROM(0, addr, 8192);
< printf("Write complete. Press reset\n");
---
> printf("init done\n");
> WriteEEPROM(0, addr, len);
> printf("\nWrote %d bytes. Press reset\n", len);