Forum Discussion
Altera_Forum
Honored Contributor
20 years agoU-BOOT !!!!!!!!!!!!
Hi http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wacko.gif ,
that u-boot is really driving me crazy. This is what I've done: 1- Compiled u-boot (got the .bin and the .srec) 2- Used flash programmer to program the .bin in flash (user zone) 3- Used quartus programmer to program standard.sof 4- Followed those instructions in the Using.txt But everytime I launch the nios2-console I get an error messageCommunication port must be specified.
Use openport <port> to configure the communication port. And I'm totally lost within that, It's by God bless that I succeded to write this topic Please rescue me52 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by mfm@Apr 30 2006, 02:58 AM hi scott,well, i've done the following:
- i programmed the u-boot.bin in flash memory using the flash programmer at the user space of the flash (0x400000).
- u-boot works fine but when i type flinfo this is what i get
==> flinfo bank# 1: size: 0 kb in 0 sectors sector start addresses: ==>- when i try to save my variables with saveenv:
==> saveenv saving environment to flash... error: start address not on sector boundary ==>besides, i feel confused between flash and sdram adresses, i can't even decide what adresses to submit to mkimage, is the adress i've programmed u-boot at is suitable and how u-boot proceeds to boot a kernel and a fs images.
all adresses matter is troubling me.
so if you could explain me that i'm gonna be thankful.
ps. i'm using a stratix pro 1s40 board
warm regards
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14852)</div> --- Quote End --- You can find it in u-boot wiki, http://www.denx.de/wiki/view/dulg/linuxnfsroot (http://www.denx.de/wiki/view/dulg/linuxnfsroot) But nios2 uclinux won't expect kernel parameters from boot loader, so it might not work with passed parameters. You can just add them to kernel command line in kernel config.
In kernel config, check File systems -> Network File Systems [*] NFS file system support [*] Provide NFSv3 client support Another approach, boot with initramfs, mount nfs, then switch root to nfs. You may find an example from www.ltsp.org lbe source cvs, initramfs_src/initramfs_tree/initramfs_tree/init You may take a trial of the ltsp4.2 on PCs to get some idea of it.root=/dev/nfs rw nfsroot=10.0.0.2:/home/mfm/roofs ip=10.0.0.99:10.0.0.2:10.0.0.2:255.0.0.0:tqm::off - Altera_Forum
Honored Contributor
Hi hippo,
<div class='quotetop'>QUOTE </div> --- Quote Start --- http://www.denx.de/wiki/view/dulg/linuxnfsroot (http://www.denx.de/wiki/view/dulg/linuxnfsroot)[/b] --- Quote End --- That doesn't explain what's the nuance between flash and ram in using uboot nor how to get their adresses. <div class='quotetop'>QUOTE </div> --- Quote Start --- But nios2 uclinux won't expect kernel parameters from boot loader, so it might not work.[/b] --- Quote End --- Encouraging http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif <div class='quotetop'>QUOTE </div> --- Quote Start --- boot with initramfs, mount nfs, then switch root to nfs.[/b] --- Quote End --- How to do so, and please could you explain what are initramfs and initrd. <div class='quotetop'>QUOTE </div> --- Quote Start --- You may find an example from www.ltsp.org lbe source cvs, initramfs_src/initramfs_tree/initramfs_tree/init You may take a trial of the ltsp4.2 on PCs to get some idea of it.[/b] --- Quote End --- ????????????? BTW, when you talk in other posts about custom board, do you mean a board you make by yourself with different components you routed on ? Warm Regards - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by mfm@Apr 30 2006, 10:01 AM hi hippo,<div class='quotetop'>quote
--- quote end ---
--- quote start ---
http://www.denx.de/wiki/view/dulg/linuxnfsroot (http://www.denx.de/wiki/view/dulg/linuxnfsroot) --- Quote End --- That doesn't explain what's the nuance between flash and ram in using uboot nor how to get their adresses. <div class='quotetop'>QUOTE </div> --- Quote Start --- But nios2 uclinux won't expect kernel parameters from boot loader, so it might not work.[/b] --- Quote End --- Encouraging http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif <div class='quotetop'>QUOTE </div> --- Quote Start --- boot with initramfs, mount nfs, then switch root to nfs.[/b] --- Quote End --- How to do so, and please could you explain what are initramfs and initrd. <div class='quotetop'>QUOTE </div> --- Quote Start --- You may find an example from www.ltsp.org lbe source cvs, initramfs_src/initramfs_tree/initramfs_tree/init You may take a trial of the ltsp4.2 on PCs to get some idea of it.[/b] --- Quote End --- ????????????? BTW, when you talk in other posts about custom board, do you mean a board you make by yourself with different components you routed on ? Warm Regards <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14855)</div> [/b] --- Quote End --- A custom board is a board that is different from the dev board. It is a product, not for development and prototyping. The LTSP is a project which takes use of tftpboot and nfs root to remote boot diskless Linux PC. We use LTSP to run all the PCs in our company, except for the ones to run quartus. As I have said, you need the Linux know-how to success on nios2 Linux. If you take a trial on it, you can learn a lot, what is necessary for you to root nfs on nios2. So I strongly recommand LTSP as a case study. About u-boot, did you walk through the wiki? did you step into the sources? It would be nice if there is a step-by-step guide, but before we have one, you can find the way and help others in the future. I was a newbie to uClinux, too. I wanted to run uClinux on my nios2 board, which is very different from dev board. There was no cfi flash for mtd. I tried and failed a lot. It was a hard time, but I didn't give up. Finally I worked out the initramfs. And later I wrote the buildroot guide. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
- Altera_Forum
Honored Contributor
Hi hippo,
<div class='quotetop'>QUOTE </div> --- Quote Start --- So I strongly recommand LTSP as a case study.[/b] --- Quote End --- I'll do so, thanks for the advice. <div class='quotetop'>QUOTE </div> --- Quote Start --- About u-boot, did you walk through the wiki? did you step into the sources? It would be nice if there is a step-by-step guide, but before we have one, you can find the way and help others in the future.[/b] --- Quote End --- You're absolutely right. <div class='quotetop'>QUOTE </div> --- Quote Start --- Finally I worked out the initramfs.[/b] --- Quote End --- That's make me ask what are initramfs and initrd - Altera_Forum
Honored Contributor
More information about Initramfs can be found on LWN, "Initramfs arrives" and
"Patch: Documentation for ramfs, rootfs, initramfs." - Altera_Forum
Honored Contributor
Hi, all
How can I port U-boot to my board? or is there any web that tell us how to do it? Thank you for your replay. - Altera_Forum
Honored Contributor
Hi scut_ak,
take a look at this topic: http://forum.niosforum.com/forum/index.php...=3571&hl=u-boot (http://forum.niosforum.com/forum/index.php?showtopic=3571&hl=u-boot) - Altera_Forum
Honored Contributor
Hi ,MFM
Thank you for your replay. But I can not open the web link http://www.psyent.com/download (http://www.psyent.com/download), I try it many times. Can you send the code to me ? my e-mail is : [email protected] - Altera_Forum
Honored Contributor
Hi scut_ak,
<div class='quotetop'>QUOTE </div> --- Quote Start --- Can you send the code to me ? my e-mail is : [email protected][/b] --- Quote End --- That's already done. Enjoy ! - Altera_Forum
Honored Contributor
Hi,MFM
I have receive it . Thank you for your help.