jacobrosenthal / node-newtmgr

Unofficial port of Apache mynewt newt manager newtmgr
6 stars 4 forks source link

image commands #3

Open jacobrosenthal opened 7 years ago

jacobrosenthal commented 7 years ago

image upload.txt blesplit.img.txt

Jacobs-MacBook-Air:chippd3 jacobrosenthal$ newtmgr image corelist -c1411 -t -ldebug 2017/04/09 16:25:34 [DEBUG] Writing newtmgr request &{Op:0 Flags:0 Len:0 Group:1 Seq:0 Id:3 Data:[]} 2017/04/09 16:25:34 [DEBUG] Serializing request &{Op:0 Flags:0 Len:0 Group:1 Seq:0 Id:3 Data:[]} into buffer [0 0 0 0 0 1 0 3] 2017/04/09 16:25:34 [DEBUG] Tx packet dump: 00000000 00 00 00 00 00 01 00 03 |........|

2017/04/09 16:25:34 [INFO] Outgoing: 00000000 06 09 |..|

2017/04/09 16:25:34 [DEBUG] Writing [6 9] to data channel 2017/04/09 16:25:34 [INFO] Outgoing: 00000000 41 41 6f 41 41 41 41 41 41 41 45 41 41 77 64 54 |AAoAAAAAAAEAAwdT|

2017/04/09 16:25:34 [DEBUG] Writing [65 65 111 65 65 65 65 65 65 65 69 65 65 119 100 84] to data channel 2017/04/09 16:25:34 [INFO] Outgoing: 00000000 0a |.|

2017/04/09 16:25:34 [DEBUG] Writing [10] to data channel 2017/04/09 16:25:34 [INFO] Incoming: 00000000 06 09 41 42 41 42 41 41 41 47 41 41 45 41 41 37 |..ABABAAAGAAEAA7| 00000010 39 69 63 6d 4d 46 2f 31 62 6e |9icmMF/1bn|

2017/04/09 16:25:34 [DEBUG] Reading [6 9 65 66 65 66 65 65 65 71 65 65 69 65 65 55 57 105 99 109 77 70 47 49 98 110] from data channel 2017/04/09 16:25:34 [DEBUG] Rx packet dump: 00000000 01 00 00 06 00 01 00 03 bf 62 72 63 05 ff |.........brc..|

2017/04/09 16:25:34 [DEBUG] Deserialized response &{Op:1 Flags:0 Len:6 Group:1 Seq:0 Id:3 Data:[191 98 114 99 5 255]} No corefiles

jacobrosenthal commented 7 years ago

Jacobs-Air:apache-mynewt-core jacobrosenthal$ newtmgr -c1411 image list -t -ldebug 2017/03/21 22:01:33 [DEBUG] Writing newtmgr request &{Op:0 Flags:0 Len:0 Group:1 Seq:0 Id:0 Data:[]} 2017/03/21 22:01:33 [DEBUG] Serializing request &{Op:0 Flags:0 Len:0 Group:1 Seq:0 Id:0 Data:[]} into buffer [0 0 0 0 0 1 0 0] 2017/03/21 22:01:33 [DEBUG] Tx packet dump: 00000000 00 00 00 00 00 01 00 00 |........|

2017/03/21 22:01:33 [INFO] Outgoing: 00000000 06 09 |..|

2017/03/21 22:01:33 [DEBUG] Writing [6 9] to data channel 2017/03/21 22:01:33 [INFO] Outgoing: 00000000 41 41 6f 41 41 41 41 41 41 41 45 41 41 44 63 77 |AAoAAAAAAAEAADcw|

2017/03/21 22:01:33 [DEBUG] Writing [65 65 111 65 65 65 65 65 65 65 69 65 65 68 99 119] to data channel 2017/03/21 22:01:33 [INFO] Outgoing: 00000000 0a |.|

2017/03/21 22:01:33 [DEBUG] Writing [10] to data channel 2017/03/21 22:01:33 [INFO] Incoming: 00000000 06 09 41 41 6f 41 41 41 41 41 41 41 45 41 41 44 |..AAoAAAAAAAEAAD| 00000010 63 77 |cw|

2017/03/21 22:01:33 [DEBUG] Reading [6 9 65 65 111 65 65 65 65 65 65 65 69 65 65 68 99 119] from data channel 2017/03/21 22:01:33 [DEBUG] Rx packet dump: 00000000 00 00 00 00 00 01 00 00 |........|

2017/03/21 22:01:33 [DEBUG] Deserialized response &{Op:0 Flags:0 Len:0 Group:1 Seq:0 Id:0 Data:[]} 2017/03/21 22:01:34 [INFO] Incoming: 00000000 0d |.|

2017/03/21 22:01:34 [DEBUG] Reading [13] from data channel 2017/03/21 22:01:34 [INFO] Incoming: 00000000 06 09 41 50 34 42 41 41 44 30 41 41 45 41 41 4c |..AP4BAAD0AAEAAL| 00000010 39 6d 61 57 31 68 5a 32 56 7a 6e 37 39 6b 63 32 |9maW1hZ2Vzn79kc2| 00000020 78 76 64 41 42 6e 64 6d 56 79 63 32 6c 76 62 6d |xvdABndmVyc2lvbm| 00000030 55 77 4c 6a 41 75 4d 47 52 6f 59 58 4e 6f 57 43 |UwLjAuMGRoYXNoWC| 00000040 41 45 57 6e 54 76 78 39 6c 52 66 66 48 77 77 56 |AEWnTvx9lRffHwwV| 00000050 66 7a 47 41 42 43 7a 35 63 62 2b 33 6b 77 36 33 |fzGABCz5cb+3kw63| 00000060 45 52 43 48 71 43 38 48 4c 4e 65 6d 68 69 62 32 |ERCHqC8HLNemhib2| 00000070 39 30 59 57 4a 73 5a 66 56 6e 63 47 56 75 5a 47 |90YWJsZfVncGVuZG| 00000080 6c 75 |lu|

2017/03/21 22:01:34 [DEBUG] Reading [6 9 65 80 52 66 65 65 68 48 65 65 69 65 65 76 57 109 97 87 49 104 90 50 86 122 110 55 57 107 99 50 120 118 100 65 66 110 100 109 86 121 99 50 108 118 98 109 85 119 76 106 65 117 77 71 82 111 89 88 78 111 87 67 65 69 87 110 84 118 120 57 108 82 102 102 72 119 119 86 102 122 71 65 66 67 122 53 99 98 43 51 107 119 54 51 69 82 67 72 113 67 56 72 76 78 101 109 104 105 98 50 57 48 89 87 74 115 90 102 86 110 99 71 86 117 90 71 108 117] from data channel 2017/03/21 22:01:34 [INFO] Incoming: 00000000 04 14 5a 2f 52 70 59 32 39 75 5a 6d 6c 79 62 57 |..Z/RpY29uZmlybW| 00000010 56 6b 39 57 5a 68 59 33 52 70 64 6d 58 31 61 58 |Vk9WZhY3RpdmX1aX| 00000020 42 6c 63 6d 31 68 62 6d 56 75 64 50 54 2f 76 32 |Blcm1hbmVudPT/v2| 00000030 52 7a 62 47 39 30 41 57 64 32 5a 58 4a 7a 61 57 |RzbG90AWd2ZXJzaW| 00000040 39 75 5a 54 41 75 4d 43 34 77 5a 47 68 68 63 32 |9uZTAuMC4wZGhhc2| 00000050 68 59 49 45 45 58 33 33 77 64 78 41 39 55 38 2b |hYIEEX33wdxA9U8+| 00000060 36 2f 68 52 46 7a 2b 52 46 42 7a 6d 2b 53 49 50 |6/hRFz+RFBzm+SIP| 00000070 6f 65 67 2b 4b 54 59 6a 54 54 6f 46 72 4b 61 47 |oeg+KTYjTToFrKaG| 00000080 4a 76 |Jv|

2017/03/21 22:01:34 [DEBUG] Reading [4 20 90 47 82 112 89 50 57 117 90 109 108 121 98 87 86 107 57 87 90 104 89 51 82 112 100 109 88 49 97 88 66 108 99 109 49 104 98 109 86 117 100 80 84 47 118 50 82 122 98 71 57 48 65 87 100 50 90 88 74 122 97 87 57 117 90 84 65 117 77 67 52 119 90 71 104 104 99 50 104 89 73 69 69 88 51 51 119 100 120 65 57 85 56 43 54 47 104 82 70 122 43 82 70 66 122 109 43 83 73 80 111 101 103 43 75 84 89 106 84 84 111 70 114 75 97 71 74 118] from data channel 2017/03/21 22:01:34 [INFO] Incoming: 00000000 04 14 62 33 52 68 59 6d 78 6c 39 47 64 77 5a 57 |..b3RhYmxl9GdwZW| 00000010 35 6b 61 57 35 6e 39 47 6c 6a 62 32 35 6d 61 58 |5kaW5n9Gljb25maX| 00000020 4a 74 5a 57 54 30 5a 6d 46 6a 64 47 6c 32 5a 66 |JtZWT0ZmFjdGl2Zf| 00000030 52 70 63 47 56 79 62 57 46 75 5a 57 35 30 39 50 |RpcGVybWFuZW509P| 00000040 2f 2f 61 33 4e 77 62 47 6c 30 55 33 52 68 64 48 |//a3NwbGl0U3RhdH| 00000050 56 7a 41 76 38 42 43 77 3d 3d |VzAv8BCw==|

2017/03/21 22:01:34 [DEBUG] Reading [4 20 98 51 82 104 89 109 120 108 57 71 100 119 90 87 53 107 97 87 53 110 57 71 108 106 98 50 53 109 97 88 74 116 90 87 84 48 90 109 70 106 100 71 108 50 90 102 82 112 99 71 86 121 98 87 70 117 90 87 53 48 57 80 47 47 97 51 78 119 98 71 108 48 85 51 82 104 100 72 86 122 65 118 56 66 67 119 61 61] from data channel 2017/03/21 22:01:34 [DEBUG] Rx packet dump: 00000000 01 00 00 f4 00 01 00 00 bf 66 69 6d 61 67 65 73 |.........fimages| 00000010 9f bf 64 73 6c 6f 74 00 67 76 65 72 73 69 6f 6e |..dslot.gversion| 00000020 65 30 2e 30 2e 30 64 68 61 73 68 58 20 04 5a 74 |e0.0.0dhashX .Zt| 00000030 ef c7 d9 51 7d f1 f0 c1 57 f3 18 00 42 cf 97 1b |...Q}...W...B...| 00000040 fb 79 30 eb 71 11 08 7a 82 f0 72 cd 7a 68 62 6f |.y0.q..z..r.zhbo| 00000050 6f 74 61 62 6c 65 f5 67 70 65 6e 64 69 6e 67 f4 |otable.gpending.| 00000060 69 63 6f 6e 66 69 72 6d 65 64 f5 66 61 63 74 69 |iconfirmed.facti| 00000070 76 65 f5 69 70 65 72 6d 61 6e 65 6e 74 f4 ff bf |ve.ipermanent...| 00000080 64 73 6c 6f 74 01 67 76 65 72 73 69 6f 6e 65 30 |dslot.gversione0| 00000090 2e 30 2e 30 64 68 61 73 68 58 20 41 17 df 7c 1d |.0.0dhashX A..|.| 000000a0 c4 0f 54 f3 ee bf 85 11 73 f9 11 41 ce 6f 92 20 |..T.....s..A.o. | 000000b0 fa 1e 83 e2 93 62 34 d3 a0 5a ca 68 62 6f 6f 74 |.....b4..Z.hboot| 000000c0 61 62 6c 65 f4 67 70 65 6e 64 69 6e 67 f4 69 63 |able.gpending.ic| 000000d0 6f 6e 66 69 72 6d 65 64 f4 66 61 63 74 69 76 65 |onfirmed.factive| 000000e0 f4 69 70 65 72 6d 61 6e 65 6e 74 f4 ff ff 6b 73 |.ipermanent...ks| 000000f0 70 6c 69 74 53 74 61 74 75 73 02 ff |plitStatus..|

2017/03/21 22:01:34 [DEBUG] Deserialized response &{Op:1 Flags:0 Len:244 Group:1 Seq:0 Id:0 Data:[191 102 105 109 97 103 101 115 159 191 100 115 108 111 116 0 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 4 90 116 239 199 217 81 125 241 240 193 87 243 24 0 66 207 151 27 251 121 48 235 113 17 8 122 130 240 114 205 122 104 98 111 111 116 97 98 108 101 245 103 112 101 110 100 105 110 103 244 105 99 111 110 102 105 114 109 101 100 245 102 97 99 116 105 118 101 245 105 112 101 114 109 97 110 101 110 116 244 255 191 100 115 108 111 116 1 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202 104 98 111 111 116 97 98 108 101 244 103 112 101 110 100 105 110 103 244 105 99 111 110 102 105 114 109 101 100 244 102 97 99 116 105 118 101 244 105 112 101 114 109 97 110 101 110 116 244 255 255 107 115 112 108 105 116 83 116 97 116 117 115 2 255]} Images: slot=0 version: 0.0.0 bootable: true flags: active confirmed hash: 045a74efc7d9517df1f0c157f3180042cf971bfb7930eb7111087a82f072cd7a slot=1 version: 0.0.0 bootable: false flags: hash: 4117df7c1dc40f54f3eebf851173f91141ce6f9220fa1e83e2936234d3a05aca Split status: matching Jacobs-Air:apache-mynewt-core jacobrosenthal$

Jacobs-Air:apache-mynewt-core jacobrosenthal$ newtmgr -c1411 image test 4117df7c1dc40f54f3eebf851173f91141ce6f9220fa1e83e2936234d3a05aca -t -ldebug 2017/03/21 22:02:51 [DEBUG] Writing newtmgr request &{Op:2 Flags:0 Len:49 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 244 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202]} 2017/03/21 22:02:51 [DEBUG] Serializing request &{Op:2 Flags:0 Len:49 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 244 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202]} into buffer [2 0 0 49 0 1 0 0 162 103 99 111 110 102 105 114 109 244 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202] 2017/03/21 22:02:51 [DEBUG] Tx packet dump: 00000000 02 00 00 31 00 01 00 00 a2 67 63 6f 6e 66 69 72 |...1.....gconfir| 00000010 6d f4 64 68 61 73 68 58 20 41 17 df 7c 1d c4 0f |m.dhashX A..|...| 00000020 54 f3 ee bf 85 11 73 f9 11 41 ce 6f 92 20 fa 1e |T.....s..A.o. ..| 00000030 83 e2 93 62 34 d3 a0 5a ca |...b4..Z.|

2017/03/21 22:02:51 [INFO] Outgoing: 00000000 06 09 |..|

2017/03/21 22:02:51 [DEBUG] Writing [6 9] to data channel 2017/03/21 22:02:51 [INFO] Outgoing: 00000000 41 44 73 43 41 41 41 78 41 41 45 41 41 4b 4a 6e |ADsCAAAxAAEAAKJn| 00000010 59 32 39 75 5a 6d 6c 79 62 66 52 6b 61 47 46 7a |Y29uZmlybfRkaGFz| 00000020 61 46 67 67 51 52 66 66 66 42 33 45 44 31 54 7a |aFggQRfffB3ED1Tz| 00000030 37 72 2b 46 45 58 50 35 45 55 48 4f 62 35 49 67 |7r+FEXP5EUHOb5Ig| 00000040 2b 68 36 44 34 70 4e 69 4e 4e 4f 67 57 73 6f 68 |+h6D4pNiNNOgWsoh| 00000050 66 77 3d 3d |fw==|

2017/03/21 22:02:51 [DEBUG] Writing [65 68 115 67 65 65 65 120 65 65 69 65 65 75 74 110 89 50 57 117 90 109 108 121 98 102 82 107 97 71 70 122 97 70 103 103 81 82 102 102 102 66 51 69 68 49 84 122 55 114 43 70 69 88 80 53 69 85 72 79 98 53 73 103 43 104 54 68 52 112 78 105 78 78 79 103 87 115 111 104 102 119 61 61] to data channel 2017/03/21 22:02:51 [INFO] Outgoing: 00000000 0a |.|

2017/03/21 22:02:51 [DEBUG] Writing [10] to data channel 2017/03/21 22:02:51 [INFO] Incoming: 00000000 06 09 41 44 73 43 41 41 41 78 41 41 45 41 41 4b |..ADsCAAAxAAEAAK| 00000010 4a 6e 59 32 39 75 5a 6d 6c 79 62 66 52 6b 61 47 |JnY29uZmlybfRkaG| 00000020 46 7a 61 46 67 67 51 52 66 66 66 42 33 45 44 31 |FzaFggQRfffB3ED1| 00000030 54 7a 37 72 2b 46 45 58 50 35 45 55 48 4f 62 35 |Tz7r+FEXP5EUHOb5| 00000040 49 67 2b 68 36 44 34 70 4e 69 4e 4e 4f 67 57 73 |Ig+h6D4pNiNNOgWs| 00000050 6f 68 66 77 3d 3d |ohfw==|

2017/03/21 22:02:51 [DEBUG] Reading [6 9 65 68 115 67 65 65 65 120 65 65 69 65 65 75 74 110 89 50 57 117 90 109 108 121 98 102 82 107 97 71 70 122 97 70 103 103 81 82 102 102 102 66 51 69 68 49 84 122 55 114 43 70 69 88 80 53 69 85 72 79 98 53 73 103 43 104 54 68 52 112 78 105 78 78 79 103 87 115 111 104 102 119 61 61] from data channel 2017/03/21 22:02:51 [DEBUG] Rx packet dump: 00000000 02 00 00 31 00 01 00 00 a2 67 63 6f 6e 66 69 72 |...1.....gconfir| 00000010 6d f4 64 68 61 73 68 58 20 41 17 df 7c 1d c4 0f |m.dhashX A..|...| 00000020 54 f3 ee bf 85 11 73 f9 11 41 ce 6f 92 20 fa 1e |T.....s..A.o. ..| 00000030 83 e2 93 62 34 d3 a0 5a ca |...b4..Z.|

2017/03/21 22:02:51 [DEBUG] Deserialized response &{Op:2 Flags:0 Len:49 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 244 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202]} 2017/03/21 22:02:51 [INFO] Incoming: 00000000 0d |.|

2017/03/21 22:02:51 [DEBUG] Reading [13] from data channel 2017/03/21 22:02:51 [INFO] Incoming: 00000000 06 09 41 50 34 44 41 41 44 30 41 41 45 41 41 4c |..AP4DAAD0AAEAAL| 00000010 39 6d 61 57 31 68 5a 32 56 7a 6e 37 39 6b 63 32 |9maW1hZ2Vzn79kc2| 00000020 78 76 64 41 42 6e 64 6d 56 79 63 32 6c 76 62 6d |xvdABndmVyc2lvbm| 00000030 55 77 4c 6a 41 75 4d 47 52 6f 59 58 4e 6f 57 43 |UwLjAuMGRoYXNoWC| 00000040 41 45 57 6e 54 76 78 39 6c 52 66 66 48 77 77 56 |AEWnTvx9lRffHwwV| 00000050 66 7a 47 41 42 43 7a 35 63 62 2b 33 6b 77 36 33 |fzGABCz5cb+3kw63| 00000060 45 52 43 48 71 43 38 48 4c 4e 65 6d 68 69 62 32 |ERCHqC8HLNemhib2| 00000070 39 30 59 57 4a 73 5a 66 56 6e 63 47 56 75 5a 47 |90YWJsZfVncGVuZG| 00000080 6c 75 |lu|

2017/03/21 22:02:51 [DEBUG] Reading [6 9 65 80 52 68 65 65 68 48 65 65 69 65 65 76 57 109 97 87 49 104 90 50 86 122 110 55 57 107 99 50 120 118 100 65 66 110 100 109 86 121 99 50 108 118 98 109 85 119 76 106 65 117 77 71 82 111 89 88 78 111 87 67 65 69 87 110 84 118 120 57 108 82 102 102 72 119 119 86 102 122 71 65 66 67 122 53 99 98 43 51 107 119 54 51 69 82 67 72 113 67 56 72 76 78 101 109 104 105 98 50 57 48 89 87 74 115 90 102 86 110 99 71 86 117 90 71 108 117] from data channel 2017/03/21 22:02:51 [INFO] Incoming: 00000000 04 14 5a 2f 52 70 59 32 39 75 5a 6d 6c 79 62 57 |..Z/RpY29uZmlybW| 00000010 56 6b 39 57 5a 68 59 33 52 70 64 6d 58 31 61 58 |Vk9WZhY3RpdmX1aX| 00000020 42 6c 63 6d 31 68 62 6d 56 75 64 50 54 2f 76 32 |Blcm1hbmVudPT/v2| 00000030 52 7a 62 47 39 30 41 57 64 32 5a 58 4a 7a 61 57 |RzbG90AWd2ZXJzaW| 00000040 39 75 5a 54 41 75 4d 43 34 77 5a 47 68 68 63 32 |9uZTAuMC4wZGhhc2| 00000050 68 59 49 45 45 58 33 33 77 64 78 41 39 55 38 2b |hYIEEX33wdxA9U8+| 00000060 36 2f 68 52 46 7a 2b 52 46 42 7a 6d 2b 53 49 50 |6/hRFz+RFBzm+SIP| 00000070 6f 65 67 2b 4b 54 59 6a 54 54 6f 46 72 4b 61 47 |oeg+KTYjTToFrKaG| 00000080 4a 76 |Jv|

2017/03/21 22:02:51 [DEBUG] Reading [4 20 90 47 82 112 89 50 57 117 90 109 108 121 98 87 86 107 57 87 90 104 89 51 82 112 100 109 88 49 97 88 66 108 99 109 49 104 98 109 86 117 100 80 84 47 118 50 82 122 98 71 57 48 65 87 100 50 90 88 74 122 97 87 57 117 90 84 65 117 77 67 52 119 90 71 104 104 99 50 104 89 73 69 69 88 51 51 119 100 120 65 57 85 56 43 54 47 104 82 70 122 43 82 70 66 122 109 43 83 73 80 111 101 103 43 75 84 89 106 84 84 111 70 114 75 97 71 74 118] from data channel 2017/03/21 22:02:51 [INFO] Incoming: 00000000 04 14 62 33 52 68 59 6d 78 6c 39 47 64 77 5a 57 |..b3RhYmxl9GdwZW| 00000010 35 6b 61 57 35 6e 39 57 6c 6a 62 32 35 6d 61 58 |5kaW5n9Wljb25maX| 00000020 4a 74 5a 57 54 30 5a 6d 46 6a 64 47 6c 32 5a 66 |JtZWT0ZmFjdGl2Zf| 00000030 52 70 63 47 56 79 62 57 46 75 5a 57 35 30 39 50 |RpcGVybWFuZW509P| 00000040 2f 2f 61 33 4e 77 62 47 6c 30 55 33 52 68 64 48 |//a3NwbGl0U3RhdH| 00000050 56 7a 41 76 39 4b 4e 41 3d 3d |VzAv9KNA==|

2017/03/21 22:02:51 [DEBUG] Reading [4 20 98 51 82 104 89 109 120 108 57 71 100 119 90 87 53 107 97 87 53 110 57 87 108 106 98 50 53 109 97 88 74 116 90 87 84 48 90 109 70 106 100 71 108 50 90 102 82 112 99 71 86 121 98 87 70 117 90 87 53 48 57 80 47 47 97 51 78 119 98 71 108 48 85 51 82 104 100 72 86 122 65 118 57 75 78 65 61 61] from data channel 2017/03/21 22:02:51 [DEBUG] Rx packet dump: 00000000 03 00 00 f4 00 01 00 00 bf 66 69 6d 61 67 65 73 |.........fimages| 00000010 9f bf 64 73 6c 6f 74 00 67 76 65 72 73 69 6f 6e |..dslot.gversion| 00000020 65 30 2e 30 2e 30 64 68 61 73 68 58 20 04 5a 74 |e0.0.0dhashX .Zt| 00000030 ef c7 d9 51 7d f1 f0 c1 57 f3 18 00 42 cf 97 1b |...Q}...W...B...| 00000040 fb 79 30 eb 71 11 08 7a 82 f0 72 cd 7a 68 62 6f |.y0.q..z..r.zhbo| 00000050 6f 74 61 62 6c 65 f5 67 70 65 6e 64 69 6e 67 f4 |otable.gpending.| 00000060 69 63 6f 6e 66 69 72 6d 65 64 f5 66 61 63 74 69 |iconfirmed.facti| 00000070 76 65 f5 69 70 65 72 6d 61 6e 65 6e 74 f4 ff bf |ve.ipermanent...| 00000080 64 73 6c 6f 74 01 67 76 65 72 73 69 6f 6e 65 30 |dslot.gversione0| 00000090 2e 30 2e 30 64 68 61 73 68 58 20 41 17 df 7c 1d |.0.0dhashX A..|.| 000000a0 c4 0f 54 f3 ee bf 85 11 73 f9 11 41 ce 6f 92 20 |..T.....s..A.o. | 000000b0 fa 1e 83 e2 93 62 34 d3 a0 5a ca 68 62 6f 6f 74 |.....b4..Z.hboot| 000000c0 61 62 6c 65 f4 67 70 65 6e 64 69 6e 67 f5 69 63 |able.gpending.ic| 000000d0 6f 6e 66 69 72 6d 65 64 f4 66 61 63 74 69 76 65 |onfirmed.factive| 000000e0 f4 69 70 65 72 6d 61 6e 65 6e 74 f4 ff ff 6b 73 |.ipermanent...ks| 000000f0 70 6c 69 74 53 74 61 74 75 73 02 ff |plitStatus..|

2017/03/21 22:02:51 [DEBUG] Deserialized response &{Op:3 Flags:0 Len:244 Group:1 Seq:0 Id:0 Data:[191 102 105 109 97 103 101 115 159 191 100 115 108 111 116 0 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 4 90 116 239 199 217 81 125 241 240 193 87 243 24 0 66 207 151 27 251 121 48 235 113 17 8 122 130 240 114 205 122 104 98 111 111 116 97 98 108 101 245 103 112 101 110 100 105 110 103 244 105 99 111 110 102 105 114 109 101 100 245 102 97 99 116 105 118 101 245 105 112 101 114 109 97 110 101 110 116 244 255 191 100 115 108 111 116 1 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202 104 98 111 111 116 97 98 108 101 244 103 112 101 110 100 105 110 103 245 105 99 111 110 102 105 114 109 101 100 244 102 97 99 116 105 118 101 244 105 112 101 114 109 97 110 101 110 116 244 255 255 107 115 112 108 105 116 83 116 97 116 117 115 2 255]} Images: slot=0 version: 0.0.0 bootable: true flags: active confirmed hash: 045a74efc7d9517df1f0c157f3180042cf971bfb7930eb7111087a82f072cd7a slot=1 version: 0.0.0 bootable: false flags: pending hash: 4117df7c1dc40f54f3eebf851173f91141ce6f9220fa1e83e2936234d3a05aca Split status: matching Jacobs-Air:apache-mynewt-core jacobrosenthal$

Jacobs-Air:apache-mynewt-core jacobrosenthal$ newtmgr image confirm -c1411 -t -ldebug 2017/03/21 22:05:04 [DEBUG] Writing newtmgr request &{Op:2 Flags:0 Len:16 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 245 100 104 97 115 104 246]} 2017/03/21 22:05:04 [DEBUG] Serializing request &{Op:2 Flags:0 Len:16 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 245 100 104 97 115 104 246]} into buffer [2 0 0 16 0 1 0 0 162 103 99 111 110 102 105 114 109 245 100 104 97 115 104 246] 2017/03/21 22:05:04 [DEBUG] Tx packet dump: 00000000 02 00 00 10 00 01 00 00 a2 67 63 6f 6e 66 69 72 |.........gconfir| 00000010 6d f5 64 68 61 73 68 f6 |m.dhash.|

2017/03/21 22:05:04 [INFO] Outgoing: 00000000 06 09 |..|

2017/03/21 22:05:04 [DEBUG] Writing [6 9] to data channel 2017/03/21 22:05:04 [INFO] Outgoing: 00000000 41 42 6f 43 41 41 41 51 41 41 45 41 41 4b 4a 6e |ABoCAAAQAAEAAKJn| 00000010 59 32 39 75 5a 6d 6c 79 62 66 56 6b 61 47 46 7a |Y29uZmlybfVkaGFz| 00000020 61 50 61 68 4c 41 3d 3d |aPahLA==|

2017/03/21 22:05:04 [DEBUG] Writing [65 66 111 67 65 65 65 81 65 65 69 65 65 75 74 110 89 50 57 117 90 109 108 121 98 102 86 107 97 71 70 122 97 80 97 104 76 65 61 61] to data channel 2017/03/21 22:05:04 [INFO] Outgoing: 00000000 0a |.|

2017/03/21 22:05:04 [DEBUG] Writing [10] to data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 32 3a |2:|

2017/03/21 22:05:04 [DEBUG] Reading [50 58] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 53 6c 69 6e 6b 79 20 30 2e 30 2e 30 2e 30 |Slinky 0.0.0.0|

2017/03/21 22:05:04 [DEBUG] Reading [83 108 105 110 107 121 32 48 46 48 46 48 46 48] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 36 35 3a |65:|

2017/03/21 22:05:04 [DEBUG] Reading [54 53 58] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 53 70 6c 69 74 74 79 20 30 2e 30 2e 30 2e 30 |Splitty 0.0.0.0|

2017/03/21 22:05:04 [DEBUG] Reading [83 112 108 105 116 116 121 32 48 46 48 46 48 46 48] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 06 09 41 42 6f 43 41 41 41 51 41 41 45 41 41 4b |..ABoCAAAQAAEAAK| 00000010 4a 6e 59 32 39 75 5a 6d 6c 79 62 66 56 6b 61 47 |JnY29uZmlybfVkaG| 00000020 46 7a 61 50 61 68 4c 41 3d 3d |FzaPahLA==|

2017/03/21 22:05:04 [DEBUG] Reading [6 9 65 66 111 67 65 65 65 81 65 65 69 65 65 75 74 110 89 50 57 117 90 109 108 121 98 102 86 107 97 71 70 122 97 80 97 104 76 65 61 61] from data channel 2017/03/21 22:05:04 [DEBUG] Rx packet dump: 00000000 02 00 00 10 00 01 00 00 a2 67 63 6f 6e 66 69 72 |.........gconfir| 00000010 6d f5 64 68 61 73 68 f6 |m.dhash.|

2017/03/21 22:05:04 [DEBUG] Deserialized response &{Op:2 Flags:0 Len:16 Group:1 Seq:0 Id:0 Data:[162 103 99 111 110 102 105 114 109 245 100 104 97 115 104 246]} 2017/03/21 22:05:04 [INFO] Incoming: 00000000 0d |.|

2017/03/21 22:05:04 [DEBUG] Reading [13] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 06 09 41 50 34 44 41 41 44 30 41 41 45 41 41 4c |..AP4DAAD0AAEAAL| 00000010 39 6d 61 57 31 68 5a 32 56 7a 6e 37 39 6b 63 32 |9maW1hZ2Vzn79kc2| 00000020 78 76 64 41 42 6e 64 6d 56 79 63 32 6c 76 62 6d |xvdABndmVyc2lvbm| 00000030 55 77 4c 6a 41 75 4d 47 52 6f 59 58 4e 6f 57 43 |UwLjAuMGRoYXNoWC| 00000040 41 45 57 6e 54 76 78 39 6c 52 66 66 48 77 77 56 |AEWnTvx9lRffHwwV| 00000050 66 7a 47 41 42 43 7a 35 63 62 2b 33 6b 77 36 33 |fzGABCz5cb+3kw63| 00000060 45 52 43 48 71 43 38 48 4c 4e 65 6d 68 69 62 32 |ERCHqC8HLNemhib2| 00000070 39 30 59 57 4a 73 5a 66 56 6e 63 47 56 75 5a 47 |90YWJsZfVncGVuZG| 00000080 6c 75 |lu|

2017/03/21 22:05:04 [DEBUG] Reading [6 9 65 80 52 68 65 65 68 48 65 65 69 65 65 76 57 109 97 87 49 104 90 50 86 122 110 55 57 107 99 50 120 118 100 65 66 110 100 109 86 121 99 50 108 118 98 109 85 119 76 106 65 117 77 71 82 111 89 88 78 111 87 67 65 69 87 110 84 118 120 57 108 82 102 102 72 119 119 86 102 122 71 65 66 67 122 53 99 98 43 51 107 119 54 51 69 82 67 72 113 67 56 72 76 78 101 109 104 105 98 50 57 48 89 87 74 115 90 102 86 110 99 71 86 117 90 71 108 117] from data channel 2017/03/21 22:05:04 [INFO] Incoming: 00000000 04 14 5a 2f 52 70 59 32 39 75 5a 6d 6c 79 62 57 |..Z/RpY29uZmlybW| 00000010 56 6b 39 57 5a 68 59 33 52 70 64 6d 58 31 61 58 |Vk9WZhY3RpdmX1aX| 00000020 42 6c 63 6d 31 68 62 6d 56 75 64 50 54 2f 76 32 |Blcm1hbmVudPT/v2| 00000030 52 7a 62 47 39 30 41 57 64 32 5a 58 4a 7a 61 57 |RzbG90AWd2ZXJzaW| 00000040 39 75 5a 54 41 75 4d 43 34 77 5a 47 68 68 63 32 |9uZTAuMC4wZGhhc2| 00000050 68 59 49 45 45 58 33 33 77 64 78 41 39 55 38 2b |hYIEEX33wdxA9U8+| 00000060 36 2f 68 52 46 7a 2b 52 46 42 7a 6d 2b 53 49 50 |6/hRFz+RFBzm+SIP| 00000070 6f 65 67 2b 4b 54 59 6a 54 54 6f 46 72 4b 61 47 |oeg+KTYjTToFrKaG| 00000080 4a 76 |Jv|

2017/03/21 22:05:04 [DEBUG] Reading [4 20 90 47 82 112 89 50 57 117 90 109 108 121 98 87 86 107 57 87 90 104 89 51 82 112 100 109 88 49 97 88 66 108 99 109 49 104 98 109 86 117 100 80 84 47 118 50 82 122 98 71 57 48 65 87 100 50 90 88 74 122 97 87 57 117 90 84 65 117 77 67 52 119 90 71 104 104 99 50 104 89 73 69 69 88 51 51 119 100 120 65 57 85 56 43 54 47 104 82 70 122 43 82 70 66 122 109 43 83 73 80 111 101 103 43 75 84 89 106 84 84 111 70 114 75 97 71 74 118] from data channel 2017/03/21 22:05:05 [INFO] Incoming: 00000000 04 14 62 33 52 68 59 6d 78 6c 39 47 64 77 5a 57 |..b3RhYmxl9GdwZW| 00000010 35 6b 61 57 35 6e 39 47 6c 6a 62 32 35 6d 61 58 |5kaW5n9Gljb25maX| 00000020 4a 74 5a 57 54 31 5a 6d 46 6a 64 47 6c 32 5a 66 |JtZWT1ZmFjdGl2Zf| 00000030 56 70 63 47 56 79 62 57 46 75 5a 57 35 30 39 50 |VpcGVybWFuZW509P| 00000040 2f 2f 61 33 4e 77 62 47 6c 30 55 33 52 68 64 48 |//a3NwbGl0U3RhdH| 00000050 56 7a 41 76 2b 4b 41 77 3d 3d |VzAv+KAw==|

2017/03/21 22:05:05 [DEBUG] Reading [4 20 98 51 82 104 89 109 120 108 57 71 100 119 90 87 53 107 97 87 53 110 57 71 108 106 98 50 53 109 97 88 74 116 90 87 84 49 90 109 70 106 100 71 108 50 90 102 86 112 99 71 86 121 98 87 70 117 90 87 53 48 57 80 47 47 97 51 78 119 98 71 108 48 85 51 82 104 100 72 86 122 65 118 43 75 65 119 61 61] from data channel 2017/03/21 22:05:05 [DEBUG] Rx packet dump: 00000000 03 00 00 f4 00 01 00 00 bf 66 69 6d 61 67 65 73 |.........fimages| 00000010 9f bf 64 73 6c 6f 74 00 67 76 65 72 73 69 6f 6e |..dslot.gversion| 00000020 65 30 2e 30 2e 30 64 68 61 73 68 58 20 04 5a 74 |e0.0.0dhashX .Zt| 00000030 ef c7 d9 51 7d f1 f0 c1 57 f3 18 00 42 cf 97 1b |...Q}...W...B...| 00000040 fb 79 30 eb 71 11 08 7a 82 f0 72 cd 7a 68 62 6f |.y0.q..z..r.zhbo| 00000050 6f 74 61 62 6c 65 f5 67 70 65 6e 64 69 6e 67 f4 |otable.gpending.| 00000060 69 63 6f 6e 66 69 72 6d 65 64 f5 66 61 63 74 69 |iconfirmed.facti| 00000070 76 65 f5 69 70 65 72 6d 61 6e 65 6e 74 f4 ff bf |ve.ipermanent...| 00000080 64 73 6c 6f 74 01 67 76 65 72 73 69 6f 6e 65 30 |dslot.gversione0| 00000090 2e 30 2e 30 64 68 61 73 68 58 20 41 17 df 7c 1d |.0.0dhashX A..|.| 000000a0 c4 0f 54 f3 ee bf 85 11 73 f9 11 41 ce 6f 92 20 |..T.....s..A.o. | 000000b0 fa 1e 83 e2 93 62 34 d3 a0 5a ca 68 62 6f 6f 74 |.....b4..Z.hboot| 000000c0 61 62 6c 65 f4 67 70 65 6e 64 69 6e 67 f4 69 63 |able.gpending.ic| 000000d0 6f 6e 66 69 72 6d 65 64 f5 66 61 63 74 69 76 65 |onfirmed.factive| 000000e0 f5 69 70 65 72 6d 61 6e 65 6e 74 f4 ff ff 6b 73 |.ipermanent...ks| 000000f0 70 6c 69 74 53 74 61 74 75 73 02 ff |plitStatus..|

2017/03/21 22:05:05 [DEBUG] Deserialized response &{Op:3 Flags:0 Len:244 Group:1 Seq:0 Id:0 Data:[191 102 105 109 97 103 101 115 159 191 100 115 108 111 116 0 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 4 90 116 239 199 217 81 125 241 240 193 87 243 24 0 66 207 151 27 251 121 48 235 113 17 8 122 130 240 114 205 122 104 98 111 111 116 97 98 108 101 245 103 112 101 110 100 105 110 103 244 105 99 111 110 102 105 114 109 101 100 245 102 97 99 116 105 118 101 245 105 112 101 114 109 97 110 101 110 116 244 255 191 100 115 108 111 116 1 103 118 101 114 115 105 111 110 101 48 46 48 46 48 100 104 97 115 104 88 32 65 23 223 124 29 196 15 84 243 238 191 133 17 115 249 17 65 206 111 146 32 250 30 131 226 147 98 52 211 160 90 202 104 98 111 111 116 97 98 108 101 244 103 112 101 110 100 105 110 103 244 105 99 111 110 102 105 114 109 101 100 245 102 97 99 116 105 118 101 245 105 112 101 114 109 97 110 101 110 116 244 255 255 107 115 112 108 105 116 83 116 97 116 117 115 2 255]} Images: slot=0 version: 0.0.0 bootable: true flags: active confirmed hash: 045a74efc7d9517df1f0c157f3180042cf971bfb7930eb7111087a82f072cd7a slot=1 version: 0.0.0 bootable: false flags: active confirmed hash: 4117df7c1dc40f54f3eebf851173f91141ce6f9220fa1e83e2936234d3a05aca Split status: matching Jacobs-Air:apache-mynewt-core jacobrosenthal$

jacobrosenthal commented 7 years ago

Still need

Jacobs-MacBook-Air:newtmgr jacobrosenthal$ newtmgr image Manage images on a device

Usage: newtmgr image [flags] newtmgr image [command]

Available Commands: confirm Permanently run image coreconvert Convert core to ELF coredownload Download core from a device coreerase Erase core on a device corelist List core(s) on a device list Show images on a device test Test an image on next reboot upload Upload image to a device

Global Flags: -c, --conn string connection profile to use -h, --help Help for newtmgr commands -l, --loglevel string log level to use (default "info") -t, --trace print all bytes transmitted and received

Use "newtmgr image [command] --help" for more information about a command. Jacobs-MacBook-Air:newtmgr jacobrosenthal$

jacobrosenthal commented 7 years ago

Jacobs-MacBook-Air:~ jacobrosenthal$ GODEBUG=cgocheck=0 newtmgr image coreerase -cnimble_bleprph -ldebug -t 2017/06/04 20:54:23 [DEBUG] BLE Connection devaddr:[] 2017/06/04 20:54:23 [DEBUG] State:PoweredOn 2017/06/04 20:54:23 [DEBUG] scanning... 2017/06/04 20:54:23 [DEBUG] Peripheral Discovered: , Address:[0 0 0 0 0 0] Address Type:0 2017/06/04 20:54:23 [DEBUG] Peripheral Discovered: , Address:[0 0 0 0 0 0] Address Type:0 2017/06/04 20:54:23 Unhandled event: xpc.Dict{"kCBMsgArgs":xpc.Dict{"kCBMsgArgDeviceUUID":xpc.UUID{0x2f, 0xd, 0xcb, 0x60, 0xf, 0x3e, 0x47, 0x52, 0xb7, 0x74, 0x13, 0x29, 0x3a, 0x3, 0xd4, 0xd0}, "kCBMsgArgATTMTU":104}, "kCBMsgId":53} 2017/06/04 20:54:23 [DEBUG] Peripheral Connected 2017/06/04 20:54:23 [DEBUG] Newtmgr Service Found 2017/06/04 20:54:24 [DEBUG] Newtmgr Characteristic Found 2017/06/04 20:54:24 [DEBUG] Writing newtmgr request &{Op:2 Flags:0 Len:0 Group:1 Seq:0 Id:4 Data:[]} 2017/06/04 20:54:24 [DEBUG] Serializing request &{Op:2 Flags:0 Len:0 Group:1 Seq:0 Id:4 Data:[]} into buffer [2 0 0 0 0 1 0 4] 2017/06/04 20:54:24 [DEBUG] Tx packet dump: 00000000 02 00 00 00 00 01 00 04 |........|

2017/06/04 20:54:24 [DEBUG] Write BLE Packet:buf:: len::8 2017/06/04 20:54:24 [DEBUG] Read BLE Packet:buf::?brc? len::14 2017/06/04 20:54:24 [DEBUG] Rx packet dump: 00000000 03 00 00 06 00 01 00 04 bf 62 72 63 00 ff |.........brc..|

2017/06/04 20:54:24 [DEBUG] Deserialized response &{Op:3 Flags:0 Len:6 Group:1 Seq:0 Id:4 Data:[191 98 114 99 0 255]} Done 2017/06/04 20:54:24 [DEBUG] Closing Connection &{connProfile: currentPacket: bleDevice:0xc42001c700 isOIC:false} Jacobs-MacBook-Air:~ jacobrosenthal$

jacobrosenthal commented 7 years ago

Jacobs-MacBook-Air:~ jacobrosenthal$ GODEBUG=cgocheck=0 newtmgr image coredownload core.dump -cnimble_bleprph -ldebug -t 2017/06/04 20:55:05 [DEBUG] BLE Connection devaddr:[] 2017/06/04 20:55:05 [DEBUG] State:PoweredOn 2017/06/04 20:55:05 [DEBUG] scanning... 2017/06/04 20:55:05 [DEBUG] Peripheral Discovered: , Address:[0 0 0 0 0 0] Address Type:0 2017/06/04 20:55:05 Unhandled event: xpc.Dict{"kCBMsgId":53, "kCBMsgArgs":xpc.Dict{"kCBMsgArgATTMTU":104, "kCBMsgArgDeviceUUID":xpc.UUID{0x2f, 0xd, 0xcb, 0x60, 0xf, 0x3e, 0x47, 0x52, 0xb7, 0x74, 0x13, 0x29, 0x3a, 0x3, 0xd4, 0xd0}}} 2017/06/04 20:55:05 [DEBUG] Peripheral Connected 2017/06/04 20:55:05 [DEBUG] Newtmgr Service Found 2017/06/04 20:55:05 [DEBUG] Newtmgr Characteristic Found 2017/06/04 20:55:06 [DEBUG] Writing newtmgr request &{Op:0 Flags:0 Len:6 Group:1 Seq:0 Id:4 Data:[161 99 111 102 102 0]} 2017/06/04 20:55:06 [DEBUG] Serializing request &{Op:0 Flags:0 Len:6 Group:1 Seq:0 Id:4 Data:[161 99 111 102 102 0]} into buffer [0 0 0 6 0 1 0 4 161 99 111 102 102 0] 2017/06/04 20:55:06 [DEBUG] Tx packet dump: 00000000 00 00 00 06 00 01 00 04 a1 63 6f 66 66 00 |.........coff.|

2017/06/04 20:55:06 [DEBUG] Write BLE Packet:buf::?coff len::14 2017/06/04 20:55:06 [DEBUG] Read BLE Packet:buf::?brc? len::14 2017/06/04 20:55:06 [DEBUG] Rx packet dump: 00000000 01 00 00 06 00 01 00 04 bf 62 72 63 05 ff |.........brc..|

2017/06/04 20:55:06 [DEBUG] Deserialized response &{Op:1 Flags:0 Len:6 Group:1 Seq:0 Id:4 Data:[191 98 114 99 5 255]} Got response: 6 bytes No corefile present 2017/06/04 20:55:06 [DEBUG] Closing Connection &{connProfile: currentPacket: bleDevice:0xc42013c480 isOIC:false} Jacobs-MacBook-Air:~ jacobrosenthal$

arno608rw commented 5 years ago

run on node v?