Port-m68k archive

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

NetBSD/virt68k live-image



I added build.sh "live-image" target for NetBSD/virt68k recently:
 https://mail-index.netbsd.org/source-changes/2025/01/19/msg155256.html

Currently it seems there is no daily snapshot binaries of virt68k,
but (as usual) NetBSD/virt68k release binaries and live-image can
be built even on Linux and WSL etc.:

```
git clone https://github.com/netbsd/src
git clone https://github.com/netbsd/xsrc
(cd src && sh build.sh -U -u -x -X ../xsrc -j 4 -N 0 -m virt68k -V OBJMACHINE=yes release live-image)
cp src/obj.virt68k/releasedir/images/NetBSD-10.99.12-virt68k-live.img.gz .
cp src/obj.virt68k/releasedir/virt68k/binary/kernel/netbsd-GENERIC.gz .
gunzip *.gz
chmod +w *.img
qemu-system-m68k -machine virt -cpu m68040 -m 512 \
 -drive file=NetBSD-10.99.12-virt68k-live.img,if=none,format=raw,id=disk0 \
 -device virtio-blk-device,drive=disk0 \
 -netdev user,id=net0,hostfwd=tcp::10022-:22 \
 -device virtio-net-device,netdev=net0 \
 -drive if=none,id=cdrom0 \
 -device virtio-scsi-device,id=scsi0 \
 -device scsi-cd,bus=scsi0.0,drive=cdrom0 \
 -device virtio-rng-device \
 -kernel netbsd-GENERIC -append "root=ld0" -nographic
```

Then we can get:
---
[   1.0000000] Initialized Goldfish TTY console @ 0xff008000
[   1.0000000] Memory segment 0: addr=0x004a3000 size=0x1fb5d000
[   1.0000000] entropy: ready
[   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, 2025
[   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.99.12 (GENERIC) #0: Mon Jan 20 01:28:25 JST 2025
[   1.0000000] 	tsutsui@mirage:/s/tsutsui/netbsd/src/sys/arch/virt68k/compile/obj.virt68k/GENERIC
[   1.0000000] Qemu 9.2.0: MC68040+MMU+FPU, 4k+4k on-chip physical I/D caches
[   1.0000000] total memory = 512 MB
[   1.0000000] avail memory = 495 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] gfpic0 at mainbus0 addr 0xff000000: Google Goldfish PIC
[   1.0000000] gfpic0: interrupting at IPL 1
[   1.0000000] gfpic1 at mainbus0 addr 0xff001000: Google Goldfish PIC
[   1.0000000] gfpic1: interrupting at IPL 2
[   1.0000000] gfpic2 at mainbus0 addr 0xff002000: Google Goldfish PIC
[   1.0000000] gfpic2: interrupting at IPL 3
[   1.0000000] gfpic3 at mainbus0 addr 0xff003000: Google Goldfish PIC
[   1.0000000] gfpic3: interrupting at IPL 4
[   1.0000000] gfpic4 at mainbus0 addr 0xff004000: Google Goldfish PIC
[   1.0000000] gfpic4: interrupting at IPL 5
[   1.0000000] gfpic5 at mainbus0 addr 0xff005000: Google Goldfish PIC
[   1.0000000] gfpic5: interrupting at IPL 6
[   1.0000000] gfrtc0 at mainbus0 addr 0xff006000: Google Goldfish RTC + timer
[   1.0000000] gfrtc0: hardclock interrupting at gfpic5 irq 1 (IPL 6)
[   1.0000000] gfrtc0: Using as delay() timer.
[   1.0000000] gfrtc1 at mainbus0 addr 0xff007000: Google Goldfish RTC + timer
[   1.0000000] gfrtc1: using as Time of Day Register.
[   1.0000000] gftty0 at mainbus0 addr 0xff008000: Google Goldfish TTY
[   1.0000000] gftty0: console
[   1.0000000] gftty0: interrupting at gfpic0 irq 32 (IPL 1)
[   1.0000000] virtctrl0 at mainbus0 addr 0xff009000: Qemu Virtual System Controller
[   1.0000000] virtctrl0: features=0x00000001
[   1.0000000] virtio0 at mainbus0 addr 0xff01f800
[   1.0000000] virtio0: VirtIO-MMIO-v2
[   1.0000000] virtio0: entropy device (id 4, rev. 0x01)
[   1.0000000] viornd0 at virtio0: features: 0x110000000<V1,INDIRECT_DESC>
[   1.0000000] virtio0: interrupting at gfpic4 irq 29 (IPL 5)
[   1.0000000] virtio1 at mainbus0 addr 0xff01fa00
[   1.0000000] virtio1: VirtIO-MMIO-v2
[   1.0000000] virtio1: SCSI device (id 8, rev. 0x01)
[   1.0000000] vioscsi0 at virtio1: features: 0x110000000<V1,INDIRECT_DESC>
[   1.0000000] vioscsi0: cmd_per_lun 128 qsize 1024 seg_max 254 max_target 255 max_lun 16383
[   1.0000000] virtio1: interrupting at gfpic4 irq 30 (IPL 5)
[   1.0000000] scsibus0 at vioscsi0: 256 targets, 16384 luns per target
[   1.0000000] virtio2 at mainbus0 addr 0xff01fc00
[   1.0000000] virtio2: VirtIO-MMIO-v2
[   1.0000000] virtio2: network device (id 1, rev. 0x01)
[   1.0000000] vioif0 at virtio2: features: 0x130870020<V1,EVENT_IDX,INDIRECT_DESC,CTRL_MAC,CTRL_RX,CTRL_VQ,STATUS,MAC>
[   1.0000000] vioif0: Ethernet address 52:54:00:12:34:56
[   1.0000000] virtio2: interrupting at gfpic4 irq 31 (IPL 5)
[   1.0000000] virtio3 at mainbus0 addr 0xff01fe00
[   1.0000000] virtio3: VirtIO-MMIO-v2
[   1.0000000] virtio3: block device (id 2, rev. 0x01)
[   1.0000000] ld0 at virtio3: features: 0x110000a54<V1,INDIRECT_DESC,CONFIG_WCE,FLUSH,BLK_SIZE,GEOMETRY,SEG_MAX>
[   1.0000000] ld0: max 254 segs of max 65536 bytes
[   1.0000000] virtio3: interrupting at gfpic4 irq 32 (IPL 5)
[   1.0000000] ld0: 2048 MB, 4161 cyl, 16 head, 63 sec, 512 bytes/sect x 4194304 sectors
[   1.0000000] No statclock; using hardclock.
[   1.0000000] Initialzing hardclock: freq=100 Hz, interval=10000 usec
[   1.0300030] cd0 at scsibus0 target 0 lun 0: <QEMU, QEMU CD-ROM, 2.5+> cdrom removable
[   1.0300030] cd0: async, 8-bit transfers, tagged queueing
[   6.5700030] swwdog0: software watchdog initialized
[   6.6000030] root on ld0a dumps on ld0b
[   6.6200030] root file system type: ffs
[   6.6200030] kern.module.path=/stand/virt68k/10.99.12/modules
Sun Feb  2 07:39:11 UTC 2025
Starting root file system check:
/dev/rld0a: file system is clean; not checking
Setting sysctl variables:
ddb.onpanic: 1 -> 0
swapctl: adding /dev/ld0b as swap device at priority 0
Starting file system checks:
random_seed: /var/db/entropy-file: Not present; creating
Saved entropy to /var/db/entropy-file.
Waiting for entropy...done
Setting tty flags.
Starting network.
/etc/rc: WARNING: $hostname not set.
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for duplicate address detection to finish...
Building databases: dev, utmp, utmpx, services.
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Updating fontconfig cache: done.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Checking for core dump...
savecore: no core dump
Starting local daemons:.
Updating motd.
/usr/sbin/postconf: warning: valid_hostname: empty hostname
/usr/sbin/postconf: fatal: unable to use my own hostname
Starting postfix.
postfix: warning: valid_hostname: empty hostname
postfix: fatal: unable to use my own hostname
Feb  2 07:40:56  postfix[744]: fatal: unable to use my own hostname
/etc/rc.d/postfix exited with code 1
Starting inetd.
Starting cron.
The following components reported failures:
    /etc/rc.d/postfix
See /var/run/rc.log for more information.
Sun Feb  2 07:40:59 UTC 2025

NetBSD/virt68k (Amnesiac) (constty)

login: root
Feb  2 07:41:37  login: ROOT LOGIN (root) on tty constty
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, 2025
    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.99.12 (GENERIC) #0: Mon Jan 20 01:28:25 JST 2025

Welcome to NetBSD!

This is a development snapshot of NetBSD for testing -- user beware!

Bug reports: https://www.NetBSD.org/support/send-pr.html
Donations to the NetBSD Foundation: https://www.NetBSD.org/donations/
We recommend that you create a non-root account and use su(1) for root access.
# 
---

Have fun,
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index