Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by arthur@Jun 3 2005, 04:39 PM but now i'm confused, the dhcp get the ip address after bootup, but if i shut down the board so the dhcp work, i'll lose the programming http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/wink.gif --- Quote End --- That depends. Either you use DHCP just to get an IP address from a DHCP server on your network, much like a desktop machine. In that case, the DHCP client is indeed started after bootup. Another option can be to use the DHCP requests to get a root filesystem. In that case, the kernel starts booting, sends out BOOTP packets and the DHCP server replies with the network settings and the NFS location of a root FS. The kernel then mounts the root FS and continues booting. In this case, the DHCP requests are sent during (relatively early) booting. This process is especially handy to develop a system: each and every tweak on the code does not require a omplete restart of the system and time consuming upload. We develop like this, and only in a final phase, we replace the NFS kernel with a romfs/cramfs kernel.