Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/distrib/common/bootimage



mrg@ wrote:

> > FAT (for ESP) is always LE so "-B endian" for makefs(8) is not necessary.
> >
> > (not sure if there is any "EFI on big endian CPU" system though)
> 
> EFI runs in little-endian always, but efiboot can load a big
> endian kernel and run it properly.  this is how we boot
> big-endian on systems like rockpro64 (or some arm32 ones.)

Ah, indeed EFI boot image works on qemu-system-arm -M virt:
---
% qemu-system-arm -m 1024 -nographic -drive file=NetBSD-10.1-evbarm.img,media=disk,format=raw,index=0,if=none,id=disk -device virtio-blk-device,drive=disk -netdev user,ipv6=off,id=net,hostfwd=tcp::10022-:22 -device virtio-net-device,netdev=net -M virt -bios QEMU_EFI.fd -cpu cortex-a15

BdsDxe: failed to load Boot0001 "UEFI Misc Device" from VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00): Not Found
BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x1,0x0)
BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x1,0x0)

  \\-__,------,___.
   \\        __,---`  NetBSD/evbarm efiboot (arm)
    \\       `---,_.  Revision 2.13 (Mon Dec 16 13:08:11 UTC 2024)
     \\-,_____,.---`
      \\
       \\
        \\

Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.     
7842484+2512736+1403040 [468930+549232+597339]=0xcc6dd0
[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[   1.0000000]     2024
[   1.0000000]     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 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024
[   1.0000000] 	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC
[   1.0000000] total memory = 1024 MB
[   1.0000000] avail memory = 984 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: linux,dummy-virt
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] cpu0 at cpus0: Cortex-A15 r4p0 (Cortex V7A core)
[   1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.0000000] cpu0: L1 32KB/64B 2-way (256 set) PIPT Instruction cache
[   1.0000000] cpu0: L1 32KB/64B 2-way (256 set) write-back-locking-C PIPT Data cache
[   1.0000000] cpu0: L2 2304KB/64B 16-way (2304 set) write-through PIPT Unified cache
[   1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (clk24mhz)
[   1.0000000] gic0 at simplebus0: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 288 sources (288 valid)
[   1.0000000] armgic0: 256 Priorities, 256 SPIs, 16 PPIs, 16 SGIs
[   1.0000000] armgic0: GICv2m @ 0x8020000, SPIs 80-143
[   1.0000000] gtmr0 at simplebus0: Generic Timer
[   1.0000000] gtmr0: interrupting on GIC irq 27
[   1.0000000] armgtmr0 at gtmr0: Generic Timer (62500 kHz, virtual)
[   1.0000040] plcom0 at simplebus0: ARM PL011 UART
[   1.0000040] plcom0: txfifo disabled
[   1.0000040] plcom0: console
[   1.0000040] plcom0: interrupting on GIC irq 33
[   1.0000040] plgpio0 at simplebus0: GPIO
[   1.0000040] gpio0 at plgpio0: 8 pins
[   1.0000040] psci0 at simplebus0: PSCI 1.1
[   1.0000040] qemufwcfg0 at simplebus0
[   1.0000040] virtio0 at simplebus0
[   1.0000040] virtio1 at simplebus0
[   1.0000040] virtio2 at simplebus0
[   1.0000040] virtio3 at simplebus0
[   1.0000040] virtio4 at simplebus0
[   1.0000040] virtio5 at simplebus0
[   1.0000040] virtio6 at simplebus0
[   1.0000040] virtio7 at simplebus0
[   1.0000040] virtio8 at simplebus0
[   1.0000040] virtio9 at simplebus0
[   1.0000040] virtio10 at simplebus0
[   1.0000040] virtio11 at simplebus0
[   1.0000040] virtio12 at simplebus0
[   1.0000040] virtio13 at simplebus0
[   1.0000040] virtio14 at simplebus0
[   1.0000040] virtio15 at simplebus0
[   1.0000040] virtio16 at simplebus0
[   1.0000040] virtio17 at simplebus0
[   1.0000040] virtio18 at simplebus0
[   1.0000040] virtio19 at simplebus0
[   1.0000040] virtio20 at simplebus0
[   1.0000040] virtio21 at simplebus0
[   1.0000040] virtio22 at simplebus0
[   1.0000040] virtio23 at simplebus0
[   1.0000040] virtio24 at simplebus0
[   1.0000040] virtio25 at simplebus0
[   1.0000040] virtio26 at simplebus0
[   1.0000040] virtio27 at simplebus0
[   1.0000040] virtio28 at simplebus0
[   1.0000040] virtio29 at simplebus0
[   1.0000040] virtio30 at simplebus0
[   1.0000040] virtio30: network device (id 1, rev. 0x01)
[   1.0000040] vioif0 at virtio30: features: 0x31870020<EVENT_IDX,INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_MAC,CTRL_RX,CTRL_VQ,STATUS,MAC>
[   1.0000040] vioif0: Ethernet address 52:54:00:12:34:56
[   1.0000040] virtio30: interrupting on GIC irq 78
[   1.0000040] virtio31 at simplebus0
[   1.0000040] virtio31: block device (id 2, rev. 0x01)
[   1.0000040] ld4 at virtio31: features: 0x10000a54<INDIRECT_DESC,CONFIG_WCE,FLUSH,BLK_SIZE,GEOMETRY,SEG_MAX>
[   1.0000040] ld4: max 254 segs of max 65536 bytes
[   1.0000040] virtio31: interrupting on GIC irq 79
[   1.0000040] ld4: 5120 MB, 10402 cyl, 16 head, 63 sec, 512 bytes/sect x 10485760 sectors
[   1.0000040] gpiokeys0 at simplebus0: GPIO Key Poweroff
[   1.0000040] pcihost0 at simplebus0: Generic PCI host controller
[   1.0000040] pci0 at pcihost0 bus 0
[   1.0000040] vendor 1b36 product 0008 (host bridge) at pci0 dev 0 function 0 not configured
[   1.0000040] WARNING: system needs entropy for security; see entropy(7)
[   1.6951883] dk0 at ld4: "EFI system", 73728 blocks at 2048, type: msdos
[   1.6951883] dk1 at ld4: "netbsd-ci-evbarm_root", 10407936 blocks at 75776, type: ffs
[   1.8800720] swwdog0: software watchdog initialized
[   1.9006373] boot device: dk1
[   1.9006373] root on dk1
[   1.9319007] root file system type: ffs
[   1.9319007] kern.module.path=/stand/evbarm/10.1/modules
[   1.9319007] WARNING: no TOD clock present
[   1.9441262] WARNING: using filesystem time
[   1.9454946] WARNING: CHECK AND RESET THE DATE!
Sat Jan 18 13:45:27 UTC 2025
Starting root file system check:
/dev/rdk1: file system is clean; not checking
[   4.2778063] entropy: best effort
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting file system checks:
rndctl: no entropy in seed
Setting tty flags.
Starting network.
Hostname: qemuarm
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for duplicate address detection to finish...
Starting dhcpcd.
Building databases: dev, utmp, utmpx.
Mounting all file systems...
Clearing temporary files.
Setting securelevel: kern.securelevel: 0 -> 1
Starting local daemons:.
Updating motd.
Starting sshd.
Starting inetd.
Sat Jan 18 13:45:40 UTC 2025

NetBSD/evbarm (qemuarm) (constty)

login: root
Last login: Sat Jan 18 13:43:41 2025 from 10.0.2.2 on pts/0
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
    2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
    2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
    2024
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024

Welcome to NetBSD!

We recommend that you create a non-root account and use su(1) for root access.
qemuarm# uname -a
NetBSD qemuarm 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm
qemuarm# uname -p
earmv7hfeb
qemuarm# gpt show ld4
     start      size  index  contents
         0         1         PMBR
         1         1         Pri GPT header
         2        32         Pri GPT table
        34      2014         Unused
      2048     73728      1  GPT part - EFI System
     75776  10407936      2  GPT part - NetBSD FFSv1/FFSv2
  10483712      2015         Unused
  10485727        32         Sec GPT table
  10485759         1         Sec GPT header
qemuarm# 

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index