RaspberryPi4にNetBSD/aarch64を試す (2)

昨日動かねーって書いたら早速情報を頂きました。ありがとうございます。

ということで rpi4-acpi.tgzをFATパーティション(うちの環境だと/dev/sd1e)に展開。てっきり中身はカーネルイメージかと思っていたんだけど、中身はこれだけだった。

  • overlays/miniuart-bt.btbo
  • RPI_EFI.fd
  • bcm2711-rpi-4-b.dtb
  • config.txt

これカーネルイメージだったらuserlandも同じバージョンのものを用意しないとなー、と思っていたんだけども、どうやらそのままで良さそうなので昨日ダウンロードしてきた9.99.46の上にぶちまけて電源投入。…あれカーネル起動までの挙動が違う?と思ったらUEFIかなこれ? そして無事にmicroSDを/dev/ld0で認識(ついでにUSBも)してログインまで到達。わーい。

>> NetBSD/evbarm efiboot (arm64), Revision 1.13 (Mon Feb 10 03:23:29 UTC 2020)
Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.
6200256+2685688+3049488+1514744 [587306+732024+515925]=0x101b010
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.99.46 (GENERIC64) #0: Mon Feb 10 03:23:29 UTC 2020
[   1.0000000]  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 3932 MB
[   1.0000000] avail memory = 3799 MB
[   1.0000000] pool redzone disabled for 'buf4k'
[   1.0000000] pool redzone disabled for 'buf64k'
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: Sony UK Raspberry Pi 4 Model B
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] acpifdt0 at simplebus0
[   1.0000000] acpifdt0: using EFI runtime services for RTC
[   1.0000000] ACPI: RSDP 0x0000000037320014 000024 (v02 MCRSFT)
[   1.0000000] ACPI: XSDT 0x00000000373100E8 00005C (v01 MCRSFT RPI4EDK2 02000820      01000013)
[   1.0000000] ACPI: FACP 0x0000000037260000 00010C (v05 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: DSDT 0x0000000037210000 001788 (v05 MSFT   EDK2     00000002 INTL 20181213)
[   1.0000000] ACPI: CSRT 0x0000000037280000 000169 (v00 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: DBG2 0x0000000037270000 00005C (v00 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: GTDT 0x0000000037250000 000060 (v02 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: APIC 0x0000000037240000 000174 (v03 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: MCFG 0x0000000037230000 00003C (v01 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: SPCR 0x0000000037220000 000050 (v02 MCRSFT RPI4EDK2 02000820 RPI4 00000097)
[   1.0000000] ACPI: 1 ACPI AML tables successfully acquired and loaded
[   1.0000000] acpi0 at acpifdt0: Intel ACPICA 20191213
[   1.0000000] cpu0 at acpi0: Cortex-A72 r0p3 (Cortex V8-A core)
[   1.0000000] cpu0: package 0, core 0, smt 0
[   1.0000000] cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[   1.0000000] cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[   1.0000000] cpu0: Dcache line 64, Icache line 64
[   1.0000000] cpu0: L1 48KB/64B 3-way read-allocate PIPT Instruction cache
[   1.0000000] cpu0: L1 32KB/64B 2-way write-back read-allocate write-allocate PIPT Data cache
[   1.0000000] cpu0: L2 1024KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
[   1.0000000] cpu0: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[   1.0000000] cpu0: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[   1.0000000] cpu1 at acpi0: Cortex-A72 r0p3 (Cortex V8-A core)
[   1.0000000] cpu1: package 0, core 1, smt 0
[   1.0000000] cpu2 at acpi0: Cortex-A72 r0p3 (Cortex V8-A core)
[   1.0000000] cpu2: package 0, core 2, smt 0
[   1.0000000] cpu3 at acpi0: Cortex-A72 r0p3 (Cortex V8-A core)
[   1.0000000] cpu3: package 0, core 3, smt 0
[   1.0000000] gic0 at acpi0: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (247 valid)
[   1.0000000] armgic0: 16 Priorities, 224 SPIs, 7 PPIs, 16 SGIs
[   1.0000000] gtmr0 at acpi0: irq 27
[   1.0000000] armgtmr0 at gtmr0: Generic Timer (54000 kHz, virtual)
[   1.0000070] PEPD (BCM2854) at acpi0 not configured
[   1.0000070] xhci0 at acpi0 (XHC0, 11063483-0): mem 0x600000000-0x600000fff irq 175
[   1.0000070] usb0 at xhci0: USB revision 3.0
[   1.0000070] usb1 at xhci0: USB revision 2.0
[   1.0000070] USB0 (BCM2848) at acpi0 not configured
[   1.0000070] bcmmbox0 at acpi0 (RPIQ, BCM2849-0): mem 0xfe00b880-0xfe00b8a3 irq 65
[   1.0000070] vcmbox0 at bcmmbox0
[   1.0000070] VCIQ (BCM2835) at acpi0 not configured
[   1.0000070] VCSM (BCM2856) at acpi0 not configured
[   1.0000070] GPI0 (BCM2845) at acpi0 not configured
[   1.0000070] I2C1 (BCM2841) at acpi0 not configured
[   1.0000070] I2C2 (BCM2841) at acpi0 not configured
[   1.0000070] SPI0 (BCM2838) at acpi0 not configured
[   1.0000070] SPI1 (BCM2839) at acpi0 not configured
[   1.0000070] plcom0 at acpi0 (URT0, BCM2837-4): mem 0xfe201000-0xfe201fff irq 153
[   1.0000070] plcom0: txfifo disabled
[   1.0000070] plcom0: console
[   1.0000070] URTM (BCM2836) at acpi0 not configured
[   1.0000070] BTH0 (BCM2EA6) at acpi0 not configured
[   1.0000070] RHPX (MSFT8000) at acpi0 not configured
[   1.0000070] sdhc0 at acpi0 (SDC1, BCM2847-0): mem 0xfe300000-0xfe3000ff irq 158
[   1.0000070] SDC2 (BCM2855) at acpi0 not configured
[   1.0000070] sdhc0: SDHC 3.0, rev 153, PIO, 250000 kHz, HS 3.3V, re-tuning mode 1, 1024 byte blocks
[   1.0000070] sdmmc0 at sdhc0 slot 0
[   1.0000070] cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[   1.0000070] cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[   1.1425640] cpu1: Dcache line 64, Icache line 64
[   1.1425640] cpu1: L1 48KB/64B 3-way read-allocate PIPT Instruction cache
[   1.1525598] cpu1: L1 32KB/64B 2-way write-back read-allocate write-allocate PIPT Data cache
[   1.1625609] cpu1: L2 1024KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
[   1.1725606] cpu1: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[   1.1725606] cpu1: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[   1.1925616] cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[   1.1925616] cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[   1.2025633] cpu3: Dcache line 64, Icache line 64
[   1.2025633] cpu3: L1 48KB/64B 3-way read-allocate PIPT Instruction cache
[   1.2125629] cpu3: L1 32KB/64B 2-way write-back read-allocate write-allocate PIPT Data cache
[   1.2225636] cpu3: L2 1024KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
[   1.2325636] cpu3: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[   1.2325636] cpu3: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[   1.2525648] cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[   1.2525648] cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[   1.2625663] cpu2: Dcache line 64, Icache line 64
[   1.2625663] cpu2: L1 48KB/64B 3-way read-allocate PIPT Instruction cache
[   1.2725660] cpu2: L1 32KB/64B 2-way write-back read-allocate write-allocate PIPT Data cache
[   1.2825670] cpu2: L2 1024KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
[   1.2925670] cpu2: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[   1.3025680] cpu2: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[   1.3125681] cpu0: PMU interrupting on irq 48
[   1.3125681] cpu1: PMU interrupting on irq 49
[   1.3125681] cpu2: PMU interrupting on irq 50
[   1.3125681] cpu3: PMU interrupting on irq 51
[   1.3125681] uhub0 at usb0: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
[   1.3398059] uhub1 at usb1: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
[   1.4898097] sdmmc0: SD card status: 4-bit, C10, U1, A1
[   1.4998097] ld0 at sdmmc0: <0x02:0x544d:SA32G:0x50:0x28c11dbe:0x12c>
[   1.4998097] ld0: 29544 MB, 7503 cyl, 128 head, 63 sec, 512 bytes/sect x 60506112 sectors
[   1.5163645] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[   2.9711459] uhub2 at uhub1 port 1: vendor 2109 (0x2109) USB2.0 Hub (0x3431), class 9/0, rev 2.10/4.20, addr 1
[   2.9826380] uhub2: single transaction translator
[   3.3211594] boot device: ld0
[   3.3211594] root on ld0a dumps on ld0b
[   3.3311597] root file system type: ffs
[   3.3411609] kern.module.path=/stand/evbarm/9.99.46/modules
[   3.3411609] WARNING: clock lost 40 days
[   3.3531083] WARNING: using filesystem time
[   3.3571838] WARNING: CHECK AND RESET THE DATE!
Mon Feb 10 07:48:25 UTC 2020
Starting root file system check:
/dev/rld0a: file system is clean; not checking
fdisk: Cannot determine the number of heads
Not resizing /: already correct size
Starting file system checks:
/dev/rld0e: 124 files, 54282 free (54282 clusters)
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: arm64
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
Starting dhcpcd.
no valid interfaces found
Starting mdnsd.
mDNSResponder: mDNSResponder (Engineering Build) starting
mDNSResponder: Unable to parse DNS server list. Unicast DNS-SD unavailable
mDNSResponder: mDNSPlatformSourceAddrForDest: connect 1.1.1.1 failed errno 49 (Can't assign requested address)
Building databases: dev, utmp, utmpx, services.
Starting syslogd.
Feb 10 07:48:30 arm64 mDNSResponder: mDNSPlatformSendUDP got error 49 (Can't assign requested address) sending packet to 224.0.0.251 on interface 127.0.0.11
Mounting all file systems...
Clearing temporary files.
Updating fontconfig cache: done.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting devpubd.
Starting local daemons:.
Updating motd.
Starting ntpd.
ssh-keygen: 1024 SHA256:JfZlqlKMsSSUEZM1LMQ3TWRWOfUqURaueAhu/FT0TGA root@arm64 (DSA)
ssh-keygen: 521 SHA256:td5L5p5hgp4kuBi4Oid7PoCf7WetoTCqxDU2RXr4rw8 root@arm64 (ECDSA)
ssh-keygen: 256 SHA256:/1qwo0nQT+1hbHa8QEC4VzvnqOWk2RiHIdPVOHwX/sk root@arm64 (ED25519)
Feb 10 07:49:00 arm64 syslogd[183]: last message repeated 4 times
ssh-keygen: 3072 SHA256:PA1KOUFEmnjGYwK4kM+JE/L4B21ZbMToeRa8c23A5es root@arm64 (RSA)
Starting sshd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
Starting postfix.
Starting inetd.
Starting cron.
Mon Feb 10 07:49:08 UTC 2020

NetBSD/evbarm (arm64) (constty)

login: