Forum Discussion
Altera_Forum
Honored Contributor
20 years agoeth0 missing (or not?)
Hi, I followed the instructions (http://nioswiki.jot.com/wikihome/operatingsystems/ethernet) on NiosWiki on setting up Ethernet on uClinux. It compiled ok and even printed out the following during bo...
Altera_Forum
Honored Contributor
20 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- A little explanation: If I load the new, linux-made image with "nios2-download -g zImage", I am able to start on this new image. However, once I switch the power off and back on again, nios2-terminal starts the old kernel. This thing is starting to bug me big time...[/b] --- Quote End --- nios2-download did not program the flash, so when you restart , it will start from old image in flash. You need to program the flash with new sof and kernel image. http://nioswiki.jot.com/wikihome/operating...flashprogrammer (http://nioswiki.jot.com/wikihome/operatingsystems/flashprogrammer) You should build your system step by step. 1. bare nios2 dev kit, without eth+usb extander. copy the hardware project from altera/kits/nios2/examples/verilog/niosII_stratix_2s60/standard/ run sopc builder, regenerate sof. in uClinux-dist-test, make clean, then start from make linux_hwselect to build zImage . make sure uclinux and smc91111 work properly. you may try out flash programmer with the new sof and kernel at this time. 2. nios2 dev kit, wtih eth+usb extander . add usb component to sopc builder, but do not add dm9000 , assign pins, and generate sof. in uClinux-dist-test, make clean, then start from make linux_hwselect to build zImage . make sure uclinux, isp1161and smc91111 work properly. you may try out flash programmer again. 3. nios2 dev kit, wtih eth+usb extander . add dm9000 in sopc builder. but check the generated include/nios2_system.h carefully. it may not support two eth well, you may have to edit the driver code.