- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can not access the web link given in the forum http://www.pysent.com/download (http://www.pysent.com/download)
can anyone send the code to me? my email is: scut_ak@163.com Thanks in advance.Link Copied
11 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used the u-boot-1.1.4 and choose the 1C20 board and modify the file ./include/configs/DK1C20.h and ./include/configs/DK1C20_standard_32.h
then back to root dir of u-boot and type the following commands: make CROSS_COMPILE=nios2-linux-uclibc- DK1C20_standard_32_config make CROSS_COMPILE=nios2-linux-uclibc- all then the following error occur: [hgjw@localhost u-boot-1.1.4]$ make CROSS_COMPILE=nios2-linux-uclibc- DK1C20_standard_32_config ... NIOS 'standard_32' configuration Configuring for DK1C20 board... [hgjw@localhost u-boot-1.1.4]$ make CROSS_COMPILE=nios2-linux-uclibc- all make[1]: Entering directory `/home/hgjw/u-boot/u-boot-1.1.4/tools' ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x018c0000 -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend In file included from ../include/config.h:4, from environment.c:28: ../include/configs/DK1C20.h:257:2:# error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h In file included from ../include/config.h:4, from envcrc.c:32: ../include/configs/DK1C20.h:257:2:# error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/hgjw/u-boot/u-boot-1.1.4/tools' make[1]: Entering directory `/home/hgjw/u-boot/u-boot-1.1.4/examples' nios2-linux-uclibc-gcc -M -g -Os -D__KERNEL__ -DTEXT_BASE=0x018c0000 -I/home/hgjw/u-boot/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /home/hgjw/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -m32 -DCONFIG_NIOS -D__NIOS__ -ffixed-g7 -gstabs -Wall -Wstrict-prototypes hello_world.c stubs.c > .depend cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/hgjw/u-boot/u-boot-1.1.4/examples' make[1]: Entering directory `/home/hgjw/u-boot/u-boot-1.1.4/post' nios2-linux-uclibc-gcc -M -g -Os -D__KERNEL__ -DTEXT_BASE=0x018c0000 -I/home/hgjw/u-boot/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /home/hgjw/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -m32 -DCONFIG_NIOS -D__NIOS__ -ffixed-g7 -gstabs -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c cpu.c dsp.c ether.c i2c.c memory.c post.c rtc.c spr.c sysmon.c tests.c uart.c usb.c watchdog.c > .depend cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/hgjw/u-boot/u-boot-1.1.4/post' make[1]: Entering directory `/home/hgjw/u-boot/u-boot-1.1.4/post/cpu' nios2-linux-uclibc-gcc -M -g -Os -D__KERNEL__ -DTEXT_BASE=0x018c0000 -I/home/hgjw/u-boot/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /home/hgjw/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -m32 -DCONFIG_NIOS -D__NIOS__ -ffixed-g7 -gstabs -Wall -Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox.c three.c threex.c threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c load.c cr.c b.c multi.c string.c complex.c > .depend cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 cc1: error: invalid option `32' cc1: warning: unknown register name: g7 make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/hgjw/u-boot/u-boot-1.1.4/post/cpu' make: *** [depend] Error 2 why? can anyone help me ? Thanks in advance.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi scut_ak,
I've sent you the u-boot binary and source files. BTW the right adress is http://www.psyent.com/download/ (http://www.psyent.com/download/)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi scut_ak,
<div class='quotetop'>QUOTE </div> --- Quote Start --- I used the u-boot-1.1.4[/b] --- Quote End --- Use the files I sent you by mail (from http://www.psyent.com/download/) (http://www.psyent.com/download/)) instead of that version.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, MFM
Thank you for your help, I have recieved it .- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, MFM
I only modify the file EP1C20.h in include/configs/ directory to fit my Cyclone Board (the FPGA chip is EP1C6), Then type the following commands make EP1C20_config make then produce the u-boot elf image and in nios sdk shell I download the system.sof then nios2-download -g u-boot and it download to the address 0x1FC0000 my sdram address is begin at 0x0 (8M) my flash addess is begin at 0x800000 (2M) how to modify the address in which the u-boot image download to ? warm regards.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,MFM
The output as I type the following command [SOPC Builder]$ nios2-download -g u-boot Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00 Processor is already paused Downloaded 98KB in 2.8s (35.0KB/s) Verifying 01FC0000 ( 0%) Verify failed between address 0x1FC0000 and 0x1FCFFFF Leaving target processor paused /cygdrive/c/u-boot-src/u-boot How to change the download address? In the file \include\configs\EP1C20.h ,I have found the following infomation related to the load address:# define CFG_LONGHELP /* Provide extended help*/# define CFG_PROMPT "==> " /* Command prompt */# define CFG_CBSIZE 256 /* Console I/O buf size */# define CFG_MAXARGS 16 /* Max command args */# define CFG_BARGSIZE CFG_CBSIZE /* Boot arg buf size */# define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */# define CFG_LOAD_ADDR 0x0/*CFG_SDRAM_BASE*/ /* Default load address */# define CFG_MEMTEST_START 0x0/*CFG_SDRAM_BASE*/ /* Start addr for test */# define CFG_MEMTEST_END CFG_INIT_SP - 0x00020000 # define CFG_HUSH_PARSER# define CFG_PROMPT_HUSH_PS2 "> " # endif /* __CONFIG_H */ In fact my CFG_SDRAM_BASE is set to 0x0 already, but it still does not work as espected. I do not know why? can anyone give some hint ? Thanks in advance.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi scut_ak,
<div class='quotetop'>QUOTE </div> --- Quote Start --- I only modify the file EP1C20.h in include/configs/ directory to fit my Cyclone[/b] --- Quote End --- you should take a look at Scott's reply http://forum.niosforum.com/forum/index.php...=3571&hl=u-boot (http://forum.niosforum.com/forum/index.php?showtopic=3571&hl=u-boot) <div class='quotetop'>QUOTE </div> --- Quote Start --- how to modify the address in which the u-boot image download to ?[/b] --- Quote End --- Are you talking about downloading into flash or SDRAM? Did you review the using.txt file in the u-boot-src directory?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,MFM
We know that when we use the command "nios2-download -g u-boot" then it download the elf format image into sdram automatically and here the addess 0x1FC0000 was not assigned by me in the above command. I mean where to specified this addess in the u-boot source code. Thank you for your replay . Warm Regard. scut_ak --- Quote Start --- SOPC Builder]$ nios2-download -g u-boot Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00 Processor is already paused Downloaded 98KB in 2.8s (35.0KB/s) Verifying 01FC0000 ( 0%) Verify failed between address 0x1FC0000 and 0x1FCFFFF Leaving target processor paused /cygdrive/c/u-boot-src/u-boot- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The default load address is set by link script.
Check your Makefile to find out the link script. You can check the load address with, "nios2-linux-uclibc-objdump -h u-boot", it will display in VMA/LMA fields.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi scut_ak,
> my sdram address is begin at 0x0 (8M) > my flash addess is begin at 0x800000 (2M) > > how to modify the address in which the u-boot image download to ? There are several ways to do this ... but if you're just hacking at the 1c20 configuration, then just modify the TEXT_BASE macro in: board/altera/ep1c20/config.mk If you have 8M starting at 0, I'd recommend: TEXT_BASE=0x007c0000 ... that will provide plenty of space for your image if you want to experiment with additional u-boot features (e.g. NFS, CompactFlash, IDE, whatever). Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,smcnutt
Thank you for your replay . I have successfully ported the u-boot to my board. I change the TEXT_BASE to 0x300000 and it work OK. warm regard scut_ak
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page