With the newer version of make(3.82), you might get errors such as [*** mixed implicit and normal rules. Stop.] either change those lines manually in the Makefiles that are affected or get make(3.81) and use to bypass the error. Replace temporarily by renaming existing make to make.3.82 and the new make as make.3.81. Then use "ln -s make.3.81 make".
In the menuconfig, make sure it is selected as follows:
Vendor/Product Selection ---> # select --- Select the Vendor you wish to target
Vendor (Altera) ---> # select Altera --- Select the Product you wish to target
Altera Products (nios2) ---> # select nios2
Kernel/Library/Defaults Selection ---> # select
--- Kernel is linux-2.6.x
Libc Version (None) ---> # should default to None - very important.
[*] Default all settings (lose changes) # select
[ ] Customize Kernel Settings
[ ] Customize Vendor/User Settings
[ ] Update Default Vendor Settings
Then <exit> <exit> <yes>
(If you were asked option like this, "Build faac (LIB_FAAC) [N/y/?] (NEW)" just enter to use default. This will be fixed.)
Compile kernel and apps,
(this will take a while)
3. The images created are,
images/linux.initramfs.gz is the elf image with initramfs built-in
images/zImge.initramfs.gz is the compressed elf image with initramfs built-in
images/vmImage is compressed u-boot image
images/rootfs.jffs2 is jffs2 image, eg, cp rootfs.jffs2 /dev/mtd0. This is available when jffs2 is selected in kernel. Please note the flash erase sector size on 3c120 dev board is 128KB, you will have to specify "MKFS_JFFS2_FLAGS = -l -p -e 128" at the beginning of your product Makefile.
Connect USB Blaster cable to 3C120 dev board, download the sof and elf.