Closed
Description
Using latest master, I can produce a boot hang on K64F when using mcuboot + the lwm2m client chain loaded from slot 0. The interesting bit is that IPv6 needs to be disabled.
Bisecting led to this commit:
1856e22#diff-23bba5938c8ac686f219f01f58478b9aR152
And if I change line 152 from:
update_cache(0);
to
update_cache(1);
It allows the boot to finish (not saying this is a fix, just stating that this makes the boot hang go away).
Even more curious, if I flash the lwm2m client directly and avoid mcuboot, this issue doesn't happen.
The thread that's hanging is started via k_work_q_start() here:
https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/net/ip/net_tc.c#L343
TBH, I don't understand the scheduler changes enough to really debug this further.