Forum Discussion
Altera_Forum
Honored Contributor
20 years agoFound it thx, though when I ran the make hwselect with the following options, I got the error below. I got a similar error when doing the make with the payload buffer and I think you mentioned in another thread to not use ROM?
Any modifications to the asm-offsets.c file needed? (line 149 btw looks like: DEFINE(LINUX_SDRAM_START, nasys_program_mem); DEFINE(LINUX_SDRAM_END, nasys_program_mem_end); ) --- Please select which CPU you wish to build the kernel against: (1) cpu_0 - Class: altera_nios2 Type: e Version: 1.0 Selection: 1 --- Please select a device to upload the kernel to: (1) ext_flash Class: altera_avalon_cfi_flash Size: 16777216 bytes Selection: 1 --- Please select a device to execute kernel from: (1) data_RAM Class: altera_avalon_onchip_memory2 Size: 1024 bytes (2) payload_buffer Class: altera_avalon_onchip_memory2 Size: 16384 bytes (3) firmware_ROM Class: altera_avalon_onchip_memory2 Size: 4096 bytes Selection: 1 --- Summary using PTF: altera_nios_dev_board_cyclone_2c35.ptf CPU: cpu_0 Device to upload to: ext_flash Program memory to execute from: data_RAM --- Settings written to /home/Ricky/linux-2.6.x/arch/nios2nommu/hardware.mk [Ricky@localhost linux-2.6.x]$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- no emulation specific options. CHK include/linux/version.h CHK include/nios2_system.h perl -I/home/Ricky/linux-2.6.x/arch/nios2nommu/scripts /home/Ricky/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu_0 data_RAM ext_flash < altera_nios_dev_board_cyclone_2c35.ptf > include/nios2_system.h.tmp; if [ -r include/nios2_system.h ] && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' UPD include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi UPD include/nios2_system.h CC arch/nios2nommu/kernel/asm-offsets.s arch/nios2nommu/kernel/asm-offsets.c: In function `main': arch/nios2nommu/kernel/asm-offsets.c:149: error: `na_data_RAM' undeclared (first use in this function) arch/nios2nommu/kernel/asm-offsets.c:149: error: (Each undeclared identifier is reported only once arch/nios2nommu/kernel/asm-offsets.c:149: error: for each function it appears in.) arch/nios2nommu/kernel/asm-offsets.c:150: error: `na_data_RAM_end' undeclared (first use in this function) make[1]: *** [arch/nios2nommu/kernel/asm-offsets.s] Error 1 make: *** [arch/nios2nommu/kernel/asm-offsets.s] Error 2