Skip to content
Snippets Groups Projects
Select Git revision
  • 6e15cda270a060cf87c6c643a1cc3da65ffb242d
  • ex400 default
  • airoha-for-upstream
  • airoha-for-upstream-en7523
  • iop-mediatek-20250604
  • ubi-fastmap
  • add-dtb-rescan
  • agnau-blorgoda
  • agnau-scratch
  • mediatek-20250604
  • iop-mediatek-20250304
  • iop-mediatek-20250304-loc
  • agnau-mtk-back
  • iop-mediatek-20250304-back
  • iop-mediatek-20220630
  • jani-multi-dtb
  • jani-multi-dtb-spl
  • mediatek-20220630
  • iop-mediatek-20220606
  • jani-env-update-mtk
  • jani-env-update-mtk-txt
  • jani-iop-20220606
  • v2025.10-rc4
  • v2025.10-rc3
  • v2025.10-rc2
  • v2025.10-rc1
  • v2025.07
  • v2025.07-rc5
  • v2025.07-rc4
  • v2025.07-rc3
  • v2025.07-rc2
  • v2025.07-rc1
  • v2025.04
  • v2025.04-rc5
  • v2025.04-rc4
  • v2025.04-rc3
  • v2025.04-rc2
  • v2025.04-rc1
  • v2025.01
  • v2025.01-rc6
  • v2025.01-rc5
  • v2025.01-rc4
42 results

README.pcap

Blame
  • user avatar
    Wolfgang Denk authored and Tom Rini committed
    Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
    66356b4c
    History
    README.pcap 2.31 KiB
    PCAP:
    
    U-boot supports live Ethernet packet capture in PCAP(2.4) format.
    This is enabled by CONFIG_CMD_PCAP.
    
    The capture is stored on physical memory, and should be copied to
    a machine capable of parsing and displaying PCAP files (IE. wireshark)
    If networking works properly one can copy the capture file from physical memory
    using tftpput, or save it to local storage with (sf write, mmc write, fatwrite, etc)
    
    the pcap capturing requires maximum buffer size.
    when the buffer is full an error message will be displayed and then packets
    will silently drop.
    the actual capture file size is populate in the environment variable "pcapsize".
    
    Usage example:
    
    # Initialize pcap capture to physical address (0x100000) with maximum size of
    # 100000 bytes.
    
    # Start capture
    pcap start
    
    # Initialize network activity
    env set ipaddr 10.0.2.15; env set serverip 10.0.2.2; tftp uImage64
    
    # Stop capture
    pcap stop
    
    # pcap init 0x100000 100000
    PCAP capture initialized: addr: 0xffffffff80100000 max length: 100000
    
    # pcap start
    # env set ipaddr 10.0.2.15; env set serverip 10.0.2.2; tftp uImage64
    eth0@10000000: PHY present at 0
    eth0@10000000: link up, 1000Mbps full-duplex (lpa: 0x7c00)
    Using eth0@10000000 device
    TFTP from server 10.0.2.2; our IP address is 10.0.2.15
    Filename 'uImage64'.
    Load address: 0xffffffff88000000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
    !!! Buffer is full, consider increasing buffer size !!!
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #
             18.2 MiB/s
    done
    Bytes transferred = 8359376 (7f8dd0 hex)
    PCAP status:
            Initialized addr: 0xffffffff80100000    max length: 100000
            Status: Active.  file size: 99991
            Incoming packets: 66 Outgoing packets: 67
    
    # pcap stop
    # tftpput 0xffffffff80100000 $pcapsize 10.0.2.2:capture.pcap