Skip to content
  • Timothy Stack's avatar
    · cb7801fb
    Timothy Stack authored
    Fix the race between loading a mote and rebooting its host stargate.
    
    	* db/libdb.pm.in: Add TBNodeSubNodes function which returns the
    	list of subnodes for a given node.
    
    	* mote/tbuisp.in: Don't reboot the stargate anymore after loading
    	the attached mote.  The problem with the radio not working after
    	the upload should be fixed now.
    
    	* tbsetup/libreboot.pm.in: Check if a node's subnodes are being
    	reloaded.  If so, try to wait until they reach ISUP before
    	actually doing the reboot.
    
    	* tbsetup/os_setup.in: Do not skip the ISUP wait for subnodes that
    	are imageable (like motes), otherwise their allocstates are not
    	updated correctly.  Remove the robot-specific hack that	assumed
    	tbuisp would do the reboot if the attached mote was being reloaded.
    cb7801fb