Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OpenWrt:/# sh -x /etc/hotplug.d/firmware/11-ath10k-caldata > /tmp/hotplug2
- + '[' -e /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin ]
- + . /lib/functions/caldata.sh
- + . /lib/functions.sh
- + N='
- '
- + _C=0
- + NO_EXPORT=1
- + LOAD_STATE=1
- + LIST_SEP=' '
- + reset_cb
- + '[' -z ]
- + '[' -f /lib/config/uci.sh ]
- + . /lib/config/uci.sh
- + CONFIG_APPEND=
- + . /lib/functions/system.sh
- + . /lib/functions.sh
- + N='
- '
- + _C=0
- + NO_EXPORT=1
- + LOAD_STATE=1
- + LIST_SEP=' '
- + reset_cb
- + '[' -z ]
- + '[' -f /lib/config/uci.sh ]
- + . /lib/config/uci.sh
- + CONFIG_APPEND=
- + . /usr/share/libubox/jshn.sh
- + board_name
- + '[' -e /tmp/sysinfo/board_name ]
- + cat /tmp/sysinfo/board_name
- + board=asus,rt-ac55u
- + caldata_extract caldata 0x5000 0x844
- + local 'part=caldata'
- + local 'offset=20480'
- + local 'count=2116'
- + local mtd
- + find_mtd_chardev caldata
- + find_mtd_index caldata
- + awk -F: '{print $1}'
- + grep '"caldata"' /proc/mtd
- + local 'PART=mtd2'
- + local 'INDEX=2'
- + echo 2
- + local 'INDEX=2'
- + local 'PREFIX=/dev/mtd'
- + '[' -d /dev/mtd ]
- + echo /dev/mtd2
- + mtd=/dev/mtd2
- + '[' -n /dev/mtd2 ]
- + caldata_dd /dev/mtd2 /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin 2116 20480
- + local 'source=/dev/mtd2'
- + local 'target=/lib/firmware/ath10k/cal-pci-0000:00:00.0.bin'
- + local 'count=2116'
- + local 'offset=20480'
- + dd 'if=/dev/mtd2' 'of=/lib/firmware/ath10k/cal-pci-0000:00:00.0.bin' 'iflag=skip_bytes,fullblock' 'bs=2116' 'skip=20480' 'count=1'
- + return 0
- + mtd_get_mac_binary_ubi factory 0x1002
- + local 'mtdname=factory'
- + local 'offset=0x1002'
- + . /lib/upgrade/nand.sh
- + . /lib/functions.sh
- + N='
- '
- + _C=0
- + NO_EXPORT=1
- + LOAD_STATE=1
- + LIST_SEP=' '
- + reset_cb
- + '[' -z ]
- + '[' -f /lib/config/uci.sh ]
- + . /lib/config/uci.sh
- + CONFIG_APPEND=
- + CI_KERNPART=kernel
- + CI_UBIPART=ubi
- + CI_ROOTPART=rootfs
- + nand_find_ubi ubi
- + local ubidevdir ubidev mtdnum
- + find_mtd_index ubi
- + awk -F: '{print $1}'
- + grep '"ubi"' /proc/mtd
- + local 'PART=mtd1'
- + local 'INDEX=1'
- + echo 1
- + mtdnum=1
- + '[' '!' 1 ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0 ]
- + cat /sys/devices/virtual/ubi/ubi0/mtd_num
- + cmtdnum=1
- + '[' '!' 1 ]
- + '[' 1 '=' 1 ]
- + basename /sys/devices/virtual/ubi/ubi0
- + ubidev=ubi0
- + ubi_mknod /sys/devices/virtual/ubi/ubi0
- + local 'dir=/sys/devices/virtual/ubi/ubi0'
- + basename /sys/devices/virtual/ubi/ubi0
- + local 'dev=/dev/ubi0'
- + '[' -e /dev/ubi0 ]
- + return 0
- + echo ubi0
- + return 0
- + local 'ubidev=ubi0'
- + nand_find_volume ubi0 factory
- + local ubidevdir ubivoldir
- + ubidevdir=/sys/devices/virtual/ubi/ubi0
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0 ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_0 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_0/name
- + '[' nvram '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_1 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_1/name
- + '[' Factory '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_2 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_2/name
- + '[' Factory2 '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_3 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_3/name
- + '[' linux '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_4 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_4/name
- + '[' linux2 '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_5 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_5/name
- + '[' lsdk '=' factory ]
- + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_6 ]
- + cat /sys/devices/virtual/ubi/ubi0/ubi0_6/name
- + '[' jffs2 '=' factory ]
- + local 'part='
- + get_mac_binary /dev/ 0x1002
- + local 'path=/dev/'
- + local 'offset=0x1002'
- + '[' -e /dev/ ]
- + hexdump -v -n 6 -s 0x1002 -e '5/1 "%02x:" 1/1 "%02x"' /dev/
- + ath10k_patch_mac
- + local 'mac='
- + local 'target='
- + caldata_patch_mac 0x6 0x2
- + local 'mac='
- + local 'mac_offset=6'
- + local 'chksum_offset=0x2'
- + local 'target='
- + '[' -z -o -z 6 ]
- + return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement