Table of Contents

here are shown details of the boot procedure

init.d

first boot:

  • rootfs/etc/inittab is linked to rootfs/etc/inittab.boot
  • rootfs/etc/inittab.boot starts rootfs/etc/init.d/rcS to load the drivers/modules
  • rootfs/etc/inittab.boot starts rootfs/etc/init.d/switchInittab
  • rootfs/etc/init.d/switchInittab links rootfs/etc/inittab to rootfs/etc/inittab.hwflag$HWFLAG

normal boot :

  • rootfs/etc/inittab.hwflag$HWFLAG starts rootfs/etc/init.d/rcS to load the drivers/modules
  • rootfs/etc/inittab.hwflag$HWFLAG starts /opt/ubiquisys/primary/bin/zapinit.sh (ubiqufs/bin/zapinit.sh)
  • zapinit.sh starts /opt/ubiquisys/primary/bin/zapinit (ubiqufs/bin/zapinit)
  • zapinit sets a watchdog, kill all and start the programs the remaining programs (in order) : wsal,usim,netc,ipsec,gan,tr069,apm,dc,rrm,ipt,rs,srv
  • rootfs/etc/inittab.hwflag$HWFLAG starts /opt/ubiquisys/primary/bin/local_trace.sh (ubiqufs/bin/local_trace.sh)
  • /opt/ubiquisys/primary/bin/local_trace.sh starts /opt/ubiquisys/primary/bin/local_trace, which is responsible to log the debug (disabled)

serial

you can use the serial output to watch the boot process.

reboot

reboot methods and effects :

  • software: use web interface diagnostic → Reset → Software Reset → enabled → submit. only reboot the system, without side effect
  • button: each time the RESET button is pressed, a counter is incremented in uboot. after 3 reboot, the recovery is started
  • command: after 3 reboot using the reboot command, the alternate system is started
  • kernel: if the kernel can not find the rootfs, it reboots. after 3 reboot the recovery is started
    • if initially the command has been used, and after 3 reboot, the recovery is started
    • if initially the webupdate backup switch has been used, and after 3 reboot, the alternate system is started

the reset status is shown by uboot when booting.

it is also possible to boot the alternate system using the webupdate interface.

boot.txt · Last modified: 2012/03/14 14:09 by femto
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki