1.添加源地址
[feeds.conf.default]文件末尾添加以下内容:
1 |
src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;attitude_adjustment |
2.更新安装源
1 2 |
./scripts/feeds update -a //更新软件包 ./scripts/feeds install -a // 安装软件包 |
3.添加编译
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
make menuconfig Network ---> < > alljoyn ---> < > alljoyn-about < > alljoyn-c < > alljoyn-config < > alljoyn-config-samples < > alljoyn-controlpanel < > alljoyn-controlpanel-samples < > alljoyn-notification < > alljoyn-notification-samples < > alljoyn-onboarding < > alljoyn-onboarding-samples < > alljoyn-sample_apps < > alljoyn-samples < > alljoyn-service_common |
————————————————————–
1. Modify the openwrt/feeds.conf.default to add the following line:
src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;attitude_adjustment
2. [Note] Remove the folder in openwrt/feeds/alljoyn/patches;
3. Build OpenWRT base on your router hardware model, remember to select alljoyn packages;
4. Flash the firmware to your router;
5. SSH to your router and execute the following commands to test alljoyn:
/usr/bin/alljoyn-daemon –fork
/usr/bin/AboutService
Open another terminal on the router and run
/usr/bin/AboutClient
Check the log message to make sure it works.