Secure Provisioning Tool: GdkPixbuf:ERROR | Aborted (core dumped)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Secure Provisioning Tool: GdkPixbuf:ERROR | Aborted (core dumped)

Jump to solution
4,690 Views
microcris
Contributor III

Hello!

I'm getting the following application output:

(securep:33145): Gtk-WARNING **: 15:31:31.257: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
GdkPixbuf:ERROR:../gdk-pixbuf/io-ico.c:566:gdk_pixbuf__ico_image_begin_load: assertion failed: (size_func != NULL)
Aborted (core dumped)

Does anyone know how to solve this?

My system info:

Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.12.0-3-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15,5 GiB of RAM
Graphics Processor: GeForce GTX 1050/PCIe/SSE2

0 Kudos
1 Solution
4,685 Views
marek-trmac
NXP Employee
NXP Employee

Hi microcris,

ubuntu 20.04 is not supported yet in v2.1. It is planned to be supported in next version (v3.0).

Please mind, supported operating systems are described in ReleaseNotes.txt

Regards
Marek Trmac

Regards,
Marek

View solution in original post

8 Replies
4,459 Views
liborukropec
NXP Employee
NXP Employee

Hi @microcris ,

I have no idea what's wrong there. As Marek wrote, we test Ubuntu LTS, currently 20.04. You have KDE and also 21.04, so it might be very different. I can give it a try if I find a workaround or if I can see if it works or can be made working for the next Secure Provisionint V3.1.

I'll let you know in a week what are my observations.

 

EDIT: Regarding the blhost, can you share the target device and what connection method are you using? USB or Serial?

Regards,

Libor

0 Kudos
4,449 Views
microcris
Contributor III

It is USB

 

Here it the build command output:

/opt/nxp/MCUX_Provi_v3/bin/securep -v -w /home/cris/secure_provisioning/MIMXRT --device MIMXRT1064 --boot-device Winbond_W25Q32JV --boot-type unsigned build --source-image "/home/cris/workspace/Eclipse/i.MX/MIMXRT1064/Projects/SPACCC/Release/SPACCC.elf"  
INFO: [root] workspace /home/cris/secure_provisioning/MIMXRT
INFO: [root] Loading settings from workspace: NO_SETTINGS
DEBUG: [src.logic.build.imageparser] ImageParser created: "/home/cris/workspace/Eclipse/i.MX/MIMXRT1064/Projects/SPACCC/Release/SPACCC.elf"
DEBUG: [src.logic.build.imageparser] image src=/home/cris/workspace/Eclipse/i.MX/MIMXRT1064/Projects/SPACCC/Release/SPACCC.elf in ImageFormat.ELF format
INFO: [src.logic.build.imageparser] Detected ARM ELF format
INFO: [src.logic.build.imageparser] Detected elf file build with MCUIDE
Executing script /home/cris/secure_provisioning/MIMXRT/gen_scripts/transform_image_lnx.sh
/opt/nxp/MCUX_Provi_v3/bin/tools/ide_utils/mcuxpresso/linux/amd64 ~
~
DEBUG: [src.utils.batchexecute] Execution took 0.0 seconds
DEBUG: [src.logic.build.imageparser] Converted ELF to S-Record format: /home/cris/secure_provisioning/MIMXRT/source_images/SPACCC.srec
Build script generated: build_image_lnx.sh
Build script generated: build_image_win.bat
Build script generated: build_image_mac.sh
Executing script /home/cris/secure_provisioning/MIMXRT/build_image_lnx.sh
mkdir: /opt/nxp/MCUX_Provi_v3/bin/libselinux.so.1: no version information available (required by mkdir)
/opt/nxp/MCUX_Provi_v3/bin/tools/elftosb/linux/amd64 ~
/opt/nxp/MCUX_Provi_v3/bin/tools/elftosb/linux/amd64/elftosb -f imx -V -c /home/cris/secure_provisioning/MIMXRT/bd_files/imx_application_gen_lnx.bd -o /home/cris/secure_provisioning/MIMXRT/bootable_images/SPACCC.bin /home/cris/secure_provisioning/MIMXRT/source_images/SPACCC.srec
~
       Section: 0x0
iMX bootable image generated successfully
elftosb succeeded
DEBUG: [src.utils.batchexecute] Execution took 0.0 seconds
Image generated: bootable_images/SPACCC_nopadding.bin

And here it is the write command output:

/opt/nxp/MCUX_Provi_v3/bin/securep -v -w /home/cris/secure_provisioning/MIMXRT --device MIMXRT1064 --boot-device Winbond_W25Q32JV --boot-type unsigned --usb 0x1FC9 0x0135 write --source-image bootable_images/SPACCC_nopadding.bin
INFO: [root] workspace /home/cris/secure_provisioning/MIMXRT
INFO: [root] Loading settings from workspace: NO_SETTINGS
Read fuses script generated: gen_scripts/read_fuses_lnx.sh
Executing script /home/cris/secure_provisioning/MIMXRT/gen_scripts/read_fuses_lnx.sh
### Check presence of FlashLoader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- get-property 1 0
~
ERROR:SPSDK: Cannot find USB device '0x15a2:0x0073'
blhost failed
FlashLoader is not running yet, download and run it
### Check communication with target bootloader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/sdphost -u 0x1FC9,0x0135 -j -- error-status
~
{
  "command": "error-status",
  "response": [
     4042322160
  ],
  "status": {
     "description": "1450735702 (0x56787856) Hab Is Disabled (Unlocked)",
     "value": 1450735702
  }
}
sdphost succeeded, HAB disabled
### Write FlashLoader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/sdphost -u 0x1FC9,0x0135 -j -- write-file 0x20000000 /opt/nxp/MCUX_Provi_v3/bin/data/targets/MIMXRT1064/ivt_flashloader.bin
~
Status (HAB mode) = 1450735702 (0x56787856) Hab Is Disabled (Unlocked).
sdphost succeeded, HAB disabled
### Start FlashLoader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/sdphost -u 0x1FC9,0x0135 -j -- jump-address 0x20000400
~
Status (HAB mode) = 1450735702 (0x56787856) Hab Is Disabled (Unlocked).
sdphost succeeded, HAB disabled
### Waiting FlashLoader to be initialized for 3 seconds ###
### Timeout wait value can be adjusted from Preferences ###
### Check presence of BootLoader/FlashLoader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- get-property 1 0
~
{
  "command": "get-property",
  "response": [
     1258422528
  ],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Read fuse: 0x460 ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -- efuse-read-once 0x6
~
Response status = 0 (0x0) Success.
Response word 1 = 4 (0x4)
Response word 2 = 8 (0x8)
blhost succeeded
### Success ###
DEBUG: [src.utils.batchexecute] Execution took 4.1 seconds
The following fuses status was detected:
Fuse request: 0x460 |= 0x0 (mask: 0x2); current value=0x8; status=MATCHES
SUMMARY: Detected status of fuses for write operation: all fuse(s) match with requested value(s)
Write script generated: write_image_lnx.sh
Write script generated: write_image_win.bat
Write script generated: write_image_mac.sh
Executing script /home/cris/secure_provisioning/MIMXRT/write_image_lnx.sh
### Parse input arguments ###
### Check presence of FlashLoader ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- get-property 1 0
~
{
  "command": "get-property",
  "response": [
     1258422528
  ],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Configure target memory using options on address 0x2000 ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- fill-memory 0x2000 4 0xC0000007 word
~
{
  "command": "fill-memory",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- fill-memory 0x2004 4 0x00000000 word
~
{
  "command": "fill-memory",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- configure-memory 9 0x2000
~
{
  "command": "configure-memory",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Erase memory before writing image ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- flash-erase-region 0x70000000 61040 9
~
{
  "command": "flash-erase-region",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Use tag 0xF000000F to notify FlashLoader to program FlexSPI NOR config block to the start of device ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- fill-memory 0x3000 4 0xF000000F word
~
{
  "command": "fill-memory",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Program configuration block ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- configure-memory 9 0x3000
~
{
  "command": "configure-memory",
  "response": [],
  "status": {
     "description": "0 (0x0) Success.",
     "value": 0
  }
}
blhost succeeded
### Write image ###
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk ~
/opt/nxp/MCUX_Provi_v3/bin/tools/spsdk/blhost -u 0x15A2,0x0073 -j -- write-memory 0x70001000 /home/cris/secure_provisioning/MIMXRT/bootable_images/SPACCC_nopadding.bin 9
~
GENERAL ERROR:unpack_from requires a buffer of at least 4 bytes for unpacking 4 bytes at offset 0 (actual buffer size is 2)
blhost failed
DEBUG: [src.utils.batchexecute] Execution took 2.3 seconds
Script failed with return code: [2]ERROR
Secure Provisioning Tool exited with an error. See above for errors.

 

0 Kudos
4,686 Views
marek-trmac
NXP Employee
NXP Employee

Hi microcris,

ubuntu 20.04 is not supported yet in v2.1. It is planned to be supported in next version (v3.0).

Please mind, supported operating systems are described in ReleaseNotes.txt

Regards
Marek Trmac

Regards,
Marek
4,679 Views
microcris
Contributor III

Thank you @marek-trmac for your reply.

It is indeed a compatibility problem. 
Just to prove your point, I replaced all pixbuf packages in my Ubuntu installation by the ones provided by Ubuntu 18.04 and it made Secure Provisioning Tool work properly. Obviously replacing my system pixbuf packages by older ones breaks a lot of stuff and it is no solution. 

I'm going to try to manually run the scripts that are in "tools_scritps" folder to prepare the flash image and load int in to may device. It would be nice if you could provide a FlashLoader package for LPC55XX like you do for i.mxRT10XX.

0 Kudos
4,670 Views
liborukropec
NXP Employee
NXP Employee

Hi @microcris,

you could try to run the securep in the terminal (see ./securep --help) this way the GUI won't be required and thus won't fail. I guess it will be better than manually play with the tools_scripts because you will be ready to use the GUI fully with the next 3.0 version. Also you might try to install Ubuntu 18.04 LTS in the VM if you have to stick with KDE.

 

Regards,

Libor

4,473 Views
microcris
Contributor III

Hello @liborukropec!

Sorry for the late reply.

Thank you for the suggestion. I did like you said and it was working great.

Now, I updated it to V3.0, the GdkPixbuf:ERROR continues and I have a new error:

GENERAL ERROR:unpack_from requires a buffer of at least 4 bytes for unpacking 4 bytes at offset 0 (actual buffer size is 2)
blhost failed
Script failed with return code: [2]ERROR
Secure Provisioning Tool exited with an error. See above for errors.

Do you have any clue about this?

0 Kudos
4,450 Views
marek-trmac
NXP Employee
NXP Employee

Hi microcris,

1. It seems this is different issue that original post, so it would be good to create new post for it.

2. It would be good if you can provide more details how  to reproduce the issue.

Regards
Marek 

Regards,
Marek
0 Kudos
4,446 Views
microcris
Contributor III

Sure. I'm going to create a new topic with my latest post.

0 Kudos