Guest User

Untitled

a guest
Apr 17th, 2021
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ telnet 192.168.2.15 2323
  2. Trying 192.168.2.15...
  3. Connected to 192.168.2.15.
  4. Escape character is '^]'.
  5.  
  6. Welcome to the Mer/SailfishOS Boat loader debug init system.
  7.  
  8. Log so far is in /init.log
  9.  
  10. To make post-switch_root halt before starting systemd, perform:
  11. touch /init_enter_debug2
  12. (When run post-switch_root, telnet is on port 2323, not 23)
  13.  
  14. / # cat /init.log
  15. + echo 'Running Mer Boat Loader'
  16. Running Mer Boat Loader
  17. + BOOTLOGO='%BOOTLOGO%'
  18. + ALWAYSDEBUG='%ALWAYSDEBUG%'
  19. + DATA_PARTITION='%DATA_PART%'
  20. + DEFAULT_OS='%DEFAULT_OS%'
  21. + export 'PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'
  22. + USB_FUNCTIONS=rndis
  23. + ANDROID_USB=/sys/class/android_usb/android0
  24. + GADGET_DIR=/config/usb_gadget
  25. + LOCAL_IP=192.168.2.15
  26. + DONE_SWITCH=no
  27. + '[' /init-debug '=' /init-debug ]
  28. + DONE_SWITCH=yes
  29. + '[' yes '=' no ]
  30. + EXPLICIT_BUSYBOX=/bin/busybox-static
  31. + TELNET_DEBUG_PORT=2323
  32. + do_mount_devprocsys
  33. + echo '########################## mounting devprocsys'
  34. ########################## mounting devprocsys
  35. + mkdir /dev
  36. mkdir: can't create directory '/dev': File exists
  37. + mount -t devtmpfs devtmpfs /dev
  38. + mkdir /dev/pts
  39. mkdir: can't create directory '/dev/pts': File exists
  40. + mount -t devpts devpts /dev/pts
  41. + mkdir /proc
  42. mkdir: can't create directory '/proc': File exists
  43. + mkdir /sys
  44. mkdir: can't create directory '/sys': File exists
  45. + mount -t sysfs sysfs /sys
  46. + mount -t proc proc /proc
  47. + mkdir /config
  48. mkdir: can't create directory '/config': File exists
  49. + mount -t configfs none /config
  50. + HALT_BOOT=n
  51. + '[' -f /init_enter_debug2 ]
  52. + '[' -f /init_disable_telnet ]
  53. + run_debug_session 'init-debug in real rootfs' n
  54. + CUSTOMPRODUCT='init-debug in real rootfs'
  55. + echo '########################## Debug session : init-debug in real rootfs'
  56. ########################## Debug session : init-debug in real rootfs
  57. + usb_setup 'Mer Debug setting up (DONE_SWITCH=yes)'
  58. + '[' -d /sys/class/android_usb/android0 ]
  59. + '[' -d /config/usb_gadget ]
  60. + usb_setup_configfs Mer Debug setting up '(DONE_SWITCH=yes)'
  61. + G_USB_ISERIAL=/config/usb_gadget/g1/strings/0x409/serialnumber
  62. + mkdir /config/usb_gadget/g1
  63. + write /config/usb_gadget/g1/idVendor 0x18D1
  64. + echo -n 0x18D1
  65. + write /config/usb_gadget/g1/idProduct 0xD001
  66. + echo -n 0xD001
  67. + mkdir /config/usb_gadget/g1/strings/0x409
  68. + write /config/usb_gadget/g1/strings/0x409/serialnumber Mer
  69. + echo -n Mer
  70. + write /config/usb_gadget/g1/strings/0x409/manufacturer 'Mer Boat Loader'
  71. + echo -n 'Mer Boat Loader'
  72. + write /config/usb_gadget/g1/strings/0x409/product 'init-debug in real rootfs'
  73. + echo -n 'init-debug in real rootfs'
  74. + echo rndis
  75. + grep -q rndis
  76. + mkdir /config/usb_gadget/g1/functions/rndis.usb0
  77. + mkdir /config/usb_gadget/g1/functions/rndis_bam.rndis
  78. mkdir: can't create directory '/config/usb_gadget/g1/functions/rndis_bam.rndis': No such file or directory
  79. + echo rndis
  80. + grep -q mass_storage
  81. + mkdir /config/usb_gadget/g1/configs/c.1
  82. + mkdir /config/usb_gadget/g1/configs/c.1/strings/0x409
  83. + write /config/usb_gadget/g1/configs/c.1/strings/0x409/configuration rndis
  84. + echo -n rndis
  85. + echo rndis
  86. + grep -q rndis
  87. + ln -s /config/usb_gadget/g1/functions/rndis.usb0 /config/usb_gadget/g1/configs/c.1
  88. + ln -s /config/usb_gadget/g1/functions/rndis_bam.rndis /config/usb_gadget/g1/configs/c.1
  89. ln: /config/usb_gadget/g1/configs/c.1/rndis_bam.rndis: No such file or directory
  90. + echo rndis
  91. + grep -q mass_storage
  92. + ls /sys/class/udc
  93. + echo a600000.dwc3
  94. + USB_IFACE=notfound
  95. + /sbin/ifconfig rndis0 192.168.2.15
  96. SIOCSIFADDR: No such device
  97. rndis0: unknown interface: No such device
  98. + '[' xnotfound '=' xnotfound ]
  99. + /sbin/ifconfig usb0 192.168.2.15
  100. + USB_IFACE=usb0
  101. + /sbin/ifconfig -a
  102. bond0 Link encap:Ethernet HWaddr CA:6B:04:B5:5D:53
  103. BROADCAST MASTER MULTICAST MTU:1500 Metric:1
  104. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  105. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  106. collisions:0 txqueuelen:1000
  107. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  108.  
  109. ip_vti0 Link encap:IPIP Tunnel HWaddr
  110. NOARP MTU:1480 Metric:1
  111. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  112. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  113. collisions:0 txqueuelen:1000
  114. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  115.  
  116. ip6_vti0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  117. NOARP MTU:1500 Metric:1
  118. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  119. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  120. collisions:0 txqueuelen:1000
  121. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  122.  
  123. ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  124. NOARP MTU:1452 Metric:1
  125. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  126. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  127. collisions:0 txqueuelen:1000
  128. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  129.  
  130. lo Link encap:Local Loopback
  131. LOOPBACK MTU:65536 Metric:1
  132. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  133. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  134. collisions:0 txqueuelen:1000
  135. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  136.  
  137. sit0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  138. NOARP MTU:1480 Metric:1
  139. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  140. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  141. collisions:0 txqueuelen:1000
  142. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  143.  
  144. usb0 Link encap:Ethernet HWaddr B2:95:A9:91:F5:7A
  145. inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
  146. UP BROADCAST MULTICAST MTU:1500 Metric:1
  147. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  148. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  149. collisions:0 txqueuelen:1000
  150. RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  151.  
  152. + '[' xusb0 '=' xnotfound ]
  153. /init-debug: line 281: can't create /etc/udhcpd.conf: nonexistent directory
  154. + echo 'start 192.168.2.20'
  155. /init-debug: line 282: can't create /etc/udhcpd.conf: nonexistent directory
  156. + echo 'end 192.168.2.90'
  157. /init-debug: line 283: can't create /etc/udhcpd.conf: nonexistent directory
  158. + echo 'lease_file /var/udhcpd.leases'
  159. /init-debug: line 284: can't create /etc/udhcpd.conf: nonexistent directory
  160. + echo 'interface usb0'
  161. /init-debug: line 285: can't create /etc/udhcpd.conf: nonexistent directory
  162. + echo 'option subnet 255.255.255.0'
  163. + echo '########################## starting dhcpd'
  164. ########################## starting dhcpd
  165. + /bin/busybox-static udhcpd
  166. + HALT_BOOT=n
  167. + set_welcome_msg n
  168. + cat
  169. + '[' yes '=' no ]
  170. + cat
  171. + cat
  172. + HALT_BOOT=n
  173. + '[' n '=' y ]
  174. + '[' yes '=' no ]
  175. + '[' -z ]
  176. + echo '########################## starting telnetd'
  177. ########################## starting telnetd
  178. + /bin/busybox-static telnetd -b 192.168.2.15:2323 -l /bin/sh
  179. + usb_info 'Mer Debug telnet on port 2323 on usb0 192.168.2.15 - also running udhcpd'
  180. + echo '########################## usb_info: Mer Debug telnet on port 2323 on usb0 192.168.2.15 - also running udhcpd'
  181. ########################## usb_info: Mer Debug telnet on port 2323 on usb0 192.168.2.15 - also running udhcpd
  182. + sleep 1
  183. + write /config/usb_gadget/g1/strings/0x409/serialnumber 'Mer Debug telnet on port 2323 on usb0 192.168.2.15 - also running udhcpd'
  184. + echo -n 'Mer Debug telnet on port 2323 on usb0 192.168.2.15 - also running udhcpd'
  185. + '[' n '=' y ]
  186. + rm /dev/block
  187. + '[' -x /sbin/preinit ]
  188. + INIT=/sbin/preinit
  189. + exec /sbin/preinit '--log-level=debug' '--log-target=kmsg'
  190.  
RAW Paste Data