Port-luna68k archive

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

native bootloader update for NetBSD/luna68k


I've committed NetBSD/luna68k bootloader updates:

This native bootloader was based on 4.4BSD-Lite2/luna68k and
was initially committed last year:

Then netboot support and LUNA-II external SCSI support were also added:

Last Octorber, this bootloader was also ported to OpenBSD/luna88k
with misc improvements:

In this year, I've pull most cleanup changes from OpenBSD/luna88k
and also add supports following features
(most idea is taken from OpenBSD/luna88k):

>> +    luna68k: Make bootloader to detect booted device on ROM monitor's
>> +            load command and set proper default boot device.
>> +            [tsutsui 20140105]
>> +    luna68k: Reorganize bootloader device configuration.  I.e. use
>> +            (controller * 10 + id) for sd unit number, rather than
>> +            static numbers against probed disks at ID 5 and 6.
>> +            [tsutsui 20140110]
>> +    luna68k: Add support to pass boothowto and boot device info from
>> +             bootloader to kernel. [tsutsui 20140111]

So that finally we can boot NetBSD/luna68k GENERIC kernel from any disks
without any optional input on prompts.

Here is a bootstrap log on my LUNA-II:

Diagnostic Start....(c) Copyright OMRON Corporation 1991
         All Rights Reserved
    ROM Version 1.11, 64 Megabytes RAM, 1 CPU
    Memory Check: 3Port passed, main skipped.
ROM mode

>> NetBSD/luna68k boot, Revision 1.9 (Sat Jan 11 19:18:03 JST 2014)
>> (based on Stinger ver 0.0 [Phase-31])

Machine model   = LUNA-II
Physical Memory = 0x4000000  (64 MB)

sc0 at 0xe1000000: async, parity, ID 7
 ID 3: TEAC FC-1     HGF  10 rev , 512 bytes/sect x 2879 sectors
 ID 6: IBM DPES-31080 rev S31Q, 512 bytes/sect x 2118143 sectors
sc1 at 0xe1000040: async, parity, ID 7
 ID 6: MELCO DSC-G rev 1.00, 512 bytes/sect x 62533295 sectors
le0: Am7990 LANCE Ethernet, mem at 0x71010000
le0: Ethernet address = 00:00:0a:03:42:77

Press return to boot now, any other key for boot menu
booting sd(16,0)netbsd - starting in 0 seconds. 
auto-boot sd(16,0)netbsd
2123344+85968 [279760+159333]=0x286b98
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
    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 6.99.28 (GENERIC) #190: Sat Jan 11 19:20:04 JST 2014
LUNA-II (MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches)
total memory = 65536 KB
avail memory = 60752 KB
mainbus0 (root)
clock0 at mainbus0: ds1287a
le0 at mainbus0: address 00:00:0a:03:42:77
le0: 32 receive buffers, 8 transmit buffers
sio0 at mainbus0: uPD7201A
siotty0 at sio0 channel 0 (console)
ws0 at sio0 channel 1
wskbd0 at ws0 mux 1
wsmouse0 at ws0 mux 0
fb0 at mainbus0: 1280 x 1024, 1bpp
wsdisplay0 at fb0 kbdmux 1
spc0 at mainbus0
scsibus0 at spc0: 8 targets, 8 luns per target
spc1 at mainbus0
scsibus1 at spc1: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <TEAC, FC-1     HGF  10, RV C> disk removable
sd0: 1440 KB, 80 cyl, 2 head, 18 sec, 512 bytes/sect x 2880 sectors
sd0: async, 8-bit transfers
sd1 at scsibus0 target 6 lun 0: <IBM, DPES-31080, S31Q> disk fixed
sd1: 1034 MB, 4903 cyl, 4 head, 108 sec, 512 bytes/sect x 2118144 sectors
sd1: async, 8-bit transfers
sd2 at scsibus1 target 6 lun 0: <MELCO, DSC-G, 1.00> disk fixed
sd2: 30533 MB, 62037 cyl, 16 head, 63 sec, 512 bytes/sect x 62533296 sectors
sd2: async, 8-bit transfers
boot device: sd2
root on sd2a dumps on sd2b
root file system type: ffs
Sat Jan 11 19:23:18 JST 2014
Starting root file system check:
/dev/rsd2a: file system is clean; not checking
swapctl: adding /dev/sd2b as swap device at priority 0
Starting file system checks:
/dev/rsd1a: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: lunachild
Configuring network interfaces: le0.
Adding interface aliases:.
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all filesystems...
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.
Starting inetd.
Starting cron.
Sat Jan 11 19:25:16 JST 2014
Jan 11 19:25:19 lunachild getty[282]: /dev/ttyE0: Device not configured

NetBSD/luna68k (lunachild) (ttya)


More detailed change logs are also available on my github for reference:

Have fun,

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index