読者です 読者をやめる 読者になる 読者になる

わらばんし仄聞記

南の国で引きこもってるWeb屋さん

raspberry pi3への64bit版opensuseインストールとwifiの有効化

この記事は以前に書いた
Installing 64bit openSUSE to raspberry pi 3 - わらばんし仄聞記
After installing 64bit openSUSE to raspberry pi 3 - わらばんし仄聞記
を日本語化して整理したものです。

追記 2017/02/03
元々英語版の記事を書いていた時に使用したOSイメージである openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3_aarch64.aarch64-2016.10.15-Build6.1.raw.xz での手順となります。その後この日本語版を書く際に使用してみたこの時点の最新版である openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2017.01.31-Build1.1.raw.xz でも試してみた所、この手順ではwlan0を認識してくれませでした。原因は調査中です。

追記 2017/02/05
Tumbleweed版ではなくLeap42.2版のJeOSイメージでは現時点での最新版で動作したとのことです。b4_dooms_dayさん、検証ありがとうございました!
その情報を元に自分の手元でも試してみた所、本記事本文のやり方でSDカードへの書き込み後、raspi3へセットしての最初の起動時はwlan0を何も設定していなくても認識していました。ですが、再起動したらwlan0が現れなくなり、その後は下で記した手順を経たら認識するようになりました。

はじめに

raspberry pi3を買ってみたものの、下調べが足りずにその時点でraspbianが64bit対応してなかったことを把握してませんでした。とはいえ、折角の64bitマシンなのにOSは32bitで動かすなんて悔しすぎる!
というわけで、raspberry pi3向けのイメージを探し求めた結果、openSUSEならば対応しているのを見つけ、これで動かしてやろうと思った次第です。
但し、自分が試した段階ではopenSUSEがinstallした直後の状態ではwifi用のNICを認識してくれず、これまたraspberry pi3なのにwifi使えないなんて悔しすぎる!ということでそこら辺まで動作するようにした際のメモです。
尚、SDカードに書き込みをしたりするのに使ってるのもopenSUSEを入れてあるラップトップだったりします。

install

公式サイトは HCL:Raspberry Pi3 - openSUSE です。
このページから自分はTumbleweed版のJeOS imageをダウンロードしました。また、このサイトに書いてある手順だとシリアルポートとかを使って云々と書いてありますが、今住んでる所の近所ではどこで売ってるのか分からないそんなものを使うのは現実的ではないので、別の方法を取る事にしました。amazonも来ない場所なので…。

raspberry pi3用に用意したSDカードをOSイメージ書き込み用のPCへセットしてマウントしておき、公式サイトにある通り、上記のイメージをダウンロートして展開しつつSDカードへ書き込みます。

xzcat openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3_aarch64.aarch64-2016.10.15-Build6.1.raw.xz | dd bs=4M of=/dev/mmcblk0 iflag=fullblock oflag=direct; sync

imageのファイル名やSDカードのマウント先は適宜変えてください。自分の今回試した環境では上記のようになりました。

この後公式サイトの手順だとシリアルポートやらHDMIやらを使えと言われますが、手元に丁度いいモノが無いのでココから先は別の手順です。とりあえず動作することを第一の目標としますので、セキュリティ的な面なんかについては動作した後にじっくり直して貰えればと。

上記の手順でOSのimageを書き込んだSDカードをマウントし直すと、パーティションが2つあるかと思います。手元の環境ではこんな感じですね。

> ls -lh /dev/mmcblk0*
brw-rw---- 1 root disk 179, 0 Feb  3 01:14 /dev/mmcblk0
brw-rw---- 1 root disk 179, 1 Feb  3 01:14 /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 2 Feb  3 01:14 /dev/mmcblk0p2

この内、2つ目のパーティションにTumbleweedのシステムが書き込まれてます。ですので、それをマウントしてやります。

# /dev/mmcblk0p2 /mnt

マウントしたシステムの中にあるファイルを編集して、OS起動時にsshdを起動、firewallの停止、rootでのログインを許可します。

# echo "service sshd start" >> /mnt/etc/init.d/after.local
# echo "systemctl stop SuSEfirewall2" >> /mnt/etc/init.d/after.local
# pwd
/mnt/etc/ssh
# diff -u sshd_config.org sshd_config
--- sshd_config.org     2017-02-03 01:21:55.272065013 +0900
+++ sshd_config 2017-02-03 01:22:25.700093069 +0900
@@ -46,7 +46,7 @@
 # Authentication:

 #LoginGraceTime 2m
-#PermitRootLogin yes
+PermitRootLogin yes
 #StrictModes yes
 #MaxAuthTries 6
 #MaxSessions 10
@@ -74,7 +74,7 @@
 #IgnoreRhosts yes

 # To disable tunneled clear text passwords, change to no here!
-PasswordAuthentication no
+PasswordAuthentication yes
 #PermitEmptyPasswords no

 # Change to no to disable s/key passwords

これらを書き込んだらSDカードをアンマウントしてraspberry pi3に挿入しておきます。

raspberry pi3上での設定

上記で準備が完了したraspberry pi3にLANケーブルを繋ぎ、起動します。
DHCPなのでIPを知る必要がありますが、特に問題ければ同一LAN内に繋いであるPCからnmapで22番ポートを開放しているものを探せばいいと思います。

# nmap -p22 192.168.0.0/24

とかですかね。ネットワークアドレスなんかは各自の環境で適宜変えてもらうとして、これでraspberry pi3の起動以前に無かったsshをopenしてるものが見つかれば、それにログインしてみます。ちなみに原因は調査していませんが、raspi3の本体に電源を入れてからnmapに現れるまで結構時間がかかります。5分くらいでしょうか。
というわけで、ログイン。初期ユーザー名とパスワードは公式サイトにあるように、root:linuxです。

$ ssh root@192.168.0.x

wifiバイスの有効化

ログインまで完了した後、英語版のblogではなぜかディスク容量が小さかったので拡張してますが、今回改めて試してたら普通にSDカードの容量をいっぱいに使ってくれてるのでその辺りは省きます。

このwifiバイス有効化に際して参照させてもらったのは以下の投稿です

前者の記事ではraspi3のchipsetはBroadcom BCM43438なので、それに対応するfirmwareが入ってれば大丈夫なハズだけど動かないといったことが語られてる様です。実際手元の環境でもその辺りが入ってる事は確認できます。

ls -lh /lib/firmware/brcm/brcmfmac43430-sdio*
-rw-r--r-- 1 root root 361K Jan 13 16:14 /lib/firmware/brcm/brcmfmac43430-sdio.bin
-rw-r--r-- 1 root root 1.1K Jan 24 00:02 /lib/firmware/brcm/brcmfmac43430-sdio-raspberrypi3b.txt

ですが、 yast network してみても iwconfig してみてもwlan0は一向に見つかりません。
後者はそれに対してこのfirmwareを読みめるようにするためにやったことの様です。手順としては次のとおりです。

  1. Install bcm43xx-firmware package
  2. Run /usr/sbin/install-brcmfmac
  3. Delete “sdhci_iproc” from first line (add_drivers) in /etc/dracut.conf.d/raspberrypi_modules.conf
  4. Uncomment last line (omit_drivers) in the same file
  5. Run “mkinitrd -f”
  6. Reboot

手順1の bcm43xx-firmware は恐らく既にinstallされていると思います。ということで、手順2から開始し、 /usr/sbin/install-brcmfmac を実行します。 特に問題ないと思うので、次に手順3,4に従って、 /etc/dracut.conf.d/raspberrypi_modules.conf を下の様な感じで編集します。

# diff -u raspberrypi_modules.conf.org raspberrypi_modules.conf
--- raspberrypi_modules.conf.org        2017-02-02 18:06:16.391733805 +0100
+++ raspberrypi_modules.conf    2017-02-02 18:06:43.601323904 +0100
@@ -1,3 +1,4 @@
-add_drivers+=" sdhci-iproc bcm2835-sdhost bcm2835_dma mmc_block dwc2 "
+add_drivers+=" bcm2835-sdhost bcm2835_dma mmc_block dwc2 "
 # Workaround for Wifi
 #omit_drivers+=" sdhci-iproc"
+omit_drivers+=" sdhci-iproc"

この後手順5,6に従い、 mkinitrd -f を実行したら再起動します。

# mkinitrd -f
# shutdown -r now

再起動後、 $ ifconfig -a で確認するとwlan0が認識されていますので、あとは # yast network から無線LANのアクセスポイント等の設定をしてやればOKです。

# uname -a
Linux nohostname 4.4.24-3-default #1 SMP Wed Oct 12 14:23:39 UTC 2016 (1288c77) aarch64 aarch64 aarch64 GNU/Linux
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr B8:27:EB:31:B4:2E
          inet addr:192.168.0.28  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe31:b42e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:836 errors:0 dropped:0 overruns:0 frame:0
          TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50985 (49.7 Kb)  TX bytes:28093 (27.4 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr B8:27:EB:64:E1:7B
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

以上でraspberry pi3上にて64bit OSの元でwifiを使える環境が整いました。(上記はwlan0にAP周りの設定をする前の状態です)
諸々の設定をした状態での再起動時のログは以下の通りです。

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.24-3-default (geeko@buildhost) (gcc version 6.2.1 20160830 [gcc-6-branch revision 239856] (SUSE Linux) ) #1 SMP Wed Oct 12 14:23:39 UTC 2016 (1288c77)
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Getting EFI parameters from FDT:
[    0.000000] EFI v2.05 by Das U-boot
[    0.000000] efi: efi:  SMBIOS=0x35b14000 efi: 
[    0.000000] No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x0000000036ffffff]
[    0.000000] NUMA: Adding memblock [0x0 - 0xfff] on node 0
[    0.000000] NUMA: Adding memblock [0x1000 - 0x35b13fff] on node 0
[    0.000000] NUMA: Adding memblock [0x35b14000 - 0x35b14fff] on node 0
[    0.000000] NUMA: Adding memblock [0x35b15000 - 0x36f86fff] on node 0
[    0.000000] NUMA: Adding memblock [0x36f87000 - 0x36f87fff] on node 0
[    0.000000] NUMA: Adding memblock [0x36f88000 - 0x36ffffff] on node 0
[    0.000000] NUMA: Initmem setup node 0 [mem 0x00000000-0x36ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x36fe4c80-0x36fe69ff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000000036ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000000000fff]
[    0.000000]   node   0: [mem 0x0000000000001000-0x0000000035b13fff]
[    0.000000]   node   0: [mem 0x0000000035b14000-0x0000000035b14fff]
[    0.000000]   node   0: [mem 0x0000000035b15000-0x0000000036f86fff]
[    0.000000]   node   0: [mem 0x0000000036f87000-0x0000000036f87fff]
[    0.000000]   node   0: [mem 0x0000000036f88000-0x0000000036ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000036ffffff]
[    0.000000] On node 0 totalpages: 225280
[    0.000000]   DMA zone: 3520 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 225280 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 17 pages/cpu @ffff800036f95000 s30616 r8192 d30824 u69632
[    0.000000] pcpu-alloc: s30616 r8192 d30824 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 221760
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/Image-4.4.24-3-default root=UUID=ba0177f2-9fb3-4949-ae1e-c4af0f1e579b root=/dev/disk/by-id/mmc-00000_0x00003b5c-part2 disk=/dev/disk/by-id/mmc-00000_0x00003b5c resume=/dev/disk/by-id/mmc-00000_0x00003b5c-part3 quiet splash=silent plymouth.enable=0 console=ttyS0,115200n8
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] software IO TLB [mem 0x31b14000-0x35b14000] (64MB) mapped at [ffff800031b14000-ffff800035b13fff]
[    0.000000] Memory: 796496K/901120K available (7016K kernel code, 1048K rwdata, 5180K rodata, 908K init, 1084K bss, 104624K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vmalloc : 0xffff000000000000 - 0xffff7bffbfff0000   (126974 GB)
                   vmemmap : 0xffff7bffc0000000 - 0xffff7fffc0000000   (  4096 GB maximum)
                             0xffff7bffc0000000 - 0xffff7bffc0dc0000   (    13 MB actual)
                   fixed   : 0xffff7ffffa7fd000 - 0xffff7ffffac00000   (  4108 KB)
                   PCI I/O : 0xffff7ffffae00000 - 0xffff7ffffbe00000   (    16 MB)
                   modules : 0xffff7ffffc000000 - 0xffff800000000000   (    64 MB)
                   memory  : 0xffff800000000000 - 0xffff800037000000   (   880 MB)
                     .init : 0xffff800000c6b000 - 0xffff800000d4e000   (   908 KB)
                     .text : 0xffff800000080000 - 0xffff800000c6b000   ( 12204 KB)
                     .data : 0xffff800000d4e000 - 0xffff800000e54200   (  1049 KB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000009] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000019] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000050] bcm2835: system timer (irq = 35)
[    0.000258] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000264] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000270] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000561] Console: colour dummy device 80x25
[    0.000610] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000619] pid_max: default: 32768 minimum: 301
[    0.000719] Security Framework initialized
[    0.000743] AppArmor: AppArmor initialized
[    0.001068] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.002003] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.002432] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.002442] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.003041] Initializing cgroup subsys io
[    0.003055] Initializing cgroup subsys memory
[    0.003085] Initializing cgroup subsys devices
[    0.003095] Initializing cgroup subsys freezer
[    0.003107] Initializing cgroup subsys net_cls
[    0.003116] Initializing cgroup subsys perf_event
[    0.003124] Initializing cgroup subsys net_prio
[    0.003136] Initializing cgroup subsys hugetlb
[    0.003144] Initializing cgroup subsys pids
[    0.003180] ftrace: allocating 25291 entries in 99 pages
[    0.036772] Remapping and enabling EFI services.
[    0.036792]   EFI remap 0x0000000035b14000 => 0000000040004000
[    0.036823]   EFI remap 0x0000000036f87000 => 0000000040017000
[    0.036829]   EFI remap 0x000000003f100000 => 0000000040020000
[    0.036853] ASID allocator initialised with 65536 entries
[    0.038878] Detected VIPT I-cache on CPU1
[    0.038918] CPU1: Booted secondary processor [410fd034]
[    0.039251] Detected VIPT I-cache on CPU2
[    0.039272] CPU2: Booted secondary processor [410fd034]
[    0.039588] Detected VIPT I-cache on CPU3
[    0.039608] CPU3: Booted secondary processor [410fd034]
[    0.039647] Brought up 4 CPUs
[    0.039665] SMP: Total of 4 processors activated.
[    0.039673] CPU: All CPU(s) started at EL2
[    0.039690] alternatives: patching kernel code
[    0.040210] devtmpfs: initialized
[    0.044976] SMBIOS 3.0 present.
[    0.044990] DMI: raspberrypi rpi/rpi, BIOS 2016.07 09/28/2016
[    0.045221] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.045517] pinctrl core: initialized pinctrl subsystem
[    0.046389] NET: Registered protocol family 16
[    0.076462] cpuidle: using governor ladder
[    0.106470] cpuidle: using governor menu
[    0.106533] fsl-mc bus type registered
[    0.106583] MC object device driver fsl_mc_dprc registered
[    0.106607] MC object device driver fsl_mc_allocator registered
[    0.106736] vdso: 2 pages (1 code @ ffff800000d55000, 1 data @ ffff800000d54000)
[    0.106760] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.107027] DMA: preallocated 256 KiB pool for atomic allocations
[    0.107132] Serial: AMBA PL011 UART driver
[    0.109003] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_ctsrts_gpio32, deferring probe
[    0.147635] ACPI: Interpreter disabled.
[    0.148042] vgaarb: loaded
[    0.148314] SCSI subsystem initialized
[    0.148422] libata version 3.00 loaded.
[    0.149285] NetLabel: Initializing
[    0.149290] NetLabel:  domain hash size = 128
[    0.149315] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.149358] NetLabel:  unlabeled traffic allowed by default
[    0.149542] clocksource: Switched to clocksource arch_sys_counter
[    0.178218] AppArmor: AppArmor Filesystem Enabled
[    0.178431] pnp: PnP ACPI: disabled
[    0.185846] NET: Registered protocol family 2
[    0.186341] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.186429] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.186541] TCP: Hash tables configured (established 8192 bind 8192)
[    0.186678] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.186706] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.186892] NET: Registered protocol family 1
[    0.186927] PCI: CLS 0 bytes, default 128
[    0.187097] Unpacking initramfs...
[    2.097126] Freeing initrd memory: 6532K (ffff800027015000 - ffff800027676000)
[    2.097559] kvm [1]: error: KVM vGIC probing failed
[    2.097721] kvm [1]: virtual timer IRQ4
[    2.097733] kvm [1]: Hyp mode initialized successfully
[    2.098902] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    2.099020] audit: initializing netlink subsys (disabled)
[    2.099083] audit: type=2000 audit(2.069:1): initialized
[    2.099762] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    2.099881] zbud: loaded
[    2.100238] VFS: Disk quotas dquot_6.6.0
[    2.100283] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    2.102233] Key type asymmetric registered
[    2.102247] Asymmetric key parser 'x509' registered
[    2.102323] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    2.102400] io scheduler noop registered
[    2.102408] io scheduler deadline registered
[    2.102427] io scheduler cfq registered (default)
[    2.103764] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    2.103795] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    2.104264] efifb: probing for efifb
[    2.104298] efifb: framebuffer at 0x3daf0000, mapped to 0xffff000000300000, using 1068k, total 1066k
[    2.104304] efifb: mode is 656x416x32, linelength=2624, pages=1
[    2.104307] efifb: scrolling: redraw
[    2.104312] efifb: Truecolor: size=8:8:8:8, shift=24:0:8:16
[    2.108206] Console: switching to colour frame buffer device 82x26
[    2.111706] fb0: EFI VGA frame buffer device
[    2.112266] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.113275] bcm2835-aux-uart 3f215040.serial: could not get clk: -517
[    2.113379] Serial: AMBA driver
[    2.113869] Unable to detect cache hierarchy from DT for CPU 0
[    2.114275] mousedev: PS/2 mouse device common for all mice
[    2.115436] ledtrig-cpu: registered to indicate activity on CPUs
[    2.115532] EFI Variables Facility v0.08 2004-May-17
[    2.115545] efivars: get_next_variable: status=8000000000000007
[    2.115618] hidraw: raw HID events driver (C) Jiri Kosina
[    2.116706] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    2.117314] NET: Registered protocol family 10
[    2.118585] registered taskstats version 1
[    2.118687] zswap: loaded using pool lzo/zbud
[    2.118743] page_owner is disabled
[    2.132354] Key type encrypted registered
[    2.132383] AppArmor: AppArmor sha1 policy hashing enabled
[    2.132762] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 72, base_baud = 0) is a PL011 rev2
[    2.133503] console [ttyS0] disabled
[    2.133531] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 61, base_baud = 31224999) is a 16550
[    2.145335] console [ttyS0] enabled
[    2.145691] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-09-21 13:13
[    2.145893] hctosys: unable to open rtc device (rtc0)
[    2.149018] Freeing unused kernel memory: 908K (ffff800000c6b000 - ffff800000d4e000)
[    2.163165] efivars: get_next_variable: status=8000000000000007
[    2.163675] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.164544] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.164599] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.166801] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX -IMA +APPARMOR -SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
[    2.167223] systemd[1]: Detected architecture arm64.
[    2.167234] systemd[1]: Running in initial RAM disk.
[    2.167319] systemd[1]: Set hostname to <nohostname>.
[    2.314604] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.314682] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.314777] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.316790] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.317208] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.318300] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.318785] random: systemd: uninitialized urandom read (16 bytes read, 2 bits of entropy available)
[    2.331687] systemd[1]: Listening on udev Kernel Socket.
[    2.331915] systemd[1]: Reached target Timers.
[    2.331947] systemd[1]: Reached target Swap.
[    2.332091] systemd[1]: Listening on Journal Socket.
[    2.332347] systemd[1]: Listening on Journal Audit Socket.
[    2.332439] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.375571] audit: type=1130 audit(2.349:2): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.377148] audit: type=1130 audit(2.349:3): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.388991] audit: type=1130 audit(2.359:4): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.507642] audit: type=1130 audit(2.479:5): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.513922] audit: type=1130 audit(2.489:6): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.594902] audit: type=1130 audit(2.569:7): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.652857] audit: type=1130 audit(2.629:8): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.762167] audit: type=1130 audit(2.739:9): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    2.839597] mmc0: unable to initialise DMA channels. Falling back to PIO
[    2.939560] mmc0: loaded - DMA disabled
[    3.034954] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.035005] mmc0: new SDHC card at address 0001
[    3.039007] mmcblk0: mmc0:0001 00000 14.7 GiB 
[    3.042365]  mmcblk0: p1 p2 p3
[    3.456977] random: nonblocking pool is initialized
[    3.609796] audit: type=1130 audit(3.589:10): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate-resume@dev-disk-by\x2did-mmc\x2d00000_0x00003b5c\x2dpart3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[    4.566595] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.736840] systemd-journald[105]: Received SIGTERM from PID 1 (systemd).
[    5.883926] systemd: 14 output lines suppressed due to ratelimiting
[    7.579661] audit_printk_skb: 63 callbacks suppressed
[    7.579676] audit: type=1130 audit(7.559:32): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.579776] audit: type=1131 audit(7.559:33): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.581607] audit: type=1130 audit(7.559:34): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=initrd-switch-root comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.581712] audit: type=1131 audit(7.559:35): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=initrd-switch-root comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.584146] audit: type=1130 audit(7.559:36): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.584260] audit: type=1131 audit(7.559:37): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.770716] audit: type=1130 audit(7.749:38): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.772987] audit: type=1130 audit(7.749:39): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.775225] audit: type=1130 audit(7.749:40): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udev-root-symlink comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.878307] audit: type=1305 audit(7.849:41): audit_enabled=1 old=1 auid=4294967295 ses=4294967295 res=1
[    7.964519] EXT4-fs (mmcblk0p2): re-mounted. Opts: nobarrier
[    8.273370] systemd-journald[297]: Received request to flush runtime journal from PID 1
[    8.384482] systemd-journald[297]: File /var/log/journal/5bf35becffac697808db3bab58023bb3/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    9.710625] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    9.920407] sdhci: Secure Digital Host Controller Interface driver
[    9.920429] sdhci: Copyright(c) Pierre Ossman
[   10.004618] sdhci-pltfm: SDHCI platform and OF driver helper
[   10.117676] usbcore: registered new interface driver usbfs
[   10.117928] usbcore: registered new interface driver hub
[   10.118181] usbcore: registered new device driver usb
[   10.245699] [drm] Initialized drm 1.1.0 20060810
[   10.738754] bcm2835-rng 3f104000.rng: hwrng registered
[   10.740057] i2c-bcm2835 3f805000.i2c: Could not read clock-frequency property
[   10.743170] CPUFREQ: ondemand sampling rate set to 300 ms
[   10.750444] bcm2835-cpufreq soc:cpufreq: Broadcom BCM2835 CPU frequency control
[   10.757567] bcm2835_thermal soc:thermal: Broadcom BCM2835 thermal sensor
[   10.760014] sdhci-iproc 3f300000.sdhci: No vmmc regulator found
[   10.760038] sdhci-iproc 3f300000.sdhci: No vqmmc regulator found
[   10.799658] mmc1: SDHCI controller on 3f300000.sdhci [3f300000.sdhci] using PIO
[   10.801433] 3f980000.usb supply vusb_d not found, using dummy regulator
[   10.801499] 3f980000.usb supply vusb_a not found, using dummy regulator
[   10.801611] dwc2 3f980000.usb: Configuration mismatch. dr_mode forced to host
[   10.837239] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   10.838954] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   10.840871] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   10.847689] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   10.854674] Adding 505628k swap on /dev/mmcblk0p3.  Priority:-1 extents:1 across:505628k SSFS
[   10.978016] mmc1: new SDIO card at address 0001
[   11.009843] dwc2 3f980000.usb: DWC OTG Controller
[   11.009903] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[   11.009966] dwc2 3f980000.usb: irq 41, io mem 0x00000000
[   11.010186] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   11.010194] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.010199] usb usb1: Product: DWC OTG Controller
[   11.010202] usb usb1: Manufacturer: Linux 4.4.24-3-default dwc2_hsotg
[   11.010206] usb usb1: SerialNumber: 3f980000.usb
[   11.010917] hub 1-0:1.0: USB hub found
[   11.010949] hub 1-0:1.0: 1 port detected
[   11.012942] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[   11.013122] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[   11.013233] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[   11.013347] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[   11.013408] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[   11.013520] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   11.013536] checking generic (3daf0000 10b000) vs hw (0 ffffffffffffffff)
[   11.013538] fb: switching to vc4drmfb from EFI VGA
[   11.013621] Console: switching to colour dummy device 80x25
[   11.014646] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   11.014652] [drm] No driver support for vblank timestamp query.
[   11.014871] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   11.020877] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   11.021034] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   11.027089] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   11.033105] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   11.033119] vc4-drm soc:gpu: No connectors reported connected with modes
[   11.033134] [drm] Cannot find any crtc or sizes - going 1024x768
[   11.047255] Console: switching to colour frame buffer device 128x48
[   11.057042] vc4-drm soc:gpu: fb0:  frame buffer device
[   11.372037] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24
[   11.400491] usb 1-1: new high-speed USB device number 2 using dwc2
[   11.619793] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[   11.619969] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   11.620747] hub 1-1:1.0: USB hub found
[   11.620799] hub 1-1:1.0: 5 ports detected
[   11.812813] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   11.899648] usb 1-1.1: new high-speed USB device number 3 using dwc2
[   12.000014] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[   12.000157] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   12.120443] smsc95xx v1.0.4
[   12.208283] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:31:b4:2e
[   12.208428] usbcore: registered new interface driver smsc95xx
[   13.263129] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   13.263361] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   13.472644] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[   13.591494] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[   14.389209] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[   14.389219] brcmfmac: brcmf_add_if: ignore IF event
[   14.414903] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   14.453965] NET: Registered protocol family 17
[   14.609389] brcmfmac: brcmf_sdio_hdparse: seq 66: sequence number error, expect 65
[   14.617131] brcmfmac: brcmf_sdio_hdparse: seq 65: sequence number error, expect 67
[   14.626142] brcmfmac: brcmf_sdio_hdparse: seq 67: sequence number error, expect 66
[   15.186377] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   21.129806] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   21.129968] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   21.130110] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   21.130250] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100
[   21.130395] i2c-bcm2835 3f805000.i2c: i2c transfer failed: 100