# To talk with uuu, uboot need enable fastboot. fastboot need auto run when detect boot from USB. CONFIG_CMD_FASTBOOT=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_MANUFACTURER="FSL" CONFIG_USB_GADGET_VENDOR_NUM=0x0525 CONFIG_USB_GADG...
1.1.1 选择U-BOOT的理由 U-boot:一种开源bootloader, 作用是用来引导操作,以及给开发人员提供测试调试工具。本身算是个精简的Linux系统了,主要是负责硬件的初始化和引导,本身带有一些工具,作为引导程序,常作为嵌入式设备的引导。当真正的系统开始运行的时候U-boot就把管理权限交了出去。 选择U-Boot的理由:...
里面保存的是uboot的版本{extern char version_string[];setenv ("ver", version_string); /* set version variable */}#endif /* CONFIG_VERSION_VARIABLE */#ifdef CONFIG_AUTO_COMPLETE //命令的自动补全功能install_auto_complete();#endif#ifdef CONFIG_FASTBOOT...
reg = get_PCLK() / (16 * gd->baudrate) - 1; /* FIFO enable, Tx/Rx FIFO clear */ uart->UFCON = 0x07; uart->UMCON = 0x0; /* Normal,No parity,1 stop,8 bit */ uart->ULCON = 0x3; /* * tx=level,rx=edge,disable timeout int.,enable rx error int., * normal,interrup...
dcache - enable or disable data cache dnw - dnw - initialize USB device and ready to receive for Windows server (specific) echo - echo args to console editenv - edit environment variable emmc - Open/Close eMMC boot Partition env - environment handling commands ...
ret && (states & BOOTM_STATE_OS_GO)) ret = boot_selected_os(argc, argv, BOOTM_STATE_OS_GO, images, boot_fn); /* Deal with any fallout */ err: if (iflag) enable_interrupts(); if (ret == BOOTM_ERR_UNIMPLEMENTED) bootstage_error(BOOTSTAGE_ID_DECOMP_UNIMPL)...
fastboot- fastboot- use USB Fastboot protocol fatformat- fatformat - disk format by FAT32 fatinfo - fatinfo - print information about filesystem fatload - fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) ...
* enable I cache if CONFIG_SYS_ICACHE_OFF is not defined */mrc p15,0,r0,c1,c0,0bic r0,r0,#0x00000300/* clear bits 9:8 (--- --RS) */bic r0,r0,#0x00000087/* clear bits 7, 2:0 (B--- -CAM) */#ifdefCONFIG_SYS_EXCEPTION_VECTORS_HIGHorr r0,r0,#0x00002000/* set bit...
#ifdef CONFIG_FASTBOOT check_fastboot_mode(); #endif /* main_loop() can return to retry autoboot, if so just run it again. */ for (;;) { main_loop (); } }在main_loop后就进入了死循环,不停的接收命令,执行命令,其代码在/common/main.c当中void main_loop (void) { #ifndef CONFIG_SY...
Send CMD9 with relative card address saved in CMD3 response. Read card specific data in response. Read card specific data in response. Read card specific data in response. 检查SD/eMMC的文件读写 命令fatmkdir可以在SD/eMMC设备中的文件系统的中创建文件夹。 命令fatwrite可以将内存内容写入SD/eMMC设备...