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
university:tools:pluto:devs:reboot [20 Apr 2017 13:58] – [Rebooting Pluto] Michael Hennerichuniversity:tools:pluto:devs:reboot [17 Feb 2022 05:32] (current) – [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 64: Line 64:
 **Copying Linux from DFU to RAM...** **Copying Linux from DFU to RAM...**
 </xterm> </xterm>
 +
 +
 +<WRAP top tip round box 100%><wrap info>This specifies any shell prompt running on the development host</wrap>
 +
 +Following commands can be used to boot a fresh build of the firmware image. To simply things, there is a script in [[github>plutosdr_scripts]] ''pluto_ramboot'' that can do all these steps in one command.
 +
 +<xterm>
 + sshpass -p analog ssh root@pluto '/usr/sbin/pluto_reboot ram;'
 + sleep 5
 +        sudo dfu-util -l
 +          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>
 +</WRAP>\\
 ===== Reboot to DFU-Flash ===== ===== Reboot to DFU-Flash =====
  
Line 102: Line 126:
 </xterm> </xterm>
  
-===== Reboot to Linux kernel ===== +===== Reboot =====
- +
-<WRAP top tip round box 100%><wrap info>This specifies any shell prompt running on the development host</wrap> +
- +
-Following commands can be used to boot a fresh build of the firmware image+
  
 <xterm> <xterm>
- sshpass -p analog ssh root@pluto '/usr/sbin/pluto_reboot ram;' +# **reboot**
- sleep 5 +
- dfu-util -D pluto.dfu -a pluto.dfu +
- dfu-util -e +
-</xterm> +
-</WRAP>\\ +
- +
-<xterm> +
-# **pluto_reboot reset** +
-# 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'/df6e3480 +
-configfs-gadget gadget: unbind function 'Mass Storage Function'/df6e3cc0 +
-configfs-gadget gadget: unbind function 'acm'/d57e9cc0 +
-configfs-gadget gadget: unbind function 'Function FS Gadget'/df673264 +
-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:  0  +
-Booting silently +
-Uncompressing Linux... done, booting the kernel. +
-Error: Driver 'mwipcore' is already registered, aborting... +
-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 +
-pluto login: +
 </xterm> </xterm>
university/tools/pluto/devs/reboot.1492689524.txt.gz · Last modified: 20 Apr 2017 13:58 by Michael Hennerich