TEZI autoinstall with AVAHI lockup,TEZI Colibri iMX6 AVAHI autoinstall lockup

I am trying to set up a system for unattended flashing over ethernet using the instructions for unattended flashing over ethernet and auto installation.

The TEZI 2.0b6 image is on a flash drive, with the appropriate boot.scr. TEZI will start up, but then hangs on ‘Reloading images from the network’ and never proceeds. Below is a log from one instance of this:

    USB Gadget: RNDIS enabled
    Trying to read configblock from "mmcblk0boot0" at -512
    Running Command:  "/usr/bin/avahi-set-host-name" ("colibri-imx6-XXXXXXXX")
    Output: "Failed to create host name resolver: The requested operation is invalid because redundant\n"
    Finished with exit code: 1
    USB Gadget: RNDIS enabled
    "AVAHI_CLIENT_S_RUNNING"
    Using the 'xdg-shell' shell integration
    "New service 'Custom Toradex Easy Installer Feed' of type _tezi._tcp in domain local on protocol IPv6."
    Scanning media initially...
    "New service 'Custom Toradex Easy Installer Feed' of type _tezi._tcp in domain local on protocol IPv4."
    "AVAHI_BROWSER_CACHE_EXHAUSTED"
    Adding zeroconf feed "Custom Toradex Easy Installer Feed"
    Reading images from media "/dev/sda1"
    Umounted external device /run/media/src
    Network up in 0.103 seconds
    Downloading image list from  "http://vulcan.local:80/tezi/image_list.json"
    Tezi Server lookup successfully
    Downloading image list from  "http://tezi.toradex.com/image_list.json"
    Downloading image list from  "http://tezi.toradex.com/image_list_3rdparty.json"
    Emit abort...
    Emit abort...

‘Emit abort…’ repeats many times, then stops.

The auto install seems to always work if we stop the AVAHI service on the image-host, and do not start it until TEZI has completed loading images from the network. I have also tried using the serial connection to kill the tezi application and restart it using the -autoinstall switch. This will occasionally stop at one 'Emit abort…" and not proceed, but will typically successfully perform the auto install.

When the installation works the logs show this:

Downloading image list from  "http://vulcan.local:80/tezi/image_list.json"
Emit abort...
Progress: ""
Available slides ("/var/volatile/marketing//slides_vga/Embedded-Linux-Splash-Screen_V3_01.png", "/var/volatile/marketing//slides_vga/Embedded-Linux-Splash-Screen_V3_02.png", "/var/volatile/marketing//slides_vga/Embedded-Linux-Splash-Scre                                                                                en_V3_03.png", "/var/volatile/marketing//slides_vga/Embedded-Linux-Splash-Screen_V3_04.png", "/var/volatile/marketing//slides_vga/Embedded-Linux-Splash-Screen_V3_05.png")
Processing Image: "MY CUSTOM Image"
Executing: /bin/sh ("/var/volatile/tezi_/prepare.sh", "0017", "V1.1A", "10687190", "/var/volatile/tezi_")
Env: ("PATH=/bin:/usr/bin:/sbin:/usr/sbin")
Output: ""
Finished with exit code: 0
Processing blockdev:  "mmcblk0"
Partition: 0 Type: "0c"
Partition: 1 Type: "83"
New partition table:
"start=8192,size=49152,type=0c\nstart=57344,size=7462912,type=83\n"
Running Command:  "/usr/sbin/sfdisk" ("-uS", "--label", "dos", "/dev/mmcblk0")
Progress: "Writing partition table"
"AVAHI_BROWSER_ALL_FOR_NOW"
sfdisk done, output: "Checking that no-one is using this disk right now ... OK\n\nDisk /dev/mmcblk0: 3.6 GiB, 3850371072 bytes, 7520256 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes                                                                                \nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: dos\nDisk identifier: 0x572c1595\n\nOld situation:\n\nDevice         Boot Start     End Sectors  Size Id Type\n/dev/mmcblk0p1       8192   57343   49152   24M  c W95 FA                                                                                T32 (LBA)\n/dev/mmcblk0p2      57344 7520255 7462912  3.6G 83 Linux\n\n>>> Created a new DOS disklabel with disk identifier 0x5961844d.\n/dev/mmcblk0p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 24 MiB.\nPartition #                                                                                1 contains a vfat signature.\n/dev/mmcblk0p2: Created a new partition 2 of type 'Linux' and of size 3.6 GiB.\nPartition #2 contains a ext4 signature.\n/dev/mmcblk0p3: Done.\n\nNew situation:\nDisklabel type: dos\nDisk identifier: 0x59618                                                                                44d\n\nDevice         Boot Start     End Sectors  Size Id Type\n/dev/mmcblk0p1       8192   57343   49152   24M  c W95 FAT32 (LBA)\n/dev/mmcblk0p2      57344 7520255 7462912  3.6G 83 Linux\n\nThe partition table has been altered.\nCallin                                                                                g ioctl() to re-read partition table.\nSyncing disks.\n"
Progress: "Zero'ing start of each partition"
{installation continues....}

I found one conversation on a post about auto-installs where another user reported a similar issue. It seems the only solution they had was to not use autoinstall, which is not useful for my use case.

I have yet to try using the DNS redirect method for providing my image_list.json, is that method more reliable?

I don’t understand your setup. Do you have a module with TEZI flashed to eMMC? If not - what do yoo have flashed? Does TEZI boots OK when system is not connected to network? Could you attach a full boot log captured from debug UART?

Alex,

We have about 6 Colibri iMX6 modules that are being used for development. We are flashing an image based on the Reference-Minimal-Image-colibri-imx6 to the module.

We are occasionally re-flashing an updated image onto the modules. Additionally I am testing the workflow that will be used when our final image will be flashed onto our production units.

When we re-flash a module that no longer has tezi installed on the eMMC, we are connecting to the debug port and using puTTY to interrupt the bootloader and then loading tezi via the OTG port.

An alternate method we have used to get a previously flashed module to boot into tezi again is:

  1. Create a FAT32 formatted USB drive with boot.scr and tezi.itb from the Colibri iMX6 2.0b6 package.
  2. While the module is running the flashed development image connect the USB drive to the carrier board.
  3. Delete boot.scr from the /boot partition
  4. Reboot the module
  5. The module finds the boot.scr on the USB drive and loads the tezi image also found on the drive.

We have our image server set up on our network using apache to serve the image_list.json, and our development image.

Using either of the above methods to boot to tezi, with the AVAHI service disabled on our image server I am able to flash an image to the module by connecting to the module with VNC (both via ethernet and the USB RNDIS conneciton) then manually adding the address to the image server in ‘feeds’.

We are able to successfully install the image from this point both with and without autoinstall.

Using either method to boot to tezi, with the AVAHI service disable on our image server. If we wait until after tezi has loaded the Toradex demo images, and then enable the AVAHI service on our image server. The image will begin installing on the module with no further interaction.

The issue occurs when the AVAHI service is already enabled on the image server before the module is booted into tezi.
When we connect to the module via VNC, screen shows an empty image list, the mouse cursor does move around the screen but it is a watch, the spinner at the bottom left next to ‘Reloading images from the network…’ is not moving, we are unable to interact with any of the buttons with the mouse or using keyboard shortcuts, and nothing further happens.

Below is a screenshot of the vnc connection.

Uploading the logs as text files never completes. Below are the output of dmesg, and the contents of /var/volatile/tezi.log when the module is frozen.

output of dmesg:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Mon Nov 2 09:36:35 UTC 2020
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=50c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu s32460 r8192 d20788 u61440
[    0.000000] pcpu-alloc: s32460 r8192 d20788 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttymxc0,115200 quiet video=DPI-1:640x480M@60D video=HDMI-A-1:640x480M@60D rootfstype=squashfs root=/dev/ram autoinstall
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 482700K/524288K available (7168K kernel code, 459K rwdata, 3212K rodata, 1024K init, 393K bss, 41588K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76450001
[    0.000000] random: get_random_bytes called from start_kernel+0x241/0x3a8 with crng_init=0
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000006] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000022] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.001282] Console: colour dummy device 80x30
[    0.001305] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001317] pid_max: default: 32768 minimum: 301
[    0.001516] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001526] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002396] CPU: Testing write buffer coherency: ok
[    0.002427] CPU0: Spectre v2: using BPIALL workaround
[    0.003199] Setting up static identity map for 0x10100000 - 0x10100054
[    0.003343] rcu: Hierarchical SRCU implementation.
[    0.006071] EFI services will not be available.
[    0.006413] smp: Bringing up secondary CPUs ...
[    0.007083] CPU1: Spectre v2: using BPIALL workaround
[    0.007204] smp: Brought up 1 node, 2 CPUs
[    0.007213] SMP: Total of 2 processors activated (12.00 BogoMIPS).
[    0.007217] CPU: All CPU(s) started in SVC mode.
[    0.007605] devtmpfs: initialized
[    0.015861] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.016116] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016132] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.016285] pinctrl core: initialized pinctrl subsystem
[    0.017134] NET: Registered protocol family 16
[    0.017952] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018917] cpuidle: using governor ladder
[    0.018944] cpuidle: using governor menu
[    0.019083] CPU identified as i.MX6DL, silicon rev 1.4
[    0.026134] vdd1p1: supplied by regulator-dummy
[    0.026616] vdd3p0: supplied by regulator-dummy
[    0.027077] vdd2p5: supplied by regulator-dummy
[    0.027558] vddarm: supplied by regulator-dummy
[    0.028031] vddpu: supplied by regulator-dummy
[    0.028518] vddsoc: supplied by regulator-dummy
[    0.038173] No ATAGs?
[    0.038265] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.038272] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.039300] imx6dl-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.049135] cryptd: max_cpu_qlen set to 1000
[    0.064222] mxs-dma 110000.dma-apbh: initialized
[    0.066039] vgaarb: loaded
[    0.066482] SCSI subsystem initialized
[    0.066706] libata version 3.00 loaded.
[    0.066938] usbcore: registered new interface driver usbfs
[    0.066992] usbcore: registered new interface driver hub
[    0.067042] usbcore: registered new device driver usb
[    0.067185] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[    0.067394] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[    0.070356] stmpe-i2c 0-0041: stmpe811 detected, chip id: 0x811
[    0.160671] i2c i2c-0: IMX I2C adapter registered
[    0.161391] i2c i2c-1: IMX I2C adapter registered
[    0.161620] pps_core: LinuxPPS API ver. 1 registered
[    0.161626] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.161643] PTP clock support registered
[    0.162798] clocksource: Switched to clocksource mxc_timer1
[    0.162982] VFS: Disk quotas dquot_6.6.0
[    0.163057] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.171585] NET: Registered protocol family 2
[    0.172223] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.172252] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.172296] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.172361] TCP: Hash tables configured (established 4096 bind 4096)
[    0.172440] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.172465] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.172661] NET: Registered protocol family 1
[    0.173244] PCI: CLS 0 bytes, default 64
[    0.173429] Trying to unpack rootfs image as initramfs...
[    0.173653] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
[    0.254084] Freeing initrd memory: 23132K
[    0.254439] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.254665] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.257544] Initialise system trusted keyrings
[    0.257724] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.263423] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.263559] ntfs: driver 2.1.32 [Flags: R/W].
[    0.263966] fuse: init (API version 7.31)
[    0.306901] Key type asymmetric registered
[    0.306909] Asymmetric key parser 'x509' registered
[    0.307061] io scheduler mq-deadline registered
[    0.307068] io scheduler kyber registered
[    0.309546] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.314424] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[    0.314439] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware
[    0.316378] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[    0.317071] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.317080] pfuze100-regulator 0-0008: pfuze100 found.
[    0.334514] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 26, base_baud = 5000000) is a IMX
[    0.334571] printk: console [ttymxc0] enabled
[    0.335657] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 68, base_baud = 5000000) is a IMX
[    0.336399] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 69, base_baud = 5000000) is a IMX
[    0.344094] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.344100] [drm] No driver support for vblank timestamp query.
[    0.344260] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[    0.344371] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[    0.344419] [drm] forcing DPI-1 connector on
[    0.344437] imx-drm display-subsystem: bound disp0 (ops imx_pd_ops)
[    0.344584] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.31a with HDCP (DWC HDMI 3D TX PHY)
[    0.344937] dwhdmi-imx 120000.hdmi: registered DesignWare HDMI I2C bus driver
[    0.345628] [drm] forcing HDMI-A-1 connector on
[    0.345660] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
[    0.346183] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0
[    0.354519] random: fast init done
[    0.361312] imx-drm display-subsystem: HDMI-A-1: EDID is invalid:
[    0.361321]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361326]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361330]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361335]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361339]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361343]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361348]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.361352]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.397831] Console: switching to colour frame buffer device 80x30
[    0.417238] imx-drm display-subsystem: fb0: imx-drmdrmfb frame buffer device
[    0.417284] imx-ipuv3 2400000.ipu: IPUv3H probed
[    0.426016] brd: module loaded
[    0.434672] loop: module loaded
[    0.437969] spi_imx 2014000.spi: probed
[    0.438679] libphy: Fixed MDIO Bus: probed
[    0.440237] pps pps0: new PPS source ptp0
[    0.441174] libphy: fec_enet_mii_bus: probed
[    0.442365] fec 2188000.ethernet eth0: registered PHC device 0
[    0.442666] usbcore: registered new interface driver asix
[    0.442717] usbcore: registered new interface driver ax88179_178a
[    0.442751] usbcore: registered new interface driver cdc_ether
[    0.442842] usbcore: registered new interface driver cdc_eem
[    0.442882] usbcore: registered new interface driver net1080
[    0.442914] usbcore: registered new interface driver rndis_host
[    0.442947] usbcore: registered new interface driver cdc_subset
[    0.442979] usbcore: registered new interface driver zaurus
[    0.443035] usbcore: registered new interface driver cdc_ncm
[    0.443039] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.443069] ehci-pci: EHCI PCI platform driver
[    0.443112] ehci-mxc: Freescale On-Chip EHCI Host driver
[    0.443981] usbcore: registered new interface driver cdc_acm
[    0.443985] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.444020] usbcore: registered new interface driver cdc_wdm
[    0.444078] usbcore: registered new interface driver usb-storage
[    0.444154] usbcore: registered new interface driver usbserial_generic
[    0.444181] usbserial: USB Serial support registered for generic
[    0.444210] usbcore: registered new interface driver ftdi_sio
[    0.444232] usbserial: USB Serial support registered for FTDI USB Serial Device
[    0.444266] usbcore: registered new interface driver pl2303
[    0.444286] usbserial: USB Serial support registered for pl2303
[    0.446006] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[    0.446254] imx_usb 2184200.usb: No over current polarity defined
[    0.450054] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    0.450093] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    0.472844] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    0.473094] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.473105] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.473112] usb usb1: Product: EHCI Host Controller
[    0.473119] usb usb1: Manufacturer: Linux 5.4.61 ehci_hcd
[    0.473126] usb usb1: SerialNumber: ci_hdrc.0
[    0.473676] hub 1-0:1.0: USB hub found
[    0.473720] hub 1-0:1.0: 1 port detected
[    0.475402] usbcore: registered new interface driver usbtouchscreen
[    0.475501] stmpe-ts stmpe-ts: DMA mask not set
[    0.485455] input: stmpe-ts as /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-0/0-0041/stmpe-ts/input/input0
[    0.489036] rtc-ds1307 1-0068: registered as rtc0
[    0.490356] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc1
[    0.490500] i2c /dev entries driver
[    0.492255] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    0.493150] sdhci: Secure Digital Host Controller Interface driver
[    0.493154] sdhci: Copyright(c) Pierre Ossman
[    0.493157] Synopsys Designware Multimedia Card Interface Driver
[    0.493554] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.494573] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[    0.527486] mmc1: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    0.561852] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    0.564345] caam 2100000.caam: Entropy delay = 3200
[    0.625137] caam 2100000.caam: Instantiated RNG4 SH0
[    0.685898] caam 2100000.caam: Instantiated RNG4 SH1
[    0.685911] caam 2100000.caam: device ID = 0x0a16010000000100 (Era 4)
[    0.685919] caam 2100000.caam: job rings = 2, qi = 0
[    0.694738] caam algorithms registered in /proc/crypto
[    0.700055] caam_jr 2101000.jr0: registering rng-caam
[    0.701160] usbcore: registered new interface driver usbhid
[    0.701165] usbhid: USB HID core driver
[    0.704271] NET: Registered protocol family 10
[    0.705185] Segment Routing with IPv6
[    0.705285] mip6: Mobile IPv6
[    0.705290] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.706431] NET: Registered protocol family 17
[    0.706454] NET: Registered protocol family 15
[    0.707998] Registering SWP/SWPB emulation handler
[    0.709645] registered taskstats version 1
[    0.709651] Loading compiled-in X.509 certificates
[    0.732297] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[    0.777525] mmc0: new DDR MMC card at address 0001
[    0.778665] mmcblk0: mmc0:0001 Q2J54A 3.59 GiB
[    0.779205] mmcblk0boot0: mmc0:0001 Q2J54A partition 1 16.0 MiB
[    0.779731] mmcblk0boot1: mmc0:0001 Q2J54A partition 2 16.0 MiB
[    0.780143] mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB, chardev (247:0)
[    0.782998]  mmcblk0: p1 p2
[    0.905320] input: gpio-keys as /devices/soc0/gpio-keys/input/input1
[    0.907787] rtc-ds1307 1-0068: setting system clock to 2021-03-24T18:39:44 UTC (1616611184)
[    0.908429] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    0.914920] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    0.915718] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.915734] cfg80211: failed to load regulatory.db
[    0.916102] RAMDISK: squashfs filesystem found at block 0
[    0.916124] RAMDISK: Loading 23125KiB [1 disk] into ram disk... \
[    0.942921] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    0.943047] \
[    1.037922] \
[    1.132869] \
[    1.144778] usb 1-1: New USB device found, idVendor=04b4, idProduct=6570, bcdDevice=32.99
[    1.144790] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.144798] usb 1-1: Product: USB2.0 Hub
[    1.145051] /
[    1.145673] hub 1-1:1.0: USB hub found
[    1.145924] -
[    1.146142] hub 1-1:1.0: 4 ports detected
[    1.146213] done.
[    1.344827] VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
[    1.345515] devtmpfs: mounted
[    1.346502] Freeing unused kernel memory: 1024K
[    1.383450] Run /sbin/init as init process
[    1.462905] usb 1-1.3: new high-speed USB device number 3 using ci_hdrc
[    1.616582] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0749, bcdDevice=15.32
[    1.616594] usb 1-1.3: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[    1.616601] usb 1-1.3: Product: USB3.0 Card Reader
[    1.616608] usb 1-1.3: Manufacturer: Generic
[    1.616616] usb 1-1.3: SerialNumber: 000000001532
[    1.617750] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    1.623180] scsi host0: usb-storage 1-1.3:1.0
[    1.657751] udevd[198]: starting version 3.2.7
[    1.659886] random: udevd: uninitialized urandom read (16 bytes read)
[    1.660126] random: udevd: uninitialized urandom read (16 bytes read)
[    1.660219] random: udevd: uninitialized urandom read (16 bytes read)
[    1.694818] udevd[202]: starting eudev-3.2.7
[    2.060771] Micrel KSZ8041 2188000.ethernet-1:00: attached PHY driver [Micrel KSZ8041] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[    2.634464] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   1532 PQ: 0 ANSI: 6
[    3.061142] sd 0:0:0:0: [sda] 15759360 512-byte logical blocks: (8.07 GB/7.51 GiB)
[    3.076357] sd 0:0:0:0: [sda] Write Protect is off
[    3.076371] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[    3.083607] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.084143] urandom_read: 5 callbacks suppressed
[    3.084151] random: weston-keyboard: uninitialized urandom read (4 bytes read)
[    3.088881] random: weston-keyboard: uninitialized urandom read (4 bytes read)
[    3.162122]  sda: sda1
[    3.172996] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.153229] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    4.153258] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.402824] random: crng init done
[    9.562595] using random self ethernet address
[    9.562603] using random host ethernet address
[    9.564384] usb0: HOST MAC 00:14:2d:ff:ff:fe
[    9.564460] usb0: MAC 00:14:2d:ff:ff:ff
[    9.875352] configfs-gadget gadget: high-speed config #1: RNDIS
[    9.875568] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[    9.973647] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    9.973679] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[   10.002872] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[   10.008121] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   10.008136] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.008144] usb usb2: Product: EHCI Host Controller
[   10.008151] usb usb2: Manufacturer: Linux 5.4.61 ehci_hcd
[   10.008158] usb usb2: SerialNumber: ci_hdrc.1
[   10.009087] hub 2-0:1.0: USB hub found
[   10.009153] hub 2-0:1.0: 1 port detected

tezi.log

/var/volatile # cat tezi.log
Failed to load client buffer integration: wayland-egl

USB Gadget: RNDIS enabled
Trying to read configblock from "mmcblk0boot0" at -512
Running Command:  "/usr/bin/avahi-set-host-name" ("colibri-imx6-10687190")
Finished with exit code: 0
avahi-set-host-name:
""
USB Gadget: RNDIS enabled
"AVAHI_CLIENT_S_REGISTERING"
Using the 'xdg-shell' shell integration
Scanning media initially...
Reading images from media "/dev/sda1"
Umounted external device /run/media/src
Network up in 0.106 seconds
RNDIS up in 0.19 seconds
Tezi Server lookup successfully
Downloading image list from  "http://tezi.toradex.com/image_list.json?PID8=00171100"
Downloading image list from  "http://tezi.toradex.com/image_list_3rdparty.json?PID8=00171100"
"AVAHI_CLIENT_S_RUNNING"
"AVAHI_BROWSER_CACHE_EXHAUSTED"
"New service 'Custom Toradex Easy Installer Feed' of type _tezi._tcp in domain local on protocol IPv6."
"New service 'Custom Toradex Easy Installer Feed' of type _tezi._tcp in domain local on protocol IPv4."
Adding zeroconf feed "Custom Toradex Easy Installer Feed"
Downloading image list from  "http://vulcan.local:80/tezi/image_list.json"
Emit abort...

When you have an AVAHI enabled and an image set up for autoinstall, will begin to install such an image automatically. You will not see an image list in that case. Could you check a TEZI log located at /var/volatile/tezi.log ?

Alex, it appears my comment with the logs was in moderation and has been approved now.

Hi @sarakeen

Could you please provide some details about your HTTP server setup?

And could you please share (as an attachment) json file of your image?

@alex.tx ,

I haven’t been able to successfully attach a non-image file to a post.

I’m able to select the files and press upload. The upload progress text flashes at the top of the next screen, then it stays on the screen in the photo with the white bar filling animation.

I’ve tried disabling u-block origin, and ghostery extensions, and used Firefox, Edge, and Chrome from my desktop and Android with the same behavior. Do you have any alternate suggestions for attaching the files?

2666-upload-2.png

Your picture is not accessible. I did try to attach a file and looks like it works as expected attached file

Alex,

Uploading appears to be working for me now.

Attached are the image_list.json, the image json file, and the apache server config for the tezi site.

link text

@alex.tx have you been able to review the files I attached?

We found some race condition in Toradex Easy Installer when a auto install starts, it emits abort signal to stop all image downloading/polling, but apparently avahi image downloader itself not get stopped and keep trying install new images, the ends up into a loop. The R&D team is working on fix. However priority is not very high. We will update this ticket as soon as fix will be available.