[SOLVED] Raspb.Pi3 w. FDE & dropbear will not configure netw

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[SOLVED] Raspb.Pi3 w. FDE & dropbear will not configure netw

Postby 0range » Wed May 17, 2017 1:54 am

Raspberry Pi 3 with FDE & dropbear will not configure network.

I followed mostly the howto https://gist.github.com/pezz/5310082 (differences being that yaourt does not work any more, that the manual was not for Raspberry Pi 3, that it uses /boot/cmdline.txt and /boot/config.txt, not /boot/boot.txt).

The relevant line of boot.txt is:

$this->bbcode_second_pass_code('', 'setenv bootargs earlyprintk console=ttyGS0,115200 console=${console} ip=192.168.0.10::192.168.0.1:255.255.255.0:pi:eth0:none cryptdevice=/dev/mmcblk0p3:root root=/dev/mapper/root rw rootwait loglevel=5')

The /etc/mkinitcpio.conf is (non-commented lines only):

$this->bbcode_second_pass_code('', 'MODULES="dm_crypt dm_mod ext4"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block keyboard netconf dropbear encryptssh filesystems fsck"')

The error is the following (note that the left margin of the screen is not readable):

$this->bbcode_second_pass_code('', '...
...0.000000] arm_arch_timer: WARNING: Please fix your firmware
...0.000000] arm_arch_timer: WARNING: Invalid trigger for IRQ2, assuming level

[This message is repeated 7 times for IRQ1 and IRQ2 with the time index increasing, otherwise nothing changed]

...0.145404] dmi: Firmware registration failed.
...0.772865] kvm [1]: Invalid trigger for IRQ4, assuming level low
...1.712142] cacheinfo: Unable to detect cache hierarchy for CPU0
...1.789492] dmi-sysfs: dmi entry is absent.
...1.923932] dwc2 3f980000.usb: 3f980000.usb supply vusb_d not fount, using dummy regulator
...1.924363] dwc2 3f980000.usb: 3f980000.usb supply vusb_a not fount, using dummy regulator
...unning early hook [udev]
...ting version 232
...unning hook [udev]
...riggering uevents...
...unning hook [netconf]
...nfig: eth0: SIOCGIFINDEX: No such device
...nfig: no devices to configure
...onfig: eth0: /
...onfig: eth0: gw: dns0: dns1:
...unning hook [dropbear]
...ting dropbear
...] Jan 01 00:00:01 Running in background
...unning hook [encryptssh]

[Followed by the LUKS password prompt to which I cannot respond since I have no input devices]')

The device does never appear on the LAN (which is perhaps not surprising as it failed to configure eth0). What I do not understand is, why or how to solve it.

What did not work is:$this->bbcode_list('1')
  • including module smsc95xx in the MODULES line of the /etc/mkinitcpio.conf (this module seems to be the one used to run the LAN port)
  • including all modules that are loaded under normal operations without disk encryption as shown in lsmod (those being: vc4 drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops pwm_bcm2835 i2c_bcm2835 bcm2835_wdt mii usbnet smsc95xx dm_crypt)
  • starting from fallback initrd (which was created with -S autodetect and is 10 times larger than the simple initrd and includes lots of extra modules)

  • Also note that without disk encryption, the system (with even the same kernel and initrd) starts quite normally; the network is configured properly and the system cones online under the specified IP with the network device being named eth0.

    I gather that this is not a problem of missing modules but rather either one of the hooks being in the wrong order or one of the network device (eth0) not being named correctly.

    The IRQ[124] firmware warnings are somewhat odd, but, I assume, unrelated to this network issue.

    Any help is appreciated...
    Last edited by 0range on Thu May 18, 2017 3:01 am, edited 1 time in total.
    0range
     
    Posts: 2
    Joined: Wed May 17, 2017 1:11 am

    Re: Raspberry Pi3 with FDE & dropbear will not configure net

    Postby 0range » Thu May 18, 2017 2:58 am

    Solved. I added some more modules and hooks in /etc/mkinitcpio.conf. I do not know (and do not know how to find out) which ones made the crucial difference. I added further modules for handling usb and the net hook.

    $this->bbcode_second_pass_code('', 'MODULES="dm_crypt dm_mod ext4 g_cdc usb_f_acm usb_f_ecm smsc95xx g_ether"
    BINARIES=""
    FILES=""
    HOOKS="base udev autodetect modconf block keyboard net netconf dropbear encryptssh filesystems fsck"')

    This is the relevant section in dmesg (journalctl -xb is nearly identical to dmesg on the boot process, right?)
    $this->bbcode_second_pass_code('', '[ 1.826694] dwc2 3f980000.usb: 3f980000.usb supply vusb_d not found, using dummy regulator
    [ 1.834947] dwc2 3f980000.usb: 3f980000.usb supply vusb_a not found, using dummy regulator
    [ 1.895279] dwc2 3f980000.usb: DWC OTG Controller
    [ 1.895509] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
    [ 1.895545] dwc2 3f980000.usb: irq 41, io mem 0x3f980000
    [ 1.895766] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 1.895775] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.895782] usb usb1: Product: DWC OTG Controller
    [ 1.895789] usb usb1: Manufacturer: Linux 4.11.0-1-ARCH dwc2_hsotg
    [ 1.895795] usb usb1: SerialNumber: 3f980000.usb
    [ 1.896311] hub 1-0:1.0: USB hub found
    [ 1.896349] hub 1-0:1.0: 1 port detected
    [ 1.896765] hctosys: unable to open rtc device (rtc0)
    [ 1.896863] PM: Hibernation image not present or could not be loaded.
    [ 1.896909] ALSA device list:
    [ 1.896913] No soundcards found.
    [ 1.898299] Freeing unused kernel memory: 1344K
    [ 1.966554] random: systemd-tmpfile: uninitialized urandom read (16 bytes read)
    [ 1.983418] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.983836] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.983891] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.989638] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.989743] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.989783] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.992906] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.993005] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.993045] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [ 1.996852] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
    [ 2.011918] usbcore: registered new interface driver smsc95xx
    [ 2.017603] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
    [ 2.323205] usb 1-1: new high-speed USB device number 2 using dwc2
    [ 2.429430] random: fast init done
    [ 2.581659] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
    [ 2.581675] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 2.590030] hub 1-1:1.0: USB hub found
    [ 2.590117] hub 1-1:1.0: 5 ports detected
    [ 2.913137] usb 1-1.1: new high-speed USB device number 3 using dwc2
    [ 3.043502] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    [ 3.043511] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 3.050572] smsc95xx v1.0.5
    [ 3.148602] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, <MAC ADDRESS REMOVED>
    [ 4.156227] random: crng init done
    [ 7.806768] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    [ 9.409630] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
    [ 138.596865] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)')

    Maybe this helps someone in the future.
    0range
     
    Posts: 2
    Joined: Wed May 17, 2017 1:11 am


    Return to ARMv8

    Who is online

    Users browsing this forum: No registered users and 22 guests