Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Nios II Recovery Problem

Altera_Forum
Honored Contributor II
1,164 Views

I've bought Nios I development board(Cyclone Edition), and I want to upgrade it to Nios II now. 

I did as the mnl_nios2_board_cyclone_1c20 instructed to write the restore_cyclone_1c20.flash 

to the flash, but when I reset the board and load the Nios II recovery design, the LCD shows: "Nios II Error! Can't get MAC address".  

What's the problem and how can I fix it? 

What's even worse is that the Ethernet part in the mnl_nios2_board_cyclone_1c20 is the one for Nios I.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
422 Views

This is a known problem (I think). 

I believe that the workaround was to use a hub. The patch release has this fixed. (to be distributed very soon). 

I'll ask others if there was another workaround.
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

This isn't a problem -- it just indicates that the "special" area of flash that we picked in our example designs to store things like the board MAC address got erased. Products that would be developed for an end-user would typically have this sort of thing in a one-time-programmable flash memory, but for the dev boards, we had to use a part of conventional (erasable) flash. 

 

What you need to do is open a console to the board with nios2-terminal when you reset Nios - this will display a prompt asking for your board's serial number. We run a simple algorithm to calculate a new, unique MAC address from Altera's "pool" that are allocated to Nios boards, and stores this address into flash. You won't need to do this again unless the last flash sector is erased.
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Thank you, Kerri and Jesse. 

But I still have a problem: I cannot remember the doc's name who mentioned that NiosII does not support GERMS, however, how can I use the Nios I's GERMS X-Commands to modify the network settings of Nios II?
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Nios II does support GERMS. You need to use legacy mode to use GERMS. 

There is a doc, an350.pdf that tells oyu about it. 

Basically, use the legacy components and then check legacy SDK support. 

 

ASK if there are more questions.
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

...about the "X" commands for the webserver:  

 

These are still supported. The factory safe design no longer runs GERMS explicitly (as Kerri mentioned this is for legacy support), but the 'X' commands were carried fwd to allow you to setup your own IP address, etc... you can just type "h" at the factory-safe design console prompt (accessible via nios2-terminal) to get a list of comands.. xip, xip:123.123.123.123, etc.
0 Kudos
Reply