Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi everyone,
I want to compile nios2-linux with mmu for Stratix 2. My linux-2.6 branch is nios2 with 3.1.0-rc7. In make menuconfig. In uClinux Distribution Configuration, under the Vendor/Product Selection Category I select Altera as Vendor and nios2 as Altera Products. In Kernel/Library/Defaults Selection i chhose Customize Kernel Settings. In Kernel Configuration, in Platform Options, i set the Memory base address and memory size. I also Select Compile and link device tree into kernel image and set the path to .dts file. In Device Drivers, i select Memory Technology Device(MTD) support and in it under Mapping drivers for chip access and in it I select Flash device physical memory based on OF description. In Character Devices-> Serial drivers i select Altera UART support and Altera UART console support. This is based on bootrags from .dts file. For Led Support I deslect it. The selection all based on http://www.alterawiki.com/wiki/devicetree. Every other selection is default. I save it. But make it cause errors.
make -f tools/autotools.mk autotools-cache
make: Entering directory `/home/nuar/Programs/nios2-linux/uClinux-dist'
make: Nothing to be done for `autotools-cache'.
make: Leaving directory `/home/nuar/Programs/nios2-linux/uClinux-dist'
chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh
. linux-2.6.x/.config; if ; 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-linux-gnu- O=/home/nuar/Programs/nios2-linux/uClinux-dist/linux-2.6.x -j8 -C ../linux-2.6 || exit 1
make: Entering directory `/home/nuar/Programs/nios2-linux/linux-2.6'
GEN /home/nuar/Programs/nios2-linux/uClinux-dist/linux-2.6.x/Makefile
CHK include/linux/version.h
Using /home/nuar/Programs/nios2-linux/linux-2.6 as source for kernel
/home/nuar/Programs/nios2-linux/linux-2.6 is not clean, please run 'make mrproper'
in the '/home/nuar/Programs/nios2-linux/linux-2.6' directory.
make: *** Error 1
make: *** Error 2
make: Leaving directory `/home/nuar/Programs/nios2-linux/linux-2.6'
make: *** Error 1
How to successfully compile nios2-linux with mmu? Having alot of trouble. Any help would be appreciated. Thank you. Moganesh