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++
12600 Discussions

bsp-generate-files SEVERE: null

Altera_Forum
Honored Contributor II
1,630 Views

Thanks in advance. I know that I have done this command before and it has generated the "uboot" directory. But now I'm working on another project (just the GHRD for the Sodia Eval board) to embed to the QSPI and I get an error (see below). 

 

My steps before this command were: 

1. Use the GHRD for 16.1 for the Sodia - but utilize Q 17.0 - so I a) generate in QSYS b) recompile 

2. Use the bsp-editor to specify that I want to boot from QSPI and generate 

3. Start up the embedded-command-shell and  

a) bsp-create-settings --preloader-settings-dir=hps_isw_handoff/soc_system_hps_0 --type=uboot --settings=software/settings.bsp 

b) bsp-update-settings --settings=software/settings.bsp --set uboot.boot_device QSPI 

 

THEN --> when I do the "bsp-generate-files" there is the error. 

 

WHAT AM I MISSING ??  

 

*************************************************************************************************************************** 

bsp-generate-files --settings=software/settings.bsp --bsp-dir=software/uboot 

 

q16@nxp-System-Product-Name:~/SODIA/Q17.0-withGHRD-16.1/sodia_ghrd_v16.1.0$ bsp-generate-files --settings=software/settings.bsp --bsp-dir=software/uboot 

INFO: Generating BSP files... 

INFO: nios2-bsp-generate-files --settings software/settings.bsp --bsp-dir software/uboot  

INFO: Initializing BSP components... 

INFO: Finished initializing BSP components. Total time taken = 2 seconds 

INFO: Searching for BSP components with category: os_software_element 

INFO: Searching for BSP components with category: driver_element 

INFO: Searching for BSP components with category: software_package_element 

INFO: Generating BSP files in "/home/q16/SODIA/Q17.0-withGHRD-16.1/sodia_ghrd_v16.1.0/software/uboot" 

INFO: Generated file "/home/q16/SODIA/Q17.0-withGHRD-16.1/sodia_ghrd_v16.1.0/software/settings.bsp" 

SEVERE: null 

java.lang.NullPointerException 

at com.altera.embeddedsw.utils.MemoryMapUtils.getMemoryMap(MemoryMapUtils.java:32) 

at com.altera.embeddedsw.bsp.core.internal.generator.device_tree.DeviceTreeImporter.importModel(DeviceTreeImporter.java:44) 

at com.altera.embeddedsw.bsp.core.internal.generator.device_tree.DeviceTreeGenerator.importPhase(DeviceTreeGenerator.java:50) 

at com.altera.embeddedsw.bsp.AbstractBsp.generate(AbstractBsp.java:1367) 

at com.altera.embeddedsw.commandline.bsp.BspGenerateFilesCommand.execute(BspGenerateFilesCommand.java:92) 

at com.altera.embeddedsw.utilities.commandline.AbstractBuildCommandLine.executeCommand(AbstractBuildCommandLine.java:150) 

at com.altera.embeddedsw.commandline.bsp.BspGenerateFilesCommand.main(BspGenerateFilesCommand.java:118) 

SEVERE: nios2-bsp-generate-files failed. 

 

 

***************************************************************************************************************************
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
847 Views

O.K. Even though I got those errors I did the following: 

 

cd software/spl_bsp 

 

make uboot 

 

and compiled the u-boot image !! 

 

SUCCESS -- but the error above really is confusing... 

 

SOLVED
0 Kudos
Reply