CompilareDaOpenWrt-TRUNK

From NinuxBO
Revision as of 18:25, 4 February 2016 by Panda (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$git clone git://git.openwrt.org/openwrt.git $cd openwrt/ $cp feeds.conf.default feeds.conf

editare il fil feeds.conf appena creato $vi feeds.conf e aggiungere le seguenti linee

src-git lime https://github.com/libre-mesh/lime-packages.git src-git libremap git://github.com/libremap/libremap-agent-openwrt.git

make clean && git pull && rm -rf feeds/lime && rm -rf feeds/libremap && scripts/feeds update -a && scripts/feeds install -a

make menuconfig

then:

  • prima di tutto disabilitare "dnsmasq" in "Base System"
  • andare in "LiMe" e selezionare "lime-full" (lime-full deve avere la selezione [*] e non [M], vedi nota sotto)
  • in "LiMe" selezionare manualmente:
 │ │                           -*- bmx6-auto-gw-mode..................... bmx6 auto Internet gateway module                      │ │
 │ │                           -*- dnsmasq-lease-share........ dnsmasq lease sharing accross batman-adv mesh                     │ │
 │ │                           -*- lime-debug........................................ libre-mesh debug utils                     │ │
 │ │                           -*- lime-eb-ip-tables.................. libre-mesh iptables/ebtables support                      │ │
 │ │                           -*- lime-map-agent....................................... LiMe LibreMap agent                     │ │
 │ │                           -*- lime-proto-anygw................................ LiMe anygw proto support                     │ │
 │ │                           -*- lime-proto-batadv.......................... LiMe batman-adv proto support                     │ │
 │ │                           -*- lime-proto-bmx6.................................. LiMe Bmx6 proto support                     │ │
 │ │                           -*- lime-system...................................... libre-mesh system files                     │ │
 │ │                           -*- lime-webui................... libre-mesh web user interface based on LUCI                     │ │

esitare il file feeds/lime/packages/lime-system/files/etc/config/lime in modo che contenga:


# Beware this file is not supposed to store specific configuration, like "config net eth0"
# System option

config lime system
option  hostname 'NinuxBoNode-%M4%M5%M6'                                # Parametrizable hostname \Mn\ will be substituted with the n'th byte of the primary_dev MAC


# Network general option

config lime network
option primary_interface eth0                                                 # The mac address of this device will be used in different places
option main_ipv4_address '10.51.%M5.%M6/16'                             # Parametrizablezable main IPv4 address \Mn\ will be substituted with the n'th byte of the primary_dev MAC
option main_ipv6_address '2001:db8::%M5%M6/64'                       # Parametrizablezableable main IPv6 address \Mn\ will be substituted with the n'th byte of the primary_dev MAC
list protocols adhoc
list protocols lan
list protocols anygw                                                                          # Refer to http://libre-mesh.org/projects/libre-mesh/wiki/Anygw
list protocols batadv:%N1                                               # Define virtual interface name es: bat0.11
list protocols bmx6:13                                                  # Define virtual interface name es: bm6.13
list resolvers 208.67.222.222                                          #        DNS servers node will use
list resolvers 2620:0:ccc::2                                           #open DNS


# WiFi general options

config lime wifi  
option channel_2ghz '11'
option          channel_5ghz '48'
list modes 'ap'
list modes 'adhoc'
option ap_ssid                  'NinuxBO'
option adhoc_ssid 'NinuxBO-mesh'
option adhoc_bssid 'de:d1:c0:c0:d1:ce'                                 #vecchio mac:'ca:fe:00:c0:ff:ee'
option adhoc_mcast_rate_2ghz '24000'
option adhoc_mcast_rate_5ghz '6000'

quindi:

make

Personal tools
Namespaces

Variants
Actions
Navigation
Tools