大家帮看一下,好奇怪。跑BIOS 程序时,
->ap
->Mini TFTP Server 1.0 (IP : 192.168.0.100 PORT: 69)
->Load image file from host
->Type tftp -i 192.168.0.100 put filename at the host PC
->Press ESC key to exit
->Download end
->program flash begin @0x0, from ram data @0xc008000, size = -1Bytes
->Are you sure? [y/n]
上面的代码是不间断的显示出来的,只要你输入ap 就会马上显示到最后一行“are you sure”
感觉是tftp_main()这个函数返回错误啦,返回一个“-1”,它怎么会返-1啊,是不是我硬件有问题啊?
程序根本不给我机会按ESC,就直接显示download end====are you sure啦。