1 Reply Latest reply on Mar 29, 2015 2:41 PM by Tomas0413

    Changing ubilinux run level (run level 1 or rescue mode)

    Tomas0413

      Hi,

       

      I made a mistake in one of the script in /etc/init.d/. Because of this my Edison hangs and doesn't boot.

      It starts booting fine, even starts Bluetooth and I can connect to it via Bluetooth, but I can't log onto the system (Wifi configuration is incorrect and doesn't connect to the network).

       

       

      I tried "rescue mode":

      boot > setenv bootargs_target rescue

      boot > boot

       

      But this mode doesn't seem to be launched.

       

      [ ok ] Activating swapfile swap...done.

      [ ok ] Cleaning up temporary files....

      [ ok ] Setting kernel variables ...done.

      [....] Configuring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start

      run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

      Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

      wpa_supplicant: /sbin/wpa_cli daemon failed to start

      run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1

      done.

      [ ok ] Starting rpcbind daemon....

      [ ok ] Starting NFS common utilities: statd idmapd.

      [ ok ] Cleaning up temporary files....

      [ ok ] Setting up ALSA...done.

      [ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.

      INIT: Entering runlevel: 2

      [info] Using makefile-style concurrent boot in runlevel 2.

      [ ok ] Starting rpcbind daemon...[....] Already running..

      [ ok ] Starting enhanced syslogd: rsyslogd.

      Starting script ble_vibemic

      nohup: appending output to `nohup.out'

      nohup: appending output to `nohup.out'

      [ ok ] Starting NFS common utilities: statd idmapd.

      [ ok ] Starting system message bus: dbus.

      [ ok ] Starting periodic command scheduler: cron.

      [ ok ] Starting NTP server: ntpd.

      [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.

      [ ok ] Starting bluetooth: bluetoothd rfcomm.

      saned disabled; edit /etc/default/saned

      Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...

      udhcpd.

      [ ok ] Starting OpenBSD Secure Shell server: sshd.

      [ ok ] Starting Common Unix Printing System: cupsd.

      Starting script system_info

      0

      0

      0

       

       

      So my "system_info" script is the one that is hanging and I can't interrupt it.

       

       

      Any ideas?

        • 1. Re: Changing ubilinux run level (run level 1 or rescue mode)
          Tomas0413

          OK, I was able to fix a problem, shortly after I posted here.

           

          I found this brilliant Blog (in Japanese):

          Intel Edison の Ubilinux をシングルユーザモードで起動する方法 - bearmini's blog

           

          I did what bearmini suggested and it worked perfectly:

           

          boot > printenv bootargs_debug

          bootargs_debug=loglevel=4

          boot > setenv bootargs_debug "loglevel=4 single init=/bin/sh"

          boot > saveenv

          Saving Environment to MMC...

          Writing to MMC(0)... done

          boot > printenv bootargs_debug

          bootargs_debug=loglevel=4 single init=/bin/sh

           

          After boot, I remounted / filesystem in rw mode:

           

          mount -o remount /

           

          Then I did modifications in /etc/init.d and put the previous settings back:

           

          boot > printenv bootargs_debug

          bootargs_debug=loglevel=4 single init=/bin/sh

          boot > setenv bootargs_debug loglevel=4

          boot > saveenv

          Saving Environment to MMC...

          Writing to redundant MMC(0)... done

          boot > printenv bootargs_debug

          bootargs_debug=loglevel=4

          boot >