--- Quote Start ---
originally posted by scut_ak@Apr 27 2006, 03:34 PM
hi,hippo
thank you very much for your replay.
today i use fs2 associated with the nios2 ide to debug my image ,first i use the command "nios2-elf-objcopy -o srec vmlinux vmlinux.srec" in nios sdk shell to convert the elf to srec format,and doanload the srec image to my cyclone board in fs2 console using the commands "load srec vmlinux.srec" and "go" then there are some message showing in the console as follow:
49> reset
user reset.
00800000 0x0001703a wrctl status, r0
50> set pc 0x0
0
51> load srec vmlinux.srec
1095464
52> go
emulation started.
software breakpoint.
00a00094 0x003da03a break
53> ls
./:
cfi_flash_0.flash generated_app.sh hello_world_0.elf hello_world_0.srec
makefile obj/ subdir.mk vmlinux.elf
vmlinux.srec
54> pc
0x00a00094
55>
the base address of my sdram is 0x0, i test my hello world application as above, and it work well. i support that the uclinux is also a application,but much bigger than our normal application.
i do not familiar with the nios instruction sets,so i do not know what to do now, should i study the nios instruction set ?
my e-mail is : scut_ak@163.com how can i touch you by e-mail and send my detailed info about my situation.
thank you for your work done for us.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14744)
--- quote end ---
--- Quote End ---
Sorry, I don't use IDE or the debugger.
When I worked out my first uClinux boot, I didn't have any dev board and I didn't use jtag debugger /terminal. I used only serial uart and the download tools of my own custom board. It did take some time because I was a newbie, too.
Since you have the jtag tools, you should really try out jtag uart and zImage.
"nios2-download -g zImage" and then "nios2-terminal" , you should get the
"Uncompressing Linux..." message right after boot. it is direct io to uart port without device driver layer. It did not enter linux yet. It is a good point to verify the board is working.
It is easier to work with nios2 SDK shell than the IDE.
You can just post your result here, so that others may share the experience.
I did give some ones my e-mail, but I found it not really helpful. I will poll the forum when I hare a short break. It won't take long to get my reply.