The NetBSD Project

CVS log for src/sys/arch/x68k/stand/xxboot/xx.c

[BACK] Up to [] / src / sys / arch / x68k / stand / xxboot

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 25 15:12:07 2022 UTC (9 months, 2 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

libsa now needs ioctl to support media with large sectors. Provide
missing functions.

libsa defines files[] array itself, just reference it.
This also adds another global variable that tracks the root
filesystem module.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 16 06:43:43 2020 UTC (2 years, 5 months ago) by isaki
Branch: MAIN
CVS Tags: 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.3: +20 -2 lines
Diff to previous 1.3 (colored)

Overhaul xxboot.  And merge floppy boot, taken from boot_ustar.
- Rewrite boot.S completely.
  boot.S now supports boot from SCSI HD/CD and floppy.
- Use IOCS call to identify the floppy format, instead of chkfmt.s which
  accesses hardware directly.
- Import print_hex() debug function from boot_ufs.
- Import a feature that displays initial registers (for debug) from boot_ufs,
  and restore it (this in boot_ufs has been broken).
- Add size optimized alternatives for some libkern routines.
- Stop linking libsa to prevent to link unexpected objects.
- Bump version to 2.0.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 14 03:34:22 2020 UTC (2 years, 5 months ago) by isaki
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Add xxboot.h common header to share prototype definitions.

Revision / (download) - annotate - [select for diffs], Wed Jan 16 05:33:08 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since +8 -9 lines
Diff to previous (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with (a bit old) head

Revision / (download) - annotate - [select for diffs], Sat Nov 24 20:20:27 2012 UTC (10 years, 2 months ago) by jdc
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since +8 -9 lines
Diff to previous (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull up revisions:
  src/sys/arch/x68k/stand/boot_ufs/boot.S revision 1.10
  src/sys/arch/x68k/stand/boot/dp8390.c revision 1.2
  src/sys/arch/x68k/stand/boot/dp8390.h revision 1.2
  src/sys/arch/x68k/stand/boot/if_ne.c revision 1.2
  src/sys/arch/x68k/stand/boot/ne.c revision 1.2
  src/sys/arch/x68k/stand/libsa/clock.c revision 1.2
  src/sys/arch/x68k/stand/netboot/Makefile revision 1.2
  src/sys/arch/x68k/stand/netboot/boot.c revision 1.2
  src/sys/arch/x68k/stand/netboot/conf.c revision 1.2
  src/sys/arch/x68k/stand/bootlogo/MANIFEST delete
  src/sys/arch/x68k/stand/bootlogo/netbsd.xpm delete
  src/sys/arch/x68k/stand/bootlogo/setbootimg.c delete
  src/sys/arch/x68k/stand/bootlogo/xpm2bootimg.c delete
  src/sys/arch/x68k/stand/xxboot/boot.S revisions 1.2,1.3
  src/sys/arch/x68k/stand/xxboot/bootmain.c revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xx.c revision 1.2
  src/sys/arch/x68k/stand/xxboot/xxboot_ffsv1/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_ffsv2/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_lfsv1/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_lfsv2/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/version revision 1.2
  src/sys/arch/x68k/stand/xxboot/cdboot_cd9660/Makefile revision 1.2
  src/sys/arch/x68k/stand/libsa/sdcd.c revision 1.14
(requested by tsutsui in ticket #707).

Fix typo in comment. s/d1/d0/

Remove my local RCS IDs.

Remove x68k/stand/bootlogo/ directory.
It was a tool before the bootloader becomes multi-stage (>10 years ago),
and it does not work anymore today.

Pull fixes in comments from x68k/stand/boot_ufs/boot.S rev 1.9 and 1.10.

Use a correct function name in .globl decl.

- fix comments
- use proper uintNN_t types
- use ANSI function decls
- remove unnecessary function decl
- remove __P()
- misc KNF and cosmetics

- use declarations in <lib/libsa/stand.h>
- remove __P() and some KNF
- remove extern variable decl
- use uintNN_t type

Set *file for FS_OPS() pathname properly in devopen().
Now bootxx_ffsv1 (and other bootxx ufs variants) work properly.

XXX: cd9660_open() in sys/lib/libsa/cd9660.c seems to open a file in
     the first entry of root directory if specified path is empty.
     Not sure if it's intentional behavoir.

Appease warning "nbmake: ${TOUCHPROG} expands to empty string".

Fix previous; no need to echo dummy command.

Make xxboot for ufs variants actually functional:
- set bootdev properly even on SCSI HD and floppy boot
  per SDBOOT/FDBOOT/CDBOOT defines in each Makefile
- always print xxboot name and version
- use IOCS PRINT calls instead of printf to avoid size overflow in DEBUG case
- wrap debug stuff with #ifdef XXBOOT_DEBUG
- bump version to denote changes
Mostly taken from old boot_ufs.

XXX: xxboot_lfs[12] are untested.

Make sure to initialize partition offset in cdopen(),
i.e. fix an uninitialized auto variable which happened
to be zero on XM6i emulator.

Now cdboot also works on real X68030.

Revision / (download) - annotate - [select for diffs], Tue Nov 20 03:01:50 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.1: +8 -9 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision / (download) - annotate - [select for diffs], Sun Nov 18 19:05:17 2012 UTC (10 years, 2 months ago) by riz
Branch: netbsd-6
Changes since +57 -0 lines
Diff to previous (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #645):
	sys/arch/x68k/stand/newdisk/newdisk.c: revision 1.10
	sys/arch/x68k/stand/xxboot/xxboot_ffsv1/Makefile: revision 1.1
	sys/arch/x68k/stand/xxboot/xx.c: revision 1.1
	sys/arch/x68k/stand/Makefile: revision 1.10
	sys/arch/x68k/stand/Makefile: revision 1.11
	sys/arch/x68k/stand/boot/conf.c: revision 1.9
	sys/arch/x68k/stand/Makefile: revision 1.12
	sys/arch/x68k/stand/Makefile: revision 1.13
	sys/arch/x68k/include/loadfile_machdep.h: revision 1.7
	sys/arch/x68k/stand/xxboot/consio1.c: revision 1.1
	sys/arch/x68k/stand/libsa/sdcd.c: revision 1.12
	sys/arch/x68k/stand/libsa/libx68k.h: revision 1.6
	sys/arch/x68k/stand/boot/ne.c: revision 1.1
	sys/arch/x68k/stand/xxboot/boot.S: revision 1.1
	sys/arch/x68k/stand/libsa/sdcd.c: revision 1.13
	sys/arch/x68k/stand/netboot/boot.c: revision 1.1
	sys/arch/x68k/stand/libsa/devopen.c: revision 1.6
	sys/arch/x68k/stand/libsa/clock.c: revision 1.1
	sys/arch/x68k/stand/boot/ne.h: revision 1.1
	sys/arch/x68k/stand/netboot/conf.c: revision 1.1
	sys/arch/x68k/stand/boot/version: revision 1.5
	sys/arch/x68k/stand/boot/version: revision 1.6
	sys/arch/x68k/stand/netboot/version: revision 1.1
	sys/arch/x68k/stand/xxboot/Makefile.xxboot: revision 1.1
	sys/arch/x68k/stand/boot/if_ne.c: revision 1.1
	sys/arch/x68k/stand/boot/dp8390.h: revision 1.1
	sys/arch/x68k/stand/xxboot/xxboot_lfsv2/Makefile: revision 1.1
	sys/arch/x68k/stand/boot/dp8390.c: revision 1.1
	sys/arch/x68k/stand/xxboot/bootmain.c: revision 1.1
	sys/arch/x68k/stand/installboot/installboot.c: revision 1.6
	sys/arch/x68k/stand/xxboot/conf.c: revision 1.1
	sys/arch/x68k/stand/xxboot/xxboot_lfsv1/Makefile: revision 1.1
	sys/arch/x68k/stand/libsa/ revision 1.2
	distrib/sets/lists/base/md.x68k: revision 1.44
	sys/arch/x68k/stand/boot/conf.c: revision 1.10
	sys/arch/x68k/stand/boot/boot.ldscript: revision 1.3
	distrib/sets/lists/base/md.x68k: revision 1.45
	sys/arch/x68k/stand/xxboot/xxboot.ldscript: revision 1.1
	sys/arch/x68k/stand/xxboot/Makefile: revision 1.15
	sys/arch/x68k/stand/libsa/Makefile: revision 1.29
	sys/arch/x68k/stand/xxboot/cdboot_cd9660/Makefile: revision 1.1
	sys/arch/x68k/stand/netboot/Makefile: revision 1.1
	sys/arch/x68k/stand/libsa/consio.c: revision 1.10
	sys/arch/x68k/stand/xxboot/version: revision 1.1
	sys/arch/x68k/stand/xxboot/xxboot_ffsv2/Makefile: revision 1.1
Comment fix.
Add FFSv2 support.
Fix CD support.
Initial support for xxboot (cdboot_cd9660, specifically).
Add xxboot (stage1) support.
put library first.
Fix CD support (again!).
Descend to xxboot.
Add xxboot_?fsv?.
Change to the 2-clauses license.
Tweak SUBDIR build order and add comments about each dir.
Fix a bug in check_getchar() (called from awaitkey_1sec()).
It didn't clear input key data when non ASCII keys (CTRL, OPT.1 etc)
were pressed so it couldn't detect further key inputs and
"any other key for boot menu" interrupt during boot didn't work
in that case.
The problem was tracked by Y.Sugahara,
and tested on X68030 and XM6i by me.
Bump version to denote check_getchar() bug fix.
First cut at x68k network bootloader via NE2000 on Neptune-X and Nereid.
Written by isaki@ back in 2003 based on x86's NE2000 netboot, and
misc debug and improvements by tsutsui@ and Y.Sugahara.
Tested on XM6i (emulating Nereid Ethernet) and X68030 + Neptune-X by me,
also on X68030 + Nereid and X68000 PRO-II + Xellent30 + Nereid by isaki@.
- X680x0 IPLROM doesn't support bootstrap from Neptune-X or Nereid,
  so this network bootloader needs to be loaded from floppy or harddisk.
- Currently netboot support is not merged into the secondary Multi-boot
  (/usr/mdec/boot) due to size restriction.
- Primary loaders assumes that the secondary bootloader name is /boot,
  so /usr/mdec/netboot needs to be installed as /boot into the target
  bootstrap device.
Add new /usr/mdec/netboot.
Check lp->d_npartitions before calling dkcksum()
(which is in src/sbin/disklabel/dkcksum.c) because
it doesn't check range and could cause coredump during
installboot against floppy that includes garbage in LABELSECTOR.

Revision, Sat Nov 17 16:02:00 2012 UTC (10 years, 2 months ago) by riz
Branch: netbsd-6
Changes since 1.2: +0 -56 lines

file xx.c was added on branch netbsd-6 on 2012-11-18 19:05:16 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 17 16:02:00 2012 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, nick-nhusb-base, nick-nhusb, 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-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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-6
Changes since 1.1: +8 -9 lines
Diff to previous 1.1 (colored)

- use declarations in <lib/libsa/stand.h>
- remove __P() and some KNF
- remove extern variable decl
- use uintNN_t type

Revision / (download) - annotate - [select for diffs], Tue Apr 17 00:07:03 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since +57 -0 lines
Diff to previous (colored) to branchpoint 1.1 (colored)

sync with head

Revision, Tue Mar 20 13:01:32 2012 UTC (10 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1: +0 -57 lines

file xx.c was added on branch yamt-pagecache on 2012-04-17 00:07:03 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 20 13:01:32 2012 UTC (10 years, 10 months ago) by minoura
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: yamt-pagecache, tls-maxphys

Initial support for xxboot (cdboot_cd9660, specifically).

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 <>