- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm trying to upload a linux kernel image to the Microtronix Stratix development board. The "Nios II Linux Quickstart Guide" says to right click on the build/vmlinux.bin file and select 'upload'. When I do this, I get the following error: ------------------------------------------------ Microtronix Linux Extensions Version 1.1, Built Wed Jul 7 12:46pm EST 2004 ------------------------------------------------ Expected integer value for option 'location' Value was: 'null' Using default value: -1 The bin2flash utility converts any binary data file to a FLASH file that can be used by the flash programmer. usage: bin2flash [--help] [--debug] [--silent] [--flash=designator] [--input=file] [--quiet] [--epcs] [--base=addr] [--log=file] [--location=addr] [--output=file] [--verbose] Options may be specified in any order. --base=<addr> flash base address --debug debug mode --epcs epcs flash mode --flash=<designator> flash device reference designator --help print this message --input=<file> input Binary file to process --location=<addr> design location within the flash --log=<file> file for logging progress --output=<file> output flash file --quiet only print errors --silent silent mode - same as quiet --verbose lots of interesting information I've been able to sucessfully run bin2flash from the Nios II SDK shell command line where I can specify a value for the --location parameter. Does anybody know how to specify the location parameter through the Nios II IDE? Thanks, TerryLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, there is a bug that leaves out an attribute in one of the tags in the <project>.stf file when you apply changes in the project property page.
To remedy this, you can open up the <project>.stf file in an editor and addoffset='0x0'
to the location_on_target tag. So your tag should look like this: <location_on_target offset='0x0'>
Save these changes and you should be able to upload the kernel image without a problem. (note: the same problem will occur when applying changes in a filesystem project's property page; for a filesystem project, the offset should be 0x200000) This bug will be corrected in the next release of the Nios II Linux Distribution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Randy,
Thanks for the reply. I tried your suggestion but when I try to do the upload now I get a pop-up window that says: "Could not read project STF file." The stf file now contains: <?xml version='1.0' encoding='UTF-8'?> <stf> <project name='kernel_project' ptf='D:\work\NiosII_Mtx_Stratix\LDK2.ptf' cpu='cpu'> </project> <location_on_target offset='0x0'> flash_kernel </location_on_target> <execution_location> sdram </execution_location> </stf> Does this look correct? I was able to work around this problem by using the bin2flash and nios2-flash-programmer command line utilities; so really this is more of a bug report than an urgent problem. Maybe there should be a bug-report forum or something like that added to this site. Thanks for the help. Terry
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page