RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Rund um die Software von Revolution Pi
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

Hallo zusammen,

ich habe folgendes Szenario und benötige eure Hilfe (bin Neuling in der Linuxwelt):
Ein RevPi Core 3+ 32GB stellt mittels USB-Wlan-Adapter einen Access Point zu Verfügung und startet einen OPC UA Server als Service. Das funktioniert auch soweit (ist in einem Testaufbau untergebracht).
Jetzt habe ich ein Image erstellt (noch mit Win32DiskImager) und per balenaEtcher auf einen anderen RevPi Core 3+ 32GB geflasht.

Passwort, Hostname sowie MAC und Ethernet-IP sind damit identisch mit dem Original - das ist für mich erstmal kein Problem, da der Original RevPi an einem anderen Standort ist und beide keine Internetverbindung haben.

Jetzt kommen die Probleme:
1. 'ifconfig' oder 'ip link' zeigen mir kein Wlan-Interface an
2. Beim Bootvorgang kommen mehrere 'Failed' Meldungen (wobei ich nicht weiß, welche davon auch im original RevPi auftauchen). Der Reihenfolge entsprechend (aus journalctl):

Code: Select all

// Hardware Clock wahrscheinlich uninteressant hier?
Nov 03 18:16:43 RevPi13760 kernel: rtc-pcf2127-i2c 1-0051: oscillator stop detected, date/time is not reliable
Nov 03 18:16:43 RevPi13760 kernel: rtc-pcf2127-i2c 1-0051: hctosys: unable to read the hardware clock
[...]
// Oben genannter OPC UA Server als Service. "Ignoring" klingt für mich danach, als wenn der Service dennoch ausgeführt wird.
Nov 03 18:16:43 RevPi13760 systemd[1]: Set hostname to <RevPi13760>.
Nov 03 18:16:43 RevPi13760 systemd[1]: [/etc/systemd/system/opcuaserver.service:8] Failed to parse output specifier, ignoring: /var/opcuaservererror.log
[...]
Nov 03 18:16:43 RevPi13760 kernel: piControl: kernel_read returned 0: b97c0d00, 1313
[...]
// PiControl Fehler
Nov 03 18:16:43 RevPi13760 kernel: piControl: piControlInit done
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter PresentSignalling1 State
Nov 03 18:16:43 RevPi13760 systemd-modules-load[146]: Inserted module 'piControl'
Nov 03 18:16:43 RevPi13760 systemd-modules-load[146]: Failed to find module 'spi-bcm2708'
Nov 03 18:16:43 RevPi13760 systemd-modules-load[146]: Module 'i2c_bcm2708' is builtin
Nov 03 18:16:43 RevPi13760 systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Nov 03 18:16:43 RevPi13760 systemd[1]: Failed to start Load Kernel Modules.
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter InitialSlaveDetectionRight State
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter InitialSlaveDetectionLeft State
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter ConfigLeftStart State
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter ConfigDialogueLeft State
Nov 03 18:16:43 RevPi13760 kernel: piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
Nov 03 18:16:43 RevPi13760 systemd[1]: systemd-modules-load.service: Unit entered failed state.
Nov 03 18:16:43 RevPi13760 systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Nov 03 18:16:43 RevPi13760 systemd[1]: Starting Apply Kernel Variables...
Nov 03 18:16:43 RevPi13760 kernel: piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
Nov 03 18:16:43 RevPi13760 systemd[1]: Mounting Configuration File System...
Nov 03 18:16:43 RevPi13760 systemd[1]: Starting udev Coldplug all Devices...
Nov 03 18:16:43 RevPi13760 kernel: piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
Nov 03 18:16:43 RevPi13760 systemd[1]: Starting Flush Journal to Persistent Storage...
Nov 03 18:16:43 RevPi13760 kernel: piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
Nov 03 18:16:43 RevPi13760 kernel: piControl: Enter EndOfConfig State
[...]
Nov 03 18:16:45 RevPi13760 systemd[1]: Configuration file /lib/systemd/system/pileft.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Nov 03 18:16:45 RevPi13760 systemd[1]: Starting Load Kernel Modules...
Nov 03 18:16:45 RevPi13760 systemd[1]: Configuration file /lib/systemd/system/piright.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Nov 03 18:16:45 RevPi13760 systemd-modules-load[356]: Failed to find module 'spi-bcm2708'
Nov 03 18:16:45 RevPi13760 systemd-modules-load[356]: Module 'i2c_bcm2708' is builtin
Nov 03 18:16:45 RevPi13760 systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Nov 03 18:16:45 RevPi13760 systemd[1]: Failed to start Load Kernel Modules.
Nov 03 18:16:45 RevPi13760 systemd[1]: systemd-modules-load.service: Unit entered failed state.
Nov 03 18:16:45 RevPi13760 systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[...]
Nov 03 18:16:50 RevPi13760 systemd-timesyncd[848]: System clock time unset or jumped backwards, restoring from recorded timestamp: Thu 2019-12-12 11:57:41 CET
[...]
Dec 12 11:57:43 RevPi13760 systemd[1]: hostapd.service: Control process exited, code=exited status=1
Dec 12 11:57:43 RevPi13760 systemd[1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
Dec 12 11:57:43 RevPi13760 systemd[1]: hostapd.service: Unit entered failed state.
Dec 12 11:57:43 RevPi13760 systemd[1]: hostapd.service: Failed with result 'exit-code'.
Ich habe versucht, die Wlan Verbindung nach einem Raspi-Tutorial neu zu erstellen, bleibe aber immer am hostapd.service mit der Authenticator-Fehlermeldung hängen.

Ich bin davon ausgegangen, dass ich durch das Duplizieren des Images eine exakte Kopie des Systems bekomme und damit auch die Netzwerkkonfiguration die selbe sein sollte. Kann das mit der "falschen" MAC-Adresse zusammen hängen? Muss ich noch irgendwelche Konfigurationsdateien manuell anpassen? Oder kann es vielleicht sogar am RevPi liegen, das dieser durch die zuvor installierte Software und gefährliches Halbwissen kompromittiert ist und bestimmte Daten beim Flashen unberührt bleiben?

Vielen Dank schon einmal für das Durchlesen ;)
Steffen
User avatar
nicolaiB
KUNBUS
Posts: 873
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by nicolaiB »

Vermutlich ist die Mac-Adresse deines WLAN Adapter noch irgendwo hardcodiert hinterlegt (ich tippe auf udev) und daher kriegt das Interface einen neuen Namen. Das kannst du recht einfach testen, indem du den WLAN Stick vom anderen PI mal benutzt.

Nicolai
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

Hallo Nicolai,

den anderen WLAN Stick habe ich leider nicht hier und da komme ich auch so schnell nicht dran...genau wie der andere RevPi.

unter /etc/udev/rules.d/99-com.rules steht folgendes:

Code: Select all

SUBSYSTEM=="input", GROUP="input", MODE="0660"
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"
SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"

SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\
        chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\
        chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 /sys/devices/virtual/gpio;\
        chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\
'"

KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
        ALIASES=/proc/device-tree/aliases; \
        if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
                echo 0;\
        elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
                echo 1; \
        else \
                exit 1; \
        fi\
'", SYMLINK+="serial%c"

KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
        ALIASES=/proc/device-tree/aliases; \
        if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
                echo 0; \
        elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
                echo 1; \
        else \
                exit 1; \
        fi \
'", SYMLINK+="serial%c"
User avatar
nicolaiB
KUNBUS
Posts: 873
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by nicolaiB »

Was ist die Ausgabe von "ip link" und der Inhalt deiner /etc/network/interfaces? Hast du unter /etc/udev/rules.d/ noch weitere Dateien? z.B. etwas mit 70-net?

Gruß Nicolai
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

ip link:

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether c8:3e:a7:01:20:ee brd ff:ff:ff:ff:ff:ff
3: piright: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether d2:44:61:32:43:ab brd ff:ff:ff:ff:ff:ff
4: pileft: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether ba:90:92:02:3c:05 brd ff:ff:ff:ff:ff:ff
Die MAC von eth0 ist die selbe wie auf dem originalen RevPi. Über eth0 bin ich per SSH mit dem RevPi verbunden.

/etc/network/interfaces:

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# allow-hotplug eth0
# allow-hotplug eth1

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
#up iptables-restore < /etc/iptables.ipv4.nat
/etc/network/interfaces.d/ ist leer...

Die "99-com.rules" ist die einzige Datei im Ordner /etc/udev/rules.d/.

Danke!
User avatar
nicolaiB
KUNBUS
Posts: 873
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by nicolaiB »

Es scheint als würde dein USB Stick nicht erkannt werden. Kannst mal die Ausgabe von lsusb und dmesg (am besten direkt nach dem Booten) hochladen?

Nicolai
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

Hi Nicolai,

lsusb:

Code: Select all

Bus 001 Device 004: ID 0bda:a811 Realtek Semiconductor Corp. RTL8811AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.76-rt60-v7+ (admin@kunbus.de) (gcc version 8.3.0 (Debian 8.3.0-2) ) #1 SMP PREEMPT RT Wed, 04 Sep 2019 16:19:42 +0200
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi Compute Module 3 Plus Rev 1.0
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c74740, node_mem_map ba3a1000
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu @ba35a000 s27552 r8192 d21600 u57344
[    0.000000] pcpu-alloc: s27552 r8192 d21600 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:79:1F:0A vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait nosplash plymouth.ignore-serial-consoles
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939820K/970752K available (7168K kernel code, 490K rwdata, 2116K rodata, 1024K init, 795K bss, 22740K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c7a9b0   ( 491 kB)
                      .bss : 0x80c7c000 - 0x80d42e08   ( 796 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000016] Switching to timer-based delay loop, resolution 52ns
[    0.000295] Console: colour dummy device 80x30
[    0.001919] console [tty1] enabled
[    0.001943] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001949] pid_max: default: 32768 minimum: 301
[    0.002102] Security Framework initialized
[    0.002108] Yama: becoming mindful.
[    0.002323] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002332] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003308] Disabling memory control group subsystem
[    0.003427] CPU: Testing write buffer coherency: ok
[    0.003434] ftrace: allocating 23026 entries in 68 pages
[    0.058241] CPU0: update cpu_capacity 1024
[    0.058716] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.058796] Setting up static identity map for 0x100000 - 0x100058
[    0.298377] CPU1: update cpu_capacity 1024
[    0.298383] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.398520] CPU2: update cpu_capacity 1024
[    0.398525] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.498690] CPU3: update cpu_capacity 1024
[    0.498695] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.498860] Brought up 4 CPUs
[    0.499141] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.499188] CPU: All CPU(s) started in HYP mode.
[    0.499230] CPU: Virtualization extensions available.
[    0.500300] devtmpfs: initialized
[    0.516400] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.516891] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.516985] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.517654] pinctrl core: initialized pinctrl subsystem
[    0.519080] NET: Registered protocol family 16
[    0.522514] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.533558] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.533635] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.533852] Serial: AMBA PL011 UART driver
[    0.536501] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.596375] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[    0.598910] SCSI subsystem initialized
[    0.599156] usbcore: registered new interface driver usbfs
[    0.599304] usbcore: registered new interface driver hub
[    0.599486] usbcore: registered new device driver usb
[    0.608805] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-15 12:06
[    0.610607] clocksource: Switched to clocksource arch_sys_counter
[    0.690095] VFS: Disk quotas dquot_6.6.0
[    0.690249] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.690582] FS-Cache: Loaded
[    0.690990] CacheFiles: Loaded
[    0.706888] NET: Registered protocol family 2
[    0.707867] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.708044] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
[    0.708727] TCP: Hash tables configured (established 8192 bind 8192)
[    0.708876] UDP hash table entries: 512 (order: 3, 32768 bytes)
[    0.709023] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
[    0.709488] NET: Registered protocol family 1
[    0.710181] RPC: Registered named UNIX socket transport module.
[    0.710232] RPC: Registered udp transport module.
[    0.710276] RPC: Registered tcp transport module.
[    0.710320] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.711732] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.715041] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.736054] FS-Cache: Netfs 'nfs' registered for caching
[    0.737357] NFS: Registering the id_resolver key type
[    0.737434] Key type id_resolver registered
[    0.737480] Key type id_legacy registered
[    0.740748] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.740970] io scheduler noop registered
[    0.741017] io scheduler deadline registered (default)
[    0.741653] io scheduler cfq registered
[    0.749587] BCM2708FB: allocated DMA memory fad10000
[    0.749785] BCM2708FB: allocated DMA channel 0 @ bb80f000
[    0.800357] Console: switching to colour frame buffer device 228x61
[    0.831793] bcm2835-rng 3f104000.rng: hwrng registered
[    0.832124] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.833106] vc-sm: Videocore shared memory driver
[    0.853704] brd: module loaded
[    0.865659] loop: module loaded
[    0.865801] Loading iSCSI transport class v2.0-870.
[    0.866663] usbcore: registered new interface driver smsc95xx
[    0.866855] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.095147] Core Release: 2.80a
[    1.095263] Setting default values for core params
[    1.095434] Finished setting default values for core params
[    1.296098] Using Buffer DMA mode
[    1.296210] Periodic Transfer Interrupt Enhancement - disabled
[    1.296382] Multiprocessor Interrupt Enhancement - disabled
[    1.296547] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.296683] Dedicated Tx FIFOs mode
[    1.297368] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[    1.297665] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    1.298280] dwc_otg: Microframe scheduler enabled
[    1.298339] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805bd5f4
[    1.298347] WARN::hcd_init_fiq:460: FIQ ASM at 0x805bd960 length 36
[    1.298355] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[    1.298423] dwc_otg 3f980000.usb: DWC OTG Controller
[    1.305970] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.313061] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    1.319873] Init: Port Power? op_state=1
[    1.326781] Init: Power Port (0)
[    1.333901] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.340792] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.347671] usb usb1: Product: DWC OTG Controller
[    1.354531] usb usb1: Manufacturer: Linux 4.9.76-rt60-v7+ dwc_otg_hcd
[    1.361359] usb usb1: SerialNumber: 3f980000.usb
[    1.369191] hub 1-0:1.0: USB hub found
[    1.375995] hub 1-0:1.0: 1 port detected
[    1.383565] dwc_otg: FIQ enabled
[    1.383572] dwc_otg: NAK holdoff enabled
[    1.383578] dwc_otg: FIQ split-transaction FSM enabled
[    1.383596] Module dwc_common_port init
[    1.384163] usbcore: registered new interface driver usb-storage
[    1.391367] mousedev: PS/2 mouse device common for all mice
[    1.400082] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    1.407491] bcm2835-cpufreq: min=600000 max=1200000
[    1.415551] sdhci: Secure Digital Host Controller Interface driver
[    1.422442] sdhci: Copyright(c) Pierre Ossman
[    1.429862] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    1.437091] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.445339] hidraw: raw HID events driver (C) Jiri Kosina
[    1.452510] usbcore: registered new interface driver usbhid
[    1.459398] usbhid: USB HID core driver
[    1.467461] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[    1.476126] [vc_sm_connected_init]: start
[    1.486013] [vc_sm_connected_init]: end - returning 0
[    1.493597] Initializing XFRM netlink socket
[    1.500475] NET: Registered protocol family 17
[    1.507603] Key type dns_resolver registered
[    1.515059] Registering SWP/SWPB emulation handler
[    1.523070] registered taskstats version 1
[    1.539998] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    1.552366] rtc-pcf2127-i2c 1-0051: oscillator stop detected, date/time is not reliable
[    1.559665] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[    1.567621] sdhost: log_buf @ bad07000 (fad07000)
[    1.600785] Indeed it is in host mode hprt0 = 00021501
[    1.650643] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.659877] rtc-pcf2127-i2c 1-0051: oscillator stop detected, date/time is not reliable
[    1.667159] rtc-pcf2127-i2c 1-0051: hctosys: unable to read the hardware clock
[    1.674357] of_cfs_init
[    1.682627] of_cfs_init: OK
[    1.686215] random: fast init done
[    1.699699] Waiting for root device /dev/mmcblk0p2...
[    1.810662] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.818751] Indeed it is in host mode hprt0 = 00001101
[    1.871926] mmc0: new high speed MMC card at address 0001
[    1.890660] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[    1.897945] mmcblk0boot0: mmc0:0001 BJTD4R partition 1 4.00 MiB
[    1.916350] mmcblk0boot1: mmc0:0001 BJTD4R partition 2 4.00 MiB
[    1.924508] mmcblk0rpmb: mmc0:0001 BJTD4R partition 3 4.00 MiB
[    1.934159]  mmcblk0: p1 p2
[    2.063457] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    2.070701] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    2.071165] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.071175] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.078449] hub 1-1:1.0: USB hub found
[    2.078613] hub 1-1:1.0: 5 ports detected
[    2.390718] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.431336] random: crng init done
[    2.452383] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[    2.473025] EXT4-fs (mmcblk0p2): 6 orphan inodes deleted
[    2.480080] EXT4-fs (mmcblk0p2): recovery complete
[    2.496853] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.504132] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.512056] devtmpfs: mounted
[    2.521204] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.521287] Freeing unused kernel memory: 1024K
[    2.536149] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.546663] smsc95xx v1.0.5
[    2.646890] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, c8:3e:a7:01:20:ee
[    2.750723] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.881929] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=a811
[    2.889661] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.897353] usb 1-1.2: Product: 802.11ac WLAN Adapter
[    2.904960] usb 1-1.2: Manufacturer: Realtek
[    2.912529] usb 1-1.2: SerialNumber: 00e04c000001
[    2.936797] systemd[1]: System time before build time, advancing clock.
[    3.064368] NET: Registered protocol family 10
[    3.094163] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.125598] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.134767] systemd[1]: Detected architecture arm.
[    3.168811] systemd[1]: Set hostname to <RevPi13760>.
[    3.705126] systemd[1]: [/etc/systemd/system/opcuaserver.service:8] Failed to parse output specifier, ignoring: /var/opcuaservererror.log
[    3.744257] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.762920] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.781991] systemd[1]: Created slice System Slice.
[    3.816436] systemd[1]: Listening on Journal Socket.
[    3.839222] systemd[1]: Starting Set the console keyboard layout...
[    3.870407] systemd[1]: Starting Load Kernel Modules...
[    3.922347] i2c /dev entries driver
[    3.983311] spi0.1 supply vdd-io not found, using dummy regulator
[    3.983442] spi0.1 supply vdd not found, using dummy regulator
[    4.080772] ks8851 spi0.1: message enable is 0
[    4.094911] ks8851 spi0.1 pieth0: revision 1, MAC 6a:5e:6a:26:81:92, IRQ 0 (polling), no EEPROM
[    4.095630] spi0.0 supply vdd-io not found, using dummy regulator
[    4.095752] spi0.0 supply vdd not found, using dummy regulator
[    4.095845] ks8851 spi0.0: message enable is 0
[    4.101696] ks8851 spi0.0 pieth1: revision 1, MAC f6:f9:fe:76:1f:a7, IRQ 0 (polling), no EEPROM
[    4.331014] piControl: loading out-of-tree module taints kernel.
[    4.355008] piControl: built: Wed Sep 4 16:40:57 CEST 2019
[    4.363996] piControl: RevPi Core
[    4.372353] piControl: MAJOR-No.  : 244
[    4.380573] piControl: MAJOR-No.  : 244  MINOR-No.  : 0
[    4.413265] piControl: kernel_read returned 0: b8b16000, 1313
[    4.421295] piControl: 1 devices found
[    4.429412] piControl: 8 entries in total
[    4.437779] piControl: cl-comp:  0 addr  6  bit ff  len   8
[    4.451063] uart-pl011 3f201000.serial: no DMA platform data
[    4.451156] piControl: filp_open -1196333568
[    4.451232] piControl: set priority of spi0 to 54
[    4.451497] piControl: piIO thread started
[    4.451505] piControl: RevPiDevice_init()
[    4.451511] piControl: Enter Init State
[    4.451677] piControl: PADS 0 = 0x1b   slew=1  hyst=1  drive=3
[    4.451686] piControl: PADS 1 = 0x1b   slew=1  hyst=1  drive=3
[    4.451709] piControl: PADS 2 = 0x1b   slew=1  hyst=1  drive=3
[    4.451709] piControl: piControlInit done
[    4.452208] piControl: Enter PresentSignalling1 State
[    4.491406] piControl: Enter InitialSlaveDetectionRight State
[    4.491949] piControl: Enter InitialSlaveDetectionLeft State
[    4.492490] piControl: Enter ConfigLeftStart State
[    4.502559] piControl: Enter ConfigDialogueLeft State
[    4.550667] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    4.600735] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    4.650743] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    4.700753] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    4.701344] piControl: Enter EndOfConfig State

[    4.701374] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    4.701389] piControl:            input offset      0  len   6
[    4.701398] piControl:            output offset     6  len   5
[    4.701416] piControl:            serial number 1  version 1.2
[    4.701427] piControl:
[    4.701455] piControl: Adjust: base 0 in 0 out 6 conf 0
[    4.701463] piControl: After Adjustment
[    4.701473] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    4.701479] piControl:            input offset      0  len   6
[    4.701486] piControl:            output offset     6  len   5
[    4.701491] piControl:
[    4.820724] piControl: start data exchange
[    4.851619] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.060729] piControl: initialization of module not finished (1,0,0) -> retry
[    5.061293] piControl: Enter Initialization Retry
[    5.434083] systemd-journald[167]: Received request to flush runtime journal from PID 1
[    5.526469] ks8851 spi0.0 pileft: renamed from pieth1
[    5.583718] ks8851 spi0.1 piright: renamed from pieth0
[    7.490688] piControl: RevPiDevice_init()
[    7.491263] piControl: Enter Init State
[    7.491847] piControl: Enter PresentSignalling1 State
[    7.531353] piControl: Enter InitialSlaveDetectionRight State
[    7.531926] piControl: Enter InitialSlaveDetectionLeft State
[    7.532503] piControl: Enter ConfigLeftStart State
[    7.542584] piControl: Enter ConfigDialogueLeft State
[    7.590750] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    7.640733] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    7.690775] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    7.704412] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    7.740755] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[    7.741337] piControl: Enter EndOfConfig State

[    7.741366] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    7.741374] piControl:            input offset      0  len   6
[    7.741381] piControl:            output offset     6  len   5
[    7.741390] piControl:            serial number 1  version 1.2
[    7.741395] piControl:
[    7.741423] piControl: Adjust: base 0 in 0 out 6 conf 0
[    7.741438] piControl: After Adjustment
[    7.741452] piControl: Device  0: Addr  0 Type  95  Act 1  In   6 Out   5
[    7.741459] piControl:            input offset      0  len   6
[    7.741466] piControl:            output offset     6  len   5
[    7.741471] piControl:
[    7.860784] piControl: start data exchange
[    8.100758] piControl: set BridgeState to running
[   12.631742] IPv6: ADDRCONF(NETDEV_UP): pileft: link is not ready
[   12.639849] IPv6: ADDRCONF(NETDEV_UP): piright: link is not ready
[   13.201578] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   17.093620] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

Sollte mir das "Failed to start Load Kernel Modules", das beim Bootvorgang auftaucht, nicht auch zu Denken geben?
Ich kann im Code Segment leider nichts farbig markieren (oder doch?), daher hier die Zeiten wo etwas rot ist:
- 1.667159
- 3.705126
- 4.413265
- 4.550667 - 4.700753
- 7.590750 - 7.690775
- 7.740755

Der Wlan Adapter wird ab 2.536149 aufgeführt.

Ich habe noch einen anderen Wlan Adapter ausprobiert, dieser wird zwar in dmesg auch gelistet, aber dessen LED leuchtet nicht...Könnte es helfen den RevPi ans Netz zu hängen für etwaige Treiber?
Ich werde nachher das Image auch mal auf einen ganz neuen RevPi ziehen...auch wenn ich glaube, dass ich da das selbe Problem haben werde...

Danke
User avatar
nicolaiB
KUNBUS
Posts: 873
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by nicolaiB »

Hallo Steffen,

ist der WLAN-Stick identisch (Chipsatz, RTL8811AU) mit dem des geklonten RevPi? Der Treiber für den RTL8811AU ist meines Wissens nach nicht im Kernel enthalten, sodass er erst installiert / übersetzt werden müsste. Treiber für andere Chipsätze sind jedoch oft schon enthalten wie z.B. der RTL8188CUS (Stick im Kunbus Shop).

Gruß Nicolai
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

Hi Nicolai,

ob der WLAN-Stick identisch ist, kann ich nicht mit Sicherheit sagen....
Ich habe noch einen weiteren Edimax USB Adapter: N150 2-in-1 WLAN & Bluetooth 4.0 Nano USB-Adapter / EW-7611ULB.
Sieht optisch so aus wie der aus dem Kunbus Shop - das heißt aber ja nichts.

Wie hast du aus den gegebenen Informationen den Chipsatz herausfiltern können? Aus der SerialNumber? Die ist hier zumindest identisch zum WLAN-Stick zuvor.

Hier der Teil zum Edimax aus dmesg:

Code: Select all

New USB device found, idVendor=7392, idProduct=a611
[    2.815296] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.821485] usb 1-1.2: Product: Edimax Wi-Fi N150 Bluetooth4.0 USB Adapter
[    2.824754] usb 1-1.2: Manufacturer: Realtek
[    2.827885] usb 1-1.2: SerialNumber: 00e04c000001
Ich versuche gerade den Treiber für den genannten Edimax manuell zu installieren (Anleitung: https://edimax.freshdesk.com/support/so ... spberry-pi), bisher vergeblich...

Falls von Belang:
"sudo apt update" gibt "Unable to connect to packages.revolutionpi.de" aus.

systemctl status hostapd.service ergibt folgendes:

Code: Select all

pi@RevPi13760:~ $ systemctl status hostapd.service
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
   Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2020-01-22 15:35:38 CET; 418ms ago
  Process: 8993 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)

Jan 22 15:35:38 RevPi13760 systemd[1]: hostapd.service: Unit entered failed state.
Jan 22 15:35:38 RevPi13760 systemd[1]: hostapd.service: Failed with result 'exit-code'.
Edit:
Habe den Edimax Adapter auf einem neuen RevPi erfolgreich installieren können. Das Wlan Interface wird angezeigt. Das probiere ich jetzt nochmal auf dem anderen RevPi und melde mich wieder.
SteffenTTC
Posts: 8
Joined: 05 Sep 2019, 10:49
Answers: 0

Re: RevPi Image dupliziert - Failed to start Load Kernel Modules / Kein Wlan Interface

Post by SteffenTTC »

Hi Nicolai,

es funktioniert! Es war tatsächlich "nur" der Treiber, der gefehlt hat. Vielen Dank für deine Geduld.

Nochmal zusammengefasst der Lösungsweg in meinem Fall (Edimax WLAN Stick EW-7611ULB):

- SSH und Internetverbindung sollten über dieselbe Schnittstelle laufen (sonst konnten bei mir einige Packages nicht abgerufen werden)
- Vorbereitung um Treiber zu kompilieren (aus einem anderen Thread hier im Forum):

Code: Select all

sudo apt-get install raspberrypi-kernel-headers
cd /usr/src/linux-headers-4.4.50-rt66-v7+/scripts
sudo make recordmcount
cd basic
sudo make fixdep
cd ../mod
sudo make modpost.o file2alias.o sumversion.o
sudo cc -o modpost modpost.o file2alias.o sumversion.o
cd /home/pi
- Treiber herunterladen und installieren:

Code: Select all

git clone https://github.com/lwfinger/rtl8723bu.git
cd rtl8723bu
make
sudo make install
sudo reboot
Post Reply