Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

why 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/mtdblock1

reboot

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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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.