我可以用更多命令轻松编译 u-boot for arm versatile bp
Can I easily compile u-boot with more commands for arm versatile bp
我已经从 u-boot-2013.01.y 为 versatilebp 板(arm)编译了 u-boot,我需要这个配置中不存在的 fatload 命令。
我是 运行 qemu
下的 u-boot
DRAM: 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 来加载包含 fat 文件系统映像的文件,其中包含 freebsd 内核。我能以某种方式更改该板的编译配置以使用 fatload 命令编译 u-boot 吗?还是那块板 possible/not 不支持?
为 Versatile AB 或多或少地完成了此操作,这肯定是可能的。最简单的方法是找到该板的命令集的定义位置,然后通过 defining the relevant CONFIG_CMD_*
symbols. In this case, that place is include/configs/versatile.h.
输入您想要的命令
查看我 2015.07 的结帐,我似乎添加了以下几行(我想我当时正试图说服 MMC 工作):
#define CONFIG_CMD_FAT
#define CONFIG_DOS_PARTITION 1
我已经从 u-boot-2013.01.y 为 versatilebp 板(arm)编译了 u-boot,我需要这个配置中不存在的 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 来加载包含 fat 文件系统映像的文件,其中包含 freebsd 内核。我能以某种方式更改该板的编译配置以使用 fatload 命令编译 u-boot 吗?还是那块板 possible/not 不支持?
为 Versatile AB 或多或少地完成了此操作,这肯定是可能的。最简单的方法是找到该板的命令集的定义位置,然后通过 defining the relevant CONFIG_CMD_*
symbols. In this case, that place is include/configs/versatile.h.
查看我 2015.07 的结帐,我似乎添加了以下几行(我想我当时正试图说服 MMC 工作):
#define CONFIG_CMD_FAT
#define CONFIG_DOS_PARTITION 1