* @param blk_size MMC block size
* @return file_size written file size, return -1 if error occurs
*/
-static int do_nfs_to_mmc(struct mmc *mmc, void *addr, char *file_path,
+static int do_nfs_to_mmc(struct mmc *mmc, unsigned long addr, char *file_path,
uint part, uint offset, uint size, uint blk_size)
{
uint _size;
ret = mmc->block_dev.block_write(&mmc->block_dev, offset, _size,
addr);
#else
- ret = blk_dwrite(mmc_get_blk_desc(mmc), offset, _size, addr);
+ ret = blk_dwrite(mmc_get_blk_desc(mmc), offset, _size,
+ (void *)addr);
#endif
if (ret != _size) {
printk("Failed to write MMC: part(%d), start(%d), size(%d)",
return (int)done;
}
-static int do_nfs_to_fat(void *addr, char *file_path, char *file_name,
+static int do_nfs_to_fat(unsigned long addr, char *file_path, char *file_name,
uint dev, uint part)
{
uint _size;
}
_size = net_boot_file_size;
- snprintf(buf, 256, "fatwrite mmc %d:%d %p %s %x", dev, part, addr,
+ snprintf(buf, 256, "fatwrite mmc %d:%d %lx %s %x", dev, part, addr,
file_name, _size);
run_command(buf, 0);