Raspberry Pi 3 Model B+ で CentOS 7 を動かしてみた

やっと Raspberry Pi 3 Model B+ が届いたので、CentOS 7 を動かすところまでやってみた。

■基礎となる情報
CentOS Linux on the Raspberry Pi 3
https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32/RaspberryPi3
此処の情報を元に RPi3+ を動くようにイメージを修正したりする。

■CentOS 7 のイメージ
CentOS-Userland-7-armv7hl-Minimal-1708-RaspberryPi3.img.xz を採用。
上記の Wiki からダウンロード可能。

■イメージを microSD カードに書き込む
上記の Wiki にあるように、次のコマンドで書き込み。

# dd if=CentOS-Userland-7-armv7hl-Minimal-RaspberryPi3.img of=/dev/mmcblk0 bs=8192; sync

■書き込んだイメージに、RPi3+ が動くレベルの Kernel を chroot インストールする
Kernel 4.14.29 以降で Raspberry Pi 3 Model B+ に対応しているっぽいけど、4.14.33 以降じゃないと NIC が安定しないっぽい。
というか現時点でもショートパケットに弱いような。
とりあえず、対応 Kernel に上げないと、電源投入直後からカラフルな画面が出力されて、Boot 失敗する。

・microSD カードのマウント
/dev/sda が RPi3+ 用に準備している microSD カードと想定。

# mount /dev/sda3 /mnt/
# mount /dev/sda1 /mnt/boot/

・Kernel を chroot でアップデート

# cd /tmp/
# mkdir ./raspberrypi2-kernel-4.14.34-v7.1
# cd ./raspberrypi2-kernel-4.14.34-v7.1/
# wget -N http://www.sgv417.jp/repos/altarch/rpi2-kernel/raspberrypi2-kernel-4.14.34-v7.1/raspberrypi2-debuginfo-4.14.34-v7.1.el7.tsc.armv7hl.rpm http://www.sgv417.jp/repos/altarch/rpi2-kernel/raspberrypi2-kernel-4.14.34-v7.1/raspberrypi2-firmware-4.14.34-v7.1.el7.tsc.armv7hl.rpm http://www.sgv417.jp/repos/altarch/rpi2-kernel/raspberrypi2-kernel-4.14.34-v7.1/raspberrypi2-kernel-4.14.34-v7.1.el7.tsc.armv7hl.rpm http://www.sgv417.jp/repos/altarch/rpi2-kernel/raspberrypi2-kernel-4.14.34-v7.1/raspberrypi2-kernel-devel-4.14.34-v7.1.el7.tsc.armv7hl.rpm
# rpm --root=/mnt/ -e raspberrypi2-kernel-firmware-4.9.40-v7.1.el7.armv7hl
# rpm --root=/mnt/ -Uvh ./raspberrypi2-kernel-4.14.34-v7.1.el7.tsc.armv7hl.rpm ./raspberrypi2-firmware-4.14.34-v7.1.el7.tsc.armv7hl.rpm

・Wi-Fi ドライバーの有効化 ( BCM43455 )
この2つのファイルが無いと、Rasbperry Pi 3 Model B+ の Wi-Fi は稼働しないようだ。
今までは BCM43438 だったが BCM43455 へと搭載チップが変わったから必要な手順。
きっと次のイメージではしっかり FIX されているはず。たぶん。

# cd /mnt/usr/lib/firmware/brcm/
# wget -N https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.clm_blob
# wget -N https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.txt

・クリーンアップ
此処まで作業したイメージをマスターイメージとして残すためにクリーンアップの実施。
残さないならやる必要はない。

# dd if=/dev/zero of=/mnt/boot/zero.dat bs=1M ; sync ; rm -rf /mnt/boot/zero.dat ; sync
# dd if=/dev/zero of=/mnt/zero.dat bs=1M ; sync ; rm -rf /mnt/zero.dat ; sync
# umount /mnt/boot/
# umount /mnt/
# sync

・マスターイメージの作成

# dd if=/dev/sda of=/root/CentOS-Userland-7-armv7hl-Minimal-1708-RaspberryPi3B+.img bs=1M count=3072 ; sync

■上記修正イメージにて起動したときの dmesg

[root@centos-rpi3 ~]# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.34-v7.1.el7.tsc (admin@arnotron) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)) #1 SMP Tue Apr 17 15:24:15 JST 2018
[    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 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c892c0, 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] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ba34a000 s38720 r8192 d22720 u69632
[    0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=592 bcm2708_fb.fbheight=448 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait selinux=1 security=selinux enforcing=0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940200K/970752K available (7168K kernel code, 592K rwdata, 2124K rodata, 1024K init, 723K bss, 22360K 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 - 0x80c941a4   ( 593 kB)
       .bss : 0x80c9c2d0 - 0x80d50fdc   ( 724 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 26325 entries in 78 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: 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.000022] Switching to timer-based delay loop, resolution 52ns
[    0.000259] Console: colour dummy device 80x30
[    0.000789] console [tty1] enabled
[    0.000826] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000867] pid_max: default: 32768 minimum: 301
[    0.001021] Security Framework initialized
[    0.001043] SELinux:  Initializing.
[    0.001107] SELinux:  Starting in permissive mode
[    0.001285] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001317] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002355] Disabling memory control group subsystem
[    0.002448] CPU: Testing write buffer coherency: ok
[    0.002888] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003293] Setting up static identity map for 0x100000 - 0x10003c
[    0.003426] Hierarchical SRCU implementation.
[    0.004102] smp: Bringing up secondary CPUs ...
[    0.004837] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005600] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006340] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006443] smp: Brought up 1 node, 4 CPUs
[    0.006512] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006532] CPU: All CPU(s) started in HYP mode.
[    0.006550] CPU: Virtualization extensions available.
[    0.007454] devtmpfs: initialized
[    0.018307] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.018560] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018603] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.019184] pinctrl core: initialized pinctrl subsystem
[    0.020039] NET: Registered protocol family 16
[    0.022712] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.027711] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.027742] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027976] Serial: AMBA PL011 UART driver
[    0.029627] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.030142] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.061894] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb813000, dmachans=0x1
[    0.063354] SCSI subsystem initialized
[    0.063596] usbcore: registered new interface driver usbfs
[    0.063670] usbcore: registered new interface driver hub
[    0.063771] usbcore: registered new device driver usb
[    0.070068] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-04-16 18:16
[    0.070796] NetLabel: Initializing
[    0.070816] NetLabel:  domain hash size = 128
[    0.070834] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.070930] NetLabel:  unlabeled traffic allowed by default
[    0.071683] clocksource: Switched to clocksource arch_sys_counter
[    0.150769] VFS: Disk quotas dquot_6.6.0
[    0.150881] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.151086] FS-Cache: Loaded
[    0.151323] CacheFiles: Loaded
[    0.160810] NET: Registered protocol family 2
[    0.161578] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.161746] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.161948] TCP: Hash tables configured (established 8192 bind 8192)
[    0.162107] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.162169] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.162424] NET: Registered protocol family 1
[    0.162897] RPC: Registered named UNIX socket transport module.
[    0.162920] RPC: Registered udp transport module.
[    0.162939] RPC: Registered tcp transport module.
[    0.162957] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.164586] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.166907] audit: initializing netlink subsys (disabled)
[    0.167091] audit: type=2000 audit(0.159:1): state=initialized audit_enabled=0 res=1
[    0.167782] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.176053] FS-Cache: Netfs 'nfs' registered for caching
[    0.176673] NFS: Registering the id_resolver key type
[    0.176720] Key type id_resolver registered
[    0.176739] Key type id_legacy registered
[    0.176768] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.177771] SELinux:  Registering netfilter hooks
[    0.179470] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.179621] io scheduler noop registered
[    0.179643] io scheduler deadline registered (default)
[    0.179934] io scheduler cfq registered
[    0.179955] io scheduler mq-deadline registered
[    0.179975] io scheduler kyber registered
[    0.182388] BCM2708FB: allocated DMA memory fad00000
[    0.182434] BCM2708FB: allocated DMA channel 0 @ bb813000
[    0.190743] Console: switching to colour frame buffer device 74x28
[    0.199392] bcm2835-rng 3f104000.rng: hwrng registered
[    0.202115] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.207645] vc-sm: Videocore shared memory driver
[    0.210458] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.225460] brd: module loaded
[    0.237373] loop: module loaded
[    0.239772] Loading iSCSI transport class v2.0-870.
[    0.242851] libphy: Fixed MDIO Bus: probed
[    0.245311] usbcore: registered new interface driver lan78xx
[    0.247834] usbcore: registered new interface driver smsc95xx
[    0.250217] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.480694] Core Release: 2.80a
[    0.482988] Setting default values for core params
[    0.485321] Finished setting default values for core params
[    0.687929] Using Buffer DMA mode
[    0.690276] Periodic Transfer Interrupt Enhancement - disabled
[    0.692759] Multiprocessor Interrupt Enhancement - disabled
[    0.695285] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.697795] Dedicated Tx FIFOs mode
[    0.700683] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad14000 dma = 0xfad14000 len=9024
[    0.705853] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    0.717877] dwc_otg: Microframe scheduler enabled
[    0.717934] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x80616328
[    0.720334] WARN::hcd_init_fiq:460: FIQ ASM at 0x80616680 length 36
[    0.722749] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87e000
[    0.725192] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.727615] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.732435] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.734996] Init: Port Power? op_state=1
[    0.737469] Init: Power Port (0)
[    0.740084] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.745029] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.750093] usb usb1: Product: DWC OTG Controller
[    0.752694] usb usb1: Manufacturer: Linux 4.14.34-v7.1.el7.tsc dwc_otg_hcd
[    0.757866] usb usb1: SerialNumber: 3f980000.usb
[    0.761090] hub 1-0:1.0: USB hub found
[    0.763700] hub 1-0:1.0: 1 port detected
[    0.766747] dwc_otg: FIQ enabled
[    0.766752] dwc_otg: NAK holdoff enabled
[    0.766756] dwc_otg: FIQ split-transaction FSM enabled
[    0.766768] Module dwc_common_port init
[    0.767013] usbcore: registered new interface driver usb-storage
[    0.769833] mousedev: PS/2 mouse device common for all mice
[    0.772578] IR NEC protocol handler initialized
[    0.775229] IR RC5(x/sz) protocol handler initialized
[    0.777863] IR RC6 protocol handler initialized
[    0.780501] IR JVC protocol handler initialized
[    0.783094] IR Sony protocol handler initialized
[    0.785638] IR SANYO protocol handler initialized
[    0.788177] IR Sharp protocol handler initialized
[    0.790590] IR MCE Keyboard/mouse protocol handler initialized
[    0.793027] IR XMP protocol handler initialized
[    0.796105] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.801235] bcm2835-cpufreq: min=600000 max=700000
[    0.804058] sdhci: Secure Digital Host Controller Interface driver
[    0.806525] sdhci: Copyright(c) Pierre Ossman
[    0.809234] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.814325] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.819252] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.823229] ledtrig-cpu: registered to indicate activity on CPUs
[    0.826001] hidraw: raw HID events driver (C) Jiri Kosina
[    0.828778] usbcore: registered new interface driver usbhid
[    0.831395] usbhid: USB HID core driver
[    0.834564] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
[    0.841157] [vc_sm_connected_init]: start
[    0.850001] [vc_sm_connected_init]: end - returning 0
[    0.853398] Initializing XFRM netlink socket
[    0.856134] NET: Registered protocol family 17
[    0.859011] Key type dns_resolver registered
[    0.862292] Registering SWP/SWPB emulation handler
[    0.865660] registered taskstats version 1
[    0.875058] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.877856] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.885119] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.887903] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.942319] sdhost: log_buf @ bad13000 (fad13000)
[    0.978555] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.982747] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.986789] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.991815] Indeed it is in host mode hprt0 = 00021501
[    1.054235] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.081704] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.085361] of_cfs_init
[    1.087740] of_cfs_init: OK
[    1.090468] Waiting for root device /dev/mmcblk0p3...
[    1.143241] mmc1: new high speed SDIO card at address 0001
[    1.201718] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.204175] Indeed it is in host mode hprt0 = 00001101
[    1.274740] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.283306] mmc0: new high speed SDHC card at address aaaa
[    1.286308] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    1.290197]  mmcblk0: p1 p2 p3
[    1.317042] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.321995] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    1.334846] devtmpfs: mounted
[    1.340636] Freeing unused kernel memory: 1024K
[    1.441997] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    1.447338] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.453532] hub 1-1:1.0: USB hub found
[    1.456391] hub 1-1:1.0: 4 ports detected
[    1.771744] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.872113] SELinux: 32768 avtab hash slots, 106122 rules.
[    1.902080] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[    1.907777] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.914319] hub 1-1.1:1.0: USB hub found
[    1.917294] hub 1-1.1:1.0: 3 ports detected
[    2.024457] SELinux: 32768 avtab hash slots, 106122 rules.
[    2.272810] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[    2.377864] SELinux:  8 users, 14 roles, 5004 types, 307 bools, 1 sens, 1024 cats
[    2.377888] SELinux:  94 classes, 106122 rules
[    2.410312] SELinux:  Permission getrlimit in class process not defined in policy.
[    2.416000] SELinux:  Class process2 not defined in policy.
[    2.418947] SELinux:  Permission map in class file not defined in policy.
[    2.424525] SELinux:  Permission map in class dir not defined in policy.
[    2.430151] SELinux:  Permission map in class lnk_file not defined in policy.
[    2.435992] SELinux:  Permission map in class chr_file not defined in policy.
[    2.441859] SELinux:  Permission map in class blk_file not defined in policy.
[    2.447774] SELinux:  Permission map in class sock_file not defined in policy.
[    2.453985] SELinux:  Permission map in class fifo_file not defined in policy.
[    2.460284] SELinux:  Permission map in class socket not defined in policy.
[    2.466579] SELinux:  Permission map in class tcp_socket not defined in policy.
[    2.473103] SELinux:  Permission map in class udp_socket not defined in policy.
[    2.479794] SELinux:  Permission map in class rawip_socket not defined in policy.
[    2.486545] SELinux:  Permission map in class netlink_socket not defined in policy.
[    2.493425] SELinux:  Permission map in class packet_socket not defined in policy.
[    2.500280] SELinux:  Permission map in class key_socket not defined in policy.
[    2.507167] SELinux:  Permission map in class unix_stream_socket not defined in policy.
[    2.514078] SELinux:  Permission map in class unix_dgram_socket not defined in policy.
[    2.521014] SELinux:  Permission map in class netlink_route_socket not defined in policy.
[    2.527951] SELinux:  Permission map in class netlink_tcpdiag_socket not defined in policy.
[    2.534908] SELinux:  Permission map in class netlink_nflog_socket not defined in policy.
[    2.541851] SELinux:  Permission map in class netlink_xfrm_socket not defined in policy.
[    2.548786] SELinux:  Permission map in class netlink_selinux_socket not defined in policy.
[    2.555742] SELinux:  Permission map in class netlink_iscsi_socket not defined in policy.
[    2.562698] SELinux:  Permission map in class netlink_audit_socket not defined in policy.
[    2.569648] SELinux:  Permission map in class netlink_fib_lookup_socket not defined in policy.
[    2.576620] SELinux:  Permission map in class netlink_connector_socket not defined in policy.
[    2.583591] SELinux:  Permission map in class netlink_netfilter_socket not defined in policy.
[    2.590540] SELinux:  Permission map in class netlink_dnrt_socket not defined in policy.
[    2.597492] SELinux:  Permission map in class netlink_kobject_uevent_socket not defined in policy.
[    2.604472] SELinux:  Permission map in class netlink_generic_socket not defined in policy.
[    2.611430] SELinux:  Permission map in class netlink_scsitransport_socket not defined in policy.
[    2.618423] SELinux:  Permission map in class netlink_rdma_socket not defined in policy.
[    2.625405] SELinux:  Permission map in class netlink_crypto_socket not defined in policy.
[    2.632392] SELinux:  Permission map in class appletalk_socket not defined in policy.
[    2.639376] SELinux:  Permission map in class dccp_socket not defined in policy.
[    2.646366] SELinux:  Permission map in class tun_socket not defined in policy.
[    2.653361] SELinux:  Class sctp_socket not defined in policy.
[    2.656874] SELinux:  Class icmp_socket not defined in policy.
[    2.660256] SELinux:  Class ax25_socket not defined in policy.
[    2.663531] SELinux:  Class ipx_socket not defined in policy.
[    2.666724] SELinux:  Class netrom_socket not defined in policy.
[    2.669861] SELinux:  Class atmpvc_socket not defined in policy.
[    2.672888] SELinux:  Class x25_socket not defined in policy.
[    2.675835] SELinux:  Class rose_socket not defined in policy.
[    2.678711] SELinux:  Class decnet_socket not defined in policy.
[    2.681526] SELinux:  Class atmsvc_socket not defined in policy.
[    2.684233] SELinux:  Class rds_socket not defined in policy.
[    2.686860] SELinux:  Class irda_socket not defined in policy.
[    2.689418] SELinux:  Class pppox_socket not defined in policy.
[    2.691926] SELinux:  Class llc_socket not defined in policy.
[    2.694353] SELinux:  Class can_socket not defined in policy.
[    2.696649] SELinux:  Class tipc_socket not defined in policy.
[    2.698879] SELinux:  Class bluetooth_socket not defined in policy.
[    2.701058] SELinux:  Class iucv_socket not defined in policy.
[    2.703190] SELinux:  Class rxrpc_socket not defined in policy.
[    2.705246] SELinux:  Class isdn_socket not defined in policy.
[    2.707234] SELinux:  Class phonet_socket not defined in policy.
[    2.709165] SELinux:  Class ieee802154_socket not defined in policy.
[    2.711048] SELinux:  Class caif_socket not defined in policy.
[    2.712897] SELinux:  Class alg_socket not defined in policy.
[    2.714796] SELinux:  Class nfc_socket not defined in policy.
[    2.716688] SELinux:  Class vsock_socket not defined in policy.
[    2.718586] SELinux:  Class kcm_socket not defined in policy.
[    2.720478] SELinux:  Class qipcrtr_socket not defined in policy.
[    2.722455] SELinux:  Class smc_socket not defined in policy.
[    2.724409] SELinux:  Class infiniband_pkey not defined in policy.
[    2.726377] SELinux:  Class infiniband_endport not defined in policy.
[    2.728340] SELinux: the above unknown classes and permissions will be allowed
[    2.732398] SELinux:  policy capability network_peer_controls=1
[    2.734549] SELinux:  policy capability open_perms=1
[    2.736648] SELinux:  policy capability extended_socket_class=0
[    2.738744] SELinux:  policy capability always_check_network=0
[    2.740877] SELinux:  policy capability cgroup_seclabel=0
[    2.742992] SELinux:  policy capability nnp_nosuid_transition=0
[    2.745079] SELinux:  Completing initialization.
[    2.745083] SELinux:  Setting up existing superblocks.
[    2.821731] usb 1-1.1.1: new high-speed USB device number 4 using dwc_otg
[    2.834533] audit: type=1403 audit(2.829:2): policy loaded auid=4294967295 ses=4294967295
[    2.864788] systemd[1]: Successfully loaded SELinux policy in 1.217561s.
[    2.952249] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800
[    2.957356] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.070638] NET: Registered protocol family 10
[    3.074813] Segment Routing with IPv6
[    3.077751] systemd[1]: Inserted module 'ipv6'
[    3.096272] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.099233] systemd[1]: Inserted module 'ip_tables'
[    3.181567] systemd[1]: Relabelled /dev and /run in 67.034ms.
[    3.215254] systemd[1]: systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.224750] systemd[1]: Detected architecture arm.
[    3.240736] systemd[1]: Set hostname to .
[    3.249756] libphy: lan78xx-mdiobus: probed
[    3.575604] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit not found.
[    3.593238] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.598987] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    3.605540] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.611393] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    3.620996] systemd[1]: Reached target Encrypted Volumes.
[    3.624191] systemd[1]: Starting Encrypted Volumes.
[    4.127461] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[    4.264889] systemd-journald[92]: Received request to flush runtime journal from PID 1
[    8.184874] brcmfmac: F1 signature read @0x18000000=0x15264345
[    8.193918] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[    8.200633] usbcore: registered new interface driver brcmfmac
[    8.321898] Adding 524284k swap on /dev/mmcblk0p2.  Priority:-2 extents:1 across:524284k SSFS
[    8.399719] random: crng init done
[    8.500500] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar  1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4
[    8.509758] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   14.126656] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.519412] Ebtables v2.0 registered
[   15.047397] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.050192] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.070203] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.117561] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   15.159831] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   15.160097] brcmfmac: power management disabled
[   15.685512] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   15.685839] brcmfmac: power management disabled
[   16.542669] nf_conntrack version 0.5.0 (15360 buckets, 61440 max)
[   16.567287] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   17.685843] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   18.052241] Netfilter messages via NETLINK v0.30.
[   18.066928] ip_set: protocol 6

■いつもの初期設定スクリプト
過去に公開したスクリプトの動作確認を行い、動くように修正をした。
RPi3 用:01-OS_Configure.sh
RPi3+ 用:01-OS_Configure_3Bp.sh
変更点は次の通り。
・RPi3 用は、GitHub 内の URL 変更に追従した修正。
・RPi3+ 用を作成
 - Wi-Fi ドライバーを有効化するためのファイルが無い場合、途中でダウンロード実施。
 - CPU クロック数の上昇対応。

■ほかのスクリプト
変更点は次の通り。
・hostapd のバージョンアップに伴う、ビルドモジュール追加。
ルータモード用:02-Router_Mode.sh
VPN ルータモード用:03-VPN_Router_Mode.sh
Wi-Fi ルータモード用:04-Proxy_Mode.sh

■初期設定スクリプトを流した後に取得した各種情報
・lsusb

# lsusb
Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

・openssl speed

OpenSSL 1.0.2k-fips  26 Jan 2017
built on: reproducible build, date unspecified
options:bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) idea(int) blowfish(ptr)
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -Wa,--noexecstack -DPURIFY -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md2               1383.74k     2939.26k     4056.41k     4470.10k     4609.37k
mdc2                 0.00         0.00         0.00         0.00         0.00
md4              12439.19k    43438.98k   121156.10k   218723.33k   286971.22k
md5               9276.46k    32677.27k    90493.27k   161974.61k   210780.16k
hmac(md5)         8624.88k    30154.05k    85333.16k   158010.03k   210528.90k
sha1             10502.58k    34431.79k    88551.94k   145505.96k   179481.26k
rmd160            8267.73k    24632.55k    54322.52k    77694.98k    88899.58k
rc4              91736.81k   105056.34k   110123.18k   111454.89k   111861.76k
des cbc          24075.85k    26424.58k    27172.52k    27453.47k    27513.06k
des ede3          9475.88k     9867.65k     9980.76k    10008.23k    10018.82k
idea cbc         28480.01k    30916.20k    31616.68k    31926.88k    31880.53k
seed cbc         28980.83k    30721.28k    31324.84k    31478.44k    31514.62k
rc2 cbc          18161.98k    19256.68k    19613.78k    19651.93k    19699.03k
rc5-32/12 cbc    48669.53k    56055.02k    58627.33k    59307.01k    59503.96k
blowfish cbc     37940.96k    42403.46k    43666.01k    44047.02k    44198.57k
cast cbc         35533.19k    39247.27k    40502.44k    40833.02k    40905.39k
aes-128 cbc      51312.17k    57287.77k    58268.25k    58919.25k    59045.21k
aes-192 cbc      43700.62k    47905.13k    49402.71k    49802.24k    49902.93k
aes-256 cbc      39125.00k    42491.03k    43641.86k    43942.57k    44010.15k
camellia-128 cbc    38461.55k    41653.67k    42748.67k    43035.99k    43103.57k
camellia-192 cbc    31047.45k    33071.70k    33777.58k    33924.10k    33964.03k
camellia-256 cbc    31045.85k    33071.36k    33778.94k    33959.25k    34010.45k
sha256           14420.43k    36502.31k    69200.04k    90224.30k    98973.01k
sha512            8649.98k    34901.57k    54696.36k    77585.75k    88555.52k
whirlpool         1462.16k     2994.94k     4879.70k     5811.54k     6146.73k
aes-128 ige      45473.41k    52003.46k    54242.56k    54861.14k    54984.70k
aes-192 ige      39833.03k    44800.98k    46861.61k    47722.85k    47753.90k
aes-256 ige      36546.20k    40616.92k    41965.23k    42314.41k    42412.71k
ghash           119685.48k   152045.42k   162094.59k   165793.79k   166892.89k
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000457s 0.000043s   2186.8  23500.2
rsa 1024 bits 0.002606s 0.000119s    383.8   8377.4
rsa 2048 bits 0.015814s 0.000414s     63.2   2416.5
rsa 4096 bits 0.106211s 0.001534s      9.4    651.8
                  sign    verify    sign/s verify/s
dsa  512 bits 0.000529s 0.000487s   1888.6   2053.1
dsa 1024 bits 0.001362s 0.001385s    734.1    721.8
dsa 2048 bits 0.004543s 0.004864s    220.1    205.6
                              sign    verify    sign/s verify/s
 256 bit ecdsa (nistp256)   0.0007s   0.0027s   1428.4    375.5
 384 bit ecdsa (nistp384)   0.0022s   0.0083s    463.0    120.7
 521 bit ecdsa (nistp521)   0.0047s   0.0182s    212.2     54.9
                              op      op/s
 256 bit ecdh (nistp256)   0.0023s    443.1
 384 bit ecdh (nistp384)   0.0070s    143.3
 521 bit ecdh (nistp521)   0.0152s     65.9
カテゴリー: めも パーマリンク

Raspberry Pi 3 Model B+ で CentOS 7 を動かしてみた への1件のフィードバック

  1. ピンバック: Raspberry Pi 3 Model B (RPi3) と Raspberry Pi 3 Model B+ (RPi3+) の性能比較メモ | まこぴかっと

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です