Building balenaOS from source and connecting to balenaCloud

Hi,
I’m trying to learn about the internals of balenaOS by building it from the source.
My goal is eventually porting balenaOS to a new board: STM32MP157C-DK2.
I successfully built a balenaOS resin-image for MACHINE=raspberrypi3 and got resin-image-raspberrypi3-20190816161432.rootfs.resinos-img.

The only customization I made is switching to overlay2 from aufs for storage driver, because there is a problem building aufs docker images on my host machine (Arch Linux) even if I used resin/yocto-build-env docker for building.

However, after flashing using dd command, although I see systemd messages on the touchscreen on boot, there is nothing happened.

Obviously, I didn’t configure balenaCloud before flashing. This discussion seems to tell how to preload the image. So I preloaded the image using the following command:

balena preload resin-image-raspberrypi3-20190816161432.rootfs.resinos-img --app 1391883 --commit "current"

(btw I already have added two devices in appid 1391883)

But I still cannot get the device connected to the appid 1391883 on balenaCloud. The preloaded app seems to work, though it is partially broken because it doesn’t seems to have environment variables and device variables that are supposed to be pulled from balenaCloud such as device name.

How can I connect this to the cloud? Is there anything I need to do on the cloud app, or on the device?

Hey @kbumsik ,

It’s great you’ve managed to make a custom balenaOS build.
In order to make the device connected to our cloud, it needs its credentials in config.json file stored in the root of the image.
It contains stuff like device ID (in our system), application ID, and API key used for authorization.

You can go “Add new device” window on the dashboard, expand “Advanced” section at the bottom, check “Download configuration file only” box, and press download. Then add this file to your image used to boot the device, flash it, and hopefully see it connected.

BTW, it should work without preloading too, since it will download the app from the backend.

Let us know if it works.

1 Like

Hi @roman-mazur,
It finally works, thank you for help! Now I can proceed to the porting job.
So will balena config generate do the same thing?

Yes, you can generate config.json with balena config generate too. See docs: https://www.balena.io/docs/reference/cli/#config-generate

1 Like

Hi,
I made a new BalenaOS port for a custom board (STM32MP157C-DK2).
The OS itself seems to work well, I mean, I see systemd messages via serial and heartbeat LED flashes.
I replaced config.json in the boot partition with a new one downloaded from BalenaCloud (But there was no appropriate board name for the new board, so I just downloaded config.json as RPi 3)

However, the device doesn’t seems to be registered in BalenaCloud. Is there anything I need to do to connect the new board to BalenaCloud?

Thanks.

Hi,

I’m not aware of anything specific that would be required. The provisioning of the device with balenaCloud is done via the supervisor, so if it starts up and is able to connect to the cloud it should be able to register. Are you able to get a console on the device? If so could you check the logs from balena supervisor?

@afitzek
Hi, thanks for your quick response.
I got the kernel serial, but there doesn’t seem to be logs related to the supervisor:

U-Boot 2018.11-stm32mp-r3 (Mar 16 2020 - 00:25:39 +0000)

CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2)
Board: MB1272 Var2 Rev.C-01
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
NAND:  0 MiB
MMC:   STM32 SDMMC2: 0, STM32 SDMMC2: 1
Loading Environment from EXT4...
** Unable to use mmc 0:auto for loading the env **
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@5800a000
Hit any key to stop autoboot:  0
Scanning mmc devices 0 1 2
** Unable to read file resin-image-flasher **
24 bytes read in 0 ms
Card did not respond to voltage select!
Found resin image on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 4
** Unable to read file resinOS_uEnv.txt **
Loading bootcount.env from mmc device 0 partition 4
** Unable to read file bootcount.env **
No bootcount.env file. Setting bootcount=0 in environment
69823 bytes read in 5 ms (13.3 MiB/s)
11199040 bytes read in 521 ms (20.5 MiB/s)
## Booting kernel from Legacy Image at c2000000 ...
   Image Name:   Linux-4.19.49
   Created:      2020-03-16   0:29:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    11198976 Bytes = 10.7 MiB
   Load Address: c2000040
   Entry Point:  c2000040
   Verifying Checksum ... OK
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   XIP Kernel Image ... OK
   Using Device Tree in place at c4000000, end c40140be

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.49 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Tue Nov 12 09:44:47 UTC 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 configured to run M4 examples
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@0x10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10044000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10044000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@0x30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@0x38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 128 MiB at 0xd8000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x4b0 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu s40524 r8192 d20916 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113536
[    0.000000] Kernel command line: root=PARTUUID=e1c776bf-4a06-47f2-a776-04bc0e8aec19 rootwait rw console=ttySTM0,115200 rootfstype=ext4
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 298952K/458752K available (10240K kernel code, 837K rwdata, 2908K rodata, 8192K init, 217K bss, 28728K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (8192 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 838 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 218 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible 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]  Tasks RCU enabled.
[    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] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000028] Switching to timer-based delay loop, resolution 41ns
[    0.001890] Console: colour dummy device 80x30
[    0.001942] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001965] pid_max: default: 32768 minimum: 301
[    0.002186] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002208] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003218] CPU: Testing write buffer coherency: ok
[    0.003727] CPU0: update cpu_capacity 1024
[    0.003748] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.059778] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.079762] rcu: Hierarchical SRCU implementation.
[    0.103838] EFI services will not be available.
[    0.119910] smp: Bringing up secondary CPUs ...
[    0.200525] CPU1: update cpu_capacity 1024
[    0.200538] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.200767] smp: Brought up 1 node, 2 CPUs
[    0.200796] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.200807] CPU: All CPU(s) started in SVC mode.
[    0.201974] devtmpfs: initialized
[    0.229394] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.229919] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.229953] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.235972] pinctrl core: initialized pinctrl subsystem
[    0.237593] DMI not present or invalid.
[    0.238170] NET: Registered protocol family 16
[    0.243160] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.245773] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.245795] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.246094] Serial: AMBA PL011 UART driver
[    0.248349] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
[    0.248386] stm32-pm-domain pm_domain: subdomain core-power-domain registered
[    0.248402] stm32-pm-domain pm_domain: domains probed
[    0.255329] /soc/interrupt-controller@5000d000: bank0
[    0.255352] /soc/interrupt-controller@5000d000: bank1
[    0.255365] /soc/interrupt-controller@5000d000: bank2
[    0.264309] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.264657] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.264968] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.265264] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.265546] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.265832] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.266099] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.266408] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.266679] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.266862] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.267747] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.267775] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.296719] stm32-mdma 58000000.dma: STM32 MDMA driver registered
[    0.302080] SCSI subsystem initialized
[    0.302864] usbcore: registered new interface driver usbfs
[    0.302961] usbcore: registered new interface driver hub
[    0.303112] usbcore: registered new device driver usb
[    0.303450] pps_core: LinuxPPS API ver. 1 registered
[    0.303466] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.303501] PTP clock support registered
[    0.303782] EDAC MC: Ver: 3.0.0
[    0.304662] Advanced Linux Sound Architecture Driver Initialized.
[    0.306349] clocksource: Switched to clocksource arch_sys_counter
[    0.401038] NET: Registered protocol family 2
[    0.402204] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.402257] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.402324] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.402420] TCP: Hash tables configured (established 4096 bind 4096)
[    0.402563] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.402609] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.402940] NET: Registered protocol family 1
[    0.403880] RPC: Registered named UNIX socket transport module.
[    0.403903] RPC: Registered udp transport module.
[    0.403914] RPC: Registered tcp transport module.
[    0.403925] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.508528] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.510766] Initialise system trusted keyrings
[    0.511184] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.523619] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524495] NFS: Registering the id_resolver key type
[    0.524545] Key type id_resolver registered
[    0.524557] Key type id_legacy registered
[    0.524786] jffs2: version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
[    0.525757] fuse init (API version 7.27)
[    0.529799] NET: Registered protocol family 38
[    0.529829] Key type asymmetric registered
[    0.529843] Asymmetric key parser 'x509' registered
[    0.529950] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.529969] io scheduler noop registered
[    0.529981] io scheduler deadline registered
[    0.530247] io scheduler cfq registered (default)
[    0.530264] io scheduler mq-deadline registered
[    0.530276] io scheduler kyber registered
[    0.537458] stm32-dma 48000000.dma: STM32 DMA driver registered
[    0.620600] STM32 USART driver initialized
[    0.622058] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 24, base_baud = 4000000) is a stm32-usart
[    0.622376] serial serial0: tty port ttySTM3 registered
[    0.622440] stm32-usart 4000e000.serial: interrupt mode used for rx (no dma)
[    0.622458] stm32-usart 4000e000.serial: interrupt mode used for tx (no dma)
[    0.622487] genirq: irq_chip stm32-exti-h did not update eff. affinity mask of irq 60
[    0.623804] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 25, base_baud = 4000000) is a stm32-usart
[    1.553923] console [ttySTM0] enabled
[    1.558196] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    1.564582] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    1.595208] random: fast init done
[    1.598557] brd: module loaded
[    1.605171] random: crng init done
[    1.613646] loop: module loaded
[    1.621939] libphy: Fixed MDIO Bus: probed
[    1.626536] tun: Universal TUN/TAP device driver, 1.6
[    1.630534] CAN device driver interface
[    1.636486] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    1.640877] stm32-dwmac 5800a000.ethernet: no reset control found
[    1.647112] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[    1.664360] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.669947] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    1.674841] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.682188] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.689512] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.696382] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.702626] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.707962] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.715781] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.721890] libphy: stmmac: probed
[    1.735171] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.740415] ehci-platform: EHCI generic platform driver
[    1.746107] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.751754] ohci-platform: OHCI generic platform driver
[    1.757654] usbcore: registered new interface driver usb-storage
[    1.767949] stm32_rtc 5c004000.rtc: rtc core: registered 5c004000.rtc as rtc0
[    1.774056] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    1.779821] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.785468] i2c /dev entries driver
[    1.810508] stm32f7-i2c 40012000.i2c: can't use DMA
[    1.817767] sii902x 0-0039: Failed to get supply 'iovcc': -517
[    1.823137] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    1.850344] stm32f7-i2c 5c002000.i2c: can't use DMA
[    1.862296] stpmic1 1-0033: PMIC Chip Version: 0x10
[    1.871611] BUCK1: supplied by regulator-dummy
[    1.878594] BUCK2: supplied by regulator-dummy
[    1.885103] BUCK3: supplied by regulator-dummy
[    1.892095] BUCK4: supplied by regulator-dummy
[    1.898677] LDO1: supplied by v3v3
[    1.906273] LDO2: supplied by regulator-dummy
[    1.913127] LDO3: supplied by vdd_ddr
[    1.919323] LDO4: supplied by regulator-dummy
[    1.923834] LDO5: supplied by regulator-dummy
[    1.930797] LDO6: supplied by v3v3
[    1.936603] VREF_DDR: supplied by regulator-dummy
[    1.943082] BOOST: supplied by regulator-dummy
[    1.947354] VBUS_OTG: supplied by bst_out
[    1.951256] SW_OUT: supplied by bst_out
[    1.958573] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input0
[    1.968859] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter
[    1.978108] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    1.988875] mmci-pl18x 58005000.sdmmc: Linked as a consumer to regulator.8
[    1.994457] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 44,0 (pio)
[    2.032019] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[    2.036603] mmci-pl18x 58007000.sdmmc: Linked as a consumer to regulator.8
[    2.044261] mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev1 at 0x58007000 irq 45,0 (pio)
[    2.078499] sdhci: Secure Digital Host Controller Interface driver
[    2.083278] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.091331] sdhci: Copyright(c) Pierre Ossman
[    2.095633] Synopsys Designware Multimedia Card Interface Driver
[    2.098401] mmc0: new high speed SDHC card at address 0001
[    2.102307] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.114358] ledtrig-cpu: registered to indicate activity on CPUs
[    2.116089] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.119687] hidraw: raw HID events driver (C) Jiri Kosina
[    2.125996] mmcblk0: mmc0:0001 JB1RT 29.8 GiB
[    2.130171] usbcore: registered new interface driver usbhid
[    2.135607] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.139878] usbhid: USB HID core driver
[    2.146816] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.156054] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    2.158299] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.169505] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.173489] stm32-rproc m4@0: wdg irq registered
[    2.175238]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[    2.178478] remoteproc remoteproc0: m4 is available
[    2.184089] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[    2.192393] stm32-ddr-pmu: probed (ID=0x00140061 VER=0x00000010), DDR@533MHz
[    2.209055] st,stm32-i2s 4000b000.audio-controller: No cache defaults, reading back from HW
[    2.219626] NET: Registered protocol family 10
[    2.255554] Segment Routing with IPv6
[    2.258040] NET: Registered protocol family 17
[    2.262284] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.275322] can: controller area network core (rev 20170425 abi 9)
[    2.281559] NET: Registered protocol family 29
[    2.282692] mmc1: new high speed SDIO card at address 0001
[    2.285819] can: raw protocol (rev 20170425)
[    2.295575] can: broadcast manager protocol (rev 20170425 t)
[    2.301298] can: netlink gateway (rev 20170425) max_hops=1
[    2.307363] Key type dns_resolver registered
[    2.311178] ThumbEE CPU extension supported.
[    2.315273] Registering SWP/SWPB emulation handler
[    2.321118] registered taskstats version 1
[    2.324144] Loading compiled-in X.509 certificates
[    2.354016] reg11: supplied by vdd
[    2.356153] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
[    2.363451] reg18: supplied by vdd
[    2.366957] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
[    2.374096] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.12
[    2.382219] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    2.387904] stm32-display-dsi 5a000000.dsi: Linked as a consumer to regulator.2
[    2.396148] panel-orisetech-otm8009a 5a000000.dsi.0: Linked as a consumer to regulator.8
[    2.405095] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator
[    2.412846] dwc2 49000000.usb-otg: Linked as a consumer to regulator.0
[    2.419222] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator
[    2.556488] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM
[    2.563504] dwc2 49000000.usb-otg: DWC OTG Controller
[    2.567604] dwc2 49000000.usb-otg: new USB bus registered, assigned bus number 1
[    2.574947] dwc2 49000000.usb-otg: irq 38, io mem 0x49000000
[    2.581897] hub 1-0:1.0: USB hub found
[    2.584369] hub 1-0:1.0: 1 port detected
[    2.589984] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller
[    2.594753] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 2
[    2.603611] ehci-platform 5800d000.usbh-ehci: irq 49, io mem 0x5800d000
[    2.636395] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00
[    2.642971] hub 2-0:1.0: USB hub found
[    2.645448] hub 2-0:1.0: 2 ports detected
[    2.652913] sii902x 0-0039: Linked as a consumer to regulator.10
[    2.657642] sii902x 0-0039: Linked as a consumer to regulator.14
[    2.667728] i2c i2c-0: Added multiplexed i2c bus 2
[    2.672340] cs42l51 0-004a: Linked as a consumer to regulator.8
[    2.677155] cs42l51 0-004a: Linked as a consumer to regulator.9
[    2.685666] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01
[    2.693812] asoc-audio-graph-card sound: cs42l51-hifi <-> 4400b004.audio-controller mapping ok
[    2.702206] asoc-audio-graph-card sound: cs42l51-hifi <-> 4400b024.audio-controller mapping ok
[    2.710182] asoc-audio-graph-card sound: i2s-hifi <-> 4000b000.audio-controller mapping ok
[    2.718019] asoc-audio-graph-card sound: ASoC: no DMI vendor name!
[    2.725265] cs42l51 0-004a: ASoC: mux DAC Mux has no paths
[    2.969899] [drm] ltdc hw version 0x00010300 - ready
[    2.973517] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.980102] [drm] Driver supports precise vblank timestamp query.
[    2.987084] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0
[    2.995617] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01 00:00:08 UTC (946684808)
[    3.004349] usb33: supplied by vdd_usb
[    3.007159] vref: supplied by vdd
[    3.010438] vref: disabling
[    3.013066] vdda: disabling
[    3.016251] ALSA device list:
[    3.016430] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    3.018886]   #0: STM32MP1-DK
[    3.043800] Freeing unused kernel memory: 8192K
[    3.047314] Run /init as init process
[    3.238322] hub 2-1:1.0: USB hub found
[    3.241457] hub 2-1:1.0: 4 ports detected
starting version 239
[    5.882544] CP437: Invalid argument
[    5.996116] fsck.fat 4.1 (2017-01-24)
[    5.996116] 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
[    5.996116]  Automatically removing dirty bit.
[    5.996116] Performing changes.
[    5.996116] /dev/disk/by-label/resin-boot: 19 files, 22420/80628 clusters
[    6.049366] resin-rootA: clean, 4640/39936 files, 195696/319488 blocks
[    6.049393]
[    6.093315] resin-rootB: clean, 11/39936 files, 15349/319488 blocks
[    6.093349]
[    6.151884] resin-state: clean, 61/5136 files, 1897/20480 blocks
[    6.151912]
[    6.359061]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[    7.130507] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    7.231612] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    7.815629] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
[    8.128881] systemd[1]: System time before build time, advancing clock.

Welcome to balenaOS 2.38.3+rev5!

[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Journal Socket.
         Starting Resin boot partition mount service...
[  OK  ] Listening on udev Kernel Socket.
         Starting Resin state partition mount service...
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Remount Root and Kernel File Systems...
         Starting Setup Virtual Console...
         Starting Journal Service...
         Starting Apply Kernel Variables...
         Mounting Kernel Debug File System...
         Starting Rollback clear bootcount if altboot crumb is still present...
[  OK  ] Reached target Swap.
         Starting Resin active root partition mount service...
         Mounting FUSE Control File System...
[  OK  ] Listening on initctl Compatibility Named Pipe.
         Mounting Temporary Directory (/tmp)...
[  OK  ] Created slice system-resin\x2dinfo.slice.
[  OK  ] Reached target Slices.
         Mounting Kernel Configuration File System...
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
         Mounting POSIX Message Queue File System...
[  OK  ] Set up automount mnt-sysroot-inactive partition.
[  OK  ] Started Resin boot partition mount service.
[  OK  ] Started Resin state partition mount service.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Rollback clear bootcount if altboot crumb is still present.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Journal Service.
         Starting Create Static Device Nodes in /dev...
         Starting OS configuration device key service...
         Starting Expand resin-data partition...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Containers.
         Mounting /var/volatile...
[  OK  ] Mounted /var/volatile.
         Starting Bind mount volatile /var/lib...
         Starting Bind mount volatile /var/spool...
         Starting Bind mount volatile /srv...
         Starting Bind mount volatile /var/cache...
[  OK  ] Started OS configuration device key service.
[  OK  ] Started Bind mount volatile /var/spool.
[  OK  ] Started Bind mount volatile /var/lib.
[  OK  ] Started Bind mount volatile /srv.
[  OK  ] Started Bind mount volatile /var/cache.
[  OK  ] Reached target Local File Systems.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Bind mount for /etc/openvpn...
         Starting Bind mount for /etc/udev/rules.d...
         Starting Bind mount for /home/root/.docker...
         Starting Bind mount for /var/lib/NetworkManager...
         Starting Bind mount for /etc/ssh/hostkeys...
         Starting Bind mount for /etc/docker...
         Starting Bind mount for /var/lib/chrony...
         Starting Bind mount for /home/root/.rnd...
         Starting Bind mount for /etc/NetworkManager/system-connections...
         Starting Bind mount for /etc/NetworkManager/conf.d...
         Starting Bind mount for /etc/hostname...
         Starting Bind mount for /var/lib/bluetooth...
         Starting Bind mount for /etc/resin-supervisor...
         Starting Bind mount for /var/lib/systemd...
         Starting Bind mount for /home/root/.ssh...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Expand resin-data partition.
[  OK  ] Started Bind mount for /etc/openvpn.
[  OK  ] Started Bind mount for /etc/udev/rules.d.
[  OK  ] Started Bind mount for /home/root/.docker.
[  OK  ] Started Bind mount for /var/lib/NetworkManager.
[  OK  ] Started Bind mount for /etc/ssh/hostkeys.
[  OK  ] Started Bind mount for /etc/docker.
[  OK  ] Started Bind mount for /var/lib/chrony.
[  OK  ] Started Bind mount for /home/root/.rnd.
[  OK  ] Started Bind mount for /etc/NetworkManager/system-connections.
[  OK  ] Started Bind mount for /etc/NetworkManager/conf.d.
[  OK  ] Started Bind mount for /etc/hostname.
[  OK  ] Started Bind mount for /var/lib/bluetooth.
[  OK  ] Started Bind mount for /etc/resin-supervisor.
[  OK  ] Started Bind mount for /var/lib/systemd.
[  OK  ] Started Bind mount for /home/root/.ssh.
         Starting Load/Save Random Seed...
         Starting udev Kernel Device Manager...
         Starting Resin data partition mount service...
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Kernel Device Manager.
[   13.393510] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Started Resin data partition mount service.
         Mounting Docker data mountpoint...
         Mounting resin-data bind mount...
[  OK  ] Mounted Docker data mountpoint.
[  OK  ] Mounted resin-data bind mount.
[  OK  ] Found device /dev/ttySTM0.
[   14.534153] input: generic ft5x06 (11) as /devices/platform/soc/40012000.i2c/i2c-0/0-0038/input/input2
[   14.592601] Bluetooth: Core ver 2.22
[   14.594863] NET: Registered protocol family 31
[   14.599431] Bluetooth: HCI device and connection manager initialized
[   14.614979] Bluetooth: HCI socket layer initialized
[   14.618616] Bluetooth: L2CAP socket layer initialized
[   14.628872] Bluetooth: SCO socket layer initialized
[   14.672715] Bluetooth: HCI UART driver ver 2.3
[   14.675717] Bluetooth: HCI UART protocol H4 registered
[   14.742085] Bluetooth: HCI UART protocol Broadcom registered
[   14.927655] Bluetooth: hci0: BCM: chip id 94
[   14.931754] Bluetooth: hci0: BCM: features 0x2e
[   14.941986] Bluetooth: hci0: BCM43430A1
[   14.944385] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[   14.953791] bluetooth hci0: Direct firmware load for brcm/BCM43430A1.hcd failed with error -2
[   14.961002] Bluetooth: hci0: BCM: Patch brcm/BCM43430A1.hcd not found
[   15.067237] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   15.170734] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   15.176090] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   15.211706] cfg80211: failed to load regulatory.db
[   15.336301] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   15.382401] usbcore: registered new interface driver brcmfmac
[   15.399157] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2
[  OK  ] Started Resin active root partition mount service.
[   16.426882] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Setup Virtual Console...
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Show Plymouth Boot Screen...
         Starting Initialize system clock from RTC...
[   27.706198] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.807805] RTL8211F Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211F Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   27.864303] dwmac4: Master AXI performs any burst length
[   27.875504] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[   27.884621] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   27.904671] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[   27.922010] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   30.373409] Bridge firewalling registered
[   31.360700] IPv6: ADDRCONF(NETDEV_UP): balena0: link is not ready

But the heartbeat is definitely blinking (blinks twice)…and at least I built it with DEVELOPMENT_IMAGE="1", meaning I built it with barys --development-image command.

Is there any commands to get logs from the supervisor?

Can you get to a shell on the device? journalctl -fu resin-supervisor should do the job

Yes. Oh now I got what causes the problem…

root@01c6dca:~# journalctl -fu resin-supervisor
-- Logs begin at Sat 2000-01-01 00:00:29 UTC. --
Mar 16 16:56:46 01c6dca resin-supervisor[1258]: active
Mar 16 16:56:48 01c6dca resin-supervisor[1259]: Container config has not changed
Mar 16 16:56:52 01c6dca resin-supervisor[1259]: Starting system message bus: dbus.
Mar 16 16:56:52 01c6dca resin-supervisor[1259]:  * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Mar 16 16:56:52 01c6dca resin-supervisor[1259]:    ...done.
Mar 16 16:57:05 01c6dca resin-supervisor[1259]: [info]    Supervisor v10.3.7 starting up...
Mar 16 16:57:06 01c6dca resin-supervisor[1259]: (node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Mar 16 16:57:06 01c6dca resin-supervisor[1259]: [debug]   Starting event tracker
Mar 16 16:57:06 01c6dca resin-supervisor[1259]: [debug]   Starting api binder
Mar 16 16:57:06 01c6dca resin-supervisor[1259]: [debug]   Starting logging infrastructure
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: [event]   Event: Supervisor start {}
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: [debug]   Performing database cleanup for container log timestamps
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: [info]    Previous engine snapshot was not stored. Skipping cleanup.
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: [debug]   Handling of local mode switch is completed
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: (node:1) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/mnt/root/mnt/boot/config.txt'
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Mar 16 16:57:07 01c6dca resin-supervisor[1259]: (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Mar 16 16:57:08 01c6dca resin-supervisor[1259]: [error]   LogBackend: server responded with status code: 401

So there is no /mnt/root/mnt/boot/config.txt. Here are directories under /mnt.

root@01c6dca:/mnt# ls -la /mnt
total 7
drwxr-xr-x 6 root root 1024 Mar 16 00:37 .
drwxr-xr-x 1 root root 1024 Mar 16 00:37 ..
drwxr-xr-x 5 root root 1536 Jan  1  1970 boot
drwxr-xr-x 5 root root 1024 Mar 16 00:50 data
drwxr-xr-x 4 root root 1024 Nov 12 15:27 state
drwxr-xr-x 4 root root 1024 Nov 13 10:00 sysroot

root@01c6dca:/mnt# ls -la /mnt/boot
total 11196
drwxr-xr-x 5 root root     1536 Jan  1  1970 .
drwxr-xr-x 6 root root     1024 Mar 16 00:37 ..
-rwxr-xr-x 1 root root      759 Mar 16 00:37 config.json
-rwxr-xr-x 1 root root     2000 Mar 16 00:37 device-type.json
drwxr-xr-x 2 root root      512 Mar 16 00:37 extlinux
-rwxr-xr-x 1 root root       42 Mar 16 00:37 image-version-info
-rwxr-xr-x 1 root root      206 Mar 16 00:37 os-release
-rwxr-xr-x 1 root root       24 Mar 16 00:37 resin-image
-rwxr-xr-x 1 root root      733 Mar 16 00:37 resinos.fingerprint
drwxr-xr-x 2 root root      512 Mar 16 00:37 splash
-rwxr-xr-x 1 root root    46180 Mar 16 00:37 splash.bmp
-rwxr-xr-x 1 root root    68900 Mar 16 00:37 stm32mp157c-dk2-a7-examples.dtb
-rwxr-xr-x 1 root root    69823 Mar 16 00:37 stm32mp157c-dk2-m4-examples.dtb
-rwxr-xr-x 1 root root    68852 Mar 16 00:37 stm32mp157c-dk2.dtb
drwxr-xr-x 2 root root      512 Mar 16 00:37 system-connections
-rwxr-xr-x 1 root root 11199040 Mar 16 00:37 uImage

root@01c6dca:/mnt# ls -la /mnt/sysroot/
total 3
drwxr-xr-x  4 root root 1024 Nov 13 10:00 .
drwxr-xr-x  6 root root 1024 Mar 16 00:37 ..
drwxr-xr-x 12 root root 1024 Mar 16 00:37 active
drwxr-xr-x  2 root root    0 Nov 12 15:27 inactive

root@01c6dca:/mnt# ls -la /mnt/data
total 17
drwxr-xr-x  5 root root  1024 Mar 16 00:50 .
drwxr-xr-x  6 root root  1024 Mar 16 00:37 ..
-rw-r--r--  1 root root     3 Mar 16 00:50 apps.json
drwx--x--x 15 root root  1024 Jan  1  2000 docker
drwx------  2 root root 12288 Nov 13 06:26 lost+found
drwxr-xr-x  3 root root  1024 Mar 16 00:50 resin-data

root@01c6dca:/mnt# ls -la /mnt/state/
total 16
drwxr-xr-x 4 root root  1024 Nov 12 15:27 .
drwxr-xr-x 6 root root  1024 Mar 16 00:37 ..
drwx------ 2 root root 12288 Mar 16 00:37 lost+found
-rw-r--r-- 1 root root    33 Nov 12 15:27 machine-id
-rw-r--r-- 1 root root     0 Nov 12 15:27 remove_me_to_reset
drwxr-xr-x 5 root root  1024 Nov 12 15:27 root-overlay

In this instance, the logs are showing paths inside the container. So make sure that the resin-supervisor container has a host bind for / to /mnt/root :+1:

Assuming this is correct, then you need to make sure that the container has a file at /mnt/root/mnt/boot/config.json :+1:

Hi, thanks for the instruction!

Here is the shell output of the container:

root@01c6dca:~# balena ps -a
CONTAINER ID        IMAGE                               COMMAND             CREATED             STATUS                            PORTS               NAMES
94c272d0cea0        balena/armv7hf-supervisor:v10.3.7   "./entry.sh"        16 hours ago        Up 3 minutes (health: starting)                       resin_supervisor

root@01c6dca:~# balena exec -it 94c272d0cea0 /bin/sh

...now in the container shell...
/usr/src/app # ls -la /mnt/root/mnt/boot/
drwxr-xr-x    5 root     root          1536 Jan  1  1970 .
drwxr-xr-x    6 root     root          1024 Mar 16 00:37 ..
-rwxr-xr-x    1 root     root           759 Mar 16 00:37 config.json
-rwxr-xr-x    1 root     root          2000 Mar 16 00:37 device-type.json
drwxr-xr-x    2 root     root           512 Mar 16 00:37 extlinux
-rwxr-xr-x    1 root     root            42 Mar 16 00:37 image-version-info
-rwxr-xr-x    1 root     root           206 Mar 16 00:37 os-release
-rwxr-xr-x    1 root     root            24 Mar 16 00:37 resin-image
-rwxr-xr-x    1 root     root           733 Mar 16 00:37 resinos.fingerprint
drwxr-xr-x    2 root     root           512 Mar 16 00:37 splash
-rwxr-xr-x    1 root     root         46180 Mar 16 00:37 splash.bmp
-rwxr-xr-x    1 root     root         68900 Mar 16 00:37 stm32mp157c-dk2-a7-examples.dtb
-rwxr-xr-x    1 root     root         69823 Mar 16 00:37 stm32mp157c-dk2-m4-examples.dtb
-rwxr-xr-x    1 root     root         68852 Mar 16 00:37 stm32mp157c-dk2.dtb
drwxr-xr-x    2 root     root           512 Mar 16 00:37 system-connections
-rwxr-xr-x    1 root     root      11199040 Mar 16 00:37 uImage

/usr/src/app # cat /mnt/root/mnt/boot/config.json
{
  "apiEndpoint": "https://api.balena-cloud.com",
  "apiKey": "Ar4nFEy******hidden********TKqre",
  "appUpdatePollInterval": 600000,
  "applicationId": 1391883,
  "applicationName": "Airplay",
  "deltaEndpoint": "https://delta.balena-cloud.com",
  "deviceApiKey": "d802704******hidden********0245fe7543",
  "deviceApiKeys": {
    "api.balena-cloud.com": "d80270******hidden********0245fe7543"
  },
  "deviceType": "raspberrypi3",
  "listenPort": 48484,
  "mixpanelToken": "9ef939e******hidden********2345d70d",
  "pubnubPublishKey": "",
  "pubnubSubscribeKey": "",
  "registryEndpoint": "registry2.balena-cloud.com",
  "userId": 42488,
  "username": "gh_kbumsik",
  "vpnEndpoint": "vpn.balena-cloud.com",
  "vpnPort": 443,
  "uuid": "01c6d******hidden********b9e7cb2"
}

So there is /mnt/root/mnt/boot/config.json that contains the application information. Note that the current board is not "raspberrypi3" but actually is "stm32mp1-disco"because I copied config.json as-is (there is no"stm32mp1-disco" “deviceType” in BalenaCloude because it’s my own custom board).

Back to the supervisor log, it failed to load config.txt, not config.json. What do you think? Could the old meta-balena be a problem? The supervisor version is Supervisor v10.3.7.

The issue could be the the device type is triggering the Supervisor to try and process expected Pi files, like config.txt.

Change your device type in the config.json to your own type and see what happens when it loads then :+1: You might have to remove/restart the supervisor if you do this on a running system.

Right, after changing deviceType as stm32mp1-disco it tries to connect BalenaCloud!
The only problem (and somewhat expected) is that BalenaCloud returns Unknown device type stm32mp1-disco:

Mar 16 18:35:48 01c6dca resin-supervisor[1227]: resin_supervisor
Mar 16 18:35:49 01c6dca resin-supervisor[1320]: active
Mar 16 18:35:51 01c6dca resin-supervisor[1321]: Container config has not changed
Mar 16 18:35:55 01c6dca resin-supervisor[1321]: Starting system message bus: dbus.
Mar 16 18:35:55 01c6dca resin-supervisor[1321]:  * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Mar 16 18:35:55 01c6dca resin-supervisor[1321]:    ...done.
Mar 16 18:36:09 01c6dca resin-supervisor[1321]: [info]    Supervisor v10.3.7 starting up...
Mar 16 18:36:09 01c6dca resin-supervisor[1321]: (node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Mar 16 18:36:09 01c6dca resin-supervisor[1321]: [debug]   Starting event tracker
Mar 16 18:36:09 01c6dca resin-supervisor[1321]: [debug]   Starting api binder
Mar 16 18:36:09 01c6dca resin-supervisor[1321]: [debug]   Starting logging infrastructure
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [event]   Event: Supervisor start {}
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [debug]   Performing database cleanup for container log timestamps
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [info]    Previous engine snapshot was not stored. Skipping cleanup.
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [debug]   Handling of local mode switch is completed
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [debug]   Connectivity check enabled: true
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [debug]   Starting periodic check for IP addresses
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [info]    Reporting initial state, supervisor version and API info
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [debug]   VPN status path exists.
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [info]    Waiting for connectivity...
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: Unhandled rejection Error: EACCES: permission denied, open '/sys/class/leds/heartbeat/brightnes'
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [info]    Attempting to load preloaded apps...
Mar 16 18:36:10 01c6dca resin-supervisor[1321]: [info]    Starting API server
Mar 16 18:36:11 01c6dca resin-supervisor[1321]: [info]    Applying target state
Mar 16 18:36:11 01c6dca resin-supervisor[1321]: [error]   LogBackend: server responded with status code: 401
Mar 16 18:36:11 01c6dca resin-supervisor[1321]: [debug]   Ensuring device is provisioned
Mar 16 18:36:11 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap {}
Mar 16 18:36:11 01c6dca resin-supervisor[1321]: [info]    New device detected. Provisioning...
Mar 16 18:36:12 01c6dca resin-supervisor[1321]: [debug]   Finished applying target state
Mar 16 18:36:12 01c6dca resin-supervisor[1321]: [success] Device state apply success
Mar 16 18:36:12 01c6dca resin-supervisor[1321]: [debug]   Supervisor API listening on allowed interfaces only
Mar 16 18:36:12 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"Unknown device type stm32mp1-disco","stack":"Error: Unknown device type stm32mp1-disco\n    at /usr/src/app/dist/app.js:288:64470\n    at c.h (/usr/src/app/dist/app.js:293:159914)\n    }
Mar 16 18:36:42 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap {}
Mar 16 18:36:42 01c6dca resin-supervisor[1321]: [info]    New device detected. Provisioning...
Mar 16 18:36:43 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"Unknown device type stm32mp1-disco","stack":"Error: Unknown device type stm32mp1-disco\n    at /usr/src/app/dist/app.js:288:64470\n    at c.h (/usr/src/app/dist/app.js:293:159914)\n    }
Mar 16 18:37:13 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap {}
Mar 16 18:37:13 01c6dca resin-supervisor[1321]: [info]    New device detected. Provisioning...
Mar 16 18:37:14 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"Unknown device type stm32mp1-disco","stack":"Error: Unknown device type stm32mp1-disco\n    at /usr/src/app/dist/app.js:288:64470\n    at c.h (/usr/src/app/dist/app.js:293:159914)\n    }
Mar 16 18:37:44 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap {}
Mar 16 18:37:44 01c6dca resin-supervisor[1321]: [info]    New device detected. Provisioning...
Mar 16 18:37:45 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"Unknown device type stm32mp1-disco","stack":"Error: Unknown device type stm32mp1-disco\n    at /usr/src/app/dist/app.js:288:64470\n    at c.h (/usr/src/app/dist/app.js:293:159914)\n    }
Mar 16 18:38:15 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap {}
Mar 16 18:38:15 01c6dca resin-supervisor[1321]: [info]    New device detected. Provisioning...
Mar 16 18:38:16 01c6dca resin-supervisor[1321]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"Unknown device type stm32mp1-disco","stack":"Error: Unknown device type stm32mp1-disco\n    at /usr/src/app/dist/app.js:288:64470\n    at c.h (/usr/src/app/dist/app.js:293:159914)\n    }

So I set the "deviceType": "generic-armv7ahf" as listed here, but I still got the same “Unknown device type” error. By the way generic-armv7ahf is not even listed in BalenaCloud, was its support dropped?

Now I fake it as "deviceType": "beaglebone-black", and it works! Except it got a weird 401 error (it very much looks like a server API error though) but that error doesn’t seems to matter much.

-- Logs begin at Sat 2000-01-01 00:00:29 UTC. --
[   66.195531] IPv6: ADDRCONF(NETDEV_UP): br-1c1ce95e7593: link is not ready
Mar 16 18:52:18 01c6dca resin-supervisor[1393]: active
Mar 16 18:52:21 01c6dca resin-supervisor[1394]: Container config has not changed
Mar 16 18:52:26 01c6dca resin-supervisor[1394]: Starting system message bus: dbus.
Mar 16 18:52:26 01c6dca resin-supervisor[1394]:  * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Mar 16 18:52:27 01c6dca resin-supervisor[1394]:    ...done.
Mar 16 18:52:40 01c6dca resin-supervisor[1394]: [info]    Supervisor v10.3.7 starting up...
Mar 16 18:52:40 01c6dca resin-supervisor[1394]: (node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Mar 16 18:52:40 01c6dca resin-supervisor[1394]: [debug]   Starting event tracker
Mar 16 18:52:40 01c6dca resin-supervisor[1394]: [debug]   Starting api binder
Mar 16 18:52:40 01c6dca resin-supervisor[1394]: [debug]   Starting logging infrastructure
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [event]   Event: Supervisor start {}
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [debug]   Performing database cleanup for container log timestamps
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [info]    Previous engine snapshot was not stored. Skipping cleanup.
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [debug]   Handling of local mode switch is completed
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [debug]   Connectivity check enabled: true
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [debug]   Starting periodic check for IP addresses
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [info]    Reporting initial state, supervisor version and API info
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [debug]   VPN status path exists.
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: [info]    Waiting for connectivity...
Mar 16 18:52:41 01c6dca resin-supervisor[1394]: Unhandled rejection Error: EACCES: permission denied, open '/sys/class/leds/heartbeat/brightnes'
Mar 16 18:52:42 01c6dca resin-supervisor[1394]: [debug]   Skipping preloading
Mar 16 18:52:42 01c6dca resin-supervisor[1394]: [info]    Starting API server
Mar 16 18:52:42 01c6dca resin-supervisor[1394]: [info]    Applying target state
Mar 16 18:52:42 01c6dca resin-supervisor[1394]: [debug]   Ensuring device is provisioned
Mar 16 18:52:43 01c6dca resin-supervisor[1394]: [debug]   Starting current state report
Mar 16 18:52:43 01c6dca resin-supervisor[1394]: [debug]   Starting target state poll
Mar 16 18:52:44 01c6dca resin-supervisor[1394]: [debug]   Supervisor API listening on allowed interfaces only
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/8a15cebe14056961df95dbf4754358ea@sha256:c2d8ed2e9c4659fe7f393fd6b31417d167770099d0c3f89278f21e6e4968bf5f","appId":1391883,"serviceId":228941,"serviceName":"ledmatrix","imageId":1278460}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/dfcec2dba6164c75df3ca6c816591c0a@sha256:d361e19dd5262b4c2f51d7095e713f106ab32934e52978a83a72ceed16d86066","appId":1391883,"serviceId":228942,"serviceName":"network","imageId":1278462,"}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/9c74fda5305ba3b92ef6199d069b05d5@sha256:e11eb24184511e266d2e0a0645d890ec282b2e96c27c5ab1a4e9f0388e297a05","appId":1391883,"serviceId":228943,"serviceName":"airplay","imageId":1278463,"}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/b26c1378a23f73a608b4b7712be62ceb@sha256:3292e1ee4342cea27235f3c7a2cc2159bcff7da634b06dc31e76e60bfa21f252","appId":1391883,"serviceId":228944,"serviceName":"spotify","imageId":1278464,"}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/98453ea6346ff553a06ee174dd03886c@sha256:d2cfc45ce598693b77aaa8a0c42501f3524eb2a8ba53049fe54e85c5f278b194","appId":1391883,"serviceId":228945,"serviceName":"mopidy","imageId":1278465,"r}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/025f1b65f92c74f0dfef04183089e305@sha256:2065e5ddebf35e5524510e9a24d1b55fe60b4688603256f30194a8109614b9a3","appId":1391883,"serviceId":228946,"serviceName":"supervisor","imageId":127846}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/21fca4ca5b77309af5f856c1b1d2fae0@sha256:0e613a589d2568e36570370d608871e23e985e3fbb8ef382393091532372bd30","appId":1391883,"serviceId":228947,"serviceName":"ws","imageId":1278468,"relea}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/3d66b78e31a2d0da30a32d0078186fbf@sha256:f9d6bb311f97ddd47be3aafd9140e37a4afac6189a8151f307256dd6acf93824","appId":1391883,"serviceId":280826,"serviceName":"proxy","imageId":1278461,"re}
Mar 16 18:52:46 01c6dca resin-supervisor[1394]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/c53dd401da8969f65f6a5d59498550d4@sha256:b74e9e27e8509deaf7141a19732143adcda635cf0c57ca78eb6912bae7d5976a","appId":1391883,"serviceId":281294,"serviceName":"file-manager","imageId":1278}
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]   Non-200 response from the API! Status code: 401 - message: t
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]         at /usr/src/app/dist/app.js:465:5539
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at c (/usr/src/app/dist/app.js:9:75680)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at A._settlePromiseFromHandler (/usr/src/app/dist/app.js:293:133124)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at A._settlePromise (/usr/src/app/dist/app.js:293:133924)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at A._settlePromise0 (/usr/src/app/dist/app.js:293:134623)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at A._settlePromises (/usr/src/app/dist/app.js:293:135975)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at A._fulfill (/usr/src/app/dist/app.js:293:134993)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at U._callback (/usr/src/app/dist/app.js:103:92989)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at U.t._callback.t.callback.t.callback (/usr/src/app/dist/app.js:525:5327)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at U.emit (events.js:189:13)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at U.<anonymous> (/usr/src/app/dist/app.js:525:18140)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at U.emit (events.js:189:13)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:525:16982)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at Object.onceWrapper (events.js:277:13)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at IncomingMessage.emit (events.js:194:15)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at endReadableNT (_stream_readable.js:1125:12)
Mar 16 18:52:47 01c6dca resin-supervisor[1394]: [error]       at process._tickCallback (internal/process/next_tick.js:63:19)
Mar 16 18:52:51 01c6dca resin-supervisor[1394]: [info]    Internet Connectivity: OK
Mar 16 18:52:51 01c6dca resin-supervisor[1394]: Unhandled rejection Error: EACCES: permission denied, open '/sys/class/leds/heartbeat/brightnes'
Mar 16 18:53:26 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/3d66b78e31a2d0da30a32d0078186fbf@sha256:f9d6bb311f97ddd47be3aafd9140e37a4afac6189a8151f307256dd6acf93824","appId":1391883,"serviceId":280826,"serviceName":"proxy","imageId":1278461,"release}
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]   Non-200 response from the API! Status code: 401 - message: t
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]         at /usr/src/app/dist/app.js:465:5539
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at c (/usr/src/app/dist/app.js:9:75680)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at A._settlePromiseFromHandler (/usr/src/app/dist/app.js:293:133124)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at A._settlePromise (/usr/src/app/dist/app.js:293:133924)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at A._settlePromise0 (/usr/src/app/dist/app.js:293:134623)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at A._settlePromises (/usr/src/app/dist/app.js:293:135975)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at A._fulfill (/usr/src/app/dist/app.js:293:134993)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at U._callback (/usr/src/app/dist/app.js:103:92989)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at U.t._callback.t.callback.t.callback (/usr/src/app/dist/app.js:525:5327)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at U.emit (events.js:189:13)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at U.<anonymous> (/usr/src/app/dist/app.js:525:18140)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at U.emit (events.js:189:13)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:525:16982)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at Object.onceWrapper (events.js:277:13)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at IncomingMessage.emit (events.js:194:15)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at endReadableNT (_stream_readable.js:1125:12)
Mar 16 18:56:26 01c6dca resin-supervisor[1394]: [error]       at process._tickCallback (internal/process/next_tick.js:63:19)
Mar 16 18:57:35 01c6dca resin-supervisor[1394]: [api]     GET /v1/healthy 200 - 128.354 msrvisor[1394]: [info]    Internet Connectivity: OK
Mar 16 18:52:51 01c6dca resin-supervisor[1394]: Unhandled rejection Error: EACCES: permission denied, open '/sys/class/leds/heartbeat/brightnes'
Mar 16 18:53:26 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/3d66b78e31a2d0da30a32d0078186fbf@sha256:f9d6bb311f97ddd47be3aafd9140e37a4afac6189a8151f307256dd6acf93824","appId":1391883,"serviceId":280826,"serviceName":"proxy","imageId":1278461,"release}
Mar 16 19:00:03 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/c53dd401da8969f65f6a5d59498550d4@sha256:b74e9e27e8509deaf7141a19732143adcda635cf0c57ca78eb6912bae7d5976a","appId":1391883,"serviceId":281294,"serviceName":"file-manager","imageId":1278466,"}
Mar 16 19:01:05 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/b26c1378a23f73a608b4b7712be62ceb@sha256:3292e1ee4342cea27235f3c7a2cc2159bcff7da634b06dc31e76e60bfa21f252","appId":1391883,"serviceId":228944,"serviceName":"spotify","imageId":1278464,"relea}
Mar 16 19:02:40 01c6dca resin-supervisor[1394]: [debug]   Attempting container log timestamp flush...
Mar 16 19:02:40 01c6dca resin-supervisor[1394]: [debug]   Container log timestamp flush complete
Mar 16 19:02:42 01c6dca resin-supervisor[1394]: [api]     GET /v1/healthy 200 - 73.721 ms
Mar 16 19:06:54 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/21fca4ca5b77309af5f856c1b1d2fae0@sha256:0e613a589d2568e36570370d608871e23e985e3fbb8ef382393091532372bd30","appId":1391883,"serviceId":228947,"serviceName":"ws","imageId":1278468,"releaseId"}
Mar 16 19:07:23 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/025f1b65f92c74f0dfef04183089e305@sha256:2065e5ddebf35e5524510e9a24d1b55fe60b4688603256f30194a8109614b9a3","appId":1391883,"serviceId":228946,"serviceName":"supervisor","imageId":1278467,"re}
Mar 16 19:07:49 01c6dca resin-supervisor[1394]: [api]     GET /v1/healthy 200 - 149.883 ms
Mar 16 19:07:56 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/dfcec2dba6164c75df3ca6c816591c0a@sha256:d361e19dd5262b4c2f51d7095e713f106ab32934e52978a83a72ceed16d86066","appId":1391883,"serviceId":228942,"serviceName":"network","imageId":1278462,"relea}
Mar 16 19:08:51 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/9c74fda5305ba3b92ef6199d069b05d5@sha256:e11eb24184511e266d2e0a0645d890ec282b2e96c27c5ab1a4e9f0388e297a05","appId":1391883,"serviceId":228943,"serviceName":"airplay","imageId":1278463,"relea}
Mar 16 19:10:45 01c6dca resin-supervisor[1394]: [event]   Event: Image downloaded {"image":{"name":"registry2.balena-cloud.com/v2/98453ea6346ff553a06ee174dd03886c@sha256:d2cfc45ce598693b77aaa8a0c42501f3524eb2a8ba53049fe54e85c5f278b194","appId":1391883,"serviceId":228945,"serviceName":"mopidy","imageId":1278465,"releas}
Mar 16 19:10:46 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228947,"serviceName":"ws","releaseId":974208}}
Mar 16 19:10:46 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228942,"serviceName":"network","releaseId":974208}}
Mar 16 19:10:46 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":280826,"serviceName":"proxy","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228942,"serviceName":"network","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228942,"serviceName":"network","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228947,"serviceName":"ws","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228947,"serviceName":"ws","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":280826,"serviceName":"proxy","releaseId":974208}}
Mar 16 19:10:48 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":280826,"serviceName":"proxy","releaseId":974208}}
Mar 16 19:11:00 01c6dca resin-supervisor[1394]: [event]   Event: Service started {"service":{"appId":1391883,"serviceId":228942,"serviceName":"network","releaseId":974208}}
Mar 16 19:11:01 01c6dca resin-supervisor[1394]: [event]   Event: Service started {"service":{"appId":1391883,"serviceId":228947,"serviceName":"ws","releaseId":974208}}
Mar 16 19:11:01 01c6dca resin-supervisor[1394]: [event]   Event: Service started {"service":{"appId":1391883,"serviceId":280826,"serviceName":"proxy","releaseId":974208}}
Mar 16 19:11:04 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":281294,"serviceName":"file-manager","releaseId":974208}}
Mar 16 19:11:04 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228943,"serviceName":"airplay","releaseId":974208}}
Mar 16 19:11:05 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228944,"serviceName":"spotify","releaseId":974208}}
Mar 16 19:11:05 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228945,"serviceName":"mopidy","releaseId":974208}}
Mar 16 19:11:05 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228946,"serviceName":"supervisor","releaseId":974208}}
Mar 16 19:11:05 01c6dca resin-supervisor[1394]: [event]   Event: Service install {"service":{"appId":1391883,"serviceId":228941,"serviceName":"ledmatrix","releaseId":974208}}
Mar 16 19:11:06 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":281294,"serviceName":"file-manager","releaseId":974208}}
Mar 16 19:11:06 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":281294,"serviceName":"file-manager","releaseId":974208}}
Mar 16 19:11:07 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228943,"serviceName":"airplay","releaseId":974208}}
Mar 16 19:11:07 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228943,"serviceName":"airplay","releaseId":974208}}
Mar 16 19:11:08 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228944,"serviceName":"spotify","releaseId":974208}}
Mar 16 19:11:08 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228944,"serviceName":"spotify","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228945,"serviceName":"mopidy","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228945,"serviceName":"mopidy","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228941,"serviceName":"ledmatrix","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228941,"serviceName":"ledmatrix","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service installed {"service":{"appId":1391883,"serviceId":228946,"serviceName":"supervisor","releaseId":974208}}
Mar 16 19:11:10 01c6dca resin-supervisor[1394]: [event]   Event: Service start {"service":{"appId":1391883,"serviceId":228946,"serviceName":"supervisor","releaseId":974208}}
Mar 16 19:11:32 01c6dca resin-supervisor[1394]: [event]   Event: Service started {"service":{"appId":1391883,"serviceId":281294,"serviceName":"file-manager","releaseId":974208}}
[ 1238.878099] systemd-journald[29]: Received request to flush runtime journal from PID 1
[ 1241.098223] systemd-journald[29]: Received request to flush runtime journal from PID 1
[ 1247.146544] systemd-journald[29]: Received request to flush runtime journal from PID 1


...works OK...

What is the recommended deviceType for a new board, since generic-armv7ahf is not a valid type?

Anyway, thank you very much for your help! :+1:

Firstly, congrats on this! It’s great to see people engaging at this level and showing the power of the balena ecosystem.

The 401 errors you see, I think are related to a bug in the Supervisor which is fixed in the latest master but isn’t yet released. Since you’re building your balenaOS image yourself I would suggest bumping up to the latest released version v10.6.27.

I am not sure what device type you should use, but I believe that our docs mention running a custom device. If not then we should find a way to make this work for you, and others in a similar position. We will get back to you on that.

1 Like

Hi again,

We’ve actually raised an internal issue for this to be discussed, and we’ll get back to you as soon as we have more information.

Best regards,

Heds

1 Like

@richbayliss It was my first time to play around Yocto-based Linux but porting BalenaOS was a great resource to learn Yocto :slight_smile: It’s now time to bump the version, since I got the old version working.

@hedss Thanks, it will be great if third-party boards can
interact with BalenaCloud easier.