The NetBSD Project

CVS log for src/sys/arch/luna68k/stand/boot/sd.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / luna68k / stand / boot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 24 07:02:11 2023 UTC (8 months, 1 week ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Fix a wrong cdb size of SCSI disk write command.  From OpenBSD/luna88k.

Revision 1.5.6.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:23 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5.6.3: +3 -3 lines
Diff to previous 1.5.6.3 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

update from HEAD

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:17:58 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 14 13:07:39 2015 UTC (9 years ago) by tsutsui
Branch: 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-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-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-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
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Explicitly denote static functions.

Revision 1.5.6.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:10 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.5.6.2: +74 -212 lines
Diff to previous 1.5.6.2 (colored) to branchpoint 1.5 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:00 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Rebase.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:39:55 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.5.2.2: +75 -213 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

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) - annotate - [select for diffs], Sun May 18 17:45:15 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.5: +75 -213 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 16 12:01:53 2014 UTC (9 years, 10 months ago) by tsutsui
Branch: 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
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

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) - annotate - [select for diffs], Sat Jan 11 15:51:02 2014 UTC (10 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.9: +7 -6 lines
Diff to previous 1.9 (colored)

Misc KNF and cosmetics.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 10 11:12:03 2014 UTC (10 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.8: +62 -147 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Fri Jan 3 07:17:19 2014 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

Pull more cleanups from OpenBSD/luna88k:

- remove unused declarations
- rename struct scsi_fmt_cdb to scsi_generic_cdb

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 3 03:25:25 2014 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.6: +13 -65 lines
Diff to previous 1.6 (colored)

Misc cleanup from OpenBSD/luna88k.

- remove unused code
- use proper prefix for structure members for readability

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 3 02:03:12 2014 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.5: +2 -7 lines
Diff to previous 1.5 (colored)

Remove unused code (from OpenBSD/luna88k). Some KNF.

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:50 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.5.6.1: +414 -0 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored)

resync with head

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:54 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.5.2.1: +414 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

sync with head

Revision 1.5.6.1, Tue Jan 22 15:48:40 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.5: +0 -414 lines
FILE REMOVED

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, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.5: +0 -414 lines
FILE REMOVED

file sd.c was added on branch yamt-pagecache on 2013-01-23 00:05:54 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 22 15:48:40 2013 UTC (11 years, 1 month ago) by tsutsui
Branch: 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
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Whitespace cleanup.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 21 13:21:04 2013 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

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) - annotate - [select for diffs], Mon Jan 14 01:37:57 2013 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

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) - annotate - [select for diffs], Sun Jan 13 04:39:28 2013 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.1: +2 -26 lines
Diff to previous 1.1 (colored)

Remove unused function members from struct driver.
This makes adding other drivers easier.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 5 17:44:24 2013 UTC (11 years, 1 month ago) by tsutsui
Branch: 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?)

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>