Open flow23 opened 4 years ago
Same issue here. Spend the last weeks to try to get it running from scratch, but no luck. Swapping with re4son kernel get the device running, also in monitor mode, but then the AI isn't running anymore, since libavcodec.so.58 can't find the symbol definition for vcsm_init_ex. So, eigther no WiFi or no AI.
Oddly enough, I just stumbled across this bug as well. Did yours start right after doing any OS updates with apt update/upgrade?
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior wlan0 interface to be up bettercap starting mon0
Screenshots pwnagotchi.log
[2019-07-10 02:18:36,744] [WARNING] ui.fps is 0, the display will only update for major changes [2019-07-10 02:18:36,747] [INFO] initializing waveshare v2 display [2019-07-10 02:18:46,245] [INFO] pwnagotchi@XXX (v1.5.3) [2019-07-10 02:18:46,260] [INFO] entering auto mode ... [2019-07-10 02:18:46,299] [INFO] [ai] bootstrapping dependencies ... [2019-07-10 02:18:46,372] [INFO] waiting for bettercap API to be available ... [2019-07-10 02:18:46,878] [INFO] web ui available at http://0.0.0.0:8080/ [2019-07-10 02:18:47,464] [INFO] waiting for bettercap API to be available ...
` pi@pwnagotchi:~ $ ifconfig -a lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 1341 bytes 87095 (85.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1341 bytes 87095 (85.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80::c80c:fff:fe6d:8653 prefixlen 64 scopeid 0x20 ether ca:0c:0f:6d:86:53 txqueuelen 1000 (Ethernet) RX packets 2558 bytes 270709 (264.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1832 bytes 358967 (350.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 `
/var/log/messages
Jul 10 02:20:03 pwnagotchi systemd[1]: bettercap.service: Service RestartSec=30s expired, scheduling restart. Jul 10 02:20:03 pwnagotchi systemd[1]: bettercap.service: Scheduled restart job, restart counter is at 5. Jul 10 02:20:03 pwnagotchi systemd[1]: Stopped bettercap api.rest service.. Jul 10 02:20:03 pwnagotchi systemd[1]: Started bettercap api.rest service.. Jul 10 02:20:04 pwnagotchi bettercap-launcher[1295]: command failed: No such file or directory (-2) Jul 10 02:20:04 pwnagotchi bettercap-launcher[1295]: WARNING: Terminal colors have been disabled, view will be very limited. Jul 10 02:20:04 pwnagotchi bettercap-launcher[1295]: bettercap v2.27.1 (built for linux arm with go1.13.1) [type 'help' for a list of commands] Jul 10 02:20:04 pwnagotchi bettercap-launcher[1295]: no interface matching 'mon0' found. Jul 10 02:20:04 pwnagotchi systemd[1]: bettercap.service: Main process exited, code=exited, status=1/FAILURE Jul 10 02:20:04 pwnagotchi systemd[1]: bettercap.service: Failed with result 'exit-code'.
dmesg ` pi@pwnagotchi:~ $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.93-Re4son+ (root@kali-pi-dev-0) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 Wed Jan 8 14:55:22 AEDT 2020 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] cma: Reserved 8 MiB at 0x1e400000 [ 0.000000] On node 0 totalpages: 126976 [ 0.000000] Normal zone: 1116 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 126976 pages, LIFO batch:31 [ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x4a8 with crng_init=0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 125860 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:F4:0F:02 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 482740K/507904K available (7211K kernel code, 676K rwdata, 2180K rodata, 460K init, 805K bss, 16972K reserved, 8192K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xdf800000 - 0xff800000 ( 512 MB) lowmem : 0xc0000000 - 0xdf000000 ( 496 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0x(ptrval) - 0x(ptrval) (7212 kB) .init : 0x(ptrval) - 0x(ptrval) ( 460 kB) .data : 0x(ptrval) - 0x(ptrval) ( 677 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 806 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] ftrace: allocating 25738 entries in 76 pages [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000032] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.000095] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.000227] bcm2835: system timer (irq = 27) [ 0.000647] Console: colour dummy device 80x30 [ 0.001290] console [tty1] enabled [ 0.001373] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792) [ 0.060410] pid_max: default: 32768 minimum: 301 [ 0.060997] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.061058] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.062740] Disabling memory control group subsystem [ 0.062980] CPU: Testing write buffer coherency: ok [ 0.064344] Setting up static identity map for 0x8200 - 0x8238 [ 0.065838] devtmpfs: initialized [ 0.077523] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 0.077991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.078070] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.079461] pinctrl core: initialized pinctrl subsystem [ 0.081224] NET: Registered protocol family 16 [ 0.084654] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.092544] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.092619] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.092786] Serial: AMBA PL011 UART driver [ 0.096085] bcm2835-mbox 2000b880.mailbox: mailbox enabled [ 0.142143] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.142240] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.144842] SCSI subsystem initialized [ 0.145175] usbcore: registered new interface driver usbfs [ 0.145322] usbcore: registered new interface driver hub [ 0.145581] usbcore: registered new device driver usb [ 0.160987] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-01-06 13:05, variant start_cd [ 0.171006] raspberrypi-firmware soc:firmware: Firmware hash is f3e39fed4763ce4efbffabb2d4787aaacddeda0f [ 0.183670] clocksource: Switched to clocksource timer [ 0.286132] VFS: Disk quotas dquot_6.6.0 [ 0.286320] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.286689] FS-Cache: Loaded [ 0.287069] CacheFiles: Loaded [ 0.306361] NET: Registered protocol family 2 [ 0.307726] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.307854] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.307971] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.308093] TCP: Hash tables configured (established 4096 bind 4096) [ 0.308288] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.308357] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.308805] NET: Registered protocol family 1 [ 0.309953] RPC: Registered named UNIX socket transport module. [ 0.310014] RPC: Registered udp transport module. [ 0.310046] RPC: Registered tcp transport module. [ 0.310074] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.312373] hw perfevents: no irqs for PMU, sampling events not supported [ 0.312500] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available [ 0.316879] Initialise system trusted keyrings [ 0.317346] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 0.334117] FS-Cache: Netfs 'nfs' registered for caching [ 0.335567] NFS: Registering the id_resolver key type [ 0.335665] Key type id_resolver registered [ 0.335702] Key type id_legacy registered [ 0.335755] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.348022] jitterentropy: Initialization failed with host not compliant with requirements: 2 [ 0.348105] Key type asymmetric registered [ 0.348140] Asymmetric key parser 'x509' registered [ 0.348278] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) [ 0.348806] io scheduler noop registered [ 0.348862] io scheduler deadline registered (default) [ 0.349537] io scheduler cfq registered [ 0.349590] io scheduler mq-deadline registered (default) [ 0.349627] io scheduler kyber registered [ 0.352607] bcm2708_fb soc:fb: FB found 1 display(s) [ 0.359082] Console: switching to colour frame buffer device 82x26 [ 0.364104] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656x416 [ 0.371313] bcm2835-rng 20104000.rng: hwrng registered [ 0.373595] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB) [ 0.378279] vc-sm: Videocore shared memory driver [ 0.380879] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000 [ 0.405137] brd: module loaded [ 0.420442] loop: module loaded [ 0.423150] Loading iSCSI transport class v2.0-870. [ 0.426124] usbcore: registered new interface driver smsc95xx [ 0.427938] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.429840] dwc_otg: FIQ enabled [ 0.429850] dwc_otg: NAK holdoff enabled [ 0.429857] dwc_otg: FIQ split-transaction FSM enabled [ 0.429876] Module dwc_common_port init [ 0.430360] usbcore: registered new interface driver usb-storage [ 0.432607] mousedev: PS/2 mouse device common for all mice [ 0.436006] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 0.438313] bcm2835-cpufreq: min=700000 max=1000000 [ 0.441382] sdhci: Secure Digital Host Controller Interface driver [ 0.443268] sdhci: Copyright(c) Pierre Ossman [ 0.445817] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe [ 0.448489] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe [ 0.450688] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.453203] ledtrig-cpu: registered to indicate activity on CPUs [ 0.455555] hidraw: raw HID events driver (C) Jiri Kosina [ 0.457268] usbcore: registered new interface driver usbhid [ 0.458531] usbhid: USB HID core driver [ 0.460626] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 0.467041] vc_vchi_sm_init: failed to open VCHI service (-1) [ 0.467053] [vc_sm_connected_init]: failed to initialize shared memory service [ 0.469669] [vc_sm_connected_init]: end - returning -1 [ 0.472352] Initializing XFRM netlink socket [ 0.473891] NET: Registered protocol family 17 [ 0.475282] Key type dns_resolver registered [ 0.477900] registered taskstats version 1 [ 0.479184] Loading compiled-in X.509 certificates [ 0.481697] Key type encrypted registered [ 0.489921] uart-pl011 20201000.serial: cts_event_workaround enabled [ 0.491343] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2 [ 0.496164] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 0.497521] mmc-bcm2835 20300000.mmcnr: DMA channel allocated [ 0.529978] sdhost: log_buf @ (ptrval) (5e510000) [ 0.580245] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 0.582697] of_cfs_init [ 0.584124] of_cfs_init: OK [ 0.586134] Waiting for root device /dev/mmcblk0p2... [ 0.665754] random: fast init done [ 0.682384] mmc-bcm2835 20300000.mmcnr: no support for card's volts [ 0.682414] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.687229] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.690656] mmc1: error -22 whilst initialising SDIO card [ 0.702551] mmc1: Controller never released inhibit bit(s). [ 0.725653] mmc0: host does not support reading read-only switch, assuming write-enable [ 0.731816] mmc0: new high speed SDHC card at address aaaa [ 0.734627] mmcblk0: mmc0:aaaa SC32G 29.7 GiB [ 0.738795] mmcblk0: p1 p2 [ 0.743745] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.746371] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.759129] mmc1: Controller never released inhibit bit(s). [ 0.775940] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem [ 0.777495] EXT4-fs (mmcblk0p2): write access will be enabled during recovery [ 0.787209] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.791407] mmc1: Got command interrupt 0x00030000 even though no command operation was in progress. [ 0.805979] mmc1: Controller never released inhibit bit(s). [ 1.214142] EXT4-fs (mmcblk0p2): recovery complete [ 1.220884] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.225388] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 1.238401] devtmpfs: mounted [ 1.243851] Freeing unused kernel memory: 460K [ 1.245357] This architecture does not have kernel memory protection. [ 1.246819] Run /sbin/init as init process [ 1.953020] systemd[1]: System time before build time, advancing clock. [ 2.103649] NET: Registered protocol family 10 [ 2.106919] Segment Routing with IPv6 [ 2.160711] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 2.166146] systemd[1]: Detected architecture arm. [ 2.190643] systemd[1]: Set hostname to.
[ 3.794724] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.921844] systemd[1]: Configuration file /etc/systemd/system/pwngrid-peer.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 3.929738] systemd[1]: Configuration file /etc/systemd/system/pwnagotchi.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 3.989715] systemd[1]: Configuration file /etc/systemd/system/bettercap.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 4.039506] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.046041] systemd[1]: Created slice system-getty.slice.
[ 4.050235] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.053449] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 4.058418] systemd[1]: Listening on udev Kernel Socket.
[ 4.062425] systemd[1]: Reached target Swap.
[ 5.013927] dwc2 20980000.usb: 20980000.usb supply vusb_d not found, using dummy regulator
[ 5.016251] dwc2 20980000.usb: Linked as a consumer to regulator.0
[ 5.017401] dwc2 20980000.usb: 20980000.usb supply vusb_a not found, using dummy regulator
[ 5.233912] dwc2 20980000.usb: dwc2_check_params: Invalid parameter lpm=1
[ 5.235292] dwc2 20980000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1
[ 5.237659] dwc2 20980000.usb: dwc2_check_params: Invalid parameter besl=1
[ 5.238924] dwc2 20980000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1
[ 5.241388] dwc2 20980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[ 5.274519] dwc2 20980000.usb: DWC OTG Controller
[ 5.275975] dwc2 20980000.usb: new USB bus registered, assigned bus number 1
[ 5.277378] dwc2 20980000.usb: irq 33, io mem 0x20980000
[ 5.291095] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 5.294004] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.295444] usb usb1: Product: DWC OTG Controller
[ 5.296831] usb usb1: Manufacturer: Linux 4.19.93-Re4son+ dwc2_hsotg
[ 5.298208] usb usb1: SerialNumber: 20980000.usb
[ 5.333881] hub 1-0:1.0: USB hub found
[ 5.345507] hub 1-0:1.0: 1 port detected
[ 5.595534] using random self ethernet address
[ 5.596904] using random host ethernet address
[ 5.599065] usb0: HOST MAC a6:bc:b4:fe:c0:40
[ 5.600406] usb0: MAC ca:0c:0f:6d:86:53
[ 5.601646] using random self ethernet address
[ 5.602805] using random host ethernet address
[ 5.633886] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 5.635177] g_ether gadget: g_ether ready
[ 5.636283] dwc2 20980000.usb: bound driver g_ether
[ 5.700024] i2c /dev entries driver
[ 5.860528] dwc2 20980000.usb: new device is high-speed
[ 5.894021] dwc2 20980000.usb: new address 8
[ 5.907893] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[ 6.746844] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 7.096987] systemd-journald[96]: Received request to flush runtime journal from PID 1
[ 10.966021] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 10.975979] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 10.977787] media: Linux media interface: v0.10 [ 10.997287] vc_sm_cma_vchi_init: failed to open VCHI service (-1) [ 10.997301] [vc_sm_connected_init]: failed to initialize shared memory service [ 11.145302] videodev: Linux video capture interface: v2.00 [ 11.275901] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 11.278561] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 11.349160] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 11.357666] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 11.404259] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 11.405779] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 11.683397] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 11.775016] bcm2835_audio soc:audio: card created with 8 channels [ 17.173156] uart-pl011 20201000.serial: no DMA platform data [ 18.015896] random: crng init done [ 18.015917] random: 7 urandom warning(s) missed due to ratelimiting [ 18.629479] fuse init (API version 7.27) [ 18.910695] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 19.146837] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 19.371664] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 22.113891] Bluetooth: Core ver 2.22 [ 22.114074] NET: Registered protocol family 31 [ 22.114083] Bluetooth: HCI device and connection manager initialized [ 22.114107] Bluetooth: HCI socket layer initialized [ 22.114121] Bluetooth: L2CAP socket layer initialized [ 22.114171] Bluetooth: SCO socket layer initialized [ 22.146220] Bluetooth: HCI UART driver ver 2.3 [ 22.146238] Bluetooth: HCI UART protocol H4 registered [ 22.152540] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 22.152838] Bluetooth: HCI UART protocol Broadcom registered [ 23.258592] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 23.258607] Bluetooth: BNEP filters: protocol multicast [ 23.258632] Bluetooth: BNEP socket layer initialized `
Environment (please complete the following information):
Additional context Tried several installs, also changed sd card.