|
楼主 |
发表于 2019-6-17 12:11:39
|
显示全部楼层
Tool/software: Linux
Hello everyone,
I built lasted 6lbr with Contiki-NG on Raspberrry pi 3B using LAUNCHXL-CC1310 as slip-radio. 6lbr is compiling from the develop branch(commit 728f18f) and contiki-NG is from sixlbr branch of cetic/contiki-ng with commit cd3af6c .I followed the steps from sunmaysky.blogspot.com/.../build-and-run-6lbrcontiki-ng-cc26xx-web.html, but i still cannot access the web page [bbbb::100].The main process is as follows:
1. Change directory to home folder and git clone --recursive github.com/.../6lbr.git
2. Change directory to 6lbr folder and git submodule update --init
3. Change directory to home folder and git clone --recursive github.com/.../contiki-ng.git
4. Change directory to contiki-ng folder and git submodule update --init
5. Change directory to 6lbr/examples/6lbr folder and run the following build command
"make WITH_CONTIKI=0 WERROR=0 all"
6. sudo make install
7. change to channel 25
8. Create /etc/6lbr/6lbr.conf with the content below
MODE=ROUTER
RAW_ETH=1
BRIDGE=0
DEV_BRIDGE=br0
DEV_TAP=tap0
DEV_ETH=eth0
RAW_ETH_FCS=0
DEV_RADIO=/dev/ttyACM0
BAUDRATE=115200
LOG_LEVEL=3
9. connect LAUNCHXL-CC1310 running slip radio to Raspberry Pi
10. reboot rpi and start 6lbr service.
the 6lbr.log is:
********************************************************************************
Wed 28 Nov 11:49:35 CST 2018 : Starting 6LBR
/usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -F /etc/6lbr/factory.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -r -t eth0 -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/lib/6lbr/www -L 3 -W /var/log/6lbr.timestamp -P 60 -C /var/log/6lbr.ip -m /usr/lib/6lbr/plugins
[INFO: Main ] Starting Contiki-NG-release/v4.1-45-gcd3af6c3c
[INFO: Main ] Net: pfe
[INFO: Main ] MAC: multi-radio
[INFO: Main ] Link-layer address 0102.0304.0506.0708
2018-11-28 11:49:35.092717: NOTICE: 6LBR: Starting 6LBR version 1.5.x (Contiki-NG-release/v4.1-45-gcd3af6c3c)
2018-11-28 11:49:35.092969: INFO: SLIP: Allocated slip device 0 -> 0
2018-11-28 11:49:35.093167: INFO: ETH: 6LBR watchdog started (interval: 60)
2018-11-28 11:49:35.093569: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
2018-11-28 11:49:35.093953: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
2018-11-28 11:49:35.094308: ERROR: PLUGIN: Could not open /usr/lib/6lbr/plugins/lwm2m.so : /usr/lib/6lbr/plugins/lwm2m.so: undefined symbol: coap_rest_implementation
2018-11-28 11:49:35.094636: INFO: NVM: NVM Magic : 2009
2018-11-28 11:49:35.094809: INFO: NVM: NVM Version : 6
2018-11-28 11:49:35.094980: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
2018-11-28 11:49:35.095214: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2018-11-28 11:49:35.095424: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
2018-11-28 11:49:35.096168: INFO: SLIP: SLIP started on /dev/ttyACM0
2018-11-28 11:49:35.106543: INFO: SCMD: Started br-cmd process
2018-11-28 11:49:35.106700: INFO: BR-RDC: SLIP RADIO configured as RADIO
2018-11-28 11:49:35.106845: INFO: BR-RDC: Configuring SLIP RADIO 0 (API: 2.0)
2018-11-28 11:49:35.107021: INFO: BR-RDC: Reset SLIP Radio
2018-11-28 11:49:35.107170: INFO: BR-RDC: Fetching MAC address
2018-11-28 11:49:35.111136: ERROR: SLIP: Unknown command
2018-11-28 11:49:35.112514: INFO: BR-RDC: Got MAC 0 : 0012.4b00.13f2.ae5f
2018-11-28 11:49:36.506720: INFO: ETH: RAW Ethernet interface init
2018-11-28 11:49:36.547733: INFO: TAP: opened device eth0
2018-11-28 11:49:36.548158: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:c9:f5:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.106/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::cf2a:902d:736d:6b43/64 scope link
valid_lft forever preferred_lft forever
2018-11-28 11:49:36.622920: INFO: TAP: Eth MAC address : b8:27:eb:c9:f5:9f
2018-11-28 11:49:36.623450: INFO: ETH: Eth MAC address : b8:27:eb:c9:f5:9f
2018-11-28 11:49:36.623917: INFO: MULTICAST: Using 'null' multicast driver
2018-11-28 11:49:36.624488: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:13f2:ae5f
2018-11-28 11:49:36.624964: INFO: 6LBR: Tentative global IPv6 address (WSN) fd00::212:4b00:13f2:ae5f
2018-11-28 11:49:36.625431: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
2018-11-28 11:49:36.625815: INFO: 6LBR: RA Daemon enabled
2018-11-28 11:49:36.626108: INFO: 6LBR: Checking addresses duplication
2018-11-28 11:49:37.192482: INFO: SLIP: radio: setting channel: 25
radio: setting pan id to 0xabcd
2018-11-28 11:49:38.626879: INFO: RPL: Configured as DODAG Root fd00::212:4b00:13f2:ae5f
2018-11-28 11:49:38.627418: INFO: 6LBR: Starting IP64
2018-11-28 11:49:38.627796: INFO: 6LBR: IPv4 address : 192.168.0.2
2018-11-28 11:49:38.628194: INFO: 6LBR: Starting as RPL-Router
2018-11-28 11:49:38.629131: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2018-11-28 11:49:38.629663: INFO: HTTP: Starting webserver on port 80
2018-11-28 11:49:38.630107: INFO: NODECFG: Node Config init
2018-11-28 11:49:38.630406: INFO: NODECFG: No node_config.conf file specified
2018-11-28 11:49:38.630712: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2018-11-28 11:49:38.631210: INFO: UDPS: UDP server started
2018-11-28 11:49:38.631513: INFO: DNS: DNS proxy started
2018-11-28 11:49:38.631805: INFO: PLUGIN: Initialising dummy
2018-11-28 11:49:38.632121: INFO: DUMMY: Dummy init
2018-11-28 11:49:38.632423: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2018-11-28 11:49:38.632797: INFO: 6LBR: CETIC 6LBR Started
ps:I repeated the steps above on vmware 15 Pro, everything is ok including accessing web page.
Can anyone tell me how to fix this problem? Thanks very much.
|
|