环境变量配置如下所示:
TCI6638 EVM # print
addr_fdt=0x87000000
addr_file=0x82000000
addr_fs=0x82000000
addr_kern=0x88000000
addr_mon=0x0c5f0000
addr_ubi=0x82000000
addr_uboot=0x87000000
addr_uinitrd=-
args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1
args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
args_ramfs=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0 initrd=0x802000000,9M
args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
args_uinitrd=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0
baudrate=115200
boot=ubi
bootargs=console=ttyS0,115200n8 rootwait=1 rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
bootcmd=run init_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern
bootdelay=3
bootfile=./arago-console-image.cpio.gz
burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
burn_uboot=sf probe; sf erase 0 0x100000; sf write ${addr_uboot} 0 ${filesize}
ethact=TCI6638_EMAC
ethaddr=c4:ed:ba:a0:44:c2
fdt_high=0xffffffff
fileaddr=82000000
filesize=573000
gatewayip=10.0.0.1
get_fdt_net=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fdt_ramfs=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fdt_ubi=ubifsload ${addr_fdt} ${name_fdt}
get_fdt_uinitrd=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fs_ramfs=dhcp ${addr_fs} ${tftp_root}/${name_fs}
get_fs_uinitrd=dhcp ${addr_fs} ${tftp_root}/${name_uinitrd}
get_kern_net=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_kern_ramfs=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_kern_ubi=ubifsload ${addr_kern} ${name_kern}
get_kern_uinitrd=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_ubi=ubifsload ${addr_mon} ${name_mon}
get_mon_uinitrd=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
get_uboot_net=dhcp ${addr_uboot} ${tftp_root}/${name_uboot}
has_mdio=0
init_net=run set_fs_none args_all args_net
init_ramfs=run set_fs_none args_all args_ramfs get_fs_ramfs
init_ubi=run set_fs_none args_all args_ubi; ubi part ubifs; ubifsmount boot
init_uinitrd=run set_fs_uinitrd args_all args_uinitrd get_fs_uinitrd
initrd_high=0xffffffff
ipaddr=10.0.1.97
ipdaar=10.0.1.97
mem_lpae=1
mem_reserve=512M
mtddevname=bootloader
mtddevnum=0
mtdids=nand0=davinci_nand.0
mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,522752k(ubifs)
name_fdt=uImage1.dtb
name_fs=arago-console-image.cpio.gz
name_kern=uImage1.bin
name_mon=skern1.bin
name_ubi=keystone-evm-ubifs.ubi
name_uboot=u-boot-spi-keystone-evm.gph
name_uinitrd=uinitrd.bin
netmask=255.0.0.0
nfs_options=v3,tcp,rsize=4096,wsize=4096
nfs_root=/export
no_post=1
partition=nand0,0
run_kern=bootm ${addr_kern} ${addr_uinitrd} ${addr_fdt}
run_mon=mon_install ${addr_mon}
serverip=10.0.1.41
set_fs_none=setenv addr_uinitrd –
set_fs_uinitrd=setenv addr_uinitrd ${addr_fs}
stderr=serial
stdin=serial
stdout=serial
tftp_root=.
ver=U-Boot 2013.01 (Jun 14 2018 – 09:51:32)
Environment size: 3303/262140 bytes
TCI6638 EVM # ping 10.0.1.41 //ping 命令查看是否能ping通 可以ping通
Using TCI6638_EMAC device
host 10.0.1.41 is alive
TCI6638 EVM # ping 10.0.1.97 //ping 本身设置的IP地址, 不可以ping通
Using TCI6638_EMAC device
ping failed; host 10.0.1.97 is not alive
TCI6638 EVM # run get_uboot_net //获取烧写的文件数据
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17
BOOTP broadcast 18
BOOTP broadcast 19
BOOTP broadcast 20
BOOTP broadcast 21
BOOTP broadcast 22
BOOTP broadcast 23
BOOTP broadcast 24
BOOTP broadcast 25
BOOTP broadcast 26
BOOTP broadcast 27
BOOTP broadcast 28
BOOTP broadcast 29
BOOTP broadcast 30
BOOTP broadcast 31
BOOTP broadcast 32
Retry count exceeded; starting again
*** ERROR: `eth1addr' not set
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
Abort
TCI6638 EVM #
在使用PC ping开发版的IP地址不通,使用开发板ping PC机时,PCping开发板的命令通了,当结束了开发板发出去的命令此时PC ping开发板也不通了,请问出现此类文集如和解决。
Shine:
ipaddr=10.0.1.97
ipdaar=10.0.1.97
这里是笔误吗?
user5315971:
回复 Shine:
是,但是ipaddr=10.0.1.97是可用的。
user5315971:
回复 Shine:
地下就算笔误也不牵扯。
user5315971:
回复 Shine:
我发现PC在使用ping命令时过去不到开发板的IP地址,只有开发板同时使用ping,PC才能ping通,当开发板ping结束,PC也就不通了,开发板可以随便ping个IP地址就算ping不通,与次同时PC也能ping通,开发板ping结束,PC的ping也就不通了,DHCP烧写不了U-boot
Shine:
回复 user5315971:
看一下板子的版本号是什么?
On a Rev 0B board, Ethernet (For example dhcp command) will not function unless following command is issued at the BMC UART console as shown in the figure below. For Rev 1.0 boards, please follow the BMC field updated procedure at [4] if Ethernet doesn't function.
processors.wiki.ti.com/…/MCSDK_UG_Chapter_Tools
user5315971:
回复 Shine:
如何查看板子的版本号,还有我发现我们的板子BCM中没有setboot这个命令,只能用拨码开关设置
[00:25:06]BMC>help
[00:25:06]Executing command "help"
lcd – Adds a string to a specified line and page of the LCD
wait – Waits for a specified amount of time
eeprom – Writes or reads from the EEPROM.
help – Used to get information on other commands. Type "help command" for specificinformation on a command.
wp – Used to control the write protect of EEPROM, NOR, and NAND.
reboot – Performs various reboot functions.
shutdown – Performs various shutdown functions.
run – Attempts to bring the board from its current state to the running state.
status – Displays the status of the board in formatted fashion.
bootmode – Used to perform various actions with Bootmodes.
ver – Displays BMC version, board type, board version, and board serial number.
BMC>
user5315971:
回复 user5315971:
是这个吗
[00:40:42]BMC>ver
[00:40:42]Executing command "ver"
[00:40:42]
[00:40:42]BMC VersionEVM TypeEVM SupersetEVM SubsetEVM VersionEVM S/NUCD Ver
[00:40:42]1.0.2.50.0.0.1K2KH-EVMXTCIEVMK2X3.093342A03
[00:40:42]
BMC>
user5315971:
回复 user5315971:
U-Boot 2013.01 (Jun 14 2018 – 09:51:32)
I2C:ready
DRAM:1 GiB
NAND:512 MiB
Net:TCI6638_EMAC, TCI6638_EMAC1
Hit any key to stop autoboot:0
TCI6638 EVM #
user5315971:
回复 user5315971:
问题解决,谢谢
TI中文支持网