cancel
Showing results for 
Search instead for 
Did you mean: 

Issue building image for Azure IOT on STM32MP157C-DK2

EBelt.1
Associate II

I'm build an image for Azure IOT on STM32MP157C-DK2, following this tutorial: https://wiki.st.com/stm32mpu/wiki/How_to_integrate_Azure_IoT_Edge_on_OpenSTLinux

but I have follow error:

| error: attributes are not yet allowed on `if` expressions

|  --> /usr/src/debug/iotedge-daemon/1.1.6-r0/iotedge-1.1.6/vendor/sysinfo/src/utils.rs:27:5

|  |

| 27 |   #[allow(clippy::identity_conversion)]

|  |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

| error: aborting due to previous error

| error: could not compile `sysinfo`.

There is a possible solution?

Looking a similar issues, it seem a problem of version of Rust: https://github.com/Frederick888/git-credential-keepassxc/issues/12

There is a way to udate the Rust version used for build?

11 REPLIES 11
EBelt.1
Associate II

Thank you.

I successfully build with latest version of iotedge with follow commits:

meta-virtualization = dunfell 9e9868ef3d6e5da7f0ecd0680fcd69324593842 (latest)

meta-iotedge   = 6840cf2afb51b4f2c535a05d5635736652f664f7 (latest)

meta-rust      = 4b151fa804b1e78af445037e4136c133ada40a0 (rust == 1.47)

Just a one more question:

I changed ROOTFS_PARTITION_SIZE in /layers/meta-st/meta-st-stm32mp/conf/machine/include/st-machine-common-stm32mp.inc in order to increase the size of system partition (i.e. 8 gb), but once created the flash that change has not effect (the root partition is always 1.9 gb):

Filesystem   Size Used Avail Use% Mounted on

devtmpfs    147M   0 147M  0% /dev

/dev/mmcblk0p6 1.9G 1.6G 222M 88% /

tmpfs      214M  64K 214M  1% /dev/shm

tmpfs      214M 8.8M 205M  5% /run

tmpfs      214M   0 214M  0% /sys/fs/cgroup

tmpfs      214M  52K 214M  1% /tmp

/dev/mmcblk0p4  58M  14M  40M 27% /boot

tmpfs      214M 192K 214M  1% /var/volatile

/dev/mmcblk0p5  15M 6.8M 6.7M 51% /vendor

/dev/mmcblk0p7  13G 1.6G  11G 14% /usr/local

tmpfs      43M   0  43M  0% /run/user/0

how can I change the size of root partition?

Hello @EBelt.1​ 

Once again a good piece of news!

About your questions related to the increase of the ROOTFS_PARTITION_SIZE, do you also update IMAGE_ROOTFS_MAXSIZE in the same file so its value is bigger or equal to ROOTFS_PARTITION_SIZE?

Hope it helps.

Best regards,

--JM