[Nodi-Pisa] Una visita a Power

David chiromante a insiberia.net
Dom 10 Ago 2014 17:43:15 UTC


Con Phep sono stato a vedere cosa potesse avere Pisa::Power....

* Il cavo ethernet tra il PoE e l'appartamento deve essere rotto da
qualche parte (il computer mi riporta "no carrier")

* Saliti sul tetto si vede che antenna e PoE sono accesi, e attaccandosi
al PoE lato lan si riesce ad accedere in SSH con IPv6 link local.


Questo è l'output di un po' di un po' di comandi appena arrivati sul tetto:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root a OpenWrt:~# batctl o
[B.A.T.M.A.N. adv 2013.3.0, MainIF/MAC: eth0.10/00:27:22:c3:34:86 (bat0)]
  Originator      last-seen (#/255)           Nexthop [outgoingIF]:
Potential nexthops ...
No batman nodes in range ...

#dmesg
[...] (ci sono solo VALANGATE di questo messaggio)
[4217831.000000] br-clients: received packet on bat0 with own address as
source address

root a OpenWrt:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
master br-clients state UP qlen 1000
    link/ether 00:27:22:c3:34:86 brd ff:ff:ff:ff:ff:ff
4: br-clients: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP
    link/ether 00:27:22:c3:34:86 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.21/24 brd 192.168.1.255 scope global br-clients
       valid_lft forever preferred_lft forever
    inet6 2a00:1508:1:f010:0:27:22c3:3486/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::227:22ff:fec3:3486/64 scope link
       valid_lft forever preferred_lft forever
5: eth0.10 a eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue master bat0 state UP
    link/ether 00:27:22:c3:34:86 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::227:22ff:fec3:3486/64 scope link
       valid_lft forever preferred_lft forever
6: bat0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master
br-clients state UNKNOWN
    link/ether 2e:db:c7:77:3e:c9 brd ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master
br-clients state UP qlen 1000
    link/ether 00:27:22:c2:34:86 brd ff:ff:ff:ff:ff:ff
8: wlan0-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1528 qdisc mq master
bat0 state UP qlen 1000
    link/ether 02:27:22:c2:34:86 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::27:22ff:fec2:3486/64 scope link
       valid_lft forever preferred_lft forever

root a OpenWrt # iw wlan0 info
Interface wlan0
	ifindex 7
	wdev 0x2
	addr 00:27:22:c2:34:86
	ssid eigenNet
	type AP
	wiphy 0
	channel 8 (2447 MHz), width: 20 MHz, center1: 2447 MHz

root a OpenWrt:~# cat /etc/config/eigennet

config section 'general'
	option debugLevel '0'
	option bootmode '2'

config section 'network'
	option accept_clients 'true'
	option ip6prefix '2a00:1508:1:f010::'
	option ip6gw '2a00:1508:1:f010::1000'
	option ipaddr '192.168.1.21'
	option netmask '255.255.255.0'
	option gateway '192.168.1.1'
	list resolvers '2a00:1508:1:f010::d1'
	list resolvers '2a00:1508:1:f010::d2'
	option hostname 'OpenWrt'

config section 'wireless'
	option wifi_clients 'true'
	option wifi_mesh 'true'
	option countrycode 'US'
	option bgn_channel '8'
	option an_channel '100'
	option meshSSID 'www.eigenlab.org-www.ninux.org'
	option meshBSSID '02:aa:bb:cc:dd:ee'
	option meshMcastRate '6000'
	option apSSID 'eigenNet'
	option apKEY 'none'
	option apMaxClients '20'

config section 'wired'
	option eth_mesh 'true'
	option mesh_vlan '10'
	option eth_clients 'true'

config section 'gw4server'
	option enabled 'false'
	option strictCheck 'false'
	option checkInterval '10s'
	option bandwidth '2000/512'
	list checkHosts '8.8.8.8'
	list checkHosts '8.8.4.4'

config section 'pointing'
	option enabled 'false'

config section 'bwtestclient'
	option enabled 'false'

config section 'bwtestserver'
	option enabled 'false'

config section 'sshserver'
	option enabled 'true'
	option passwdAuth 'false'
	option sshAuthorizedKeys 'ssh-rsa [seguito dalla chiave]

config section 'firewall'
	option enabled 'false'
	option isolateDHCP 'false'

config section 'httpinfo'
	option enabled 'false'

~~~~~~~~~~~~~~~~~~~~~~~~~~

Ho provato a dare iw dev <device> station dump ma dava errore tipo
resource busy o altri errori con qualunque device.

Allora ho pensato che il problema potesse essere che la picostation è in
modo sia AP che Ad-Hoc. Dopo aver messo accept_clients a false e
applicato le modifiche, sono cambiate le interfacce ma il succo rimane
lo stesso.

Questo è il dmesg dopo il riavvio:
~~~~~~~~~~~~~~~~~

root a OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.13 (salvatore a Scamorza) (gcc version
4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38248) ) #1 Sat Sep 28 19:48:14
CEST 2013
[    0.000000] MyLoader: sysp=f0f0f0f0, boardp=f0f0f0f0, parts=f0f0f0f0
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7241 rev 1
[    0.000000] Clocks: CPU:390.000MHz, DDR:390.000MHz, AHB:195.000MHz,
Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 8030aa90, node_mem_map
81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32
bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases,
linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 8128
[    0.000000] Kernel command line:  board=UBNT-BM console=ttyS0,115200
mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro
rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28784k/32768k available (2223k kernel code, 3984k
reserved, 594k data, 252k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.060000] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.090000] MIPS: machine is Ubiquiti Bullet M
[    0.090000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.310000] PCI host bridge to bus 0000:00
[    0.310000] pci_bus 0000:00: root bus resource [mem
0x10000000-0x13ffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[    0.330000] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
[    0.330000] pci 0000:00:00.0: fixup device configuration
[    0.330000] pci 0000:00:00.0: reg 10: [mem 0x10000000-0x1000ffff 64bit]
[    0.330000] pci 0000:00:00.0: supports D1
[    0.330000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.330000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.330000] pci 0000:00:00.0: BAR 0: assigned [mem
0x10000000-0x1000ffff 64bit]
[    0.340000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.340000] Switching to clocksource MIPS
[    0.350000] NET: Registered protocol family 2
[    0.350000] TCP established hash table entries: 512 (order: 0, 4096
bytes)
[    0.360000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.370000] TCP: Hash tables configured (established 512 bind 512)
[    0.370000] TCP: reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.380000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] NET: Registered protocol family 1
[    0.390000] PCI: CLS 0 bytes, default 32
[    0.410000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 56
[    0.430000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.440000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.470000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.480000] console [ttyS0] enabled, bootconsole disabled
[    0.490000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.500000] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.500000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.510000] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.510000] Creating 5 MTD partitions on "spi0.0":
[    0.520000] 0x000000000000-0x000000040000 : "u-boot"
[    0.530000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.530000] 0x000000050000-0x0000007b0000 : "firmware"
[    0.550000] 2 uimage-fw partitions found on MTD device firmware
[    0.550000] 0x000000050000-0x00000014b341 : "kernel"
[    0.560000] mtd: partition "kernel" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[    0.570000] 0x00000014b341-0x0000007b0000 : "rootfs"
[    0.580000] mtd: partition "rootfs" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[    0.590000] mtd: partition "rootfs" set to be root filesystem
[    0.600000] 1 squashfs-split partitions found on MTD device rootfs
[    0.610000] 0x000000340000-0x0000007b0000 : "rootfs_data"
[    0.610000] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.620000] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.630000] libphy: ag71xx_mdio: probed
[    0.640000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.200000] ag71xx ag71xx.0 eth0: connected to PHY at
ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.210000] TCP: cubic registered
[    1.210000] NET: Registered protocol family 17
[    1.220000] Bridge firewalling registered
[    1.220000] 8021q: 802.1Q VLAN Support v1.8
[    1.230000] VFS: Mounted root (squashfs filesystem) readonly on
device 31:4.
[    1.240000] Freeing unused kernel memory: 252K (80321000 - 80360000)
[    4.280000] usbcore: registered new interface driver usbfs
[    4.290000] usbcore: registered new interface driver hub
[    4.300000] usbcore: registered new device driver usb
[    4.310000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.310000] ehci-platform: EHCI generic platform driver
[    4.320000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.270000] eth0: link up (100Mbps/Full duplex)
[    7.840000] jffs2: notice: (292) jffs2_build_xattr_subsystem:
complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan)
and 43 of xref (0 dead, 25 orphan) found.
[    7.880000] eth0: link down
[    8.920000] jffs2: notice: (293) check_node_data: wrong data CRC in
data node at 0x004575b0: read 0x70c2c025, calculated 0x15a5fb63.
[    9.250000] NET: Registered protocol family 10
[    9.270000] nf_conntrack version 0.5.0 (453 buckets, 1812 max)
[    9.280000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.320000] batman_adv: B.A.T.M.A.N. advanced 2013.3.0 (compatibility
version 14) loaded
[    9.330000] Loading modules backported from Linux version
master-2013-06-27-0-gdcfa6d5
[    9.340000] Backport generated by backports.git
backports-20130617-4-ge3220f5
[    9.350000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.400000] xt_time: kernel timezone is -0000
[    9.440000] cfg80211: Calling CRDA to update world regulatory domain
[    9.440000] cfg80211: World regulatory domain updated:
[    9.450000] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[    9.460000] cfg80211:   (2400000 KHz - 2500000 KHz @ 40000 KHz),
(N/A, 3000 mBm)
[    9.460000] cfg80211:   (5000000 KHz - 6000000 KHz @ 40000 KHz),
(N/A, 3000 mBm)
[    9.560000] PPP generic driver version 2.4.2
[    9.570000] NET: Registered protocol family 24
[    9.620000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    9.630000] ath: EEPROM regdomain: 0x0
[    9.630000] ath: EEPROM indicates default country code should be used
[    9.630000] ath: doing EEPROM country->regdmn map search
[    9.630000] ath: country maps to regdmn code: 0x3a
[    9.630000] ath: Country alpha2 being used: US
[    9.630000] ath: Regpair used: 0x3a
[    9.640000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.650000] cfg80211: Calling CRDA for country: US
[    9.650000] cfg80211: Regulatory domain changed to country: US
[    9.660000] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[    9.670000] cfg80211:   (2400000 KHz - 2500000 KHz @ 40000 KHz),
(N/A, 3000 mBm)
[    9.680000] cfg80211:   (5000000 KHz - 6000000 KHz @ 40000 KHz),
(N/A, 3000 mBm)
[    9.690000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[   15.550000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.580000] IPv6: ADDRCONF(NETDEV_UP): eth0.10: link is not ready
[   15.900000] batman_adv: bat0: Adding interface: eth0.10
[   15.900000] batman_adv: bat0: The MTU of interface eth0.10 is too
small (1500) to handle the transport of batman-adv packets. Packets
going over this interface will be fragmented on layer2 which could
impact the performance. Setting the MTU to 1528 would solve the problem.
[   15.930000] batman_adv: bat0: Interface activated: eth0.10
[   16.420000] batman_adv: bat0: Changing gw mode from: off to: client
[   16.610000] eth0: link up (100Mbps/Full duplex)
[   16.610000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   16.640000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.10: link becomes ready

~~~~~~~~~~~~~~~~~

Qualcuno ha una idea di cosa possa essere?


-------------- parte successiva --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://ml.ninux.org/pipermail/nodi-pisa/attachments/20140810/28880d31/attachment.pgp>


Maggiori informazioni sulla lista Nodi-pisa