Forum Discussion
Altera_Forum
Honored Contributor
16 years agowhy the "reboot" can't make the device start up?
hi all :
I use the uClinux NIOSII sysntem on wiki. I created a file named "upgrade" ,and write the following commands in it : dd if=/home/ftp/zimage.bin of=/dev/mtdblock1reboot and then ,I executed the "upgrade" file in my programme. .....
else if(conftype==0x45 )
{
*(cmdbuffer->rx_rd_pos+11)= 0x5a;
if(vfork() == 0)
{
close(0);
close(1);
execl("/bin/sh", "sh","/default/upgrade",(char*) 0);
exit(0);
}
}
..... the system was shutdown (the PING was FAIL) ,but it can not start up frequently. sometimes can reboot OK . Could anybody help me ? thanks arens
2 Replies
- Altera_Forum
Honored Contributor
Could you use shutdown?
/> shutdown -r now - Altera_Forum
Honored Contributor
Here is another quick point. Which reboot are you using? I noticed today that I had configured the Busybox version and also the std /bin version. If I use the busybox version (just from the command line) it does not actually reboot the kernel. If I say reboot -f I get the "Rrestarting system" message and then it hangs. If I type /bin/reboot it works as it should. Obviously I need to turn off one or the other.