我已经从u-boot-2013.01.y分支编译u-boot for versatilebp board(arm),我需要在此配置中不存在的fatload命令。 我在qemu
下运行u-bootDRAM: 128 MiB
WARNING: Caches not enabled
Using default environment
In: serial
Out: serial
Err: serial
Net: SMC91111-0
Warning: SMC91111-0 using MAC address from net device
VersatilePB # fat
Unknown command 'fat' - try 'help'
VersatilePB # help
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
dhcp - boot image via network using DHCP/TFTP protocol
env - environment handling commands
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print command description/usage
iminfo - print header information for application image
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mtest - simple RAM read/write test
mw - memory write (fill)
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
reset - Perform RESET of the CPU
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor, compiler and linker version
VersatilePB #
我需要fatload来加载包含freebsd内核的fat文件系统映像的文件。我可以以某种方式更改该板的编译配置以使用fatload命令编译u-boot吗?或者它不可能/不支持该板?
答案 0 :(得分:2)
对于多功能AB而言,或多或少地完成了这一点,这当然是可能的。最简单的方法是找到定义该板的命令集的位置,并通过defining the relevant CONFIG_CMD_*
symbols破解所需的命令。在这种情况下,该地点为include/configs/versatile.h。
看看我2015.07的结帐时,我似乎已经添加了(其中一些(我认为我试图说服MMC当时工作),这些行:
#define CONFIG_CMD_FAT
#define CONFIG_DOS_PARTITION 1