Forum Discussion
27 Replies
- Altera_Forum
Honored Contributor
The Microtronix Linux Plugin only works with Nios 5.0 IDE if you use 5.1 then you get the error message that the programmer has been updated.
You can use 5.1 but you must upload the Kernel and Filesystem from the commandline. Use these commands in the nios2-terminal: >>We currently do not support Nios II Linux with Quartus II v5.1 >>In the interim, the kernel and filesystem projects can be uploaded manually >>from the command line using the following procedure: >>Upload the .sof file for your hardware design first, then run the following >>commands. [SOPC Builder]$ cd $ECLIPSE_WORKSPACE/<project>/build [SOPC Builder]$ nios2-elf-objcopy -O binary vmlinux vmlinux.bin [SOPC Builder]$ bin2flash --location=0x0 --input=vmlinux.bin --output=vmlinux.flash [SOPC Builder]$ nios2-flash-programmer --base=0x800000 vmlinux.flash - Altera_Forum
Honored Contributor
to nacide:
if i run the linux on ram,not download into flash,will it work? if it can do,what i should do? thank you! - Altera_Forum
Honored Contributor
when i run linux on DE2,it happaens:
Linux version 2.6.11-uc0 (ty@ty024) (gcc version 3.4.1 (Altera Nios II 5.1 b73)) # 2 Thu Apr 27 20:24:19 2006 on .4.1 (AlteNios II I 5.1 b73))# 2 Thpport © 2004 Microtronix Datacom Ltd. s ilt 1 zonelists I support ©d line: root=/dev/mtdblock0 ro BuD hash table entries: 64 (order: 6, 1024 bytes) tdblock0 ro PIsh table entries: 2048 (order: 1, 8192 bytes) Dentry cache hatable entries: 1024 (order: 0, 4096 bytes) ) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) 288k data) ble: 6372k/8192k RAM, 0k/0k ROM (1412k kernel code, 288k data) Registered protocol family 16 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 000ial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x81004cheduler anticipatory registered scheduler noop registered io sededuler anticipatory registered io scheduler deadline registered io scheduler cfq registered ksize driver initialized: 16 RAM disks of 4096K size 1024 blocksize tera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bankps: 1 Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-susing not available code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Usin"Altera NDK flash (AMD)": nition Creating 4 MTD partitions on "Altera NDK flash (AMD)": s2" extends beyond the end of device "Altera NDK flash (AMD)" -- size truncated to 0x200000 device "Altera NDK flash (AMD)" --nel" truncated to 0x200000 0x00000000-0x00200000 : "loader/kernel" er configuration" is out of reach -- disabled td: partition "User configuration" is out of reach -- disabled fe configuration" is out of reach -- disabled td: partition "safe configuration" is out of reach -- disabled NET: Registered protocol family 2 ished hash table entries: 512 (order: 0, 4096 bytes) TCP establash table entries: 512 (order: -1, 2048 bytes) tes) TCP bind h configured (established 512 bind 512) bytes) TCP: Hash tables family 1 (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 ios II 5.1 b73))# 2 Thu Apr 27 20:24:19 2006 on .4.1 (AlteNios II I 5.1 b73))# 2 Thpport © 2004 Microtronix Datacom Ltd. suilt 1 zonelists I support © line: root=/dev/mtdblock0 ro BID hash table entries: 128 (order: 7, 2048 bytes) dblock0 ro Phash table entries: 4096 (order: 2, 16384 bytes) Dentry cache sh table entries: 2048 (order: 1, 8192 bytes) ) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 288k data) ble: 6360k/8192k RAM, 0k/0k ROM (1412k kernel code, 288k data) el panic - not syncing: Can't create rootfs , 4096 bytes) Kernel panic - not syncing: Can't create rootfs does it mean to the linux work? - Altera_Forum
Honored Contributor
when i build the linux on EP2C35 on my FC4(vmware)
these errors occur: arch/nios2nommu/boot/Makefile:29: 警告:覆盖关于目标“arch/nios2nommu/boot/zImage”的命令 arch/nios2nommu/boot/Makefile:12: 警告:忽略关于目标“arch/nios2nommu/boot/zImage”的旧命令 arch/nios2nommu/boot/Makefile:33: 警告:覆盖关于目标“arch/nios2nommu/boot/compressed/vmlinux”的命令 arch/nios2nommu/boot/Makefile:16: 警告:忽略关于目标“arch/nios2nommu/boot/compressed/vmlinux”的旧命令 arch/nios2nommu/boot/compressed/Makefile:58: 警告:覆盖关于目标“arch/nios2nommu/boot/compressed/vmlinux”的命令 arch/nios2nommu/boot/compressed/Makefile:22: 警告:忽略关于目标“arch/nios2nommu/boot/compressed/vmlinux”的旧命 令 arch/nios2nommu/boot/compressed/Makefile:62: 警告:覆盖关于目标“arch/nios2nommu/boot/compressed/vmlinux.bin”的 命令 arch/nios2nommu/boot/compressed/Makefile:26: 警告:忽略关于目标“arch/nios2nommu/boot/compressed/vmlinux.bin”的 旧命令 arch/nios2nommu/boot/compressed/Makefile:65: 警告:覆盖关于目标“arch/nios2nommu/boot/compressed/vmlinux.bin.gz”的命令 arch/nios2nommu/boot/compressed/Makefile:29: 警告:忽略关于目标“arch/nios2nommu/boot/compressed/vmlinux.bin.gz”的旧命令 arch/nios2nommu/boot/compressed/Makefile:72: 警告:覆盖关于目标“arch/nios2nommu/boot/compressed/piggy.o”的命令 arch/nios2nommu/boot/compressed/Makefile:36: 警告:忽略关于目标“arch/nios2nommu/boot/compressed/piggy.o”的旧命 令 AS arch/nios2nommu/boot/compressed/head.o arch/nios2nommu/boot/compressed/head.S: Assembler messages: arch/nios2nommu/boot/compressed/head.S:111: Error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.S:117: Error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.S:126: Error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.S:146: Error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.S:151: Error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.S:158: Error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.S:169: Error: symbol `fake_headers_as_bzImage' is already defined make[2]: *** [arch/nios2nommu/boot/compressed/head.o] 错误 1 make[1]: *** [arch/nios2nommu/boot/compressed/vmlinux] 错误 2 why? thanks!! - Altera_Forum
Honored Contributor
It looks like the nios2 makefile was patched more than once.
You can remove the old kernel tree and create a new one. Or better follow the new wiki, http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist) - Altera_Forum
Honored Contributor
to hippo
remove the old kernel tree ?you mean the linux-2.6.x tree? could you tell me how i change it exactly ? thank you ! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by iriver@Jun 4 2006, 10:44 AM to hipporemove the old kernel tree ?you mean the linux-2.6.x tree?
could you tell me how i change it exactly ?
thank you !
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15852)
--- quote end ---
--- Quote End --- Please follow the new wiki, it is easier.