History log of /src/distrib/luna68k/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.3 18-Jan-2026 tsutsui

distrib/luna68k: add "build.sh live-image" support for luna68k

Using recently added "USE_MDBOOTPART" in Makefile.bootimage with MD rules.
A generated live-image is confirmed working on nono 1.6.4 with LUNA's ROM:
---
% nono-cli -V vmtype=luna -V prom-image=LUNAROM.DAT -V dipsw-autoboot=no -V dipsw-serial=yes -V hostcom-driver=stdio -V spc0-id6-image=hd,NetBSD-11.99.5-luna68k-live.img -V spc0-id6-writeignore=1
(PROM) Unknown PROM version
(SCSIHD6) write is ignored
Diagnostic Start.... 11.549'836'096 805b XP(HD647180) WriteInternalIO 53H(DERA) <- $07 (NOT IMPLEMENTED)
11.549'839'519 8060 XP(HD647180) WriteInternalIO 60H(IODRA) <- $50 (NOT IMPLEMENTED)
11.549'842'942 8065 XP(HD647180) WriteInternalIO 70H(DDRA) <- $70 (NOT IMPLEMENTED)
11.650'402'532 8528 XP(HD647180) WriteInternalIO 60H(IODRA) <- $20 (NOT IMPLEMENTED)
11.653'401'080 8bd1 XP(HD647180) ReadInternalIO 48H(T2CSR1) -> $ff (NOT IMPLEMENTED)
11.653'404'340 8bd6 XP(HD647180) WriteInternalIO 48H(T2CSR1) <- $ff (NOT IMPLEMENTED)
11.653'406'785 8bd9 XP(HD647180) ReadInternalIO 49H(T2CSR2) -> $ff (NOT IMPLEMENTED)
11.653'410'045 8bde XP(HD647180) WriteInternalIO 49H(T2CSR2) <- $ff (NOT IMPLEMENTED)
No problems in hardware
OMRON WS Monitor Ver4.25 (Thu May 16 11:54:02 1991) - 0x01000000 bytes of memory
"BSD Monitor-mode"
>k
ctlr: dk
drv: 0
par: c d
fnam: vmunix boot
>g
SPC RESET CONDITION !!
>x

>> NetBSD/luna68k boot, Revision 1.12 (Sat Jan 17 07:19:27 UTC 2026)
>> (based on Stinger ver 0.0 [Phase-31])

Machine model = LUNA-I
Physical Memory = 0x1000000 (16 MB)

sc0 at 0xe1000000: async, parity, ID 7
ID 6: NONO SCSIHD rev 0, 512 bytes/sect x 3145728 sectors
le0: Am7990 LANCE Ethernet, mem at 0x71010000
le0: Ethernet address = 00:00:0a:02:4d:36

Press return to boot now, any other key for boot menu
booting sd(6,0)netbsd - starting in 0 seconds.
type "help" for help.
boot> boot -s
Booting sd(6,0)netbsd (howto 0x2)
2358892+97604 [336560+209989]=0x2dd6c8
[ 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, 2026
[ 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 11.99.5 (GENERIC) #0: Sat Jan 17 16:26:14 JST 2026
[ 1.0000000] tsutsui@proslim:/home/tsutsui/obj.luna68k/sys/arch/luna68k/compile/GENERIC
[ 1.0000000] LUNA-I (MC68030 CPU+MMU, MC68881 FPU)
:


# 1.2 23-Sep-2025 rillig

all: fix "Invalid internal option" warning from make


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.1 16-Jul-2011 tsutsui

Revive NetBSD/luna68k.

Even after almost a lost decade since NetBSD/luna68k was
switched to using ELF format by default back in 2001,
actually only one fix (bus.h) is required for a GENERIC kernel itself
to get multiuser login: prompt on a real hardware. Hurrahhh!!!

Demonstrated with a working Xorg mono server on the NetBSD booth
at Open Source Conference 2011 Kansai @ Kyoto:
http://www.ospn.jp/osc2011-kyoto/

"Very impressed," commented by Tomoko YOSHIDA,
Program Committee Chair of the Conference,
and some other OMRON guys.

Special Thanks to Tadashi Okamura, for providing
a working SX-9100/DT "LUNA" for this mission.


Changes details:

sys/arch/luna68k/include/bus.h
- handle stride properly even on multi and region ops for MI spc(4)
- also fix stride handling of (currently unused) 2 and 4 byte ops

sys/arch/luna68k/conf/Makefile.luna68k
sys/arch/luna68k/conf/kern.ldscript.head
sys/arch/luna68k/conf/kern.ldscript.tail
- build a faked a.out kernel using elf2aout(8) tool
and a linker script derived from cats and shark
for the LUNA firmware that loads a.out binary directly
via network or from a UNIOS partition on a local disk

sys/arch/luna68k/dev/omrasops.c
sys/arch/luna68k/dev/omron_rfont.h
- use the original OMRON font derived from 4.4BSD-Lite/luna68k
rather than gallant19 which is used on Sun workstations
(XXX omrasops.c should be rewritten to use generic wsfont(4))

distrib/luna68k/*
distrib/utils/sysinst/arch/luna68k/*
etc/etc.luna68k/MAKEDEV.conf
etc/etc.luna68k/Makefile.inc
sys/arch/luna68k/conf/INSTALL
- build a ramdisk based INSTALL kernel with sysinst(8) for luna68k
- also build an installation iso image for luna68k

sys/arch/luna68k/conf/GENERIC
- enable SYSVSHM (and other SYSV*) options for Xorg server

More Xorg changes (which need some more cleanup) and
isiboot.c fixes will come soon.