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