zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

what is wrong with my arduino101?

Open qiaojingx opened this issue 7 years ago • 9 comments

Description

When running ashell on my Arduino101 board, i didn't see ipm_console0:'Sensor core running ZJS ARC support image' from /dev/ttyUSB0, and sensor can't start in ashell. I tried with three arduino101 boards, only one of them met this problem. I have no idea how this happens? and how can I fix it?

Test Code

ashell

Actual Result

ashell on bad board: /dev/ttyUSB0: selection_003 /dev/ttyACM0: selection_002

Expected Result

ashell on good board: /dev/ttyUSB0: img_2590909039 /dev/ttyACM0: img_2540

qiaojingx avatar Jan 31 '18 08:01 qiaojingx

have you tried building native zephyr apps and flash them to both x86 and ARC processors separately, and see if you can get that up? For example, if you build a the helloworld app on ARC, and then build the samples/booting/stub app and flash that the x86. At least then it rules out if you have a working board or not. If not, you might try to use the intel A101 recovery tools to flash the original firmware back and then re-flash with Zephyr.

jimmy-huang avatar Jan 31 '18 18:01 jimmy-huang

I have tried with native zephyr apps, it seems the board is working. selection_004

BTW, this issue is not reproduced when running samples in normal ZJS ways. Only bad in Ashell. selection_006

qiaojingx avatar Feb 01 '18 02:02 qiaojingx

Yeah, that is interesting that the text line doesn't show up. That does make it seem rather like the ARC image failed to get built or flashed correctly. Possibly it could have to do with the recent changes to ARC build -Os? The version of the ARC image used for ashell probably has more features enabled than usually in your "production mode" builds. I think @jimmy-huang just left but I'll try to talk to him about this tomorrow.

grgustaf avatar Feb 01 '18 02:02 grgustaf

Do non-ARC apps like just simple Blink.js work OK from ashell?

grgustaf avatar Feb 01 '18 02:02 grgustaf

Blink.js works fine in Ashell.

qiaojingx avatar Feb 01 '18 02:02 qiaojingx

You can flash commit dee11f7abd7ea5c6b4c51f10f8c102b548776385 which is prior to the -Os changes and see if you can get ARC working again, if that works, we might need to file bug againist Zephyr because apparently they didn't fix the issue.

jimmy-huang avatar Feb 01 '18 03:02 jimmy-huang

Re-test with commit dee11f7. This issue is still there.

qiaojingx avatar Feb 01 '18 06:02 qiaojingx

maybe you can find out which component in ashell that's causing it to not boot, so if you edit src/zjs_ashell.json, and start removing individual components like aio, i2c, or sensor etc, i think these are the only ones that uses the ARC. At least this narrows down to which thing is borking your image.

jimmy-huang avatar Feb 01 '18 18:02 jimmy-huang

another thing you can try is the erase the whole flash filesystem on the a101 using ashell in the cmd prompt, to remove any thing on the FS that could cause the board to boot differently.

jimmy-huang avatar Feb 02 '18 04:02 jimmy-huang