Board logo

标题: [求助]关于uclinux的下载疑问 [打印本页]

作者: mangoice    时间: 2007-4-15 11:02     标题: [求助]关于uclinux的下载疑问

请教高手~~

我在nios2上加载的uclinux,配置和编译没有问题,为什么下载不到板子上的flash?错误信息如下:

# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd C:/altera/quartus60/myproject/design/design_kernel2/build

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0x3fffff --reset=0x0 --inp
ut=.tmp_vmlinux1 --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/components/al
tera_nios2/boot_loader_cfi.srec

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic
e=1 --base=0x00000000 cfi_flash_0.flash
There are no Nios II processors available which match the values specified.
Please check that your PLD is correctly configured, downloading a new SOF
file if necessary.

# Creating .flash file for the datafile
$SOPC_KIT_NIOS2/bin/bin2flash --base=0x00000000 --location=0x0 --input=vmlinux.b
in --output=vmlinux.flash

# Programming flash with the datafile
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic
e=1 --base=0x00000000 vmlinux.flash
There are no Nios II processors available which match the values specified.
Please check that your PLD is correctly configured, downloading a new SOF
file if necessary.


作者: caopengly    时间: 2007-4-15 23:03

There are no Nios II processors available which match the values specified.
Please check that your PLD is correctly configured, downloading a new SOF
file if necessary.

说明你的sopc中的 nios和你flash的tagetboard中的nios不一样,

你可以重新下sof。

如果不行,你可以重新编译项目或者重做tagetboard。


作者: mangoice    时间: 2007-4-16 00:04

请问版主,是不是在下载uclinux之前要先把sof文件先下载到flash?我用的是Nios II IDE6.0。如果先下载sof,会出现下列提示:

#! /bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd C:/altera/quartus60/myproject/design/design_kernel2/build

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0x3fffff --reset=0x0 --inp
ut=.tmp_vmlinux1 --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/components/al
tera_nios2/boot_loader_cfi.srec

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic
e=1 --base=0x00000000 cfi_flash_0.flash
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: No CFI table found at address 0x00000000
OK
Leaving target processor paused

# Creating .flash file for the datafile
$SOPC_KIT_NIOS2/bin/bin2flash --base=0x00000000 --location=0x0 --input=vmlinux.b
in --output=vmlinux.flash

# Programming flash with the datafile
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic
e=1 --base=0x00000000 vmlinux.flash
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: No CFI table found at address 0x00000000
OK
Leaving target processor paused


作者: mangoice    时间: 2007-4-16 00:06

试了重新编译也不行~~


作者: kzw    时间: 2007-4-16 20:45

你的nios核没有下载进去,或者和你的软件不对应。你确定你的nios的代码下进去了,并且正确吗。
作者: mangoice    时间: 2007-4-16 21:46

我试了不加载uclinux,直接把.sof文件下载进flash,也出现同样的问题,是不是目标板没有定义好?我用的是DE2板,在flash programmer那里的hardware image,显示的是user:U5+0×C00000,可是我的flash指定的地址是0×0


作者: mangoice    时间: 2007-4-16 22:54

请问版主,DE2板用不用定义目标板?


作者: nini103    时间: 2008-9-13 10:03

不知LZ的这个问题最终是怎样解决的?能否告知啊?谢谢!






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0