Failed to launch app after AF update


#1

Hello

My app worked before updating to 17.11. Now I keep getting this error when I launch the app.

Jan  6 02:33:18 | supervisor[13570]/supervisor T=main | app.c CreateFileLink() 1485 | Could not stat file at '/sys/devices/i2c-0/0-0068/iio:device0/in_accel_scale'. No such file or directory
Jan  6 02:33:18 | supervisor[13570]/supervisor T=main | app.c CreateFileLink() 1588 | Failed to create link at '/sys/devices/i2c-0/0-0068/iio:device0/in_accel_scale' in app 'httpGet2'.

I believe these errors come from the sensorsComponent that I am reusing from the RedSensorToCloud app in https://github.com/mangOH/mangOH.

Any idea how I can fix it and still be able to access the sensors? Thank you!


#2

Are you using a WP85 module in your mangOH Red? If you run lsmod, do you see the 3-bmi160 and 4-bmi160-i2c modules?


#3

I am using a WP7502 and this is the output, doesn’t seem to have a 3-bmi160 or 4-bmi160-i2c

root@swi-mdm9x15:~# lsmod
Not tainted
softdog 2127 1 - Live 0xbf133000
xt_hl 1246 4 - Live 0xbf12f000
nf_conntrack_ipv6 9233 1 - Live 0xbf128000
nf_defrag_ipv6 13110 1 nf_conntrack_ipv6, Live 0xbf120000
ip6table_filter 1192 1 - Live 0xbf11c000
ip6_tables 10446 1 ip6table_filter, Live 0xbf115000
nf_conntrack_ipv4 14153 1 - Live 0xbf10d000
nf_defrag_ipv4 1405 1 nf_conntrack_ipv4, Live 0xbf109000
xt_tcpudp 2873 6 - Live 0xbf105000
ipv6 290588 16 nf_conntrack_ipv6,nf_defrag_ipv6,[permanent], Live 0xbf0a9000
xt_conntrack 2895 2 - Live 0xbf0a5000
nf_conntrack 67603 3 nf_conntrack_ipv6,nf_conntrack_ipv4,xt_conntrack, Live 0xbf08a000
iptable_filter 1248 1 - Live 0xbf086000
ip_tables 11230 1 iptable_filter, Live 0xbf07f000
x_tables 13448 7 xt_hl,ip6table_filter,ip6_tables,xt_tcpudp,xt_conntrack,iptable_filter,ip_tables, Live 0xbf076000
msm_sdcc 62586 0 - Live 0xbf060000
usb_storage 41365 0 - Live 0xbf04c000
sd_mod 29567 0 - Live 0xbf03f000
scsi_mod 133355 2 usb_storage,sd_mod, Live 0xbf00d000
unix 29432 929 - Live 0xbf000000

#4

I tried again with my WP7607-1 and got the same errors. Running lsmod only gives me not tainted.

Perhaps the sensors directory has moved?


#5

You need to build and install the system based on the mangOH SDEF so that the bmi160 drivers are installed. See the mangOH getting started document.


#6

Thank you! That worked and solved my problem.

EDIT: It worked only with my 7502. I tried the 7607-1 and I got the same errors. lsmod shows

root@swi-mdm9x28:~# lsmod
    Tainted: G  
9_mangoh_red_dv5 8906 0 - Live 0xbf0bd000 (O)
4_bmi160_i2c 1427 0 - Live 0xbf0b9000 (O)
3_bmp280_i2c 2631 0 - Live 0xbf0b5000 (O)
3_bmi160 5516 1 4_bmi160_i2c, Live 0xbf0b0000 (O)
2_bmp280 9576 1 3_bmp280_i2c, Live 0xbf08f000 (O)
1_mt7697serial 8018 0 - Live 0xbf089000 (O)
1_mt7697q 20073 0 - Live 0xbf07f000 (O)
0_ltc294x 5690 0 - Live 0xbf07a000 (O)
0_iot_slot 14750 0 - Live 0xbf072000 (O)
0_cp2130 20447 1 1_mt7697q, Live 0xbf069000 (O)
0_bq24296 10900 0 - Live 0xbf062000 (O)

I’m using the toolchain here https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-6,-d-,1-components