Forum Discussion

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

Error building SSS in 9.0SP2

Hi All -

I am getting an error building SSS in 9.0SP2 - the HW I am using is from nios2_linux_3c120_125mhz_sys - the following is what I get when trying to build the app

make -s all includes

Compiling alt_error_handler.c...

Compiling iniche_init.c...

Compiling led.c...

../led.c: In function `LED7SegLightshowTask':

../led.c:97: warning: unused variable `led_7_seg_val'

Compiling network_utilities.c...

../network_utilities.c: In function `generate_and_store_mac_addr':

../network_utilities.c:209: error: `EXT_FLASH_NAME' undeclared (first use in this function)

../network_utilities.c:209: error: (Each undeclared identifier is reported only once

../network_utilities.c:209: error: for each function it appears in.)

../network_utilities.c: In function `get_board_mac_addr':

../network_utilities.c:238: error: `EXT_FLASH_BASE' undeclared (first use in this function)

../network_utilities.c: In function `FindLastFlashSectorOffset':

../network_utilities.c:309: error: `EXT_FLASH_NAME' undeclared (first use in this function)

make: *** [obj/network_utilities.o] Error 1

Not certain whats up with the flash interface of why the compiler is bombing on it... I thought these .sopc files and canned examples were better sorted than they are... Any help is appreciated - thanks - crayner

OK so I defined EXT_FLASH_BASE to be the base of the flash interface, and EXT_FLASH_NAME to be '/dev/cfi_flash_64m' and the source builds, however the enet interface hangs upon booting...

Copyright 1996-2008 by InterNiche Technologies. All rights reserved.

prep_tse_mac 0

Could not locate flash sector with MAC address.

prepped 1 interface, initializing...

[tse_mac_init]

INFO : TSE MAC 0 found at address 0x08004000

INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group[0]

INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0]

INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

INFO : PHY[0.0] - Auto-Negotiation PASSED

is as far as I get then HANG....