# Issues with Technexion PICO-PI-IMX7 Yocto environment

**URL:** <https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938>\
**Category:** General Discussions\
**Created:** [January 24, 2019, 12:31pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938 "2019-01-24T12:31:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 24, 2019, 12:31pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/1 "2019-01-24T12:31:19Z")

</div>

printer@mercedes:~/Dev/IMX/Picoboard/mender-nxp/build$ MACHINE=imx7d-pico bitbake core-image-base  
Unable to create ‘pyshtables.py’  
[Errno 13] Permission denied: ‘pyshtables.py’  
ERROR: Unable to acquire lock ‘/home/sprinter/Dev/IMX/Picoboard/mender-nxp/build/bitbake.lock’, directory is not writable  
sprinter@mercedes:~/Dev/IMX/Picoboard/mender-nxp/build$  
getting this error

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [January 24, 2019, 12:32pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/2 "2019-01-24T12:32:47Z")

</div>

> [@Technexion PICO-PI-IMX7](https://hub.mender.io/t/technexion-pico-pi-imx7/136/5):
>
> ERROR: Unable to acquire lock ‘/home/sprinter/Dev/IMX/Picoboard/mender-nxp/build/bitbake.lock’, directory is not writable

Seems a bit odd that you do not have permissions to create files in build directory. Did you setup environment with sudo or a different users?

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 24, 2019, 12:53pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/3 "2019-01-24T12:53:47Z")

</div>

I set up with sudo …my system wont run the source setup…x without sudo

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [January 24, 2019, 12:57pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/4 "2019-01-24T12:57:13Z")

</div>

> I set up with sudo …my system wont run the source setup…x without sudo

Then that is the problem to solve first. It is not allowed to use sudo in any of the commands.

I do not know what would case this command:

```
source setup-environment nxp

```

To get permission errors.

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 24, 2019, 1:01pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/5 "2019-01-24T13:01:47Z")

</div>

> [@Technexion PICO-PI-IMX7](https://hub.mender.io/t/technexion-pico-pi-imx7/136/8):
>
> source setup-environment nxp

sorry man  
sprinter@mercedes:~/Dev/IMX/Picoboard$ source setup-environment nxp  
Configuring for imx6qsabresd  
mkdir: cannot create directory ‘/home/sprinter/Dev/IMX/Picoboard/nxp/conf’: Permission denied  
Error: Cannot write to /home/sprinter/Dev/IMX/Picoboard/nxp, perhaps try sourcing with a writable path? i.e. . oe-init-build-env ~/my-build  
sprinter@mercedes:~/Dev/IMX/Picoboard$

it has something to do with user accounts …i cant run source without sudo ,maybe i need to add user account or something

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [January 24, 2019, 1:05pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/6 "2019-01-24T13:05:17Z")

</div>

> [@Technexion PICO-PI-IMX7](https://hub.mender.io/t/technexion-pico-pi-imx7/136/9):
>
> sprinter@mercedes:~/Dev/IMX/Picoboard$ source setup-environment nxp  
> Configuring for imx6qsabresd

Hm, it looks to me like your are not running the `setup-environment` file provided by [meta-mender-community](https://github.com/mendersoftware/meta-mender-community/blob/sumo/scripts/setup-environment)

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [January 24, 2019, 1:27pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/7 "2019-01-24T13:27:13Z")

</div>

What do the following commands show?

```
$ id
$ ls -l /home/sprinter/Dev /home/sprinter/Dev/IMX \
      /home/sprinter/Dev/IMX/Picoboard \
      /home/sprinter/Dev/IMX/Picoboard/nxp
```

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 24, 2019, 1:29pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/8 "2019-01-24T13:29:59Z")

</div>

> [@Technexion PICO-PI-IMX7](https://hub.mender.io/t/technexion-pico-pi-imx7/136/1):
>
> MACHINE=imx7d-pico bitbake core-image-base

I had problems with my user permissions  
sudo chown $USER:$USER ~ -R

did the quick fix …now its compiling smoothly thank you everyone

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 24, 2019, 1:30pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/9 "2019-01-24T13:30:48Z")

</div>

I had problems with my user permissions  
sudo chown $USER:$USER ~ -R

did the quick fix …now its compiling smoothly thank you everyone

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 30, 2019, 1:40pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/10 "2019-01-30T13:40:29Z")

</div>

> [@Technexion PICO-PI-IMX7](https://hub.mender.io/t/technexion-pico-pi-imx7/136/1):
>
> sudo ./imx\_usb u-boot.img

sprinter@mercedes:~/Dev/IMX/Picoboard/mender-nxp/build$ sudo …/…/imx\_usb\_loader/imx\_usb …/build/tmp/deploy/images/imx7d-pico/u-boot.img  
config file \<…/…/imx\_usb\_loader//imx\_usb.conf\>  
vid=0x066f pid=0x3780 file\_name=mx23\_usb\_work.conf  
vid=0x15a2 pid=0x004f file\_name=mx28\_usb\_work.conf  
vid=0x15a2 pid=0x0052 file\_name=mx50\_usb\_work.conf  
vid=0x15a2 pid=0x0054 file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x0061 file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x0063 file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x0071 file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x007d file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x0080 file\_name=mx6ull\_usb\_work.conf  
vid=0x1fc9 pid=0x0128 file\_name=mx6\_usb\_work.conf  
vid=0x15a2 pid=0x0076 file\_name=mx7\_usb\_work.conf  
vid=0x1fc9 pid=0x0126 file\_name=mx7ulp\_usb\_work.conf  
vid=0x15a2 pid=0x0041 file\_name=mx51\_usb\_work.conf  
vid=0x15a2 pid=0x004e file\_name=mx53\_usb\_work.conf  
vid=0x15a2 pid=0x006a file\_name=vybrid\_usb\_work.conf  
vid=0x066f pid=0x37ff file\_name=linux\_gadget.conf  
vid=0x1b67 pid=0x4fff file\_name=mx6\_usb\_sdp\_spl.conf  
vid=0x0525 pid=0xb4a4 file\_name=mx6\_usb\_sdp\_spl.conf  
vid=0x1fc9 pid=0x012b file\_name=mx8mq\_usb\_work.conf  
no matching USB device found

help me why its not recognizing data

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [January 30, 2019, 2:00pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/11 "2019-01-30T14:00:51Z")

</div>

Can you disconnect and reconnect the USB OTG cable while viewing the system logs on your build host? I’m not sure which specific file for your host but on Ubuntu 18 it’s /var/log/syslog by default. It seems like your board is not being enumerated on the USB bus on your host.

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 30, 2019, 2:10pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/12 "2019-01-30T14:10:07Z")

</div>

I am able to list the device via lsusb and dmesg  
sprinter@mercedes:~/Dev/IMX/Picoboard/mender-nxp/build$ lsusb  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
Bus 001 Device 004: ID 04ca:7053 Lite-On Technology Corp.  
Bus 001 Device 003: ID 138a:003f Validity Sensors, Inc. VFS495 Fingerprint Reader  
Bus 001 Device 002: ID 8087:0a2b Intel Corp.  
Bus 001 Device 109: ID 18d1:4ee7 Google Inc.  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
sprinter@mercedes:~/Dev/IMX/Picoboard/mender-nxp/build$

---

<div class="post-metadata">

**Author:** ![BOBRAPHTONE](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bobraphtone/32/171_2.png) [@BOBRAPHTONE](https://hub.mender.io/u/BOBRAPHTONE)\
**Post date:** [January 30, 2019, 2:14pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/13 "2019-01-30T14:14:31Z")

</div>

I had earlier flashed android things on it using googles tool and I can view see it when i view the logs  
more /var/log/syslog or dmesg ,lsusb

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [January 30, 2019, 3:02pm UTC](https://hub.mender.io/t/issues-with-technexion-pico-pi-imx7-yocto-environment/938/14 "2019-01-30T15:02:00Z")

</div>

Is the format of your imx\_usb.conf correct, as it doesnt match the format i’m using?

#vid:pid, config\_file

0x15a2:0x0054, iw-spl-usb.conf

0x0525:0xb4a4, iw-uboot-usb.conf
