Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
university:tools:pluto:devs:reboot [21 Dec 2016 08:36] – [Reboot to Linux kernel] Michael Hennerichuniversity:tools:pluto:devs:reboot [10 Jun 2019 06:46] – [Reboot to DFU-RAM] Robin Getz
Line 1: Line 1:
-====== Rebooting Pluto ======+====== Rebooting Pluto/M2k ======
  
-There are few different use cases, and methods to locally (USB/Serial), or remotely (USB/Network) to reboot a Pluto.+There are few different use cases, and methods to locally (USB/Serial), or remotely (USB/Network) to reboot a Pluto/M2k.
  
-Pluto was designed never to have to be rebooted - but software bugs happen. Before you reboot things - try to ask yourself "why", what went wrong, how do I reproduce, and how can I file a bug report that will help someone debug.+Pluto/M2k was designed never to have to be rebooted - but software bugs happen. Before you reboot things - try to ask yourself "why", what went wrong, how do I reproduce, and how can I file a bug report that will help someone debug.
  
 <code> <code>
Line 14: Line 14:
 \_|   |_|\__,_|\__\___/\____/|___/ \_| \_| \_|   |_|\__,_|\__\___/\____/|___/ \_| \_|
  
 +v0.20
 http://wiki.analog.com/university/tools/pluto http://wiki.analog.com/university/tools/pluto
-pluto_reboot  + 
-Usage: /usr/sbin/pluto_reboot {ram|sf|reset}+device_reboot  
 +Usage: /usr/sbin/device_reboot {ram|sf|reset|verbose|break} 
 +  sf     : Reboot and enter Serial Flash DFU mode 
 +  ram    : Reboot and enter RAM DFU mode 
 +  reset  : Reboot 
 +  verbose: Reboot and start serial console Verbose 
 +  break  : Reboot and HALT in u-boot 
 +
 </code> </code>
  
Line 22: Line 30:
  
 <xterm> <xterm>
-# **pluto_reboot ram** +# **device_reboot ram** 
-Stopping IIO Server Daemon+Stopping input-event-daemon: done
 Stopping dropbear sshd: OK Stopping dropbear sshd: OK
-Stopping MSD Daemon +Stopping MSD Daemon: OK 
-Stopping dhcpd Server Daemon+Stopping dhcpd Daemon & httpd Server: FAIL
 Stopping network: OK Stopping network: OK
-Stopping UDC Gadgets ...configfs-gadget gadget: unbind function 'rndis'/d55dff00 +Stopping system message bus: done 
-configfs-gadget gadget: unbind function 'Mass Storage Function'/d579a9c0 +Stopping UDC Gadgets 
-configfs-gadget gadget: unbind function 'acm'/df50d180 +configfs-gadget gadget: unbind function 'rndis'/cbcaa480 
-configfs-gadget gadget: unbind function 'Function FS Gadget'/df787ce4 +configfs-gadget gadget: unbind function 'Mass Storage Function'/cbc4e9c0 
-rmdir: '/sys/kernel/config/usb_gadget/pluto_comp_gadget': Directory not empty+configfs-gadget gadget: unbind function 'acm'/cc35e000 
 +configfs-gadget gadget: unbind function 'Function FS Gadget'/cc35e9e4
 Stopping logging: OK Stopping logging: OK
 umount: devtmpfs busy - remounted read-only umount: devtmpfs busy - remounted read-only
Line 42: Line 51:
 reboot: Restarting system reboot: Restarting system
  
-U-Boot PlutoSDR xilinx-v2015.1-dirty-11393-g3a46c55-dirty (Nov 17 2016 - 11:47:02 +0100)+U-Boot PlutoSDR v0.20-PlutoSDR-00041-g4bdff59 (Apr 19 2017 - 17:45:50 +0200)
  
-Model: Zynq Pluto SDR Board 
-Board: Xilinx Zynq 
 I2C:   ready I2C:   ready
 DRAM:  ECC disabled 512 MiB DRAM:  ECC disabled 512 MiB
Line 53: Line 60:
 Err:   serial@e0001000 Err:   serial@e0001000
 Model: Zynq Pluto SDR Board Model: Zynq Pluto SDR Board
-Board: Xilinx Zynq 
-Net:   No ethernet found. 
 Hit any key to stop autoboot:  Hit any key to stop autoboot: 
 **Entering DFU RAM mode ...** **Entering DFU RAM mode ...**
 **Copying Linux from DFU to RAM...** **Copying Linux from DFU to RAM...**
-</xterm> 
-===== Reboot to DFU-Flash ===== 
- 
-<xterm> 
-# **pluto_reboot sf** 
-# Stopping IIO Server Daemon 
-Stopping dropbear sshd: OK 
-Stopping MSD Daemon 
-Stopping dhcpd Server Daemon 
-Stopping network: OK 
-Stopping UDC Gadgets ...configfs-gadget gadget: unbind function 'rndis'/df6e30c0 
-configfs-gadget gadget: unbind function 'Mass Storage Function'/df677a80 
-configfs-gadget gadget: unbind function 'acm'/df7a76c0 
-configfs-gadget gadget: unbind function 'Function FS Gadget'/df4c2c24 
-rmdir: '/sys/kernel/config/usb_gadget/pluto_comp_gadget': Directory not empty 
-Stopping logging: OK 
-umount: devtmpfs busy - remounted read-only 
-umount: can't unmount /: Invalid argument 
-The system is going down NOW! 
-Sent SIGTERM to all processes 
-Sent SIGKILL to all processes 
-Requesting system reboot 
-reboot: Restarting system 
- 
-U-Boot PlutoSDR xilinx-v2015.1-11394-gb5e38f7 (Dec 09 2016 - 16:08:19 +0100) 
- 
-Model: Zynq Pluto SDR Board 
-Board: Xilinx Zynq 
-I2C:   ready 
-DRAM:  ECC disabled 512 MiB 
-SF: Detected N25Q256A with page size 256 Bytes, erase size 4 KiB, total 32 MiB 
-In:    serial@e0001000 
-Out:   serial@e0001000 
-Err:   serial@e0001000 
-Model: Zynq Pluto SDR Board 
-Board: Xilinx Zynq 
-Net:   No ethernet found. 
-Hit any key to stop autoboot:  
-**Entering DFU SF mode ...** 
-**SF: Detected N25Q256A with page size 256 Bytes, erase size 4 KiB, total 32 MiB** 
- 
 </xterm> </xterm>
  
-===== Reboot to Linux kernel ===== 
  
 <WRAP top tip round box 100%><wrap info>This specifies any shell prompt running on the development host</wrap> <WRAP top tip round box 100%><wrap info>This specifies any shell prompt running on the development host</wrap>
Line 110: Line 73:
  sshpass -p analog ssh root@pluto '/usr/sbin/pluto_reboot ram;'  sshpass -p analog ssh root@pluto '/usr/sbin/pluto_reboot ram;'
  sleep 5  sleep 5
- dfu-util -D pluto.dfu -a pluto.dfu +        sudo dfu-util -l 
- dfu-util -e+          dfu-util 0.9 
 + 
 +          Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. 
 +          Copyright 2010-2016 Tormod Volden and Stefan Schmidt 
 +          This program is Free Software and has ABSOLUTELY NO WARRANTY 
 +          Please report bugs to http:%%//%%sourceforge.net/p/dfu-util/tickets/ 
 + 
 +          Found DFU: [0456:b674] ver=0221, devnum=11, cfg=1, intf=0, path="1-4", alt=1, name="firmware.dfu", serial="UNKNOWN" 
 +          Found DFU: [0456:b674] ver=0221, devnum=11, cfg=1, intf=0, path="1-4", alt=0, name="dummy.dfu", serial="UNKNOWN" 
 + 
 + sudo dfu-util -d 0456:b673,0456:b674 -D ./build/pluto.dfu -a firmware.dfu 
 + sudo dfu-util -d 0456:b673,0456:b674  -a firmware.dfu -e
 </xterm> </xterm>
 </WRAP>\\ </WRAP>\\
 +===== Reboot to DFU-Flash =====
  
 <xterm> <xterm>
-# **pluto_reboot reset** +# **device_reboot sf** 
-Stopping IIO Server Daemon+Stopping input-event-daemon: done
 Stopping dropbear sshd: OK Stopping dropbear sshd: OK
-Stopping MSD Daemon +Stopping MSD Daemon: OK 
-Stopping dhcpd Server Daemon+Stopping dhcpd Daemon & httpd Server: FAIL
 Stopping network: OK Stopping network: OK
-Stopping UDC Gadgets ...configfs-gadget gadget: unbind function 'rndis'/df6e3480 +Stopping system message bus: done 
-configfs-gadget gadget: unbind function 'Mass Storage Function'/df6e3cc0 +Stopping UDC Gadgets 
-configfs-gadget gadget: unbind function 'acm'/d57e9cc0 +configfs-gadget gadget: unbind function 'rndis'/df624600 
-configfs-gadget gadget: unbind function 'Function FS Gadget'/df673264 +configfs-gadget gadget: unbind function 'Mass Storage Function'/cbc13600 
-rmdir: '/sys/kernel/config/usb_gadget/pluto_comp_gadget': Directory not empty+configfs-gadget gadget: unbind function 'acm'/cbc12780 
 +configfs-gadget gadget: unbind function 'Function FS Gadget'/cbc4e9e4
 Stopping logging: OK Stopping logging: OK
 umount: devtmpfs busy - remounted read-only umount: devtmpfs busy - remounted read-only
Line 136: Line 112:
 reboot: Restarting system reboot: Restarting system
  
-U-Boot PlutoSDR xilinx-v2015.1-11394-gb5e38f7 (Dec 09 2016 16:08:19 +0100)+U-Boot PlutoSDR v0.20-PlutoSDR-00041-g4bdff59 (Apr 19 2017 17:45:50 +0200)
  
-Model: Zynq Pluto SDR Board 
-Board: Xilinx Zynq 
 I2C:   ready I2C:   ready
 DRAM:  ECC disabled 512 MiB DRAM:  ECC disabled 512 MiB
Line 147: Line 121:
 Err:   serial@e0001000 Err:   serial@e0001000
 Model: Zynq Pluto SDR Board Model: Zynq Pluto SDR Board
-Board: Xilinx Zynq 
-Net:   No ethernet found. 
 Hit any key to stop autoboot:  Hit any key to stop autoboot: 
-Booting silently +**Entering DFU SF mode ... 
-Uncompressing Linux... done, booting the kernel+SFDetected N25Q256A with page size 256 Byteserase size 4 KiB, total 32 MiB** 
-ErrorDriver 'mwipcore' is already registeredaborting... +</xterm>
-Starting logging: OK +
-Starting watchdog... +
-Initializing random number generator... done. +
-Starting UDC Gadgets +
-Starting network: OK +
-Starting dhcpd Server Daemon +
-Starting MSD Daemon +
-Starting dropbear sshd: OK +
-Starting IIO Server Daemon+
  
-Welcome to Pluto +===== Reboot ===== 
-pluto login: + 
 +<xterm> 
 +# **reboot**
 </xterm> </xterm>
university/tools/pluto/devs/reboot.txt · Last modified: 17 Feb 2022 05:32 by Robin Getz