-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.txt
1336 lines (1014 loc) · 60.8 KB
/
tests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
= bleeding =
== layers ==
=== app containers ===
+ app-container-redis
* master
+ app-container-mosquitto
* master
+ app-container-python3-nmap-srv
* master
+ app-container-python3-data-collector
* master
=== sources ===
+ poky
* 2019-05-13-warrior-2.7+
+ meta-multi-v7-ml-bsp
* warrior-v4.19.x
+ meta-u-boot-wic-bsp
* warrior
+ meta-u-boot-karo-wic-bsp
* master
+ meta-karo-wic-bsp
* master
+ meta-resy
* master
+ meta-desire
* master
+ meta-openembedded
* warrior
+ meta-virtualization
* warrior
== machines/variations ==
=== imx6q-phytec-mira-rdk-nand-wic ===
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "imx6q-phytec-mira-rdk-nand"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:a7c2f836b60e80d8804d6aa63fc8a0322451791d"
meta-u-boot-wic-bsp = "warrior:aa43150cb70d4120a9bbb859279a6259845f9c17"
meta-resy = "master:6806a1735c17ecb8cec564ac3076bb24cc2db562"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/imx6q-phytec-mira-rdk-nand-wic/tmp/deploy/images/imx6q-phytec-mira-rdk-nand
generates a .wic image and a .bmap file
==== (unknown) kernel/fdt over tftp, rootfs nfs ====
sudo bmaptool copy --bmap core-image-minimal-imx6q-phytec-mira-rdk-nand.wic.bmap core-image-minimal-imx6q-phytec-mira-rdk-nand.wic /dev/mmcblk0
PASSED
==== kernel/fdt over tftp, (unknown) rootfs nfs ====
cp uImage--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.bin /tftpboot/imx6q-phytec-mira-rdk-nand/
cp imx6q-phytec-mira-rdk-nand--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.dtb /tftpboot/imx6q-phytec-mira-rdk-nand/
pushd /tftpboot/imx6q-phytec-mira-rdk-nand/
ln -sf uImage--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.bin uImage
ln -sf imx6q-phytec-mira-rdk-nand--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.dtb uImage-imx6q-phytec-mira-rdk-nand.dtb
ls -lah
popd
root@multi-v7-ml:~# uname -a
Linux multi-v7-ml 4.19.13-custom-ml-std #1 SMP Mon Jun 17 09:02:02 UTC 2019 armv7l armv7l armv7l GNU/Linux
root@multi-v7-ml:~# cat /proc/cmdline
console=ttymxc1,115200n8 ip=192.168.42.11:192.168.42.1:192.168.42.254:255.255.255.0:imx6q-phytec-mira-rdk-nand:eth0:off nfsroot=192.168.42.1:/opt/poky/mira-rootfs,v3,tcp noinitrd nohlt panic=1 earlyprintk=ttymxc1,115200n8
root@multi-v7-ml:~#
PASSED
==== kernel/fdt over tftp, rootfs nfs ====
sudo mkdir -p /opt/poky/2.7-exp/core-image-minimal-imx6q-phytec-mira-rdk-nand-wic
sudo tar -xvf core-image-minimal-imx6q-phytec-mira-rdk-nand.tar.bz2 -C /opt/poky/2.7-exp/core-image-minimal-imx6q-phytec-mira-rdk-nand-wic
pushd /opt/poky
sudo rm -f mira-rootfs
sudo ln -sf /opt/poky/2.7-exp/core-image-minimal-imx6q-phytec-mira-rdk-nand-wic/ mira-rootfs
ls -lah
ls mira-rootfs
popd
root@imx6q-phytec-mira-rdk-nand:~# uname -a
Linux imx6q-phytec-mira-rdk-nand 4.19.13-custom-ml-std #1 SMP Mon Jun 17 09:02:02 UTC 2019 armv7l GNU/Linux
root@imx6q-phytec-mira-rdk-nand:~# cat /proc/cmdline
console=ttymxc1,115200n8 ip=192.168.42.11:192.168.42.1:192.168.42.254:255.255.255.0:imx6q-phytec-mira-rdk-nand:eth0:off nfsroot=192.168.42.1:/opt/poky/mira-rootfs,v3,tcp noinitrd nohlt panic=1 earlyprintk=ttymxc1,115200n8
root@imx6q-phytec-mira-rdk-nand:~#
PASSED
==== kernel/fdt over tftp, rootfs SD card ====
u-boot:
ext4load mmc 0:1 0x18000000 uEnv.txt
env import -t 0x18000000 ${filesize}
run uenvcmd_mmc
root@imx6q-phytec-mira-rdk-nand:~# uname -a
Linux imx6q-phytec-mira-rdk-nand 4.19.13-custom-ml-std #1 SMP Mon Jun 17 09:02:02 UTC 2019 armv7l GNU/Linux
root@imx6q-phytec-mira-rdk-nand:~# cat /proc/cmdline
console=ttymxc1,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@imx6q-phytec-mira-rdk-nand:~#
PASSED
==== kernel/fdt SD card, rootfs SD card ====
u-boot
ext4load mmc 0:1 0x18000000 uEnv.txt
env import -t 0x18000000 ${filesize}
run uenvcmd_mmc_all
loading from SD card is super slow!!!
=> run uenvcmd_mmc_all
bootfile: /boot/uImage
fdtfile: /boot/imx6q-phytec-mira-rdk-nand.dtb
ext4load mmc 0:1 0x10007fc0 /boot/uImage
8720960 bytes read in 31209 ms (272.5 KiB/s)
ext4load mmc 0:1 0x18000000 /boot/imx6q-phytec-mira-rdk-nand.dtb
40379 bytes read in 129 ms (305.7 KiB/s)
Booting from mmc - uEnv.txt from ext4...
bootargs=console=ttymxc1,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@imx6q-phytec-mira-rdk-nand:~# uname -a
Linux imx6q-phytec-mira-rdk-nand 4.19.13-custom-ml-std #1 SMP Mon Jun 17 09:02:02 UTC 2019 armv7l GNU/Linux
root@imx6q-phytec-mira-rdk-nand:~# cat /proc/cmdline
console=ttymxc1,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@imx6q-phytec-mira-rdk-nand:~#
PASSED
=== beagle-bone-black-wic ===
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "beagle-bone-black"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:a7c2f836b60e80d8804d6aa63fc8a0322451791d"
meta-u-boot-wic-bsp = "warrior:75d47755762b623a769fbf8ecb96a905210bc5f7"
meta-resy = "master:6806a1735c17ecb8cec564ac3076bb24cc2db562"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/beagle-bone-black-wic/tmp/deploy/images/beagle-bone-black
generates a .wic image and a .bmap file
==== sanity ====
*) boots via emmc - no SD card inside
root@multi-v7-ml:~# cat /proc/cmdline
console=ttyO0,115200n8 ip=192.168.42.11:192.168.42.1:192.168.42.1:255.255.255.0:beagle-bone-black:eth0:off nfsroot=192.168.42.1:/opt/poky/bbb-rootfs,v3,tcp noinitrd nohlt panic=1
So without and SD card it looks like it boots over tftp/nfs and only U-Boot is taken from emmc
U-Boot SPL 2018.11-mainline-student-v2018.11-dirty (Feb 05 2019 - 09:42:53 +0100)
Trying to boot from MMC2
Loading Environment from FAT... Card did not respond to voltage select!
U-Boot 2018.11-mainline-student-v2018.11-dirty (Feb 05 2019 - 09:42:53 +0100)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... MMC: no card present
No USB device found
<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Hit any key to stop autoboot: 0
MMC: no card present
MMC: no card present
4746 bytes read in 8 ms (579.1 KiB/s)
Importing environment from mmc0 ...
bootfile: beagle-bone-black/uImage
fdtfile: beagle-bone-black/uImage-am335x-boneblack.dtb
ethernet@4a100000 Waiting for PHY auto negotiation to complete. done
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
host 192.168.42.1 is alive
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.42.1; our IP address is 192.168.42.11
Filename 'beagle-bone-black/uImage'.
Load address: 0x80300000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
let's try to write an SD card and make it boot
==== (unknown) kernel/fdt over tftp, rootfs nfs ====
sudo bmaptool copy --bmap core-image-minimal-beagle-bone-black.wic.bmap core-image-minimal-beagle-bone-black.wic /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 25009 blocks of size 4096 (97.7 MiB), mapped 13844 blocks (54.1 MiB or 55.4%)
bmaptool: info: copying image 'core-image-minimal-beagle-bone-black.wic' to block device '/dev/mmcblk0' using bmap file 'core-image-minimal-beagle-bone-black.wic.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 10.3s, copying speed 5.2 MiB/sec
Forcing boot from SD card it looks like this:
U-Boot SPL 2018.11 (Jul 03 2019 - 10:19:10 +0000)
Trying to boot from MMC1
Loading Environment from FAT... Unable to use mmc 0:1...
U-Boot 2018.11 (Jul 03 2019 - 10:19:10 +0000)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 0:1... No USB device found
<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Hit any key to stop autoboot: 0
4746 bytes read in 17 ms (272.5 KiB/s)
Importing environment from mmc0 ...
bootfile: /boot/uImage
fdtfile: /boot/am335x-boneblack.dtb
ext4load mmc 0:1 0x80300000 /boot/uImage
8720960 bytes read in 6263 ms (1.3 MiB/s)
ext4load mmc 0:1 0x815f0000 /boot/am335x-boneblack.dtb
34782 bytes read in 29 ms (1.1 MiB/s)
Booting from mmc - uEnv.txt from ext4...
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
## Booting kernel from Legacy Image at 80300000 ...
Image Name: Linux-4.19.13-custom-ml-std
Created: 2019-07-03 10:26:22 UTC
Image Type: ARM Linux Kernel Image (no loading done) (uncompressed)
Data Size: 8720896 Bytes = 8.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 815f0000
Booting using the fdt blob at 0x815f0000
XIP Kernel Image (no loading done) ... OK
Loading Device Tree to 8fff4000, end 8ffff7dd ... OK
root@beagle-bone-black:~# cat /proc/cmdline
console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
I think this is the SD card and removing the card shows errors - so I guess I am right
root@beagle-bone-black:~# uname -a
Linux beagle-bone-black 4.19.13-custom-ml-std #1 SMP Wed Jul 3 10:20:07 UTC 2019 armv7l GNU/Linux
root@beagle-bone-black:~# cat /proc/cmdline
console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@beagle-bone-black:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
Looks like all runs from SD card!
PASSED
==== kernel/fdt over tftp, rootfs SD card ====
see above
Nothing special needs to be done for this, except for forcing boot from SD card
With SD card inside and not forcing from SD card:
all looks good
root@beagle-bone-black:~# uname -a
Linux beagle-bone-black 4.19.13-custom-ml-std #1 SMP Wed Jul 3 10:20:07 UTC 2019 armv7l GNU/Linux
root@beagle-bone-black:~# cat /proc/cmdline
console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@beagle-bone-black:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
old U-boot seems to read new uEnv.txt:
U-Boot SPL 2018.11-mainline-student-v2018.11-dirty (Feb 05 2019 - 09:42:53 +0100)
Trying to boot from MMC2
Loading Environment from FAT... Unable to use mmc 0:1...
U-Boot 2018.11-mainline-student-v2018.11-dirty (Feb 05 2019 - 09:42:53 +0100)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 0:1... No USB device found
<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Hit any key to stop autoboot: 0
4746 bytes read in 17 ms (272.5 KiB/s)
Importing environment from mmc0 ...
bootfile: /boot/uImage
fdtfile: /boot/am335x-boneblack.dtb
ext4load mmc 0:1 0x80300000 /boot/uImage
8720960 bytes read in 6265 ms (1.3 MiB/s)
ext4load mmc 0:1 0x815f0000 /boot/am335x-boneblack.dtb
34782 bytes read in 29 ms (1.1 MiB/s)
Booting from mmc - uEnv.txt from ext4...
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
PASSED
=== am335x-phytec-wega-wic ===
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "am335x-phytec-wega"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:a7c2f836b60e80d8804d6aa63fc8a0322451791d"
meta-u-boot-wic-bsp = "warrior:5051cc0e00df26af0119a44e2297ddb2ba1883f9"
meta-resy = "master:6806a1735c17ecb8cec564ac3076bb24cc2db562"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/am335x-phytec-wega-wic/tmp/deploy/images/am335x-phytec-wega
generates a .wic image and a .bmap file
==== sanity ====
boots some SD card mender image (systemd,..)
==== (unknown) kernel/fdt over tftp, rootfs nfs ====
sudo bmaptool copy --bmap core-image-minimal-am335x-phytec-wega.wic.bmap core-image-minimal-am335x-phytec-wega.wic /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 25009 blocks of size 4096 (97.7 MiB), mapped 13767 blocks (53.8 MiB or 55.0%)
bmaptool: info: copying image 'core-image-minimal-am335x-phytec-wega.wic' to block device '/dev/mmcblk0' using bmap file 'core-image-minimal-am335x-phytec-wega.wic.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 10.2s, copying speed 5.3 MiB/sec
PASSED
==== kernel/fdt SD card, rootfs SD card ====
U-Boot SPL 2018.11 (Jul 03 2019 - 12:51:03 +0000)
Trying to boot from MMC1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
U-Boot 2018.11 (Jul 03 2019 - 12:51:03 +0000)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net: <ethaddr> not set. Reading from E-fuse
cpsw, usb_ether
Error: usb_ether address not set.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** File not found boot.scr **
4459 bytes read in 23 ms (188.5 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
bootfile: /boot/uImage
fdtfile: /boot/am335x-wega-rdk.dtb
ext4load mmc 0:1 0x80300000 /boot/uImage
8720960 bytes read in 6250 ms (1.3 MiB/s)
ext4load mmc 0:1 0x815f0000 /boot/am335x-wega-rdk.dtb
34781 bytes read in 36 ms (943.4 KiB/s)
Booting from mmc - uEnv.txt from ext4...
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
...
root@am335x-phytec-wega:~# uname -a
Linux am335x-phytec-wega 4.19.13-custom-ml-std #1 SMP Wed Jul 3 12:51:56 UTC 2019 armv7l GNU/Linux
root@am335x-phytec-wega:~# cat /proc/cmdline
console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait noinitrd nohlt panic=1
root@am335x-phytec-wega:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
PASSED
=== karo-imx6ul-txul-wic ===
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "karo-imx6ul-txul"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:a7c2f836b60e80d8804d6aa63fc8a0322451791d"
meta-karo-wic-bsp = "warrior:f9b4e02730a5e712ee9085e2480f9a3b8b00f56d"
meta-resy = "master:6806a1735c17ecb8cec564ac3076bb24cc2db562"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/karo-imx6ul-txul-wic/tmp/deploy/images/karo-imx6ul-txul
==== sanity ====
seems to boot out of the box some emmc image, which is there
==== (unknown) kernel/fdt over tftp, (unknown) rootfs nfs ====
I have a uEnv.txt on my board in the emmc:
ext2load mmc 0:2 82000000 uEnv.txt
env import -t 82000000 ${filesize}
run uenvcmd
TX6UL U-Boot > run uenvcmd
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.42.252 (1007 ms)
serverip: 192.168.42.1
bootfile: karo-imx6ul-txul/uImage
fdtfile: karo-imx6ul-txul/uImage-imx6ul-txul-5011-mainboard.dtb
Using FEC0 device
host 192.168.42.1 is alive
Using FEC0 device
TFTP from server 192.168.42.1; our IP address is 192.168.42.252
Filename 'karo-imx6ul-txul/uImage'.
root@multi-v7-ml:~# uname -a
Linux multi-v7-ml 4.14.71-stable-student-00001-gc64dc682ac8a #1 SMP Fri Mar 8 15:28:10 CET 2019 armv7l armv7l armv7l GNU/Linux
root@multi-v7-ml:~# cat /proc/cmdline
console=ttymxc,115200n8 ip=dhcp root=/dev/nfs nfsroot=192.168.42.1:/opt/poky/karo-tx6ul-rootfs,nolock,v3,tcp noinitrd nohlt panic=1 ip=dhcp root=/dev/nfs nfsroot=192.168.42.1:/opt/poky/karo-tx6ul-rootfs,nolock,v3,tcp noinitrd nohlt panic=1
root@multi-v7-ml:~# cat /etc/issue
Poky (Yocto Project Reference Distro) 2.6.1 \n \l
OK so far:
==== kernel/fdt over tftp, (unknown) rootfs nfs ====
cp uImage--4.14.71-custom-ml-std+git0+1244bbb3e9-r0.5-karo-imx6ul-txul-20190703142713.bin /tftpboot/karo-imx6ul-txul/
cp imx6ul-txul-5011-mainboard--4.14.71-custom-ml-std+git0+1244bbb3e9-r0.5-karo-imx6ul-txul-20190703142713.dtb /tftpboot/karo-imx6ul-txul/
pushd /tftpboot/karo-imx6ul-txul/
ln -sf uImage--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.bin uImage
ln -sf imx6q-phytec-mira-rdk-nand--4.19.13-custom-ml-std+git0+c04c050f5b-r0.2-imx6q-phytec-mira-rdk-nand-20190617082910.dtb uImage-imx6q-phytec-mira-rdk-nand.dtb
ls -lah
popd
root@multi-v7-ml:~# uname -a
Linux multi-v7-ml 4.14.71-custom-ml-std #1 SMP Wed Jul 3 14:27:44 UTC 2019 armv7l armv7l armv7l GNU/Linux
root@multi-v7-ml:~# cat /proc/cmdline
console=ttymxc,115200n8 ip=dhcp root=/dev/nfs nfsroot=192.168.42.1:/opt/poky/karo-tx6ul-rootfs,nolock,v3,tcp noinitrd nohlt panic=1
PASSED
==== kernel/fdt over tftp, rootfs nfs ====
sudo mkdir -p /opt/poky/2.7-exp/core-image-minimal-karo-imx6ul-txul-wic
sudo tar -xvf core-image-minimal-karo-imx6ul-txul.tar.bz2 -C /opt/poky/2.7-exp/core-image-minimal-karo-imx6ul-txul-wic
pushd /opt/poky
sudo rm -f karo-tx6ul-rootfs
sudo ln -sf /opt/poky/2.7-exp/core-image-minimal-karo-imx6ul-txul-wic karo-tx6ul-rootfs
ls -lah
ls mira-rootfs
popd
ext2load mmc 0:2 82000000 uEnv.txt
env import -t 82000000 ${filesize}
run uenvcmd
root@karo-imx6ul-txul:~# uname -a
Linux karo-imx6ul-txul 4.14.71-custom-ml-std #1 SMP Wed Jul 3 14:27:44 UTC 2019 armv7l GNU/Linux
root@karo-imx6ul-txul:~# cat /proc/cmdline
console=ttymxc,115200n8 ip=dhcp root=/dev/nfs nfsroot=192.168.42.1:/opt/poky/karo-tx6ul-rootfs,nolock,v3,tcp noinitrd nohlt panic=1
root@karo-imx6ul-txul:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
=== meta-u-boot-karo-wic-bsp ===
builds - I didn't try
=== imx6q-phytec-mira-rdk-nand-mender ===
bitbake core-image-minimal
NOTE: Started PRServer with DBfile: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/poky/build/imx6q-phytec-mira-rdk-nand-mender/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 37546, PID: 15876
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_BOOTSECTOR_OFFSET" is not a recognized MENDER_ variable. Typo?######################################## | ETA: 0:00:00
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_FILE" is not a recognized MENDER_ variable. Typo?
WARNING: "MENDER_IMAGE_BOOT_FILES_REMOVE" is not a recognized MENDER_ variable. Typo?
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:50
Parsing of 841 .bb files complete (0 cached, 841 parsed). 1376 targets, 62 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "imx6q-phytec-mira-rdk-nand"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta-u-boot-mender-bsp = "HEAD:4643338d8e10d80c2bef6152319e97396eba736c"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:80dc10ec48dbf1fc9ae72cade4d9b4cdb2561db9"
meta-mender-core = "thud:352cd81fe4dd6e44ba0819da1d8e189109e805e6"
my-mender-layer = "master:95fd9e22fc23a0e35ab14e8e2fd0b9c0f441eff0"
meta-resy = "master:f47e9691d68e7ba2858e9268bfff098d576f0979"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/imx6q-phytec-mira-rdk-nand-mender/tmp/deploy/images/imx6q-phytec-mira-rdk-nand
generates an .sdimg and a .bmap file (and a .mender file)
==== sanity ====
boots something
==== kernel/fdt SD card, rootfs SD card ====
sudo bmaptool copy --bmap core-image-minimal-imx6q-phytec-mira-rdk-nand.sdimg.bmap core-image-minimal-imx6q-phytec-mira-rdk-nand.sdimg /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 260096 blocks of size 4096 (1016.0 MiB), mapped 37123 blocks (145.0 MiB or 14.3%)
bmaptool: info: copying image 'core-image-minimal-imx6q-phytec-mira-rdk-nand.sdimg' to block device '/dev/mmcblk0' using bmap file 'core-image-minimal-imx6q-phytec-mira-rdk-nand.sdimg.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 28.2s, copying speed 5.1 MiB/sec
u-boot takes ages to read from SD card!!!
some systemd init comes up
root@imx6q-phytec-mira-rdk-nand:~# uname -a
Linux imx6q-phytec-mira-rdk-nand 4.19.13-custom-ml-std #1 SMP Fri Jul 5 11:48:18 UTC 2019 armv7l GNU/Linux
root@imx6q-phytec-mira-rdk-nand:~# cat /proc/cmdline
root=/dev/mmcblk0p2 console=ttymxc1,115200n8
root@imx6q-phytec-mira-rdk-nand:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
root@imx6q-phytec-mira-rdk-nand:~# mender -version
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
1.7.1
runtime: go1.12.1
root@imx6q-phytec-mira-rdk-nand:~# mender -debug
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
DEBU[0000] Reading Mender configuration from file /etc/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
DEBU[0000] Merged configuration = main.menderConfig{ClientProtocol:"", ArtifactVerifyKey:"", HttpsClient:struct { Certificate string; Key string; SkipVerify bool }{Certificate:"", Key:"", SkipVerify:false}, RootfsPartA:"/dev/mmcblk0p2", RootfsPartB:"/dev/mmcblk0p3", UpdatePollIntervalSeconds:1800, InventoryPollIntervalSeconds:1800, RetryPollIntervalSeconds:300, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ServerCertificate:"/etc/mender/server.crt", ServerURL:"https://mender.res.training", UpdateLogPath:"", TenantToken:"dummy", Servers:[]client.MenderServer{client.MenderServer{ServerURL:"https://mender.res.training"}}} module=config
DEBU[0000] Have U-Boot variable: mender_check_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_check_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_boot_part=2 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_boot_part:2] module=bootenv
DEBU[0000] Setting active partition from mount candidate: /dev/mmcblk0p2 module=partitions
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
ERRO[0000] Must give one of -rootfs, -commit, -bootstrap or -daemon arguments module=main
root@imx6q-phytec-mira-rdk-nand:~#
root@imx6q-phytec-mira-rdk-nand:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
imx6q-phytec-mira-rdk-nand-multi-v7-rel-1
looks promising
PASSED
==== let's try with server ====
$bh-ub18-mender-1_start
Domain ub18-mender started
ssh student@192.168.42.70
cd ~/projects/mender-server/production
$./run up -d
menderproduction_mender-gui_1 is up-to-date
menderproduction_mender-mongo_1 is up-to-date
menderproduction_mender-elasticsearch_1 is up-to-date
Starting menderproduction_minio_1 ...
menderproduction_mender-redis_1 is up-to-date
Starting menderproduction_minio_1
menderproduction_mender-device-auth_1 is up-to-date
menderproduction_mender-useradm_1 is up-to-date
menderproduction_mender-deployments_1 is up-to-date
menderproduction_mender-inventory_1 is up-to-date
menderproduction_mender-conductor_1 is up-to-date
Starting menderproduction_minio_1 ... done
Starting menderproduction_storage-proxy_1 ...
Starting menderproduction_storage-proxy_1 ... done
$./run ps
Name Command State Ports
---------------------------------------------------------------------------------------------------------
menderproduction_mender-api-gateway_1 /entrypoint.sh Up 0.0.0.0:443->443/tcp
menderproduction_mender-conductor_1 /srv/start_conductor.sh Up 8080/tcp
menderproduction_mender-deployments_1 /entrypoint.sh --config /e ... Up 8080/tcp
menderproduction_mender-device-auth_1 /usr/bin/deviceauth --conf ... Up 8080/tcp
menderproduction_mender-elasticsearch_1 /docker-entrypoint.sh elas ... Up 9200/tcp, 9300/tcp
menderproduction_mender-gui_1 /entrypoint.sh Up 80/tcp
menderproduction_mender-inventory_1 /usr/bin/inventory --confi ... Up 8080/tcp
menderproduction_mender-mongo_1 docker-entrypoint.sh mongod Up 27017/tcp
menderproduction_mender-redis_1 /redis/entrypoint.sh Up 6379/tcp
menderproduction_mender-useradm_1 /usr/bin/useradm --config ... Up 8080/tcp
menderproduction_minio_1 /usr/bin/docker-entrypoint ... Up 9000/tcp
menderproduction_storage-proxy_1 /usr/local/openresty/bin/o ... Up 0.0.0.0:9000->9000/tcp
https://192.168.42.70/
or
https://mender.res.training/
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
810a328c220d mendersoftware/api-gateway:1.6.0 "/entrypoint.sh" 6 months ago Up 19 hours 0.0.0.0:443->443/tcp
menderproduction_mender-api-gateway_1
f6d445d49bc7 mendersoftware/mender-conductor:1.2.0 "/srv/start_conducto…" 6 months ago Up 19 hours 8080/tcp
menderproduction_mender-conductor_1
43a2280c96be openresty/openresty:1.13.6.2-0-alpine "/usr/local/openrest…" 6 months ago Up 19 hours 0.0.0.0:9000->9000/tcp
menderproduction_storage-proxy_1
eac1d45f1b4e mendersoftware/inventory:1.5.0 "/usr/bin/inventory …" 6 months ago Up 19 hours 8080/tcp
menderproduction_mender-inventory_1
4e80324374b4 mendersoftware/useradm:1.7.0 "/usr/bin/useradm --…" 6 months ago Up 19 hours 8080/tcp menderproduction_mender-useradm_1
5e0fbdabea88 mendersoftware/deviceauth:1.7.0 "/usr/bin/deviceauth…" 6 months ago Up 19 hours 8080/tcp menderproduction_mender-device-auth_1
a9b025bd4ea7 mendersoftware/deployments:1.6.0 "/entrypoint.sh --co…" 6 months ago Up 19 hours 8080/tcp menderproduction_mender-deployments_1
a5eefebc94d2 minio/minio:RELEASE.2018-09-25T21-34-43Z "/usr/bin/docker-ent…" 6 months ago Up 19 hours (unhealthy) 9000/tcp menderproduction_minio_1
1393b0663499 mendersoftware/elasticsearch:2.4 "/docker-entrypoint.…" 6 months ago Up 19 hours 9200/tcp, 9300/tcp menderproduction_mender-elasticsearch_1
124aa4ec5fc2 redis:3.2.11-alpine "/redis/entrypoint.sh" 6 months ago Up 19 hours 6379/tcp menderproduction_mender-redis_1
8a56f13b8af3 mongo:3.4 "docker-entrypoint.s…" 6 months ago Up 19 hours 27017/tcp menderproduction_mender-mongo_1
6bdf4e1e810d mendersoftware/gui:1.7.0 "/entrypoint.sh" 6 months ago Up 19 hours 80/tcp menderproduction_mender-gui_1
==== beagle-bone-black-mender ====
btbake core-image-minimal
NOTE: Started PRServer with DBfile: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/poky/build/beagle-bone-black-mender/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 43594, PID: 24472
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_BOOTSECTOR_OFFSET" is not a recognized MENDER_ variable. Typo?######################################## | ETA: 0:00:00
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_FILE" is not a recognized MENDER_ variable. Typo?
WARNING: "MENDER_IMAGE_BOOT_FILES_REMOVE" is not a recognized MENDER_ variable. Typo?
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:44
Parsing of 841 .bb files complete (0 cached, 841 parsed). 1376 targets, 62 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "beagle-bone-black"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta-u-boot-mender-bsp = "HEAD:4643338d8e10d80c2bef6152319e97396eba736c"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:80dc10ec48dbf1fc9ae72cade4d9b4cdb2561db9"
meta-mender-core = "thud:352cd81fe4dd6e44ba0819da1d8e189109e805e6"
my-mender-layer = "master:95fd9e22fc23a0e35ab14e8e2fd0b9c0f441eff0"
meta-resy = "master:f47e9691d68e7ba2858e9268bfff098d576f0979"
... WARNING: u-boot-1_2018.11-r0 do_provide_mender_defines: Found more than one dtb specified in KERNEL_DEVICETREE. Only one should be specified. Choosing the last one. ...
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/beagle-bone-black-mender/tmp/deploy/images/beagle-bone-black
generates an .sdimg and a .bmap file (and a .mender file)
==== sanity ====
boots something
==== kernel/fdt SD card, rootfs SD card ====
sudo bmaptool copy --bmap core-image-minimal-beagle-bone-black.sdimg.bmap core-image-minimal-beagle-bone-black.sdimg /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 260096 blocks of size 4096 (1016.0 MiB), mapped 37185 blocks (145.3 MiB or 14.3%)
bmaptool: info: copying image 'core-image-minimal-beagle-bone-black.sdimg' to block device '/dev/mmcblk0' using bmap file 'core-image-minimal-beagle-bone-black.sdimg.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 28.2s, copying speed 5.2 MiB/sec
Boots by default form eMMC
So we need to force boot from SD card!
And some systemd stuff comes up
root@beagle-bone-black:~# uname -a
Linux beagle-bone-black 4.19.13-custom-ml-std #1 SMP Fri Jul 5 15:52:58 UTC 2019 armv7l GNU/Linux
root@beagle-bone-black:~# cat /proc/cmdline
root=/dev/mmcblk0p2 console=ttyO0,115200n8
root@beagle-bone-black:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
root@beagle-bone-black:~# mender -version
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
1.7.1
runtime: go1.12.1
root@beagle-bone-black:~# mender -debug
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
DEBU[0000] Reading Mender configuration from file /etc/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
DEBU[0000] Merged configuration = main.menderConfig{ClientProtocol:"", ArtifactVerifyKey:"", HttpsClient:struct { Certificate string; Key string; SkipVerify bool }{Certificate:"", Key:"", SkipVerify:false}, RootfsPartA:"/dev/mmcblk0p2", RootfsPartB:"/dev/mmcblk0p3", UpdatePollIntervalSeconds:1800, InventoryPollIntervalSeconds:1800, RetryPollIntervalSeconds:300, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ServerCertificate:"/etc/mender/server.crt", ServerURL:"https://mender.res.training", UpdateLogPath:"", TenantToken:"dummy", Servers:[]client.MenderServer{client.MenderServer{ServerURL:"https://mender.res.training"}}} module=config
DEBU[0000] Have U-Boot variable: mender_check_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_check_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_boot_part=2 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_boot_part:2] module=bootenv
DEBU[0000] Setting active partition from mount candidate: /dev/mmcblk0p2 module=partitions
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
ERRO[0000] Must give one of -rootfs, -commit, -bootstrap or -daemon arguments module=main
root@beagle-bone-black:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
beagle-bone-black-multi-v7-rel-1
==== am335x-phytec-wega-mender ====
bitbake core-image-minimal
NOTE: Started PRServer with DBfile: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/poky/build/am335x-phytec-wega-mender/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 46632, PID: 29419
WARNING: "MENDER_IMAGE_BOOT_FILES_REMOVE" is not a recognized MENDER_ variable. Typo?########################################################## | ETA: 0:00:00
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_FILE" is not a recognized MENDER_ variable. Typo?
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_BOOTSECTOR_OFFSET" is not a recognized MENDER_ variable. Typo?
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:44
Parsing of 841 .bb files complete (0 cached, 841 parsed). 1376 targets, 62 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "am335x-phytec-wega"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta-u-boot-mender-bsp = "HEAD:4643338d8e10d80c2bef6152319e97396eba736c"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:80dc10ec48dbf1fc9ae72cade4d9b4cdb2561db9"
meta-mender-core = "thud:352cd81fe4dd6e44ba0819da1d8e189109e805e6"
my-mender-layer = "master:95fd9e22fc23a0e35ab14e8e2fd0b9c0f441eff0"
meta-resy = "master:f47e9691d68e7ba2858e9268bfff098d576f0979"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/am335x-phytec-wega-mender/tmp/deploy/images/am335x-phytec-wega
generates an .sdimg and a .bmap file (and a .mender file)
==== sanity ====
boots something
==== kernel/fdt SD card, rootfs SD card ====
sudo bmaptool copy --bmap core-image-minimal-am335x-phytec-wega.sdimg.bmap core-image-minimal-am335x-phytec-wega.sdimg /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 260096 blocks of size 4096 (1016.0 MiB), mapped 37105 blocks (144.9 MiB or 14.3%)
bmaptool: info: copying image 'core-image-minimal-am335x-phytec-wega.sdimg' to block device '/dev/mmcblk0' using bmap file 'core-image-minimal-am335x-phytec-wega.sdimg.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 27.0s, copying speed 5.4 MiB/sec
some systemd comes up
root@am335x-phytec-wega:~# uname -a
Linux am335x-phytec-wega 4.19.13-custom-ml-std #1 SMP Fri Jul 5 16:47:13 UTC 2019 armv7l GNU/Linux
root@am335x-phytec-wega:~# cat /proc/cmdline
root=/dev/mmcblk0p2 console=ttyO0,115200n8
root@am335x-phytec-wega:~# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7 \n \l
root@am335x-phytec-wega:~# mender -version
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
1.7.1
runtime: go1.12.1
root@am335x-phytec-wega:~# mender -debug
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
DEBU[0000] Reading Mender configuration from file /etc/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
DEBU[0000] Merged configuration = main.menderConfig{ClientProtocol:"", ArtifactVerifyKey:"", HttpsClient:struct { Certificate string; Key string; SkipVerify bool }{Certificate:"", Key:"", SkipVerify:false}, RootfsPartA:"/dev/mmcblk0p2", RootfsPartB:"/dev/mmcblk0p3", UpdatePollIntervalSeconds:1800, InventoryPollIntervalSeconds:1800, RetryPollIntervalSeconds:300, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ServerCertificate:"/etc/mender/server.crt", ServerURL:"https://mender.res.training", UpdateLogPath:"", TenantToken:"dummy", Servers:[]client.MenderServer{client.MenderServer{ServerURL:"https://mender.res.training"}}} module=config
DEBU[0000] Have U-Boot variable: mender_check_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_check_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_saveenv_canary=1 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_saveenv_canary:1] module=bootenv
DEBU[0000] Have U-Boot variable: mender_boot_part=2 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_boot_part:2] module=bootenv
DEBU[0000] Setting active partition from mount candidate: /dev/mmcblk0p2 module=partitions
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
ERRO[0000] Must give one of -rootfs, -commit, -bootstrap or -daemon arguments module=main
root@am335x-phytec-wega:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
am335x-phytec-wega-multi-v7-rel-1
root@am335x-phytec-wega:~#
=== multi-v7-mender ===
bitbake core-image-minimal
NOTE: Started PRServer with DBfile: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/poky/build/multi-v7-mender/cache/prserv.sqlite3, IP: 127.0.0.1, PORT:
41679, PID: 14341
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_FILE" is not a recognized MENDER_ variable. Typo?##################################################### | ETA: 0:00:00
WARNING: "MENDER_IMAGE_SECOND_BOOTLOADER_BOOTSECTOR_OFFSET" is not a recognized MENDER_ variable. Typo?
WARNING: "MENDER_IMAGE_BOOT_FILES_REMOVE" is not a recognized MENDER_ variable. Typo?
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:43
Parsing of 841 .bb files complete (0 cached, 841 parsed). 1376 targets, 62 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-resy-linux-gnueabi"
MACHINE = "multi-v7"
DISTRO = "resy"
DISTRO_VERSION = "2.7"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta-u-boot-mender-bsp = "HEAD:4643338d8e10d80c2bef6152319e97396eba736c"
meta
meta-poky
meta-yocto-bsp = "2019-05-13-warrior-2.7+:9001e77e428d86b1d10e0a9ceb9113a76d221678"
meta-multi-v7-ml-bsp = "warrior-v4.19.x:80dc10ec48dbf1fc9ae72cade4d9b4cdb2561db9"
meta-mender-core = "thud:352cd81fe4dd6e44ba0819da1d8e189109e805e6"
my-mender-layer = "master:95fd9e22fc23a0e35ab14e8e2fd0b9c0f441eff0"
meta-resy = "master:f47e9691d68e7ba2858e9268bfff098d576f0979"
cd /opt/yocto-autobuilder-volume/yocto-autobuilder/yocto-worker/poky/build/multi-v7-mender/tmp/deploy/images/multi-v7
ls core-image-minimal-multi-v7.mender
this is a mender update image (which should work on all above boards)
---- imx6q-phytec-mira-rdk-nand ----
root@imx6q-phytec-mira-rdk-nand:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
imx6q-phytec-mira-rdk-nand-multi-v7-rel-1
auto reboot
root@multi-v7:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p3 module=main
multi-v7-rel-1
---- beagle bone black ---
root@beagle-bone-black:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
beagle-bone-black-multi-v7-rel-1
auto reboot
root@multi-v7:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p3 module=main
multi-v7-rel-1
---- am335x-phytec-wega ---
root@am335x-phytec-wega:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2 module=main
am335x-phytec-wega-multi-v7-rel-1
auto reboot
root@multi-v7:~# mender -show-artifact
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p3 module=main
multi-v7-rel-1
PASSED
= New Mender Install =
https://docs.mender.io/2.0/administration/production-installation
docker --version
Docker version 18.06.1-ce, build e68fc7a
docker-compose --version
docker-compose version 1.17.1, build unknown