Site Tools


crash_log

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
crash_log [2024/03/23 20:42] – add Heading, formatting hogwildcrash_log [2024/03/23 20:44] (current) hogwild
Line 1: Line 1:
 ====== Log a Crash ====== ====== Log a Crash ======
  
-The crashlog feature is used to log crashes. In order to use the crashlog feature, your hardware must have an AIO firmware build installed. \\  +The crashlog feature is used to log crashes. In order to use the crashlog feature, your hardware must have an AIO firmware build installed. \\  VPN firmware build files do not include crashlog. (You can also create a custom image with CRASH_LOG=y)\\  Note that builds that include crashlog are only available for ARM model routers.
-VPN firmware build files do not include crashlog. (You can also create a custom image with CRASH_LOG=y)\\  +
-Note that builds that include crashlog are only available for ARM model routers.+
  
 Here are the steps involved: Here are the steps involved:
 +
 + \\
  
 1. Check partitions for your router 1. Check partitions for your router
  
 Example: Example:
-<code>+ 
 +<code ->
 root@RT-AC56U:/tmp/home/root# cat /proc/mtd root@RT-AC56U:/tmp/home/root# cat /proc/mtd
 dev:    size   erasesize  name dev:    size   erasesize  name
Line 24: Line 25:
  
 => mtd6 ("crash") is what we need for RT-AC56U (in this case) => mtd6 ("crash") is what we need for RT-AC56U (in this case)
 +
 + \\
 +
 + \\
  
 2. Prepare the crashlog (needs to be done each time a new crashlog file is generated) 2. Prepare the crashlog (needs to be done each time a new crashlog file is generated)
  
 Example: Example:
-<code>+ 
 +<code ->
 root@RT-AC56U:/tmp/home/root# mtd-erase2 crash root@RT-AC56U:/tmp/home/root# mtd-erase2 crash
 Erase MTD crash Erase MTD crash
Line 34: Line 40:
 root@RT-AC56U:/tmp/home/root# root@RT-AC56U:/tmp/home/root#
 </code> </code>
 +
 + \\
  
 3. let the router crash 3. let the router crash
 +
 + \\
  
 4. Get/save the crashlog file 4. Get/save the crashlog file
  
 Example: Example:
-<code>+ 
 +<code ->
 root@RT-AC56U:/tmp/home/root# cat /dev/mtd6 > /tmp/crashlog.bin root@RT-AC56U:/tmp/home/root# cat /dev/mtd6 > /tmp/crashlog.bin
 </code> </code>
-Get the crashlog.bin file from the /tmp directory with FTP, SFTP or SCP (using for example, WinSCP)\\  
  
-Fore example, the following will save to a USB storage device: + \\ 
-<code>+ 
 +Get the crashlog.bin file from the /tmp directory with FTP, SFTP or SCP (using for example, WinSCP)\\ 
 + 
 +For example, the following will save to a USB storage device: 
 + 
 +<code ->
 root@RT-AC56U:/tmp/home/root# cat /dev/mtd6 > /tmp/mnt/ROUTER_USB_NAME/crashlog.bin root@RT-AC56U:/tmp/home/root# cat /dev/mtd6 > /tmp/mnt/ROUTER_USB_NAME/crashlog.bin
 </code> </code>
  
 + \\
 +
 + \\
  
  
crash_log.txt · Last modified: 2024/03/23 20:44 by hogwild