421a422,424
>     int len;
> 	
> 
422a426,427
> 	//kaiker
> 	//len = strlen(argv[0]);
425,469c430
< /* 8M/16 flash:
<  *  -write linux kernel and file system separately
<  *  -kernel starts at PHYS_FLASH_1 and file system starts at PHYS_FLASH_2
<  */
< #if (defined (RT2880_ASIC_BOARD) || defined (RT2880_FPGA_BOARD) || defined (RT3052_MP1)) && (defined ON_BOARD_8M_FLASH_COMPONENT || defined ON_BOARD_16M_FLASH_COMPONENT)
< 		int rc;
< 		ulong kernsz = 0x3B0000;
< 
< 		addr += base_address;
< 		addr += CFG_LOAD_ADDR;
< 		dest = dest + CFG_KERN_ADDR + base_address;
< 		if (NetBootFileXferSize <= kernsz)
< 			count = NetBootFileXferSize;
< 		else
< 			count = kernsz;
< 		size = 1;
< 
< 		printf("\n Copy linux image[%d byte] to Flash[0x%08X].... \n",count,dest);
< 		puts ("Copy to Flash... ");
< 		printf ("\n Copy %d bytes to Flash... ", count);
< 
< 		rc = flash_write ((uchar *)addr, dest, count);
< 		if (rc != 0) {
< 			flash_perror (rc);
< 			return (1);
< 		}
< 		if (count < kernsz)
< 			return 0;
< 
< 		addr += kernsz;
< 		dest = PHYS_FLASH_2;
< 		count = NetBootFileXferSize - kernsz;
< 		printf("\n Copy linux file system[%d byte] to Flash[0x%08X].... \n",count,dest);
< 		puts ("Copy to Flash... ");
< 		printf ("\n Copy %d bytes to Flash... ", count);
< 
< 		rc = flash_write ((uchar *)addr, dest, count);
< 		if (rc != 0) {
< 			flash_perror (rc);
< 			return (1);
< 		}
< 
< 		puts ("done\n");
< 		return 0;
< #endif
---
> 		
472c433
< 		dest = dest + CFG_KERN_ADDR + base_address;
---
> 		dest = dest + 0xBC450000 + base_address;
496,497c457,458
< 		dest = dest + CFG_FLASH_BASE + base_address;
< 		printf("\n Copy uboot[%d byte] to Flash[0x%08X].... \n",NetBootFileXferSize,dest);
---
> 		dest = dest + 0xBC400000 + base_address;
> 		printf("\n Copy   uboot[%d byte] to Flash[0x%08X].... \n",NetBootFileXferSize,dest);
502a464
> 
507a470,472
> 
> 
> 	
509c474,475
< 	/* Check for size specification. */
---
> 	/* Check for size specification.
> 	*/
542a509,510
> 
> 		
551a520,521
>   
> 	
