CVS log for src/sys/arch/luna68k/stand/boot/sc.c
Up to [cvs.NetBSD.org] / src / sys / arch / luna68k / stand / boot
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Sep 25 09:08:22 2024 UTC (2 months, 2 weeks ago) by rin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +13 -1
lines
luna68k/boot: XXX: Silence GCC12 -Warray-bounds for scident()
sensebuf and inqbuf may be uninitialized for some cases.
Real fix should be to check return values everywhere in
scsi_request_sense(), scsi_immed_command(), and functions
called from them.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Dec 10 20:36:02 2021 UTC (3 years ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
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,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
s/occured/occurred/ in comments, log messages and man pages.
Revision 1.17.20.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:21 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +7 -3
lines
Sync w/ HEAD.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 15 17:16:16 2021 UTC (3 years, 5 months ago) by tsutsui
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -3
lines
Fix off-by-one of a number of blocks of probed disks.
The SCSI READ_CAPACITY command returns the last logical data block
address, so we have to increment it to get a number of blocks
as src/sys/dev/scsipi/sd.c does.
Bump revision to denote the change.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:28 2018 UTC (6 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1
lines
Explain what may seem to be a non-sensical assignment, but isn't.
closes PR 53000
Revision 1.4.6.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:23 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.4.6.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.3: +45 -44
lines
update from HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Oct 31 15:10:28 2017 UTC (7 years, 1 month ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -0
lines
undo - pointed out this is a register assignment.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 31 14:55:45 2017 UTC (7 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -4
lines
PR/52680: David Binderman: Remove dedundant assignment.
Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:17:58 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +46 -45
lines
Sync with HEAD
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Feb 14 13:07:39 2015 UTC (9 years, 9 months ago) by tsutsui
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -9
lines
Explicitly denote static functions.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 14 05:58:02 2015 UTC (9 years, 9 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +20 -20
lines
Misc KNF and cosmetics.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Feb 14 05:03:09 2015 UTC (9 years, 9 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -19
lines
Use proper signedness and exact-width interger types.
Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:10 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.4.6.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.2: +181 -81
lines
Rebase to HEAD as of a few days ago.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:00 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -3
lines
Rebase.
Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:55 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +184 -84
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:15 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +182 -82
lines
sync with head
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Apr 16 11:18:00 2014 UTC (10 years, 7 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
rmind-smpnet-nbase,
rmind-smpnet-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3
lines
Appease gcc 4.8 -Wunused-but-set-variable warnings.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jan 11 15:51:02 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +30 -23
lines
Misc KNF and cosmetics.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jan 10 11:12:03 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +136 -48
lines
Reorgenize boot device configuration. The idea is taken from OpenBSD/luna88k.
- remove kernel-like autoconfiguration to probe bootable devices
- initialize SCSI and Ethernet controllers statically instead
- reorganize device softc structures per autoconf removal
- probe and print all SCSI disks (but don't assign unit numbers)
- make sdopen() to recheck the device and allocate softc dynamically
- use controller number and SCSI target ID (ctlr * 10 + id) to specify
the boot disk on the "boot" command arg
- bump version to denote changes
Now bootloader works as the following:
---
>> NetBSD/luna68k boot, Revision 1.8 (Wed Jan 8 22:13:12 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
1911696+96040 [280480+159179]=0x255a30
:
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jan 3 07:17:19 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
Pull more cleanups from OpenBSD/luna88k:
- remove unused declarations
- rename struct scsi_fmt_cdb to scsi_generic_cdb
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jan 2 19:50:03 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -7
lines
Replace broken (by SCCS) ISO-2022-JP comments with UTF-8.
Recovered and decoded by isaki@.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jan 2 18:45:24 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -3
lines
Add bound check of a controller number in scrun().
Noticed by miod@openbsd.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jan 2 17:47:23 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5
lines
Change the SCSI select timeout from 2ms to 250ms as kernel spc(4) driver does.
Noticed by miod@openbsd.
Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:49 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.1: +670 -0
lines
resync with head
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:54 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +670 -0
lines
sync with head
Revision 1.4.6.1
Tue Jan 22 15:48:40 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.4: +0 -670
lines
file sc.c was added on branch tls-maxphys on 2013-02-25 00:28:49 +0000
Revision 1.4.2.1
Tue Jan 22 15:48:40 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.4: +0 -670
lines
file sc.c was added on branch yamt-pagecache on 2013-01-23 00:05:54 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 22 15:48:40 2013 UTC (11 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
rmind-smpnet
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
Whitespace cleanup.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jan 14 01:37:57 2013 UTC (11 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -3
lines
Fix drivers to make secondary SPC SCSI on LUNA-II work properly.
Also bump version.
Now we can load a NetBSD kernel from external SCSI disks on LUNA-II.
(and netboot on LUNA-II also works)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jan 13 04:39:28 2013 UTC (11 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -31
lines
Remove unused function members from struct driver.
This makes adding other drivers easier.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jan 5 17:44:24 2013 UTC (11 years, 11 months ago) by tsutsui
Branches: MAIN
First cut at NetBSD/luna68k native bootloader.
Based on 4.4BSD-Lite2/luna68k "Stinger" loader revision "Phase-31"
http://svnweb.freebsd.org/csrg/sys/luna68k/stand/
and MI libsa glue stuff are taken from hp300 etc.
Tested on LUNA-I and old DK315C SCSI disk drive.
LUNA's monitor PROM can load only an a.out binary in 4.3BSD FFS partition
(i.e. created by "newfs -O 0") on disks with OMRON's UniOS disklabel,
but now we can load an ELF kernel in root partition via this bootloader.
(See luna68k/disksubr.c for details of UniOS label)
TODO:
- LUNA-II support (check 68040 to adjust cpuspeed for DELAY())
- secondary SCSI support for LUNA-II
- netboot via le(4) (should be trivial)
- support boot options on bootloader prompt
- bootinfo (passing info about booted device and kernel symbols)
- support "press return to boot now, any other key for boot menu" method
like x86 bootloader (needs cnscan() like functions)
- tapeboot (anyone wants it?)
CVSweb <webmaster@jp.NetBSD.org>