Skip to content
Snippets Groups Projects
cmd_nand.c 25.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • 		printf ("** Read error on %d\n", dev);
    
    		show_boot_progress (-58);
    
    	show_boot_progress (58);
    
    
    	/* Loading ok, update default load address */
    
    	load_addr = addr;
    
    	/* Check if we should attempt an auto-start */
    	if (((ep = getenv("autostart")) != NULL) && (strcmp(ep,"yes") == 0)) {
    		char *local_args[2];
    		extern int do_bootm (cmd_tbl_t *, int, int, char *[]);
    
    		local_args[0] = argv[0];
    		local_args[1] = NULL;
    
    
    		printf ("Automatic boot of image at addr 0x%08lx ...\n", addr);
    
    
    		do_bootm (cmdtp, 0, 1, local_args);
    		rcode = 1;
    	}
    	return rcode;
    }
    
    
    U_BOOT_CMD(
    	nboot,	4,	1,	do_nandboot,
    
    	"nboot   - boot from NAND device\n",
    	"loadAddr dev\n"
    );