Thank you Holger and Neels.
The problem is solved now. We re-checked out the latest version and right branch of OpenBSC. The previous branch may be wrong. Now the cellphone was successfully attached. 

Lin

2017-06-07 10:54 GMT+08:00 Holger Freyther <holger@freyther.de>:

> On 7. Jun 2017, at 10:48, 雪碧 0xroot <renxianyuanqi@gmail.com> wrote:
>
> Thanks for the quick reply.


I wondered if I need to clarify but then assumed it would be obvious enough. With trace I meant packet trace to capture what is being sent between the different components.



>
> >Is a TMSI assigned? What is the TMSI?
>
> just fond TMSI at osmo-hnbw's terminal:(0x0 not looks good )
>
> <0001> hnbgw.c:176 created UE context: id 0x17, imsi 901700000014922, tmsi 0x0

the phone ME might not have a TMSI initially. Not bad.