In case 1, it required >= systemd-209, but it’s systemd-204 in ubuntu-14.04, so I implemented case 2 on Jetson-TK1 and my notebook.
First I tested Miracast on my notebook, here is my environment information. Android test phone: htc desire 816
notebook OS: Ubuntu 14.04
wifi adapter: AR9485WB-EG (driver is Atheros ath9k)
wpa_supplicant: version 2.5 (git://w1.fi/srv/git/hostap.git)
connman: version 1.28 (Index of /pub/linux/network/connman/) gstreamer: version 1.5.2 including gstreamer, gst-plugins-base, gst-plugins-bad, gst-plugins-good, gst-plugins-ugly, gst-libav, and orc-0.4.23 (Index of /src)
I followed wds test command in README.md, it worked fine.
Finally, I tested wds on Jetson-TK1, same environment above, just wifi adapter is AR9285(driver is Atheros ath9k), it had connected success, but no display stream.
Thank you. I use the debug print to find some information, it loses some package like alsa, x264 and x11, so gstreamer source code haven’t build in required elements, after install package and rebuild gstremaer, miracast can work with gstreamer-1.2.4 or 1.5.2 now.
Finally I compiler gstreamer-1.2.4 source code, it works fine with miracast. I guess internal gstreamer1.0 package will be fine, so I uninstall all the gstreamer, and follow Multimedia_User_Guide_V2.1 document to install gstreamer.