NetBSD Problem Report #40315
From www@NetBSD.org Thu Jan 1 21:28:51 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 1A8C263B8C6
for <gnats-bugs@gnats.netbsd.org>; Thu, 1 Jan 2009 21:28:51 +0000 (UTC)
Message-Id: <20090101212850.9CEA963B884@narn.NetBSD.org>
Date: Thu, 1 Jan 2009 21:28:50 +0000 (UTC)
From: dross@pobox.com
Reply-To: dross@pobox.com
To: gnats-bugs@NetBSD.org
Subject: Bootloader fails on Atari TT030
X-Send-Pr-Version: www-1.0
>Number: 40315
>Category: port-atari
>Synopsis: Bootloader fails on Atari TT030
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: tsutsui
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 01 21:30:00 +0000 2009
>Closed-Date: Sat Jan 17 00:08:37 +0000 2009
>Last-Modified: Sat Jan 17 00:08:37 +0000 2009
>Originator: David Ross
>Release: 4.0 (HEAD)
>Organization:
n/a
>Environment:
n/a
>Description:
Some recent fixes addressing kernel panics have allowed the NetBSD atari port to install again. (The last previous version that would install was 1.6.1) The next (final?) install blocker is that the bootloader fails to operate.
My system is using an 18gb SCSI disk. I zero'd the drive before the install. I'm installing using default settings. The install does not use AHDI compatible partitioning, it just uses the whole disk for NetBSD.
Here is a disk image from an install of 200812310000Z HEAD:
http://ataritt.dnsalias.org/tt030-halt.img.bz2
This is just a clean install with default options.
While the file is only 60mb compressed, it will decompress to a full 18gb HD image. I took the image using Selfimage (http://selfimage.excelcia.org). It should be just a raw dump of the bits on the disk, I don't think selfimage adds any header but I'm not absolutely sure about that.
>How-To-Repeat:
1. Install the Atari NetBSD port on an Atari TT030.
2. Observe that upon reboot after the install, "Halting..." is printed to the display, presumably by the bootloader. The system does not boot.
The kernel with the fixes necessary to install on the TT030 without a panic:
http://mail-index.netbsd.org/port-atari/2009/01/01/msg000188.html
>Fix:
>Release-Note:
>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: port-atari-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
Date: Sat, 3 Jan 2009 18:45:51 +0900
> The next (final?) install blocker is that the bootloader fails to operate.
>
> My system is using an 18gb SCSI disk.
I don't know how primary bootstrap code is loaded by the TT030
hardware (maybe by the onboard BIOS or something like that?),
but I'm afraid 90's firmware might not support reading
(or seeking to) sectors beyond 2GB (i.e. INT32_MAX) limit.
How did you create BSD partition in your disk?
Can you try to create a smaller root partition (i.e. partition a)
then 2GB manually during sysinst?
> Here is a disk image from an install of 200812310000Z HEAD:
> http://ataritt.dnsalias.org/tt030-halt.img.bz2
Umm, bunzip2(1) on NetBSD/i386 5.99.5 says:
---
% bunzip2 tt030-halt.img.bz2
bunzip2: Caught a SIGSEGV or SIGBUS whilst decompressing.
:
---
Could you have MD5 or SHA1 for it?
If it's a vaild bzip2 file, we might need another PR for it...
---
Izumi Tsutsui
From: "David Ross" <dross@pobox.com>
To: <gnats-bugs@NetBSD.org>,
<port-atari-maintainer@netbsd.org>,
<gnats-admin@netbsd.org>,
<netbsd-bugs@netbsd.org>
Cc:
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
Date: Sat, 3 Jan 2009 11:40:08 -0800
It's not the firmware -- previously I had been running NetBSD 1.6.1 rock
solid for months, with heavy disk activity. During that time I never had
any boot issues or any issues that would indicate there's a 2GB limit.
If it would help, I can upload a disk image of a working 1.6.1 install, same
format as the HEAD disk image already included in this PR. Then looking at
the differences between the two should help pinpoint the problem.
Previously, David Brownlee fixed the installboot code so that it would not
report failure and installation would proceed. But the installed boot code
was never really tested until now due to the other install issues. It's
entirely possible that installboot is dropping the IDE boot code on my drive
instead of SCSI, or something like that, who knows.
I went back and ran installboot from 1.6.1 on my existing HEAD install, and
now the bootloader gets a little further but still fails with more verbose
error info. /boot.atari is still the version from HEAD and I think this may
be causing the new failure. Next I'm going to try to replace the newer
/boot.atari with the one from my older working 1.6.1 install.
I think it's very likely I can get to a combination of old boot code and new
kernel/filesystem that works. It's just a little problematic because while
I can preserve the filesystem on a new install, I don't have an easy way of
skipping the bootloader installation (installboot and the installation of
/boot.atari).
David Ross
dross@pobox.com
----- Original Message -----
From: "Izumi Tsutsui" <tsutsui@ceres.dti.ne.jp>
To: <port-atari-maintainer@netbsd.org>; <gnats-admin@netbsd.org>;
<netbsd-bugs@netbsd.org>; <dross@pobox.com>
Sent: Saturday, January 03, 2009 1:50 AM
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> The following reply was made to PR port-atari/40315; it has been noted by
> GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: gnats-bugs@NetBSD.org
> Cc: port-atari-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
> netbsd-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
> Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> Date: Sat, 3 Jan 2009 18:45:51 +0900
>
> > The next (final?) install blocker is that the bootloader fails to
> > operate.
> >
> > My system is using an 18gb SCSI disk.
>
> I don't know how primary bootstrap code is loaded by the TT030
> hardware (maybe by the onboard BIOS or something like that?),
> but I'm afraid 90's firmware might not support reading
> (or seeking to) sectors beyond 2GB (i.e. INT32_MAX) limit.
>
> How did you create BSD partition in your disk?
> Can you try to create a smaller root partition (i.e. partition a)
> then 2GB manually during sysinst?
>
> > Here is a disk image from an install of 200812310000Z HEAD:
> > http://ataritt.dnsalias.org/tt030-halt.img.bz2
>
> Umm, bunzip2(1) on NetBSD/i386 5.99.5 says:
>
> ---
> % bunzip2 tt030-halt.img.bz2
>
> bunzip2: Caught a SIGSEGV or SIGBUS whilst decompressing.
>
> :
> ---
>
> Could you have MD5 or SHA1 for it?
> If it's a vaild bzip2 file, we might need another PR for it...
> ---
> Izumi Tsutsui
>
>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: dross@pobox.com
Cc: gnats-bugs@NetBSD.org, port-atari-maintainer@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
tsutsui@ceres.dti.ne.jp
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
Date: Sun, 4 Jan 2009 05:11:47 +0900
> It's not the firmware -- previously I had been running NetBSD 1.6.1 rock
> solid for months, with heavy disk activity. During that time I never had
> any boot issues or any issues that would indicate there's a 2GB limit.
We have to confirm each possible problem in such case.
"1.6.1 worked" doesn't mean firmware can read sectors beyond >2GB range.
If bootstrap files were stored in <2GB range in >2GB disk,
it just worked even if there was 2GB limit, and
IIRC the default partition sizes created by sysinst
were quite different between 1.6 and 4.0.
Of course NetBSD kernel supports >2GB access (we have own drivers)
so once it booted properly it should work solid ~forever.
If current bootloder doesn't work even with <2GB root partition,
it could be an evidence which indicates other problems.
> If it would help, I can upload a disk image of a working 1.6.1 install, same
> format as the HEAD disk image already included in this PR. Then looking at
> the differences between the two should help pinpoint the problem.
I can't bunzip2 your HEAD image, as I wrote in the previous message.
Could you confirm it's valid?
---
Izumi Tsutsui
From: "David Ross" <dross@pobox.com>
To: <gnats-bugs@NetBSD.org>,
<port-atari-maintainer@netbsd.org>,
<gnats-admin@netbsd.org>,
<netbsd-bugs@netbsd.org>
Cc:
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
Date: Sat, 3 Jan 2009 13:16:44 -0800
Sorry, I saw the bz2 issue but only just after I sent the last mail. Here's
an update...
I just went and grabbed the first md5 command line tool I could find and ran
it on the file. (I'm on Win2K right now.) Here's what I get:
3e537036e85aa129662a4876874fe1ae *tt030-halt.img.bz2
It's the SelfImage disk imager tool that did the bz2 compression in the
first place, so who knows. I re-extracted the file to the drive no problem.
I've removed SelfImage's compression from the equation entirely -- here's a
gz created with gzip inside a ZIP I created in Windows:
http://ataritt.dnsalias.org/tt030-halt.img.gz.zip
This file is 64MB.
Why the double-compression? Win2K didn't want to compress the huge IMG file
and IIS doesn't want to serve file types it doesn't recognize, by default.
(I added the file type for bz2 in IIS, but maybe this was part of the
problem in the first place so better to just avoid that procedure this time
?)
From the MD5 tool:
954c80576472d540b2d878ac1aa42851 *tt030-halt.img.gz.zip
1cfc88f9da627799092b6fee9085c5cf *tt030-halt.img.gz
84e58a9d4755d3fd1fe139227bb7b0aa *tt030-halt.img
Next I will do a 1GB install to see if that resolves the bootloader issue.
To help explain my sometimes hurried / delayed responses... I only really
get to work on this stuff when my 1yr old son is taking a nap. =)
David Ross
dross@pobox.com
----- Original Message -----
From: "Izumi Tsutsui" <tsutsui@ceres.dti.ne.jp>
To: <port-atari-maintainer@netbsd.org>; <gnats-admin@netbsd.org>;
<netbsd-bugs@netbsd.org>; <dross@pobox.com>
Sent: Saturday, January 03, 2009 1:50 AM
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> The following reply was made to PR port-atari/40315; it has been noted by
> GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: gnats-bugs@NetBSD.org
> Cc: port-atari-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
> netbsd-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
> Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> Date: Sat, 3 Jan 2009 18:45:51 +0900
>
> > The next (final?) install blocker is that the bootloader fails to
> > operate.
> >
> > My system is using an 18gb SCSI disk.
>
> I don't know how primary bootstrap code is loaded by the TT030
> hardware (maybe by the onboard BIOS or something like that?),
> but I'm afraid 90's firmware might not support reading
> (or seeking to) sectors beyond 2GB (i.e. INT32_MAX) limit.
>
> How did you create BSD partition in your disk?
> Can you try to create a smaller root partition (i.e. partition a)
> then 2GB manually during sysinst?
>
> > Here is a disk image from an install of 200812310000Z HEAD:
> > http://ataritt.dnsalias.org/tt030-halt.img.bz2
>
> Umm, bunzip2(1) on NetBSD/i386 5.99.5 says:
>
> ---
> % bunzip2 tt030-halt.img.bz2
>
> bunzip2: Caught a SIGSEGV or SIGBUS whilst decompressing.
>
> :
> ---
>
> Could you have MD5 or SHA1 for it?
> If it's a vaild bzip2 file, we might need another PR for it...
> ---
> Izumi Tsutsui
>
>
From: "David Ross" <dross@pobox.com>
To: <gnats-bugs@NetBSD.org>,
<port-atari-maintainer@netbsd.org>,
<gnats-admin@netbsd.org>,
<netbsd-bugs@netbsd.org>
Cc:
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
Date: Sat, 3 Jan 2009 17:50:16 -0800
Ok, I just tried an install onto a 512MB partition. (After that there's
128MB of swap, then nothing else.) I get the same result -- the bootloader
(presumably the first stage) just prints "Halting..." to the console and
dies.
From http://netbsd.gw.com/cgi-bin/man-cgi?installboot+.atari+NetBSD-current:
The bootstrap is split into three parts: a small first-stage program
that
resides in the (physically) first 512 bytes on the device (as specified
by Atari Corp.), a second-stage program that immediately follows the
first-stage program, and a third-stage program that resides on the root
filesystem.
I know the second stage bootloader prints a banner, but I'm not seeing it
before the crash. So it does seem that at this early stage in the boot
process, we're dealing with locations only very close to the beginning of
the disk. In any case, my new install onto a 512MB partition demonstrates
that this bug is not caused by a 2GB firmware limit.
David Ross
dross@pobox.com
----- Original Message -----
From: "Izumi Tsutsui" <tsutsui@ceres.dti.ne.jp>
To: <port-atari-maintainer@netbsd.org>; <gnats-admin@netbsd.org>;
<netbsd-bugs@netbsd.org>; <dross@pobox.com>
Sent: Saturday, January 03, 2009 12:15 PM
Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> The following reply was made to PR port-atari/40315; it has been noted by
> GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: dross@pobox.com
> Cc: gnats-bugs@NetBSD.org, port-atari-maintainer@NetBSD.org,
> gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
> tsutsui@ceres.dti.ne.jp
> Subject: Re: port-atari/40315: Bootloader fails on Atarit TT030
> Date: Sun, 4 Jan 2009 05:11:47 +0900
>
> > It's not the firmware -- previously I had been running NetBSD 1.6.1 rock
> > solid for months, with heavy disk activity. During that time I never
> > had
> > any boot issues or any issues that would indicate there's a 2GB limit.
>
> We have to confirm each possible problem in such case.
>
> "1.6.1 worked" doesn't mean firmware can read sectors beyond >2GB range.
> If bootstrap files were stored in <2GB range in >2GB disk,
> it just worked even if there was 2GB limit, and
> IIRC the default partition sizes created by sysinst
> were quite different between 1.6 and 4.0.
>
> Of course NetBSD kernel supports >2GB access (we have own drivers)
> so once it booted properly it should work solid ~forever.
>
> If current bootloder doesn't work even with <2GB root partition,
> it could be an evidence which indicates other problems.
>
> > If it would help, I can upload a disk image of a working 1.6.1 install,
> > same
> > format as the HEAD disk image already included in this PR. Then looking
> > at
> > the differences between the two should help pinpoint the problem.
>
> I can't bunzip2 your HEAD image, as I wrote in the previous message.
> Could you confirm it's valid?
> ---
> Izumi Tsutsui
>
>
Responsible-Changed-From-To: port-atari-maintainer->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Mon, 05 Jan 2009 04:52:29 +0900
Responsible-Changed-Why:
I'll handle this one.
State-Changed-From-To: open->analyzed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Mon, 05 Jan 2009 04:52:29 +0900
State-Changed-Why:
Caused by aggressive gcc4:
http://mail-index.NetBSD.org/port-atari/2009/01/04/msg000226.html
From: Izumi Tsutsui <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40315 CVS commit: src/sys/arch/atari/stand
Date: Tue, 6 Jan 2009 13:35:30 +0000 (UTC)
Module Name: src
Committed By: tsutsui
Date: Tue Jan 6 13:35:30 UTC 2009
Modified Files:
src/sys/arch/atari/stand/bootxx: Makefile.bootxx bootxx.c
src/sys/arch/atari/stand/bootxxx: Makefile.bootxxx bootxxx.c
src/sys/arch/atari/stand/installboot: disklabel.c installboot.c
installboot.h
src/sys/arch/atari/stand/libsa: Makefile
src/sys/arch/atari/stand/tostools/libtos: aout.c elf.c libtos.h
sysinfo.c
src/sys/arch/atari/stand/xxboot: Makefile.xxboot
Added Files:
src/sys/arch/atari/stand: Makefile.booters
src/sys/arch/atari/stand/bootxx: start.S
src/sys/arch/atari/stand/bootxxx: start.S
Removed Files:
src/sys/arch/atari/stand: Makefile.inc
Log Message:
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/sys/arch/atari/stand/Makefile.booters
cvs rdiff -r1.2 -r0 src/sys/arch/atari/stand/Makefile.inc
cvs rdiff -r1.7 -r1.8 src/sys/arch/atari/stand/bootxx/Makefile.bootxx
cvs rdiff -r1.12 -r1.13 src/sys/arch/atari/stand/bootxx/bootxx.c
cvs rdiff -r0 -r1.1 src/sys/arch/atari/stand/bootxx/start.S
cvs rdiff -r1.3 -r1.4 src/sys/arch/atari/stand/bootxxx/Makefile.bootxxx \
src/sys/arch/atari/stand/bootxxx/bootxxx.c
cvs rdiff -r0 -r1.1 src/sys/arch/atari/stand/bootxxx/start.S
cvs rdiff -r1.2 -r1.3 src/sys/arch/atari/stand/installboot/disklabel.c
cvs rdiff -r1.21 -r1.22 src/sys/arch/atari/stand/installboot/installboot.c
cvs rdiff -r1.8 -r1.9 src/sys/arch/atari/stand/installboot/installboot.h
cvs rdiff -r1.27 -r1.28 src/sys/arch/atari/stand/libsa/Makefile
cvs rdiff -r1.10 -r1.11 src/sys/arch/atari/stand/tostools/libtos/aout.c
cvs rdiff -r1.8 -r1.9 src/sys/arch/atari/stand/tostools/libtos/elf.c
cvs rdiff -r1.4 -r1.5 src/sys/arch/atari/stand/tostools/libtos/libtos.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/atari/stand/tostools/libtos/sysinfo.c
cvs rdiff -r1.4 -r1.5 src/sys/arch/atari/stand/xxboot/Makefile.xxboot
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: analyzed->pending-pullups
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Wed, 07 Jan 2009 00:37:50 +0900
State-Changed-Why:
Fix committed and pullup requests will be sent shortly.
From: Izumi Tsutsui <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40315 CVS commit: src/distrib/utils/sysinst/arch/atari
Date: Wed, 14 Jan 2009 10:49:37 +0000 (UTC)
Module Name: src
Committed By: tsutsui
Date: Wed Jan 14 10:49:37 UTC 2009
Modified Files:
src/distrib/utils/sysinst/arch/atari: md.c
Log Message:
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/atari/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40315 CVS commit: [netbsd-4] src
Date: Thu, 15 Jan 2009 23:20:03 +0000 (UTC)
Module Name: src
Committed By: bouyer
Date: Thu Jan 15 23:20:03 UTC 2009
Modified Files:
src/distrib/sets/lists/base [netbsd-4]: md.atari
src/distrib/utils/sysinst/arch/atari [netbsd-4]: md.c
src/sys/arch/atari/stand/bootxx [netbsd-4]: Makefile.bootxx bootxx.c
src/sys/arch/atari/stand/bootxxx [netbsd-4]: Makefile.bootxxx bootxxx.c
src/sys/arch/atari/stand/installboot [netbsd-4]: disklabel.c
installboot.c installboot.h
src/sys/arch/atari/stand/libsa [netbsd-4]: Makefile
src/sys/arch/atari/stand/tostools/libtos [netbsd-4]: aout.c elf.c
libtos.h sysinfo.c
src/sys/arch/atari/stand/xxboot [netbsd-4]: Makefile.xxboot
Added Files:
src/sys/arch/atari/stand [netbsd-4]: Makefile.booters
src/sys/arch/atari/stand/bootxx [netbsd-4]: start.S
src/sys/arch/atari/stand/bootxxx [netbsd-4]: start.S
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
To generate a diff of this commit:
cvs rdiff -r1.47 -r1.47.20.1 src/distrib/sets/lists/base/md.atari
cvs rdiff -r1.20 -r1.20.4.1 src/distrib/utils/sysinst/arch/atari/md.c
cvs rdiff -r0 -r1.1.2.2 src/sys/arch/atari/stand/Makefile.booters
cvs rdiff -r1.6 -r1.6.2.1 src/sys/arch/atari/stand/bootxx/Makefile.bootxx
cvs rdiff -r1.12 -r1.12.24.1 src/sys/arch/atari/stand/bootxx/bootxx.c
cvs rdiff -r0 -r1.1.2.2 src/sys/arch/atari/stand/bootxx/start.S
cvs rdiff -r1.3 -r1.3.24.1 src/sys/arch/atari/stand/bootxxx/Makefile.bootxxx \
src/sys/arch/atari/stand/bootxxx/bootxxx.c
cvs rdiff -r0 -r1.1.2.2 src/sys/arch/atari/stand/bootxxx/start.S
cvs rdiff -r1.2 -r1.2.100.1 src/sys/arch/atari/stand/installboot/disklabel.c
cvs rdiff -r1.20.24.1 -r1.20.24.2 \
src/sys/arch/atari/stand/installboot/installboot.c
cvs rdiff -r1.8 -r1.8.24.1 src/sys/arch/atari/stand/installboot/installboot.h
cvs rdiff -r1.27 -r1.27.24.1 src/sys/arch/atari/stand/libsa/Makefile
cvs rdiff -r1.9 -r1.9.24.1 src/sys/arch/atari/stand/tostools/libtos/aout.c
cvs rdiff -r1.7 -r1.7.24.1 src/sys/arch/atari/stand/tostools/libtos/elf.c
cvs rdiff -r1.4 -r1.4.68.1 src/sys/arch/atari/stand/tostools/libtos/libtos.h
cvs rdiff -r1.6 -r1.6.24.1 src/sys/arch/atari/stand/tostools/libtos/sysinfo.c
cvs rdiff -r1.4 -r1.4.24.1 src/sys/arch/atari/stand/xxboot/Makefile.xxboot
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40315 CVS commit: [netbsd-4] src/sys/arch/atari/stand
Date: Thu, 15 Jan 2009 23:28:09 +0000 (UTC)
Module Name: src
Committed By: bouyer
Date: Thu Jan 15 23:28:09 UTC 2009
Removed Files:
src/sys/arch/atari/stand [netbsd-4]: Makefile.inc
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
To generate a diff of this commit:
cvs rdiff -r1.2 -r0 src/sys/arch/atari/stand/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40315 CVS commit: [netbsd-5] src
Date: Fri, 16 Jan 2009 22:57:33 +0000 (UTC)
Module Name: src
Committed By: bouyer
Date: Fri Jan 16 22:57:33 UTC 2009
Modified Files:
src/distrib/sets/lists/base [netbsd-5]: md.atari
src/distrib/utils/sysinst/arch/atari [netbsd-5]: md.c
src/sys/arch/atari/stand/bootxx [netbsd-5]: Makefile.bootxx bootxx.c
src/sys/arch/atari/stand/bootxxx [netbsd-5]: Makefile.bootxxx bootxxx.c
src/sys/arch/atari/stand/installboot [netbsd-5]: disklabel.c
installboot.c installboot.h
src/sys/arch/atari/stand/libsa [netbsd-5]: Makefile
src/sys/arch/atari/stand/tostools/libtos [netbsd-5]: aout.c elf.c
libtos.h sysinfo.c
src/sys/arch/atari/stand/xxboot [netbsd-5]: Makefile.xxboot
Added Files:
src/sys/arch/atari/stand [netbsd-5]: Makefile.booters
src/sys/arch/atari/stand/bootxx [netbsd-5]: start.S
src/sys/arch/atari/stand/bootxxx [netbsd-5]: start.S
Removed Files:
src/sys/arch/atari/stand [netbsd-5]: Makefile.inc
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
To generate a diff of this commit:
cvs rdiff -r1.47 -r1.47.44.1 src/distrib/sets/lists/base/md.atari
cvs rdiff -r1.22 -r1.22.2.1 src/distrib/utils/sysinst/arch/atari/md.c
cvs rdiff -r0 -r1.1.4.2 src/sys/arch/atari/stand/Makefile.booters
cvs rdiff -r1.2 -r0 src/sys/arch/atari/stand/Makefile.inc
cvs rdiff -r1.7 -r1.7.4.1 src/sys/arch/atari/stand/bootxx/Makefile.bootxx
cvs rdiff -r1.12 -r1.12.88.1 src/sys/arch/atari/stand/bootxx/bootxx.c
cvs rdiff -r0 -r1.1.4.2 src/sys/arch/atari/stand/bootxx/start.S
cvs rdiff -r1.3 -r1.3.88.1 src/sys/arch/atari/stand/bootxxx/Makefile.bootxxx \
src/sys/arch/atari/stand/bootxxx/bootxxx.c
cvs rdiff -r0 -r1.1.4.2 src/sys/arch/atari/stand/bootxxx/start.S
cvs rdiff -r1.2 -r1.2.164.1 src/sys/arch/atari/stand/installboot/disklabel.c
cvs rdiff -r1.20.88.1 -r1.20.88.2 \
src/sys/arch/atari/stand/installboot/installboot.c
cvs rdiff -r1.8 -r1.8.88.1 src/sys/arch/atari/stand/installboot/installboot.h
cvs rdiff -r1.27 -r1.27.88.1 src/sys/arch/atari/stand/libsa/Makefile
cvs rdiff -r1.10 -r1.10.10.1 src/sys/arch/atari/stand/tostools/libtos/aout.c
cvs rdiff -r1.8 -r1.8.10.1 src/sys/arch/atari/stand/tostools/libtos/elf.c
cvs rdiff -r1.4 -r1.4.132.1 src/sys/arch/atari/stand/tostools/libtos/libtos.h
cvs rdiff -r1.7 -r1.7.10.1 src/sys/arch/atari/stand/tostools/libtos/sysinfo.c
cvs rdiff -r1.4 -r1.4.88.1 src/sys/arch/atari/stand/xxboot/Makefile.xxboot
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 17 Jan 2009 09:08:37 +0900
State-Changed-Why:
Pulled up to both netbsd-4 and netbsd-5. Thanks,
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.