Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi Jake,
Since it was brought up in this thread.... I'm also getting the sof2flash java problems on 64b SUSE linux (& 10.1). I'm probably just missing a doc on how to setup my env, but I've been hacking at it & would appreciate any pointers. Here's my env setup: setenv ALTERA_ROOT /home/altera/10.1 setenv SOPC_KIT_NIOS2 ${ALTERA_ROOT}/nios2eds setenv _QUARTUS_ROOT ${ALTERA_ROOT}/nios2eds/../quartus setenv QUARTUS_ROOTDIR ${ALTERA_ROOT}/quartus setenv _NIOS2EDS_ROOT ${ALTERA_ROOT}/nios2eds/ setenv PATH ${PATH}:${ALTERA_ROOT}/nios2eds/bin/gnu/H-i686-mingw32/bin:${ALTERA_ROOT}/nios2eds/sdk2/bin:${ALTERA_ROOT}/nios2eds/bin:${ALTERA_ROOT}/quartus/bin:${ALTERA_ROOT}/quartus/sopc_builder/bin And that seems good enough for nios2-configure-sof and nios2-flash-programmer to run. Unfortunately, I get this for sof2flash: >sof2flash --pfl --optionbit=0x18000 --programmingmode=FPP --input=tpe.sof --output=tpe_hw.flash --offset=0x640000 ; Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Version 10.1 Build 153 11/29/2010 SJ Full Version Info: Copyright (C) 1991-2010 Altera Corporation. All rights reserved. Info: Your use of Altera Corporation's design tools, logic functions Info: and other software and tools, and its AMPP partner logic Info: functions, and any output files from any of the foregoing Info: (including device programming or simulation files), and any Info: associated documentation or information are expressly subject Info: to the terms and conditions of the Altera Program License Info: Subscription Agreement, Altera MegaCore Function License Info: Agreement, or other applicable license agreement, including, Info: without limitation, that your use is for the sole purpose of Info: programming logic devices manufactured by Altera and sold by Info: Altera or its authorized distributors. Please refer to the Info: applicable agreement for further details. Info: Processing started: Fri Mar 18 09:27:35 2011 Info: Command: quartus_cpf -c tpe_hw.cof Info: Memory Map File tpe_hw.map contains memory usage information for file tpe_hw.pof Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 327 megabytes Info: Processing ended: Fri Mar 18 09:27:50 2011 Info: Elapsed time: 00:00:15 Info: Total CPU time (on all processors): 00:00:10 Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Version 10.1 Build 153 11/29/2010 SJ Full Version Info: Copyright (C) 1991-2010 Altera Corporation. All rights reserved. Info: Your use of Altera Corporation's design tools, logic functions Info: and other software and tools, and its AMPP partner logic Info: functions, and any output files from any of the foregoing Info: (including device programming or simulation files), and any Info: associated documentation or information are expressly subject Info: to the terms and conditions of the Altera Program License Info: Subscription Agreement, Altera MegaCore Function License Info: Agreement, or other applicable license agreement, including, Info: without limitation, that your use is for the sole purpose of Info: programming logic devices manufactured by Altera and sold by Info: Altera or its authorized distributors. Please refer to the Info: applicable agreement for further details. Info: Processing started: Fri Mar 18 09:27:50 2011 Info: Command: quartus_cpf -c tpe_hw.pof tpe_hw.hexout Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 339 megabytes Info: Processing ended: Fri Mar 18 09:28:22 2011 Info: Elapsed time: 00:00:32 Info: Total CPU time (on all processors): 00:00:28 java.lang.NullPointerException at com.altera.utilities.Launcher.read(Launcher.java:307) at com.altera.utilities.Launcher.read(Launcher.java:362) at com.altera.sof2flash.PFLFlashGenerator.convertHexToSREC(PFLFlashGenerator.java:239) at com.altera.sof2flash.PFLFlashGenerator.pflgen(PFLFlashGenerator.java:37) at com.altera.sof2flash.Sof2flash.<init>(Sof2flash.java:122) at com.altera.sof2flash.Sof2flash.main(Sof2flash.java:77) Mar 18, 2011 9:28:22 AM - (SEVERE) sof2flash: Error creating intermediate files, exiting -------- Some additional info in case it helps: > uname -a Linux sprite 2.6.32.12-0.7-default# 1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux > java -version java version "1.6.0" Java(TM) SE Runtime Environment (build pxa6460sr7-20091215_02(SR7)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20091214_49398 (JIT enabled, AOT enabled) J9VM - 20091214_049398 JIT - r9_20091123_13891 GC - 20091111_AA) JCL - 20091202_01 So, it made .pof, .map, and .hexout files before it died. -Brian