Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot to build toolchain on Linux
TO_BE_DONE
107 Replies
- Altera_Forum
Honored Contributor
Catherine Zeta Jone SPAM!
spam posted please report to forum admin (http://catherine-zeta-jone-spam.org/windowsmediaplayer.php?movie=694824) - Altera_Forum
Honored Contributor
hi hippo,
I am developing linux applications on CYCLONE_1C12_EVAL Board, following your instructions on website NiosWIKI. I want to boot from CTI flash. But the linux didn't work but after programming. There is one point I am not clear. Please refer to the following scripts on NIOSWIKI, how do you get the address "0xC0000" in " sof2flash --offset=0xC00000 --". ------------------------------------------------------------------------------------------- cd arch/nios2nommu/boot# Creating .flash file for the FPGA configuration sof2flash --offset=0xC00000 --input=$SOPC_KIT_NIOS2/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof --output=standard.flash# Programming flash with the FPGA configuration nios2-flash-programmer --base=0x00000000 standard.flash ----------------------------------------------------------------------------------------------- And Please help me to check whether the following selects are right or not. (I) SOPC. I choose: reset from ext_flash (II) The addresses in my nios2-system.h are chosen like these: ext_flash: 0x0--0x800000 epcs: 0x800800---0x801000 (III) When "make vendor_hwselect SYSPTF=....", the items chosen are chosen ike the following: --- Please select which CPU you wish to build the kernel against: (1) cpu - Class: altera_nios2 Type: s Version: 5.11 Selection: 1 --- Please select a device to upload the kernel to: (1) ext_flash Class: altera_avalon_cfi_flash Selection: 1 --- Please select a device to execute kernel from: (1) ext_ssram Class: altera_avalon_cy7c1380_ssram (2) epcs_controller Class: altera_avalon_epcs_flash_controller Size: 2048 bytes Selection: 1 I will appreciate much if you could spare a minute to reply. Thank you, Elec - Altera_Forum
Honored Contributor
hi hippo
I meet a pb ,I used DEII board i don't know how to change link address view the rocessor type and features--> can't find the (0x00500000) Link address offset for booting plz help me - Altera_Forum
Honored Contributor
dear hippo,
According to you,I download the builld.zip ,uClinux-dist-20051110,and nios2linux-1.4.zip, then execute the ./build this is the error information in the terminal : tar: buildroot/package/bash/bash31-009: Cannot open: 没有那个文件或目录 tar: buildroot/package/bash/Config.in: Cannot open: 没有那个文件或目录 tar: buildroot/package/Config.in: Cannot open: 没有那个文件或目录 tar: buildroot/package/Makefile.in: Cannot open: 没有那个文件或目录 tar: buildroot/.defconfig: Cannot open: 没有那个文件或目录 tar: buildroot/Config.in: Cannot open: 没有那个文件或目录 tar: buildroot/Makefile: Cannot open: 没有那个文件或目录 tar: Error exit delayed from previous errors ./build: line 40: cd: /home/fzh2004/buildroot: 没有那个文件或目录 can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: toolchain/uClibc/uClibc.config |=================================================================== |--- toolchain/uClibc/uClibc.config (revision 14578) |+++ toolchain/uClibc/uClibc.config (working copy) -------------------------- File to patch: thanks! - Altera_Forum
Honored Contributor
Hi,
I have build hardware for Stratix GX development board without any error, but now I have problem with building uCLinux kernel. When I try to generate system.h
it detects that I have 0 bytes ddr_sdram# generate nios2_system.h from ptf make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=stratixGX.ptf
SOPC builder system consists of nios2 cpu, ddr sdram controller (Base address 0x00000000, end address 0x07ffffff == 128MB ??), uart, jtag uart, timer, sysid, avalon tri state bridge and dummy cfi flash (not connected to any fpga pin). Can anybody help me? Here is my ptf file: [attachment=162:attachment] Best Regards, Maciek--- Please select a device to execute kernel from: (1) ddr_sdram Class: ddr_sdram_component Size: 0 bytes - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 26 2006, 12:20 PM hi,hippoi build the uclinux kernel as your guide.there is noting error occurred.
when i download the vmlinux(elf) to my board using command "nios2-download -g vmlinux",there are nothing output in my com port?
what is the matter? i cancel the jtag uart in menuconfig and do noting else.
my board is a custom board using cyclone ep1c6, the default board type in the menuconfig is stratix ,is this matter?
waiting for your replay.
thanks in advance.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14682)
--- quote end ---
--- Quote End --- you have to select nios serial in kernel config
PLEASE POST YOUR FUTURE QUESTIONS IN UCLINUX FORUM AS A NEW TOPIC.Nios serial support Support for console on Nios UART - Altera_Forum
Honored Contributor
Here is my ptf ,and I have test it in the nios IDE,it work ok with the hellowold application.
- Altera_Forum
Honored Contributor
Hi,Hippo
I build the uclinux kernel as your guide.there is noting error occurred. When I download the vmlinux(elf) to my board using command "nios2-download -g vmlinux",there are nothing output in my com port? what is the matter? I cancel the jtag uart in menuconfig and do noting else. my board is a custom board using Cyclone EP1C6, the default board type in the menuconfig is stratix ,is this matter? waiting for your replay. Thanks in advance. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by piie@Apr 21 2006, 02:09 PM hello all,i tried to follow the howto step by step, but when compiling the kernel i get following errors:
$ make arch=nios2nommu cross_compile=nios2-linux-uclibc- zimage chk include/linux/version.h chk include/nios2_system.h perl -i/home/jack/linux-2.6.x/arch/nios2nommu/scripts /home/jack/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < ../standard_1c12.ptf > include/nios2_system.h.tmp; if && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' upd include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi make: `arch/nios2nommu/kernel/asm-offsets.s' is up to date. chk include/linux/compile.h chk usr/initramfs_list arch/nios2nommu/boot/makefile:29: warning: overriding commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:46: warning: overriding commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage' arch/nios2nommu/boot/makefile:50: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/makefile:33: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:94: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:58: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/makefile:98: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:62: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/makefile:101: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:65: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/makefile:108: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/makefile:72: warning: ignoring old commands for target `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 arch/nios2nommu/boot/compressed/head.s:202: error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.s:208: error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.s:217: error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.s:237: error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.s:242: error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.s:249: error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.s:260: error: symbol `fake_headers_as_bzimage' is already defined make: *** error 1 make: *** error 2 make: *** error 2anyone any idea what's going wrong?
btw, hippo, thanks for the great work.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14536)</div> --- Quote End --- It looks like the zImage was patched twice? Please reinstall kernel source
Please post your future questions to uclinux forum.cd ~ rm -rf ~/linux-2.6.x# kernel 2.6.11-uc0 source ported by microtronix cp -a ~/download/mx140/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~ cd ~/linux-2.6.x patch -p0 <~/download/kernel.diff cp ~/download/kernel.config ~/linux-2.6.x/.config - Altera_Forum
Honored Contributor
Hello all,
i tried to follow the howto step by step, but when compiling the kernel I get following errors:
anyone any idea what's going wrong? btw, hippo, thanks for the great work.$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- zImage CHK include/linux/version.h CHK include/nios2_system.h perl -I/home/jack/linux-2.6.x/arch/nios2nommu/scripts /home/jack/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < ../standard_1c12.ptf > include/nios2_system.h.tmp; if && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' UPD include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi make: `arch/nios2nommu/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CHK usr/initramfs_list arch/nios2nommu/boot/Makefile:29: warning: overriding commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:46: warning: overriding commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:50: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:33: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:94: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:58: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:98: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:62: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:101: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:65: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:108: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:72: warning: ignoring old commands for target `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 arch/nios2nommu/boot/compressed/head.S:202: Error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.S:208: Error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.S:217: Error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.S:237: Error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.S:242: Error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.S:249: Error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.S:260: Error: symbol `fake_headers_as_bzImage' is already defined make: *** Error 1 make: *** Error 2 make: *** Error 2