Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Execute uClinux on Flash

Hi,

I have a working uClinux image which can start from SDRAM. As I want to have settings for the board loaded from flash which a user should change through a website I decided to upload the image on my flash device.

But I always get "Verify failed" errors while uploading the image.

These are steps I made:

  1. execute
    make vendor_hwselect SYSPTF=/pathToMyPtfFile

  2. select flash on upcoming menu

  3. run
    make
    to build the image with the changes

  4. upload the image with
    nios2-download -g images/zImage

Are there any configurations I have to make in "menuconfig" like enabling mtd or a flash file system?

The compressed Image I upload is a about 1.8MB and the flash is 8MB big so it should fit.

Urmel

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You'll still need to select the RAM for the menu in vendor_hwselect, nios2 uClinux does not support XIP from flash.

    If you want to run your image from flash, you'll need to write it there using the nios2-flash-programmer. Please see http://www.alterawiki.com/wiki/flash_programmer for more information.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you very much Tklauser!

    This really saves me a lot of time while searching for a solution for a thing that can't work.