Advertisement
brpr

mactest1

Aug 21st, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. root@OpenWrt:/# sh -x /etc/hotplug.d/firmware/11-ath10k-caldata > /tmp/hotplug2
  2. + '[' -e /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin ]
  3. + . /lib/functions/caldata.sh
  4. + . /lib/functions.sh
  5. + N='
  6. '
  7. + _C=0
  8. + NO_EXPORT=1
  9. + LOAD_STATE=1
  10. + LIST_SEP=' '
  11. + reset_cb
  12. + '[' -z ]
  13. + '[' -f /lib/config/uci.sh ]
  14. + . /lib/config/uci.sh
  15. + CONFIG_APPEND=
  16. + . /lib/functions/system.sh
  17. + . /lib/functions.sh
  18. + N='
  19. '
  20. + _C=0
  21. + NO_EXPORT=1
  22. + LOAD_STATE=1
  23. + LIST_SEP=' '
  24. + reset_cb
  25. + '[' -z ]
  26. + '[' -f /lib/config/uci.sh ]
  27. + . /lib/config/uci.sh
  28. + CONFIG_APPEND=
  29. + . /usr/share/libubox/jshn.sh
  30. + board_name
  31. + '[' -e /tmp/sysinfo/board_name ]
  32. + cat /tmp/sysinfo/board_name
  33. + board=asus,rt-ac55u
  34. + caldata_extract caldata 0x5000 0x844
  35. + local 'part=caldata'
  36. + local 'offset=20480'
  37. + local 'count=2116'
  38. + local mtd
  39. + find_mtd_chardev caldata
  40. + find_mtd_index caldata
  41. + awk -F: '{print $1}'
  42. + grep '"caldata"' /proc/mtd
  43. + local 'PART=mtd2'
  44. + local 'INDEX=2'
  45. + echo 2
  46. + local 'INDEX=2'
  47. + local 'PREFIX=/dev/mtd'
  48. + '[' -d /dev/mtd ]
  49. + echo /dev/mtd2
  50. + mtd=/dev/mtd2
  51. + '[' -n /dev/mtd2 ]
  52. + caldata_dd /dev/mtd2 /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin 2116 20480
  53. + local 'source=/dev/mtd2'
  54. + local 'target=/lib/firmware/ath10k/cal-pci-0000:00:00.0.bin'
  55. + local 'count=2116'
  56. + local 'offset=20480'
  57. + 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'
  58. + return 0
  59. + mtd_get_mac_binary_ubi factory 0x1002
  60. + local 'mtdname=factory'
  61. + local 'offset=0x1002'
  62. + . /lib/upgrade/nand.sh
  63. + . /lib/functions.sh
  64. + N='
  65. '
  66. + _C=0
  67. + NO_EXPORT=1
  68. + LOAD_STATE=1
  69. + LIST_SEP=' '
  70. + reset_cb
  71. + '[' -z ]
  72. + '[' -f /lib/config/uci.sh ]
  73. + . /lib/config/uci.sh
  74. + CONFIG_APPEND=
  75. + CI_KERNPART=kernel
  76. + CI_UBIPART=ubi
  77. + CI_ROOTPART=rootfs
  78. + nand_find_ubi ubi
  79. + local ubidevdir ubidev mtdnum
  80. + find_mtd_index ubi
  81. + awk -F: '{print $1}'
  82. + grep '"ubi"' /proc/mtd
  83. + local 'PART=mtd1'
  84. + local 'INDEX=1'
  85. + echo 1
  86. + mtdnum=1
  87. + '[' '!' 1 ]
  88. + '[' '!' -d /sys/devices/virtual/ubi/ubi0 ]
  89. + cat /sys/devices/virtual/ubi/ubi0/mtd_num
  90. + cmtdnum=1
  91. + '[' '!' 1 ]
  92. + '[' 1 '=' 1 ]
  93. + basename /sys/devices/virtual/ubi/ubi0
  94. + ubidev=ubi0
  95. + ubi_mknod /sys/devices/virtual/ubi/ubi0
  96. + local 'dir=/sys/devices/virtual/ubi/ubi0'
  97. + basename /sys/devices/virtual/ubi/ubi0
  98. + local 'dev=/dev/ubi0'
  99. + '[' -e /dev/ubi0 ]
  100. + return 0
  101. + echo ubi0
  102. + return 0
  103. + local 'ubidev=ubi0'
  104. + nand_find_volume ubi0 factory
  105. + local ubidevdir ubivoldir
  106. + ubidevdir=/sys/devices/virtual/ubi/ubi0
  107. + '[' '!' -d /sys/devices/virtual/ubi/ubi0 ]
  108. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_0 ]
  109. + cat /sys/devices/virtual/ubi/ubi0/ubi0_0/name
  110. + '[' nvram '=' factory ]
  111. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_1 ]
  112. + cat /sys/devices/virtual/ubi/ubi0/ubi0_1/name
  113. + '[' Factory '=' factory ]
  114. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_2 ]
  115. + cat /sys/devices/virtual/ubi/ubi0/ubi0_2/name
  116. + '[' Factory2 '=' factory ]
  117. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_3 ]
  118. + cat /sys/devices/virtual/ubi/ubi0/ubi0_3/name
  119. + '[' linux '=' factory ]
  120. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_4 ]
  121. + cat /sys/devices/virtual/ubi/ubi0/ubi0_4/name
  122. + '[' linux2 '=' factory ]
  123. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_5 ]
  124. + cat /sys/devices/virtual/ubi/ubi0/ubi0_5/name
  125. + '[' lsdk '=' factory ]
  126. + '[' '!' -d /sys/devices/virtual/ubi/ubi0/ubi0_6 ]
  127. + cat /sys/devices/virtual/ubi/ubi0/ubi0_6/name
  128. + '[' jffs2 '=' factory ]
  129. + local 'part='
  130. + get_mac_binary /dev/ 0x1002
  131. + local 'path=/dev/'
  132. + local 'offset=0x1002'
  133. + '[' -e /dev/ ]
  134. + hexdump -v -n 6 -s 0x1002 -e '5/1 "%02x:" 1/1 "%02x"' /dev/
  135. + ath10k_patch_mac
  136. + local 'mac='
  137. + local 'target='
  138. + caldata_patch_mac 0x6 0x2
  139. + local 'mac='
  140. + local 'mac_offset=6'
  141. + local 'chksum_offset=0x2'
  142. + local 'target='
  143. + '[' -z -o -z 6 ]
  144. + return
  145.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement