Error after using mender-convert

Hmm. Strange as that is the same set of steps I ran. I did use a RpI3 but with Raspbian I don’t think that should make a difference.

Can you confirm which version of Raspbian you are using?

Also, do you have a serial cable and can you provide a log from the failed system?

Drew

The version of raspbian I am using is download from https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit

Is there any tutorial that can use serial cable to get the error log from the failed system?

Is there any tutorial that can use serial cable to get the error log from the failed system?

This one contains the relevant bits,

https://elinux.org/RPi_Serial_Connection

I dont have a serial cable is there any other way to get the log from failed system?

Not really. Most other logging mechanisms require quite a bit of functionality to be present and based on your reports you may not be functional enough.

It’s possible that connecting an HDMI display will be instructive but it’s a bit tricky as you will likely need to take video and slow it down if there is any text to be able to decipher it.

Drew

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.12.11 16:52:27 =~=~=~=~=~=~=~=~=~=~=~=
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 5.4.42-v8+ (dom@buildbot) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020
[ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] percpu: Embedded 31 pages/cpu s89240 r8192 d29544 u126976
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 996912
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=HDMI-A-1:1680x1050M@60 smsc95xx.macaddr=DC:A6:32:85:12:0C vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 root={mender_kernel_root} rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x37400000-0x3b400000] (64MB) [ 0.000000] Memory: 3626148K/4050944K available (9532K kernel code, 1102K rwdata, 3340K rodata, 1088K init, 1199K bss, 162652K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 31644 entries in 124 pages [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x32c/0x4c4 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000218] Console: colour dummy device 80x25 [ 0.000273] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000) [ 0.000293] pid_max: default: 32768 minimum: 301 [ 0.000602] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.000652] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.001675] Disabling memory control group subsystem [ 0.024032] ASID allocator initialised with 32768 entries [ 0.032027] rcu: Hierarchical SRCU implementation. [ 0.040378] EFI services will not be available. [ 0.048088] smp: Bringing up secondary CPUs ... [ 0.080286] Detected PIPT I-cache on CPU1 [ 0.080344] CPU1: Booted secondary processor 0x0000000001 [0x410fd083] [ 0.112389] Detected PIPT I-cache on CPU2 [ 0.112431] CPU2: Booted secondary processor 0x0000000002 [0x410fd083] [ 0.144496] Detected PIPT I-cache on CPU3 [ 0.144536] CPU3: Booted secondary processor 0x0000000003 [0x410fd083] [ 0.144676] smp: Brought up 1 node, 4 CPUs [ 0.144713] SMP: Total of 4 processors activated. [ 0.144728] CPU features: detected: 32-bit EL0 Support [ 0.144743] CPU features: detected: CRC32 instructions [ 0.168091] CPU: All CPU(s) started at EL2 [ 0.168148] alternatives: patching kernel code [ 0.169689] devtmpfs: initialized [ 0.179077] Enabled cp15_barrier support [ 0.179112] Enabled setend support [ 0.179525] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.179559] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.186433] pinctrl core: initialized pinctrl subsystem [ 0.187126] DMI not present or invalid. [ 0.187467] NET: Registered protocol family 16 [ 0.190204] DMA: preallocated 1024 KiB pool for atomic allocations [ 0.190911] cpuidle: using governor menu [ 0.191264] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.191486] Serial: AMBA PL011 UART driver [ 0.194620] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.204691] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-05-27 12:05, variant start [ 0.208703] raspberrypi-firmware soc:firmware: Firmware hash is 369ed4e44cb5a080a2dfa7f854ae4ff46b7c9ef9 [ 0.253819] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.256937] vgaarb: loaded [ 0.257355] SCSI subsystem initialized [ 0.257553] usbcore: registered new interface driver usbfs [ 0.257607] usbcore: registered new interface driver hub [ 0.257718] usbcore: registered new device driver usb [ 0.259038] clocksource: Switched to clocksource arch_sys_counter [ 0.957328] VFS: Disk quotas dquot_6.6.0 [ 0.957419] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.957616] FS-Cache: Loaded [ 0.957825] CacheFiles: Loaded [ 0.958824] simple-framebuffer 3e503000.framebuffer: framebuffer at 0x3e503000, 0x6c4800 bytes, mapped to 0x(____ptrval____) [ 0.958844] simple-framebuffer 3e503000.framebuffer: format=a8r8g8b8, mode=1680x1050x32, linelength=6720 [ 0.968669] Console: switching to colour frame buffer device 210x65 [ 0.977529] simple-framebuffer 3e503000.framebuffer: fb0: simplefb registered! [ 0.986654] thermal_sys: Registered thermal governor 'step_wise' [ 0.986969] NET: Registered protocol family 2 [ 0.987724] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.987772] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.987990] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear) [ 0.988422] TCP: Hash tables configured (established 32768 bind 32768) [ 0.988620] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.988679] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.988976] NET: Registered protocol family 1 [ 0.989792] RPC: Registered named UNIX socket transport module. [ 0.989808] RPC: Registered udp transport module. [ 0.989820] RPC: Registered tcp transport module. [ 0.989832] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.989852] PCI: CLS 0 bytes, default 64 [ 0.991803] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.992040] kvm: Limiting the IPA size due to kernel Virtual Address limit [ 0.992054] kvm [1]: IPA Size Limit: 43bits [ 0.992829] kvm [1]: vgic interrupt IRQ1 [ 0.993064] kvm [1]: Hyp mode initialized successfully [ 0.994937] Initialise system trusted keyrings [ 0.995236] workingset: timestamp_bits=46 max_order=20 bucket_order=0 [ 1.003725] FS-Cache: Netfs 'nfs' registered for caching [ 1.008381] NFS: Registering the id_resolver key type [ 1.008420] Key type id_resolver registered [ 1.008433] Key type id_legacy registered [ 1.008457] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.009620] Key type asymmetric registered [ 1.009637] Asymmetric key parser 'x509' registered [ 1.009682] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.009893] io scheduler mq-deadline registered [ 1.009908] io scheduler kyber registered [ 1.013111] brcm-pcie fd500000.pcie: host bridge /scb/pc 01 class 0x060400 [ 1.061745] pci 0000:00:00.0: PME# supported from D0 D3hot [ 1.065237] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 1.065376] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 1.065765] pci 0000:01:00.0: PME# supported from D0 D3cold [ 1.069006] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 1.069029] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 1.069108] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.069131] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 1.069241] pci 0000:00:00.0: enabling device (0000 -> 0002) [ 1.069300] pci 0000:01:00.0: enabling device (0000 -> 0002) [ 1.071590] raspberrypi-clk firmware-clocks: CPU frequency range: min 600000000, max 1500000000 [ 1.073484] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 1.075649] iproc-rng200 fe104000.rng: hwrng registered [ 1.075991] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 1.076704] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 1.077068] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.086876] brd: module loaded [ 1.098430] loop: module loaded [ 1.099723] Loading iSCSI transport class v2.0-870. [ 1.101466] libphy: Fixed MDIO Bus: probed [ 1.101968] bcmgenet fd580000.ethernet: failed to get enet clock [ 1.101990] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 1.102012] bcmgenet fd580000.ethernet: failed to get enet-wol clock [ 1.102032] bcmgenet fd580000.ethernet: failed to get enet-eee clock [ 1.102058] bcmgenet: Skipping UMAC reset [ 1.111104] libphy: bcmgenet MII bus: probed [ 1.163196] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 1.164100] usbcore: registered new interface driver r8152 [ 1.164162] usbcore: registered new interface driver lan78xx [ 1.164225] usbcore: registered new interface driver smsc95xx [ 1.164698] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.164731] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 1.165664] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890 [ 1.166879] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04 [ 1.166898] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.166914] usb usb1: Product: xHCI Host Controller [ 1.166929] usb usb1: Manufacturer: Linux 5.4.42-v8+ xhci-hcd [ 1.166943] usb usb1: SerialNumber: 0000:01:00.0 [ 1.167541] hub 1-0:1.0: USB hub found [ 1.167639] hub 1-0:1.0: 1 port detected [ 1.168139] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.168163] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 1.168187] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 1.168617] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04 [ 1.168634] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.168650] usb usb2: Product: xHCI Host Controller [ 1.168665] usb usb2: Manufacturer: Linux 5.4.42-v8+ xhci-hcd [ 1.168679] usb usb2: SerialNumber: 0000:01:00.0 [ 1.169185] hub 2-0:1.0: USB hub found [ 1.169262] hub 2-0:1.0: 4 ports detected [ 1.170539] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.175375] usbcore: registered new interface driver uas [ 1.175477] usbcore: registered new interface driver usb-storage [ 1.175664] mousedev: PS/2 mouse device common for all mice [ 1.177282] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 1.179386] sdhci: Secure Digital Host Controller Interface driver [ 1.179401] sdhci: Copyright(c) Pierre Ossman [ 1.179906] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe [ 1.180364] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.183642] ledtrig-cpu: registered to indicate activity on CPUs [ 1.183742] hidraw: raw HID events driver (C) Jiri Kosina [ 1.183877] usbcore: registered new interface driver usbhid [ 1.183890] usbhid: USB HID core driver [ 1.185098] vchiq: vchiq_init_state: slot_zero = (____ptrval____) [ 1.188644] Initializing XFRM netlink socket [ 1.188691] NET: Registered protocol family 17 [ 1.188803] Key type dns_resolver registered [ 1.189404] registered taskstats version 1 [ 1.189429] Loading compiled-in X.509 certificates [ 1.189674] Key type ._fscrypt registered [ 1.189688] Key type .fscrypt registered [ 1.201993] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 1.202096] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 14, base_baud = 0) is a PL011 rev2 [ 1.208012] printk: console [ttyS0] disabled [ 1.208081] fe215040.serial: ttyS0 at MMIO 0x0 (irq = 15, base_baud = 62500000) is a 16550 [ 2.430323] printk: console [ttyS0] enabled [ 2.436122] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 2.444158] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver [ 2.452665] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 2.458791] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 2.508156] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 2.515374] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 2.522759] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 2.531265] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 2.536880] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA [ 2.546775] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 2.546947] of_cfs_init [ 2.554977] of_cfs_init: OK [ 2.559289] Waiting for root device {mender_kernel_root}…
[ 2.595472] random: fast init done
[ 2.627475] mmc1: new high speed SDIO card at address 0001
[ 2.662047] mmc0: new ultra high speed DDR50 SDXC card at address 0001
[ 2.669541] mmcblk0: mmc0:0001 EC2QT 59.6 GiB
[ 2.674033] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 2.682773] mmcblk0: p1 p2 p3 p4
[ 2.829675] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 2.838007] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.845271] usb 1-1: Product: USB2.0 Hub
[ 2.850747] hub 1-1:1.0: USB hub found
[ 2.854825] hub 1-1:1.0: 4 ports detected
[ 208.511129] random: crng init done

I dont know why my reply is so weird and different from the preview. Is there any other way for sending the logs to you?

It doesn’t seem to be running U-Boot. @mirzak is there something amiss here related to U-Boot and RpI 4?

Is it a known issue or something? I saw there are some topics are discussing issue about pi4 and mender.

Can you share details how do you do this?

First I download the image from the raspbian website. Then put the image into the input directory in mender-convert folder. type sudo MENDER_ARTIFACT_NAME=updatelite ./docker-mender-convert --disk-image input/updatelite.img --config configs/raspberrypi4_config --overlay rootfs_overlay_demo/
then wait for the process finish. After that, a converted image shows up in the deploy folder and I put it into the sd card

Please elaborate on this, e.g share commands how you do it.

I am using ubuntu os and I just double click the image and there is an option :restore disk image. I click that and it restore in the sd card.

Is there any solution to fix this? Or can someone help me to find out the reason of this issue?

Can I get some response please?

Hi Terry,
I’m trying to go through the conversation and understand the problem but am finding it hard to follow.
Could you perhaps write the list of steps which describe how to get to the current problem you’re facing in the way it’s possible to copy-paste and reproduce?

Also, please use code formatting when posting messages, and to increase the readability of the logs please try to limit them to the lines where you think you’re seeing the problem instead of pasting the entire logs.

Be Well,
Alan