Forum Discussion
Altera_Forum
Honored Contributor
20 years ago/bin/init hangs
hi all,
I am trying to boot uclinux on 2s60 board. where my kernel is hanging moment it calls /bin/init. I have build uclinux with changed memory layout where base addresses and irq number differs then default memory layout .sof and .ptf files given by microtronix. Also I have remover support for compact flash in my case. I can boot uclinux build from microtronix .sof and .ptf file on the board with similarly generated file system. I tried "root=/dev/mtdblock0 ro" as well as nfs boot with root=/dev/nfs ro, and seems fine (nfs boot init gives error with init: execv failed, but get login and prompt ok) . But when I give my memory layout sof and ptf file the compilation is successful but kernel get hangs when he calls /bin/init. Any one has any idea why it is happing so??? Do I need to build new busybox ??? Is it not possible to boot uclinux with custom memory layout on Altera boards ?? Do I need to change my quartus-II 4.2 and nios-II 1.1 versions ??? Any suggestion where I am going wrong ??? If any one need I can post my sof, ptf and nios2_system.h files. thanks in advance Ankur13 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@May 7 2006, 02:54 AM which linux distro do you use?check your buildroot/build_nios2/staging_dir/bin,
are there the cross gcc?
i would suggest you put the buildroot dir in your home dir as user. ie ~/buildroot .
please try, rm -rf ~/buildroot/toolchain_build_nios2
and make again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15138)
--- quote end ---
--- Quote End --- hi hippo and all, I am using redhat - 9 on my host system for develop. Cross gcc is not there in buildroot/build_nios2/staging_dir/bin.... Now I have shifted buidroot dir in my home dir but still its failing with same error... I read that redhat-9 "make" has some problem ... do I need to update my host system linux-ver to some Fedora version. Do I need to build cross-uclibc-gcc by my self or buildroot will do it for me ???? thanks Ankur
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by ankur+may 8 2006, 04:22 pm--><div class='quotetop'>quote (ankur @ may 8 2006, 04:22 pm)</div>--- quote start ---
<!--quotebegin-hippo@May 7 2006, 02:54 AM which linux distro do you use?
check your buildroot/build_nios2/staging_dir/bin,
are there the cross gcc?
i would suggest you put the buildroot dir in your home dir as user. ie ~/buildroot .
please try, rm -rf ~/buildroot/toolchain_build_nios2
and make again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15138)
--- quote end ---
--- Quote End --- hi hippo and all, I am using redhat - 9 on my host system for develop. Cross gcc is not there in buildroot/build_nios2/staging_dir/bin.... Now I have shifted buidroot dir in my home dir but still its failing with same error... I read that redhat-9 "make" has some problem ... do I need to update my host system linux-ver to some Fedora version. Do I need to build cross-uclibc-gcc by my self or buildroot will do it for me ???? thanks Ankur <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15183)</div> [/b] --- Quote End --- The "make" of redhat is too old. You should use Fedora Core 5. The buildroot will build the cross gcc. I have prepared the binary buildroot tools, you can try it without building buildroot. http://forum.niosforum.com/forum/index.php?showtopic=3879 (http://forum.niosforum.com/forum/index.php?showtopic=3879)
- Altera_Forum
Honored Contributor
hi hippo and all,
I tried your binaries and it worked http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif What I actually did is ... on my redhat-9 system I untared your pre compiled gcc and stuff, then through your already build file system's help I build my kernel and it worked perfectly fine. I can now see file system in ram file system boot. But still facing some issues with nfs root .... It doesn't look like any problem with buildroot or file system .... I am getting following error while booting same kernel with nfs boot support enable mm/vmscan.c 736 Kernel BUG! mm/vmscan.c 738 Kernel BUG! . . . . . . What I found is I have enabled bit swaping feature in my nios processor in fpga configuration. Next I will try disabling it and will update result on forum. Thanks for all your help Ankur