Forum Discussion
Altera_Forum
Honored Contributor
20 years agonothing out to uart,help me
hi,Hippo
you have to select nios serial in kernel config CODE [*] Nios serial support [*] Support for console on Nios UART I have select it ,but still it does not work foe me.why? have you checked my ptf? I do not know whether there is some mistake.18 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 26 2006, 07:19 PM hi,hippoyou have to select nios serial in kernel config
code
[*] nios serial support
[*] support for console on nios uart
i have select it ,but still it does not work foe me.why?
have you checked my ptf? i do not know whether there is some mistake.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14701)
--- quote end ---
--- Quote End --- I found both uart_0 and uart_usb in your ptf. 1. since you have jtag connector on your board for download, use jtag uart as a first test to make sure the kernel start up. 2. use only minimal ptf, with only one uart_0 . use zImage instead of vmlinux, becaue zImage will print a message driectly to the uart port.
- Altera_Forum
Honored Contributor
Hi ,Hippo
Thank you for your reply. I look at the build script and found that there is no buildroot-20060320.tar.bz2 on the web site. so I download the buildroot-20060322.tar.bz2 busybox-20060322.tar.bz2 and uClibc-20060322.tar.bz2 instead. Does it matter? - Altera_Forum
Honored Contributor
The image I produce is so large, It is about 6.5M. Is that ok?
what is your kernel size? - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 26 2006, 10:21 PM the image i produce is so large, it is about 6.5m. is that ok?what is your kernel size?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14714)
--- quote end ---
--- Quote End --- Don't worry, my vmlinux is 12M. It is big because it has all the debug symbols. You can check the zImage . It is compressed and has fewer symbols.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 26 2006, 09:48 PM hi ,hippothank you for your reply.
i look at the build script and found that there is no buildroot-20060320.tar.bz2 on the web site. so i download the buildroot-20060322.tar.bz2 busybox-20060322.tar.bz2 and uclibc-20060322.tar.bz2 instead.
does it matter?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14712)
--- quote end ---
--- Quote End --- I remember some people used 20060322. It might work, too. But this is really a problem, when I use the snapshot in build script. It will last for only one month. I should find some place to hold the old snapshots, and some binary distro ? .
- Altera_Forum
Honored Contributor
I use another project .ptf, this time I use only one uart and the baud rate is 115200, Does it ok?
But It still does not work, I am nearly mad. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 27 2006, 12:49 PM i use another project .ptf, this time i use only one uart and the baud rate is 115200, does it ok?but it still does not work, i am nearly mad.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14735)
--- quote end ---
--- Quote End --- don't give up. use jtag uart and zImage first.
- Altera_Forum
Honored Contributor
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 : [email protected] How can i touch you by e-mail and send my detailed info about my situation. Thank you for your work done for us. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by scut_ak@Apr 27 2006, 03:34 PM hi,hippothank 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 : [email protected] 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.
- Altera_Forum
Honored Contributor
Hi,Hippo
Thank you for your suggestion. I will post my result here. I am sorry,I made a mistake. I use vmlinux as my image, it should be zImage. I run the command "nios2-download -g zImage ", then in my uart port there is a message Uncompressing Linux... Ok, booting the kernel. Then it come to a stop. My custom board use Cyclone (EP1C6), should I choose the Altera Cyclone board in the "Processor type and features" when menuconfig the kernel?