zephyr: samples/subsys/shell/fs/ fail on native posix board

I have tried this:

sudo apt install libfuse-dev
mkdir flash
west build -b native_posix_64 samples/subsys/shell/fs/
west build -t run

I did’t export PKG_CONFIG_PATH in this case. I can see this,

Mounting flash at flash/
UART_0 connected to pseudotty: /dev/pts/2
*** Booting Zephyr OS build zephyr-v2.2.0-1666-gf3b4d8a86f78  ***

but after screen /dev/pts/2, no shell, nothing display on the screen, just stuck there. I also tried native_posix without _64 and the result is same.

BTW, in #24484 @pabigot comfirmed the same issue.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

Got it. Fix up at #24648

The root cause was that the uart polling loop was asking for a k_timer period of exactly one tick, and adjusting that produced a K_NO_WAIT internally that the code was treating as an externally-provided “no period needed” argument. It wasn’t anything to do with native_posix per se, just the particular interaction of polling period and tick rate.

Legacy mode is supposed to be for build failures only. If we have a runtime failure then there’s a bug that’s been exposed somewhere.