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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

'KERNEL_REGION_BASE' undeclared when building ucLinux with nios2-linux-20090928.tar

Altera_Forum
Honored Contributor II
1,284 Views

I selected NIOS2 without MMU and built the kernel. Then I got the following error. 

I use Cent OS 5.3 in one IBM T42 Notebook. 

 

chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh 

. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then  

mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`;  

touch $CONFIG_INITRAMFS_SOURCE || exit 1;  

fi 

rm -f linux-2.6.x/usr/initramfs_data.cpio 

make ARCH=nios2 CROSS_COMPILE=nios2-wrs-linux-gnu- O=/home/hank/linux/nios2-linux/uClinux-dist/linux-2.6.x -j4 -C ../linux-2.6 || exit 1 

make[1]: Entering directory `/home/hank/linux/nios2-linux/linux-2.6' 

CHK include/linux/version.h 

CHK include/linux/utsrelease.h 

SYMLINK include/asm -> include/asm-nios2 

Using /home/hank/linux/nios2-linux/linux-2.6 as source for kernel 

CC arch/nios2/kernel/asm-offsets.s 

/home/hank/linux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c: In function 'main': 

/home/hank/linux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: 'KERNEL_REGION_BASE' undeclared (first use in this function) 

/home/hank/linux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: (Each undeclared identifier is reported only once 

/home/hank/linux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: for each function it appears in.) 

/home/hank/linux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:136: error: 'FAST_TLB_MISS_EXCEPTION_ADDR' undeclared (first use in this function) 

make[3]: *** [arch/nios2/kernel/asm-offsets.s] Error 1 

make[2]: *** [prepare0] Error 2 

make[1]: *** [sub-make] Error 2 

make[1]: Leaving directory `/home/hank/linux/nios2-linux/linux-2.6' 

make: *** [linux] Error 1
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
561 Views

Check if you selected NIOS2NOMMU. Those are all MMU specific defines. 

 

--dalon
0 Kudos
Altera_Forum
Honored Contributor II
561 Views

 

--- Quote Start ---  

I selected NIOS2 without MMU 

--- Quote End ---  

 

 

My guess is you're using the wrong branch. 

 

Cheers, 

 

- slacker
0 Kudos
Reply