找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2053|回复: 2

免服务器“微信”Serval Mesh Building Serval DNA for OpenWRT

[复制链接]
发表于 2016-7-20 22:32 | 显示全部楼层 |阅读模式
本帖最后由 q155128 于 2016-7-20 22:54 编辑

有没有人玩这个app啊,The Serval Mesh安卓官方商店有http://developer.servalproject.org/files/,是个免费对讲机,不需要使用手机流量和wifi互联网。靠他自建的wifi蓝牙热点传递信息,可以在出游时那些信号不好的地方使用(当然买个对讲机最好),个人觉得还是挺好的(毕竟人人都有一款手机)。这个帖子是摘抄他们网站的,可以用路由器扩大这个网络的覆盖范围,不知道国内有没有人搞{:soso__15960872840493620282_2:}
Serval Mesh allows people to make voice calls, send text messages and share files with other Serval Mesh users, without requiring infrastructure like satellites, cell phone towers, Wi-Fi hot spots, or radio repeaters.

Since OpenWRT is installed as a complete firmware image that contains the Linux kernel and all selected components, Serval DNA for OpenWRT can only be built as part of a whole OpenWRT build.
This process can also be used to produce the servald binary for openwrt for use elsewhere, for example including in a Mesh Extender firmware build.  But note that the Mesh Extender firmware build process is different (and simpler) compared to that described here.
The Serval DNA build instructions for OpenWRT describe this process in detail.
  • Choose a version of Serval DNA to build:
    • To build a version under development from a locally edited working copy:
      • Appendix A of the Serval DNA build instructions for OpenWRT describe how to set up an OpenWRT feed which compiles directly from your Git working copy of the Serval DNA source code.
    • To build a published release of Serval DNA:
      • the latest Serval OpenWRT package feed README describes which releases (feed branches) are available
      • the Serval DNA build instructions for OpenWRT describe how to compile your chosen feed branch of the Serval OpenWRT package feed

  • Select your target device (architecture) and other configuration options:
    • in the menuconfig step of the build instructions:
      • select the target platform (Dragino MS12 is used in the examples below)
      • select the serval-dna package as a module: [M]

  • The build should produce an IPK file under the bin/arch/packages directory, eg ls -sh bin/atheros/packages/serval*840K bin/atheros/packages/serval-dna_START-2967-gdc588e9-4_atheros.ipk$
  • Copy the IPK file onto your OpenWRT device, and install it using opkg. For example scp bin/atheros/packages/serval-dna_START-2967-gdc588e9-4_atheros.ipkroot@192.168.255.1:/tmp/root@192.168.255.1's password:serval-dna_START-2967-gdc588e9-4_atheros.ipk       100%  840KB 635.6KB/s   00:02$ ssh root@192.168.255.1root@192.168.255.1's password:BusyBox v1.15.3 (2012-11-26 07:01:41 CST) built-in shell (ash)Enter 'help' for a list of built-in commands.  ___   ___   ___   ___  _ _  ___   ___ |   \ |___\ |___| | __   |  |   | |   |        [  www.dragino.com  ] |___/ |   | |   | |___| _|_ |   | |___|        [  www.flukso.net   ] ------------------------------------------     [  www.rowetel.com  ] W i F i, L i n u x, M C U, E m b e d d e d OpenWRT Backfire [10.03.1, r33081] Dragino MS12 2.1-beta-2, Build Mon Nov 26 07:30:30 CST 2012root@dragino:~# cd /tmproot@dragino:/tmp# ls *ipkserval-dna_START-2967-gdc588e9-4_atheros.ipkroot@dragino:/tmp# df -hFilesystem                Size      Used Available Use% Mounted on/dev/root                 2.9M      2.9M         0 100% /romtmpfs                    14.6M    716.0K     13.9M   5% /tmptmpfs                   512.0K         0    512.0K   0% /devroot                      2.9M      2.9M         0 100% /tmp/rootmini_fo:/tmp/root         2.9M      2.9M         0 100% /tmp/root/dev/mtdblock3            3.9M    272.0K      3.7M   7% /overlaymini_fo:/overlay          2.9M      2.9M         0 100% /root@dragino:/tmp# opkg install serval-dna_START-2967-gdc588e9-4_atheros.ipkInstalling serval-dna (START-2967-gdc588e9-4) to root...Configuring serval-dna.root@dragino:/tmp# which servald/usr/bin/servaldroot@dragino:/tmp# servald helpServal Mesh version <version>.Usage: dna lookup <did> [<timeout>]...root@dragino:/tmp#
You should now be able to use servald on your OpenWRT device.

Building OpenWRT firmware for DragroveOur initial prototype hardware target is the Dragrove MS12.
  • the Compile Dragino Firmware wiki page describes the process for building firmware and flashing it to the device
  • alternatively, the Motherboard Upgrade Firmware wiki page has instructions for flashing pre-built firmware files

Flashing New Firmware From a MacOn a Mac, you can flash the firmware as follows:
  • Make the firmware files available by TFTP cp bin/atheros/openwrt-atheros-vmlinux.lzma /private/tftpboot$ cp bin/atheros/openwrt-atheros-root.squashfs /private/tftpboot$
  • Manually configure eth0 (wired ethernet) on the Mac to 192.168.255.2, subnet 255.255.255.0, with no router.
  • Start the TFTP server on the Mac, e.g.: $ sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist$ sudo launchctl start com.apple.tftpd$
  • Connect the Dragrove to the Mac via ethernet cable
  • Create ~/.telnetrc with the contents:192.168.255.1<NEWLINE><TAB>mode line<NEWLINE>Obviously, replace <NEWLINE> by pressing Enter and <TAB> with a single TAB character when creating the file using your favourite editor.
  • Power down the Dragrove
  • On the Mac, be ready to type telnet 192.168.255.1 9000 as soon as the Dragrove powers up. You may need to type it several times to make sure you get in. If you don't get in within a few seconds, go back to step 6.
  • Once you see something like == Executing boot script in 4.580 seconds - enter ^C to abort do press control C.  You should be greeted with a RedBoot> prompt.
  • Type the following redboot commands:fis initload -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzmafis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfsfis create rootfsresetFor example, a successful conversation might end up looking like:
    $ telnet 192.168.255.1 9000Trying 192.168.255.1...Connected to 192.168.255.1.Escape character is '^]'.== Executing boot script in 4.580 seconds - enter ^C to abort^C^CRedBoot> fis initAbout to initialize [format] FLASH image system - continue (y/n)? y*** Initialize FLASH Image System... Erase from 0xa87d0000-0xa87e0000: .... Program from 0x80ff0000-0x81000000 at 0xa87d0000: .RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzmaUsing default protocol (TFTP)Raw file loaded 0x8003e000-0x8010dfff, assumed entry at 0x8003e000RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7... Erase from 0xa8030000-0xa8100000: ................ Program from 0x8003e000-0x8010e000 at 0xa8030000: ................ Erase from 0xa87d0000-0xa87e0000: .... Program from 0x80ff0000-0x81000000 at 0xa87d0000: .RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfsUsing default protocol (TFTP)Raw file loaded 0x8003e000-0x8033dfff, assumed entry at 0x8003e000RedBoot> fis create rootfs... Erase from 0xa8100000-0xa8400000: ................................................... Program from 0x8003e000-0x8033e000 at 0xa8100000: ................................................... Erase from 0xa87d0000-0xa87e0000: .... Program from 0x80ff0000-0x81000000 at 0xa87d0000: .RedBoot> resetNote that when you hit Enter after reset, the Dragrove will begin resetting, and you will not get any confirmation back that this has occurred, other than by watching the LEDs on the Dragrove.  You can assume the firmware update proceeded successfully if you get to the point where the WIFI LED is blinking again, or you can login using ssh root@192.168.255.1 (default password is root).
  • When all done, stop the TFTP server on the Mac sudo launchctl stop com.apple.tftpd;$ sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist$
排版乱了,汗
原文地址:http://developer.servalproject.o ... building_on_openwrt

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 -1 收起 理由
g2*** -1 支付宝已转500w给你!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2017-4-19 06:07 来自手机 | 显示全部楼层
忽然看着这个帖子这么久了竟然没任何回复,顶一下,让需要的人看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 07:15 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 04:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表