Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI try the cygwin console, it just failed in making the Initramfs.
It is time to move to Linux. Linux is much faster than cygwin, too. You can use the GNU tools in NIOS2 for Linux platform. I did try it. Make sure the altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin is in your path. You can use the "unzip -a" of the kernel tree of microtronix as I did it. Then 1. make ARCH=nios2nommu CROSS_COMPILE=nios2-elf- hwselect SYSPTF=your.ptf 2. make ARCH=nios2nommu CROSS_COMPILE=nios2-elf- menuconfig 3. make ARCH=nios2nommu CROSS_COMPILE=nios2-elf- Below is the sample .config # # Automatically generated make config: don't edit# Linux kernel version: 2.6.11-uc0# Mon Nov 28 22:35:10 2005# # CONFIG_MMU is not set# CONFIG_FPU is not set CONFIG_UID16=y CONFIG_RWSEM_GENERIC_SPINLOCK=y# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set CONFIG_GENERIC_CALIBRATE_DELAY=y # # Code maturity level options# CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y # # General setup# CONFIG_LOCALVERSION=""# CONFIG_BSD_PROCESS_ACCT is not set# CONFIG_SYSCTL is not set# CONFIG_AUDIT is not set CONFIG_LOG_BUF_SHIFT=14# CONFIG_HOTPLUG is not set# CONFIG_IKCONFIG is not set CONFIG_EMBEDDED=y CONFIG_KALLSYMS=y# CONFIG_KALLSYMS_EXTRA_PASS is not set CONFIG_FUTEX=y CONFIG_EPOLL=y# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_CC_ALIGN_FUNCTIONS=0 CONFIG_CC_ALIGN_LABELS=0 CONFIG_CC_ALIGN_LOOPS=0 CONFIG_CC_ALIGN_JUMPS=0 CONFIG_TINY_SHMEM=y # # Loadable module support# # CONFIG_MODULES is not set # # Processor type and features# # # Platform dependant setup# CONFIG_NIOS2=y# CONFIG_MICROTRONIX_UKIT is not set# CONFIG_MICROTRONIX_STRATIX is not set# CONFIG_MICROTRONIX_CYCLONE is not set# CONFIG_MICROTRONIX_PSK is not set CONFIG_ALTERA_STRATIX=y# CONFIG_ALTERA_STRATIX_PRO is not set# CONFIG_ALTERA_STRATIX_II is not set# CONFIG_ALTERA_CYCLONE is not set# CONFIG_ALTERA_CYCLONE_1C12_EVAL is not set# CONFIG_NIOS2_HW_MUL_OFF is not set CONFIG_NIOS2_HW_MUL=y# CONFIG_NIOS2_HW_MULX is not set # # Miscellaneous Options# # CONFIG_AVALON_DMA is not set# CONFIG_PIO_DEVICES is not set CONFIG_EXCALIBUR=y# CONFIG_BREAK_ON_START is not set# CONFIG_LARGE_ALLOCS is not set CONFIG_RAMKERNEL=y# CONFIG_PREEMPT is not set CONFIG_CMDLINE="" # # Bus options (PCI, PCMCIA, EISA, MCA, ISA)# # CONFIG_PCI is not set # # PCCARD (PCMCIA/CardBus) support# # CONFIG_PCCARD is not set # # PC-card bridges# # # PCI Hotplug Support# # # Executable file formats# CONFIG_KCORE_AOUT=y CONFIG_KCORE_ELF=y CONFIG_BINFMT_FLAT=y# CONFIG_BINFMT_ZFLAT is not set# CONFIG_BINFMT_SHARED_FLAT is not set# CONFIG_BINFMT_MISC is not set # # Power management options# # CONFIG_PM is not set # # Device Drivers# # # Generic Driver Options# CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y# CONFIG_FW_LOADER is not set # # Memory Technology Devices (MTD)# # CONFIG_MTD is not set # # Parallel port support# # CONFIG_PARPORT is not set # # Plug and Play support# # # Block devices# # CONFIG_BLK_DEV_FD is not set# CONFIG_BLK_DEV_COW_COMMON is not set# CONFIG_BLK_DEV_LOOP is not set# CONFIG_BLK_DEV_RAM is not set CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_INITRAMFS_SOURCE="/home/uc/root" CONFIG_INITRAMFS_ROOT_UID=500 CONFIG_INITRAMFS_ROOT_GID=500# CONFIG_CDROM_PKTCDVD is not set # # IO Schedulers# CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_AS=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y # # ATA/ATAPI/MFM/RLL support# # CONFIG_IDE is not set # # SCSI device support# # CONFIG_SCSI is not set # # Multi-device support (RAID and LVM)# # CONFIG_MD is not set # # Fusion MPT device support# # # IEEE 1394 (FireWire) support# # CONFIG_IEEE1394 is not set # # I2O device support# # # Networking support# # CONFIG_NET is not set# CONFIG_NETPOLL is not set# CONFIG_NET_POLL_CONTROLLER is not set # # ISDN subsystem# # # Telephony Support# # CONFIG_PHONE is not set # # Input device support# # CONFIG_INPUT is not set # # Userland interfaces# # # Input I/O drivers# # CONFIG_GAMEPORT is not set CONFIG_SOUND_GAMEPORT=y# CONFIG_SERIO is not set# CONFIG_SERIO_I8042 is not set # # Input Device Drivers# # # Character devices# # CONFIG_VT is not set# CONFIG_SERIAL_NONSTANDARD is not set# CONFIG_NIOS_SPI is not set# CONFIG_NIOS_BUTTON is not set # # Serial drivers# # CONFIG_SERIAL_8250 is not set # # Non-8250 serial port support# CONFIG_NIOS_SERIAL=y CONFIG_NIOS_SERIAL_CONSOLE=y# CONFIG_SERIAL_AJUART is not set# CONFIG_UNIX98_PTYS is not set# CONFIG_LEGACY_PTYS is not set # # IPMI# # CONFIG_IPMI_HANDLER is not set # # Watchdog Cards# # CONFIG_WATCHDOG is not set# CONFIG_RTC is not set# CONFIG_GEN_RTC is not set# CONFIG_DTLK is not set# CONFIG_R3964 is not set # # Ftape, the floppy tape device driver# # CONFIG_DRM is not set# CONFIG_RAW_DRIVER is not set # # I2C support# # CONFIG_I2C is not set # # Dallas's 1-wire bus# # CONFIG_W1 is not set # # Misc devices# # # Multimedia devices# # CONFIG_VIDEO_DEV is not set # # Digital Video Broadcasting Devices# # # Graphics support# # CONFIG_FB is not set # # Sound# # CONFIG_SOUND is not set # # USB support# # CONFIG_USB is not set CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB_ARCH_HAS_OHCI=y # # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information# # # USB Gadget Support# # CONFIG_USB_GADGET is not set # # MMC/SD Card support# # CONFIG_MMC is not set # # InfiniBand support# # CONFIG_INFINIBAND is not set # # File systems# # CONFIG_EXT2_FS is not set# CONFIG_EXT3_FS is not set# CONFIG_JBD is not set# CONFIG_REISERFS_FS is not set# CONFIG_JFS_FS is not set # # XFS support# # CONFIG_XFS_FS is not set# CONFIG_MINIX_FS is not set# CONFIG_ROMFS_FS is not set# CONFIG_QUOTA is not set# CONFIG_DNOTIFY is not set# CONFIG_AUTOFS_FS is not set# CONFIG_AUTOFS4_FS is not set # # CD-ROM/DVD Filesystems# # CONFIG_ISO9660_FS is not set# CONFIG_UDF_FS is not set # # DOS/FAT/NT Filesystems# # CONFIG_MSDOS_FS is not set# CONFIG_VFAT_FS is not set# CONFIG_NTFS_FS is not set # # Pseudo filesystems# CONFIG_PROC_FS=y CONFIG_SYSFS=y# CONFIG_DEVFS_FS is not set# CONFIG_TMPFS is not set# CONFIG_HUGETLB_PAGE is not set CONFIG_RAMFS=y # # Miscellaneous filesystems# # CONFIG_ADFS_FS is not set# CONFIG_AFFS_FS is not set# CONFIG_HFS_FS is not set# CONFIG_HFSPLUS_FS is not set# CONFIG_BEFS_FS is not set# CONFIG_BFS_FS is not set# CONFIG_EFS_FS is not set# CONFIG_CRAMFS is not set# CONFIG_VXFS_FS is not set# CONFIG_HPFS_FS is not set# CONFIG_QNX4FS_FS is not set# CONFIG_SYSV_FS is not set# CONFIG_UFS_FS is not set # # Partition Types# # CONFIG_PARTITION_ADVANCED is not set CONFIG_MSDOS_PARTITION=y # # Native Language Support# # CONFIG_NLS is not set # # Kernel hacking# # CONFIG_FULLDEBUG is not set# CONFIG_FRAME_POINTER is not set# CONFIG_MAGIC_SYSRQ is not set# CONFIG_NO_KERNEL_MSG is not set # # Security options# # CONFIG_KEYS is not set# CONFIG_SECURITY is not set # # Cryptographic options# # CONFIG_CRYPTO is not set # # Hardware crypto devices# # # Library routines# # CONFIG_CRC_CCITT is not set# CONFIG_CRC32 is not set# CONFIG_LIBCRC32C is not set