Changes for U-Boot 1.0.2:
======================================================================
+* Patch by Masami Komiya, 24 Feb 2004:
+ Update NetBootFileXferSize in NFS code
+
+* Patch by Scott McNutt, 24 Feb 2004:
+ fix packet length in NFS code
+
* Patch by Masami Komiy, 22 Feb 2004:
Add support for NFS for file download
static __inline__ void
store_block (uchar * src, unsigned offset, unsigned len)
{
+ ulong newsize = offset + len;
#ifdef CFG_DIRECT_FLASH_NFS
int i, rc = 0;
}
} else
#endif /* CFG_DIRECT_FLASH_NFS */
-
{
(void)memcpy ((void *)(load_addr + offset), src, len);
}
+
+ if (NetBootFileXferSize < (offset+len))
+ NetBootFileXferSize = newsize;
}
static char*
printf ("%s\n", __FUNCTION__);
#endif
- rlen = (uchar *)&(rpc_pkt.u.reply.data[19]) - (uchar *)&(rpc_pkt.u.reply.id);
- memcpy ((uchar *)&rpc_pkt, pkt, rlen);
+ memcpy ((uchar *)&rpc_pkt, pkt, len);
if (rpc_pkt.u.reply.rstatus ||
rpc_pkt.u.reply.verifier ||
puts ("*** ERROR: Cannot umount\n");
NetState = NETLOOP_FAIL;
} else {
+ puts ("\ndone\n");
NetState = NETLOOP_SUCCESS;
}
break;
NfsState = STATE_READLINK_REQ;
NfsSend ();
} else {
- puts ("\ndone\n");
- printf ("Bytes transferred = %d (%x hex)\n",
- nfs_offset, nfs_offset);
NfsState = STATE_UMOUNT_REQ;
NfsSend ();
}