* Pretend like we actually manage memory properly by calling free() on
things which were malloc()'ed or strdup()'ed.
(Patch from Dustin Kirkland).
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-84
* Support reading of type RAID partitions, except from fs_of.
This only works on x86 partition tables, Pmac partition tables will
need alternate methods. (Patch from Dustin Kirkland).
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-83
* ybin/ofpath: Remove check for broken-by-BootX device-tree, it no
longer works under current 2.6 kernels and nobody attempts to use
BootX anymore.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-82
* ybin/ybin: Allow for multiple bootstrap partitions. Patch by Dustin
Kirkland. May not fully work on PMAC hardware.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-81
* second/fs_of.c: increase tftp buffer to 6MB. This is as far as it
can go.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-73
* ybin/yabootconfig: Add support for LABEL= and UUID= in
/etc/fstab. (Colin Watson)
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-72
Ethan Benson [Sat, 8 May 2004 22:04:51 +0000 (22:04 +0000)]
Add additional check on /dev/nvram to avoid misleading error message
* ybin/ybin: Add additional check on /dev/nvram, if we cannot read a
couple bytes report it as broken. This avoids misleading
`Incompatible nvsetenv' message on kernels without /dev/nvram support.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-71
Ethan Benson [Sat, 8 May 2004 06:38:44 +0000 (06:38 +0000)]
Fix several ofpath error messages going to stdout rather then stderr
* ybin/ofpath: Fix several error messages mistakenly written to stdout
rather then stderr. (Thanks to Colin Watson for noticing)
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-70
* ybin/yabootconfig: If detected kernel appears to have a corresponding
initrd image then include an initrd= line in generated yaboot.conf.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-69
Ethan Benson [Sun, 28 Mar 2004 05:02:03 +0000 (05:02 +0000)]
Fix ofpath SATA support and sysfs detection
* ybin/ofpath: Support newwer kernels which call the driver sata_svw,
instead of ata-k2.
* ybin/ofpath: Detect sysfs mount correctly.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-67
Ethan Benson [Sun, 22 Feb 2004 13:15:30 +0000 (13:15 +0000)]
Add caveat regarding UFS to yaboot howto
* Add caveat regarding UFS to temporary bootloader setup chapter of
the yaboot-howto (Thanks to Brian Sammon, and to Stefan Pfetzing for
the German translation).
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-65
Ethan Benson [Mon, 17 Nov 2003 04:35:21 +0000 (04:35 +0000)]
Fix ofpath for `scsi' ide controllers
* ybin/ofpath:
- Generate correct paths for IDE controllers which
pretend to be scsi.
- Correct error message regarding CONFIG_SCSI_PROC_FS
(=y not =n).
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-59
Ethan Benson [Mon, 10 Nov 2003 10:23:36 +0000 (10:23 +0000)]
Fix ofpath 2.6 /proc/scsi check
* ybin/ofpath: Move return to proper place so ofpath doesn't exit
silently when scsi appears to not be installed and the system is
running a 2.6 kernel.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-58
Ethan Benson [Mon, 10 Nov 2003 08:52:02 +0000 (08:52 +0000)]
Detect lack of CONFIG_SCSI_PROC_FS in ofpath on 2.6 systems
* ybin/ofpath: Under 2.6 systems detect lack of CONFIG_SCSI_PROC_FS in
kernel configuration and print error message indicating its required.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-57
Ethan Benson [Thu, 6 Nov 2003 07:28:26 +0000 (07:28 +0000)]
Add PowerMac G5 SATA support to ofpath
* ybin/ofpath: Add support for SATA drives found in the PowerMac G5.
(Olof Johansson <offe@localnet.sh>)
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-56
Ethan Benson [Tue, 4 Nov 2003 09:19:11 +0000 (09:19 +0000)]
Use OpenFirmware RELEASE method
* second/prom.c: Use OpenFirmware's RELEASE method instead of the
broken crap hack which broke on more recent Apple OpenFirmware.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-53
Ethan Benson [Wed, 12 Feb 2003 08:55:45 +0000 (08:55 +0000)]
Prep 1.3.9 release
* Prep 1.3.9 release:
- Set version numbers to 1.3.9.
- Finalize changelog.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-49
Ethan Benson [Mon, 10 Feb 2003 09:55:05 +0000 (09:55 +0000)]
Fix botched IBM patch (multiple partition handling on rs6k)
* IBM file.c patch is broken, fix file.c so yaboot finds its config on
systems with more then one primary GNU/Linux filesystem partition.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-48
Ethan Benson [Sun, 9 Feb 2003 05:28:41 +0000 (05:28 +0000)]
Update first stage to be compatible with new Macs
* Mark first stage loader compatible with new MacOS9-free PowerMacs so
it will be accepted by OpenFirmware.
* Update copyrights to include 2003.
* Version 1.3.9-UNRELEASED.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-47
Ethan Benson [Wed, 27 Nov 2002 09:35:34 +0000 (09:35 +0000)]
Add 'kernel too old' warning to ofpath
* ofpath: On Windtunnel warn when the kernel is too old for proper
support. The warning message is sent to stderr so it will not
interfere with scripts or other automated invocation of ofpath.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-44
Ethan Benson [Tue, 19 Nov 2002 11:32:49 +0000 (11:32 +0000)]
Fix readlink fallback
* ofpath: fallback shell function for readlink was broken. Fixes
IDEBUS==NULL on broken systems that lack /bin/readlink.
* Prepare 1.3.8-rc3.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-42
Ethan Benson [Mon, 18 Nov 2002 10:38:53 +0000 (10:38 +0000)]
handle ide device nodes up to hdp
* ofpath: handle ide device nodes up to /dev/hdp (16 disks, current
max in the kernel).
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-41
Ethan Benson [Sun, 17 Nov 2002 23:33:17 +0000 (23:33 +0000)]
Add support for IDE controllers with identity crisis
* ofpath: Add support for IDE controllers that pretend they are scsi.
* Prepare 1.3.8-rc2.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-40
Ethan Benson [Sun, 17 Nov 2002 03:13:10 +0000 (03:13 +0000)]
Prepare 1.3.8-rc1
* Prefer $PATH_PREFIX/usr/sbin/ofpath if it exists.
* yabootconfig: Add append="video=ofonly" if the running kernel
was booted with it. This solves user confusion when they boot an installer with an
install-safe label, install, then reboot the new system to find the
console display doesn't work. This only occurs if user does not
specify --kernel-args so it will not interfere with distro installers
which handle this themselves.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-39
Ethan Benson [Wed, 30 Oct 2002 10:32:14 +0000 (10:32 +0000)]
Update ofpath for new devspec export in /proc
* ofpath: /proc/ide/pmac is dead, the OpenFirmware devspec is now
exported to /proc/ide/ideX/devspec, ofpath now uses that.
- this change is not tested, some additional sanity checks are still
needed.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-36
Ethan Benson [Sun, 27 Oct 2002 00:57:19 +0000 (00:57 +0000)]
Change ofpath to use /proc/ide/of1275 instead of /proc/ide/pmac
* ofpath: the current incarnation of /proc/ide/pmac is not supported
by ofpath, and I believe this file should be renamed since it should
not be inherently pmac specific. When the format of this file is
updated it can be renamed at the same time.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-35
Ethan Benson [Sun, 27 Oct 2002 00:40:09 +0000 (00:40 +0000)]
Add preliminary support for Windtunnel PowerMacs to ofpath
* CHANGES IN THIS COMMIT ARE PRELIMINARY **DO NOT DISTRIBUTE**
* ofpath: Add preliminary support for Windtunnel PowerMacs
- If /proc/ide/pmac (perhaps to be renamed) does not exist and
machine is a Windtunnel return ultra2: instead of hd: (this assumes
machines without /proc/ide/pmac are also without support for ATA-100,
ultra2: is the ATA-66 bus).
- Parse a modified version of /proc/ide/pmac to determine the
appropriate OpenFirmware device specifier, no kernel yet has the
correct version of this file.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-34
* Update copyright notices for 2002.
* Change Boot: to Stage 1 Boot: in ofboot.b
* Update changelog.
* Bump version to 1.3.7-pre1.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-30
* Change file_block_open() to check for FILE_OK rather then NULL
return from fs_open(). When no partition is specified in a file open
call yaboot will loop through all known partitions until the file is
found, or no more partitions are left. In older versions fs_open()
would check for FILE_OK, so checking for NULL return from fs_open()
worked, in current versions fs_open() checks for BADFS so proper
errors can be reported. This only really affects IBM CHRP.
Ethan Benson [Sun, 18 Aug 2002 22:33:31 +0000 (22:33 +0000)]
make version numbers loudly unsupported due to dumb dist maintainers
* make version numbers loudly unsupported due to dumb dist
maintainers, real versions not in place till release time. UNRELEASED
SOFTWARE SHOULD NOT BE PACKAGED.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-27
Ethan Benson [Thu, 15 Aug 2002 07:24:35 +0000 (07:24 +0000)]
Fix rare fstab parsing bug in yabootconfig
* Fix a rare parsing bug in yabootconfig's /etc/fstab parsing. If the
user had commented entries for the / filesystem yabootconfig would end
up detecting one of those.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-25
Ethan Benson [Sun, 31 Mar 2002 05:11:46 +0000 (05:11 +0000)]
Fix make clean from previous patch
find man page is on crack. Fix find calls my way which appears to work correctly.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-18
Ethan Benson [Sun, 31 Mar 2002 05:00:26 +0000 (05:00 +0000)]
Update clean targets
* Remove chmod calls from make clean, arch is supposed to keep track
of permissions correctly so they shouldn't be needed now.
* Add '-path './{arch}' -prune -o ' to all the find calls so cleaning
doesn't recurse into arch's revision control directories and possibly
corrupt them.
* Add archclean target which removes all of arch's cruft so release
tarballs won't be ridiculously bloated (arch keeps a complete
duplicate copy of the source making the tarball twice the size it
should be, no good for release tarballs). If people want a `archable'
tree they should just use arch to check one out.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-17