CVS log for src/sys/arch/luna68k/stand/boot/sd.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.13: download - view: text, markup, annotated - select for diffs
Sat Jun 24 07:02:11 2023 UTC (17 months, 2 weeks ago) by tsutsui
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,
HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Fix a wrong cdb size of SCSI disk write command. From OpenBSD/luna88k.
Revision 1.5.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.5.6.3: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.6.3: +3 -3
lines
update from HEAD
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: +4 -4
lines
Sync with HEAD
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Feb 14 13:07:39 2015 UTC (9 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
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,
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-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,
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,
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,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
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,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Explicitly denote static functions.
Revision 1.5.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.5.6.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.2: +74 -212
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: +4 -1
lines
Rebase.
Revision 1.5.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.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +75 -213
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.5.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.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +75 -213
lines
sync with head
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Apr 16 12:01:53 2014 UTC (10 years, 8 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: +4 -1
lines
Check a status code and return proper errno in sdstrategy().
Suggested by gcc 4.8 -Wunused-but-set-variable warning to use the variable.
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: +7 -6
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: +62 -147
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: +6 -6
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
Fri Jan 3 03:25:25 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +13 -65
lines
Misc cleanup from OpenBSD/luna88k.
- remove unused code
- use proper prefix for structure members for readability
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jan 3 02:03:12 2014 UTC (10 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -7
lines
Remove unused code (from OpenBSD/luna88k). Some KNF.
Revision 1.5.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:50 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.5.6.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.1: +414 -0
lines
resync with head
Revision 1.5.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.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +414 -0
lines
sync with head
Revision 1.5.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.5: +0 -414
lines
file sd.c was added on branch tls-maxphys on 2013-02-25 00:28:50 +0000
Revision 1.5.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.5: +0 -414
lines
file sd.c was added on branch yamt-pagecache on 2013-01-23 00:05:54 +0000
Revision 1.5: 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.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
Whitespace cleanup.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 13:21:04 2013 UTC (11 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
Slightly modify sd attach message, as kernel does.
before:
sd0: HITACHI DK315C-14 rev H7H6, 2807459 512 byte blocks
after:
sd0: HITACHI DK315C-14 rev H7H6, 512 bytes/sect x 2807459 sectors
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
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
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 -26
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>