OpenWrt Forum Archive

Topic: OLSRD not starting

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have having issues with OLSRD starting in Attitude Adjustment and don't know why sad. Maybe you guys can help me out.

AA build: r35817
Device: PicoStation M2

Output from OLSR     

Debug level: 9
IpVersion: 4
Noint set to 1
Pollrate 0.05
TC redundancy 2
MPR coverage 7
Link quality fish eye 1
Link quality level 2
Hysteresis disabled
Use NIIT ip translation: disabled
Smart gateway system: disabled
Smart gateway uplink: ipv4
Smart gateway uplink nat: yes
Smart gateway speed: 128 uplink/1024 downlink kbit/s
setting ifs_in_curr_cfg = 0
        IPv4 broadcast: 255.255.255.255
        HELLO interval: 6.00
        HELLO validity: 108.00
        TC interval: 4.00
        TC validity: 324.00
        MID interval: 18.00
        MID validity: 324.00
        HNA interval: 18.00
        HNA validity: 108.00
Plugin: olsrd_txtinfo.so.0.1
Plugin param key:"port" val: "8090"
Plugin param key:"Host" val: "127.0.0.1"
HNA IPv4 entry: 0.0.0.0/0.0.0.0
HNA IPv4 entry: 101.156.54.0/255.255.255.0
        IPv4 broadcast/multicast : 255.255.255.255
        Mode           : mesh
        IPv6 multicast           : ::
        HELLO emission/validity  : 6.00/108.00
        TC emission/validity     : 4.00/324.00
        MID emission/validity    : 18.00/324.00
        HNA emission/validity    : 18.00/108.00
        Autodetect changes       : no
 *** olsrd configuration ***
Debug Level      : 9
IpVersion        : 4
No interfaces    : ALLOWED
TOS              : 0xc0
OlsrPort          : 698
RtTable          : 254
RtTableDefault   : 254
RtTableTunnel    : 254
Willingness      : 3
IPC connections  : 0
Pollrate         : 0.05
NIC ChangPollrate: 2.50
TC redundancy    : 2
MPR coverage     : 7
LQ level         : 2
LQ fish eye      : 1
LQ aging factor  : 0.050000
LQ algorithm name: default
NAT threshold    : 1.000000
Clear screen     : yes
Use niit         : no
Smart Gateway    : no
SmGw. Allow NAT  : yes
SmGw. period     : 10000
SmGw. stablecount: 6
SmGw. threshold  : 0%
Smart Gw. Uplink : ipv4
SmGw. Uplink NAT : yes
Smart Gw. speed  : 128 kbit/s up, 1024 kbit/s down
# Smart Gw. prefix : ::/0
 InterfaceDefaults:
        IPv4 broadcast/multicast : AUTO
        Mode           : mesh
        IPv6 multicast           : ff02::6d
        HELLO emission/validity  : 2.00/20.00
        TC emission/validity     : 5.00/300.00
        MID emission/validity    : 5.00/300.00
        HNA emission/validity    : 5.00/300.00
        Autodetect changes       : yes
 dev: "wlan0"
        IPv4 broadcast/multicast : 255.255.255.255
        Mode           : mesh (d)
        IPv6 multicast           : ff02::6d (d)
        HELLO emission/validity  : 6.00/108.00
        TC emission/validity     : 4.00/324.00
        MID emission/validity    : 18.00/324.00
        HNA emission/validity    : 18.00/108.00
        Autodetect changes       : yes (d)
Plugins:
        Name: "olsrd_txtinfo.so.0.1"
Not using hysteresis
HNA4 entries:
        101.156.54.0/255.255.255.0
        0.0.0.0/0.0.0.0
root@Test:/#

then the PS after running olsrd

root@Test:/# ps
  PID USER       VSZ STAT COMMAND
    1 root      1520 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   60 root         0 SW   [sync_supers]
   62 root         0 SW   [bdi-default]
   64 root         0 SW<  [kblockd]
   95 root         0 SW   [kswapd0]
  144 root         0 SW   [fsnotify_mark]
  157 root         0 SW<  [ath79-spi]
  168 root         0 SW   [mtdblock0]
  173 root         0 SW   [mtdblock1]
  178 root         0 SW   [mtdblock2]
  183 root         0 SW   [mtdblock3]
  188 root         0 SW   [mtdblock4]
  193 root         0 SW   [mtdblock5]
  198 root         0 SW   [mtdblock6]
  203 root         0 SW   [mtdblock7]
  232 root         0 SW   [kworker/0:1]
  401 root         0 SWN  [jffs2_gcd_mtd4]
  419 root      1516 S    /bin/ash --login
  451 root         0 SW<  [cfg80211]
  462 root         0 SW   [khubd]
  559 root      1524 S    /sbin/syslogd -C16
  561 root      1508 S    /sbin/klogd
  563 root       844 S    /sbin/hotplug2 --override --persistent --set-rules-f
  661 root       868 S    /sbin/ubusd
  666 root      1532 S    /sbin/netifd
  704 root      1516 S    /sbin/watchdog -t 5 /dev/watchdog
  989 root         0 SW   [kworker/0:2]
 1038 root      1400 S    hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
 1353 root      1524 S    /sbin/udhcpc -i eth0 -t 10 -n -s /usr/share/udhcpc/d
 2197 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 2241 nobody     940 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
 2377 root      1520 S    crond -l 10 -c /etc/crontabs
 2589 root      4400 S    /usr/sbin/chilli --pidfile /tmp/chilli.pid --uamlogo
 2772 root      1516 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
 2775 root      1244 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 2776 root      1512 S    -ash
 3105 root      1216 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 3106 root      1512 S    -ash
 5606 root      1512 R    ps
root@Test:/#

Running log read

Mar  3 15:46:33 Test daemon.info olsrd[4371]: Writing '1' (was 1) to /proc/sys/net/ipv4/ip_forward
Mar  3 15:46:33 Test daemon.info olsrd[4371]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/send_redirects
Mar  3 15:46:33 Test daemon.info olsrd[4371]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/rp_filter
Mar  3 15:46:33 Test daemon.info olsrd[4371]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Mar  3 15:46:33 Test daemon.info olsrd[4371]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/rp_filter
Mar  3 15:46:33 Test daemon.info olsrd[4371]: Adding interface wlan0
Mar  3 15:46:33 Test daemon.info olsrd[4371]: New main address: 5.3.156.54
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Writing '1' (was 1) to /proc/sys/net/ipv4/ip_forward
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/send_redirects
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/rp_filter
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/rp_filter
Mar  3 15:47:06 Test daemon.info olsrd[4381]: Adding interface wlan0
Mar  3 15:47:06 Test daemon.info olsrd[4381]: New main address: 5.3.156.54
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Writing '1' (was 1) to /proc/sys/net/ipv4/ip_forward
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/send_redirects
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/rp_filter
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/rp_filter
Mar  3 15:50:18 Test daemon.info olsrd[4425]: Adding interface wlan0
Mar  3 15:50:18 Test daemon.info olsrd[4425]: New main address: 5.3.156.54

Some error would be helpful -_-

Thank you very much!!! .. i have been at this for 2 days so I might have missed something that is very clear.

(Last edited by Wifigator on 4 Mar 2013, 01:13)

lol.... i broke down and did a
make clean;
make;

works fine now... hmmm O.o thank you everyone who reviewed this.

The discussion might have continued from here.