Skip to content

Instantly share code, notes, and snippets.

@lemmi

lemmi/u-boot.log Secret

Created April 13, 2021 08:28
Show Gist options
  • Save lemmi/1d54353e8e2f5fb14f44245bf3263d14 to your computer and use it in GitHub Desktop.
Save lemmi/1d54353e8e2f5fb14f44245bf3263d14 to your computer and use it in GitHub Desktop.
ls-addni log u-boot
+ trap INT
+ trap do_cleanup EXIT
+ restool=restool
+ root_c=
+ toe=
+ irq_prev=
+ SYS_DPRC=/sys/bus/fsl-mc/drivers/fsl_mc_dprc
+ set -e
+ PROBE_MAX_TRIES=10000
+ which restool
+ [ ! /usr/local/sbin/restool ]
+ restool --mc-version
+ cut -f2 -d:
+ cut -f1 -d.
+ tr -d
+ mc_major=10
+ [ 10 != 10 ]
+ [ -f /sys/bus/fsl-mc/autorescan ]
+ cat /sys/bus/fsl-mc/autorescan
+ irq_prev=1
+ echo 0
+ basename /usr/local/sbin/ls-addni
+ operation=ls-addni
+ process_addni dpmac.9
+ get_root_container
+ restool dprc list
+ res=dprc.1
+ echo dprc.1
+ cut -f 1 -d
+ root_c=dprc.1
+ [ -z dprc.1 ]
+ container=dprc.1
+ dpni_args=
+ loopback=0
+ endpoint=
+ no_link=0
+ options=
+ label=
+ dpni=
+ echo dpmac.9
+ grep -x -E (dprc.[0-9]+/)*dpmac.[0-9]+
+ arg_dpmac=dpmac.9
+ echo dpmac.9
+ grep -x -E (dprc.+[0-9]+/)*dpni.[0-9]+
+ true
+ arg_dpni=
+ echo dpmac.9
+ grep -x -E (dprc.[0-9]+/)*dpdmux.[0-9]+.[0-9]+
+ true
+ arg_dpdmux=
+ echo dpmac.9
+ grep -x -E (dprc.[0-9]+/)*dpsw.[0-9]+.[0-9]+
+ true
+ arg_dpsw=
+ [ dpmac.9 = dpmac.9 ]
+ no_link=0
+ endpoint=dpmac.9
+ [ ! -z dpmac.9 ]
+ [ 0 -eq 1 ]
+ echo
+ grep -o \-\-num-queues
+ true
+ num_queues_present=
+ [ -z ]
+ grep -c ^processor /proc/cpuinfo
+ num_queues=16
+ dpni_args= --num-queues=16
+ [ 0 -eq 0 ]
+ [ -z dpmac.9 ]
+ [ ! -z dpmac.9 ]
+ type_of_endpoint dpmac.9
+ echo dpmac.9
+ sed s/\(\.[0-9]*\)\(\.[0-9]*\)*$//g
+ toe=dpmac
+ check_endpoint dpmac.9
+ restool dpmac info dpmac.9
+ cep=dpmac version: 4.7
dpmac object id/portal id: 9
plugged state: plugged
endpoint state: -1
endpoint: No object associated
DPMAC link type: DPMAC_LINK_TYPE_FIXED
DPMAC ethernet interface: DPMAC_ETH_IF_XFI
MAC address: 96:0f:b5:73:07:fa
maximum supported rate 10000 Mbps
Counters:
rx all frames: 0
rx frames ok: 0
rx frame errors: 0
rx frame discards: 0
rx u-cast: 0
rx b-cast: 0
rx m-cast: 0
rx 64 bytes: 0
rx 65-127 bytes: 0
rx 128-255 bytes: 0
rx 256-511 bytes: 0
rx 512-1023 bytes: 0
rx 1024-1518 bytes: 0
rx 1519-max bytes: 0
rx frags: 0
rx jabber: 0
rx align errors: 0
rx oversized: 0
rx pause: 0
rx bytes: 0
tx frames ok: 0
tx u-cast: 0
tx m-cast: 0
tx b-cast: 0
tx frame errors: 0
tx undersized: 0
tx b-pause: 0
tx bytes: 0
+ [ dpmac version: 4.7
dpmac object id/portal id: 9
plugged state: plugged
endpoint state: -1
endpoint: No object associated
DPMAC link type: DPMAC_LINK_TYPE_FIXED
DPMAC ethernet interface: DPMAC_ETH_IF_XFI
MAC address: 96:0f:b5:73:07:fa
maximum supported rate 10000 Mbps
Counters:
rx all frames: 0
rx frames ok: 0
rx frame errors: 0
rx frame discards: 0
rx u-cast: 0
rx b-cast: 0
rx m-cast: 0
rx 64 bytes: 0
rx 65-127 bytes: 0
rx 128-255 bytes: 0
rx 256-511 bytes: 0
rx 512-1023 bytes: 0
rx 1024-1518 bytes: 0
rx 1519-max bytes: 0
rx frags: 0
rx jabber: 0
rx align errors: 0
rx oversized: 0
rx pause: 0
rx bytes: 0
tx frames ok: 0
tx u-cast: 0
tx m-cast: 0
tx b-cast: 0
tx frame errors: 0
tx undersized: 0
tx b-pause: 0
tx bytes: 0 != dpmac version: 4.7
dpmac object id/portal id: 9
plugged state: plugged
endpoint state: -1
endpoint: No object associated
DPMAC link type: DPMAC_LINK_TYPE_FIXED
DPMAC ethernet interface: DPMAC_ETH_IF_XFI
MAC address: 96:0f:b5:73:07:fa
maximum supported rate 10000 Mbps
Counters:
rx all frames: 0
rx frames ok: 0
rx frame errors: 0
rx frame discards: 0
rx u-cast: 0
rx b-cast: 0
rx m-cast: 0
rx 64 bytes: 0
rx 65-127 bytes: 0
rx 128-255 bytes: 0
rx 256-511 bytes: 0
rx 512-1023 bytes: 0
rx 1024-1518 bytes: 0
rx 1519-max bytes: 0
rx frags: 0
rx jabber: 0
rx align errors: 0
rx oversized: 0
rx pause: 0
rx bytes: 0
tx frames ok: 0
tx u-cast: 0
tx m-cast: 0
tx b-cast: 0
tx frame errors: 0
tx undersized: 0
tx b-pause: 0
tx bytes: 0 ]
+ has_endpoint dpmac.9
+ [ dpmac = dpdmux ]
+ restool dpmac info dpmac.9
+ grep endpoint:
+ sed s/endpoint: \([^ ]*\)\,.*/\1/
+ ep=endpoint: No object associated
+ [ endpoint: No object associated != endpoint: No object associated ]
+ create_dpio dprc.1
+ local parent_container=dprc.1
+ grep -c ^processor /proc/cpuinfo
+ local num_cores=16
+ restool dprc show dprc.1
+ grep -c dpio
+ local cnt=16
+ local num_dpio=0
+ [ 16 -ge 16 ]
+ return
+ create_dpni
+ local num_dpcons=16
+ create_dpbp dprc.1
+ local parent_container=dprc.1
+ restool --script dpbp create --container=dprc.1
+ local obj=dpbp.2
+ [ -z dpbp.2 ]
+ restool dprc assign dprc.1 --object=dpbp.2 --plugged=1
+ create_dpmcp dprc.1
+ local parent_container=dprc.1
+ restool --script dpmcp create --container=dprc.1
+ local obj=dpmcp.36
+ [ -z dpmcp.36 ]
+ restool dprc assign dprc.1 --object=dpmcp.36 --plugged=1
+ seq 1 16
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.32
+ [ -z dpcon.32 ]
+ restool dprc assign dprc.1 --object=dpcon.32 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.33
+ [ -z dpcon.33 ]
+ restool dprc assign dprc.1 --object=dpcon.33 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.34
+ [ -z dpcon.34 ]
+ restool dprc assign dprc.1 --object=dpcon.34 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.35
+ [ -z dpcon.35 ]
+ restool dprc assign dprc.1 --object=dpcon.35 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.36
+ [ -z dpcon.36 ]
+ restool dprc assign dprc.1 --object=dpcon.36 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.37
+ [ -z dpcon.37 ]
+ restool dprc assign dprc.1 --object=dpcon.37 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.38
+ [ -z dpcon.38 ]
+ restool dprc assign dprc.1 --object=dpcon.38 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.39
+ [ -z dpcon.39 ]
+ restool dprc assign dprc.1 --object=dpcon.39 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.40
+ [ -z dpcon.40 ]
+ restool dprc assign dprc.1 --object=dpcon.40 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.41
+ [ -z dpcon.41 ]
+ restool dprc assign dprc.1 --object=dpcon.41 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.42
+ [ -z dpcon.42 ]
+ restool dprc assign dprc.1 --object=dpcon.42 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.43
+ [ -z dpcon.43 ]
+ restool dprc assign dprc.1 --object=dpcon.43 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.44
+ [ -z dpcon.44 ]
+ restool dprc assign dprc.1 --object=dpcon.44 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.45
+ [ -z dpcon.45 ]
+ restool dprc assign dprc.1 --object=dpcon.45 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.46
+ [ -z dpcon.46 ]
+ restool dprc assign dprc.1 --object=dpcon.46 --plugged=1
+ [ 0 -ne 0 ]
+ create_dpcon dprc.1
+ local parent_container=dprc.1
+ restool --script dpcon create --num-priorities=2 --container=dprc.1
+ local obj=dpcon.47
+ [ -z dpcon.47 ]
+ restool dprc assign dprc.1 --object=dpcon.47 --plugged=1
+ [ 0 -ne 0 ]
+ restool --script dpni create --options= --num-queues=16
+ dpni=dpni.1
+ [ -n ]
+ [ -z dpni.1 ]
+ restool dprc assign dprc.1 --object=dpni.1 --plugged=1
+ [ -n ]
+ [ ! -z dpmac.9 ]
+ connect dprc.1 dpni.1 dpmac.9
+ local container=dprc.1
+ local ep1=dpni.1
+ local ep2=dpmac.9
+ restool dprc connect dprc.1 --endpoint1=dpni.1 --endpoint2=dpmac.9
+ [ 0 -eq 1 ]
+ restool dprc sync
[ 56.290355] fsl_dpaa2_eth dpni.1: Probed interface eth1
+ object_exists dprc.1 dpni.1
+ local parent_container=dprc.1
+ local object=dpni.1
+ restool dprc show dprc.1
+ grep dpni.1
+ wc -l
+ object_exists_status=1
+ [ 1 = 1 ]
+ [ dprc.1 = dprc.1 ]
+ get_interface_name dpni.1
+ get_root_container
+ restool dprc list
+ res=dprc.1
+ echo dprc.1
+ cut -f 1 -d
+ root_c=dprc.1
+ [ -z dprc.1 ]
+ local tries=0
+ local dir=/sys/bus/fsl-mc/drivers/fsl_mc_dprc/dprc.1/dpni.1/net/
+ local interface=
+ true
+ [ -d /sys/bus/fsl-mc/drivers/fsl_mc_dprc/dprc.1/dpni.1/net/ ]
+ ls /sys/bus/fsl-mc/drivers/fsl_mc_dprc/dprc.1/dpni.1/net/
+ interface=eth1
+ break
+ echo eth1
+ ni=eth1
+ echo Created interface: eth1 (object:dpni.1, endpoint: dpmac.9)
Created interface: eth1 (object:dpni.1, endpoint: dpmac.9)
+ do_cleanup
+ [ -f /sys/bus/fsl-mc/autorescan ]
+ echo 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment