|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: port-shark/41672: Install kernel in release directory is ELF version only.On Aug 23, 2009, at 9:50 AM, Izumi Tsutsui wrote:
>> release/shark/binary/kernel contains ELF and a.out versions of >> GENERIC, but only an ELF version of the INSTALL kernel. > > It seems put in shark/installation/instkernel, > but the following patch should handle it more properly: I don't see why having the kernel in shark/installation/instkernel/ is not proper. Other ports have used instkernel for a long time, and so has shark. I didn't check how long the kernel has been in instkernel, but it has been documented in the INSTALL notes for over 7 years. So with the change that is@ made, shark/installation/ is empty and the INSTALL notes are now wrong. To me, the real bug is that shark/binary/kernel/netbsd-INSTALL* exists in the first place. In the case of shark, where the firmware can boot a kernel directly, installation/ seems the right location for an INSTALL kernel. The INSTALL kernel _is_ the installation media, and if I were naively looking for installation media, I'd look in the installation directory. If I were following documentation, I'd also look there ;) I'm mildly opposed to the change that was committed, since the problem described in this PR ("there's no a.out INSTALL kernel") didn't actually exist. I do agree that having an ELF version of INSTALL is confusing, but as noted elsewhere in this PR, it doesn't seem there's any need for an ELF version of the INSTALL kernel anyway. I think the best thing to do would be to revert the changes and then not place the ELF version of netbsd-INSTALL in shark/binary/kernel/. It's also quite clear that there's a lot of variation in how various ports are organized. That said, I think that instkernel is a good location for installation kernels on ports where the kernel can be loaded directly, and if anything is to be done about smoothing out the inconsistencies between ports, it should be in the direction of instkernel, not away from it. Anyway, I guess I'll shut up if someone updates the INSTALL notes, but I will note that if instkernel is to be banished (and, as I've said, I don't think it should be), then alpha, evbarm, and mac68k should be changed as well. Don't forget the other misfits like acorn26, acorn32, evbmips, hpcarm, hpcmips, hpcsh, and ofppc. There may be some others that I missed, I only took a quick glance. |
|
|
Re: port-shark/41672: Install kernel in release directory is ELFversion only.I think there are three problems:
(1)INSTALL notes should be sync'ed with reality I agree with it of course. (2)How install RAMDISK kernels should be built I think shark had a problem on it and fixes in the PR is correct. (cats has the same problem BTW) (3)Where and in which name install RAMDISK kernels should be put Maybe we should re-think about this. There are several historical and port specific variants. Some ports require special binary formats and others not. The firmware on shark and cats require a.out kernels, but gxemul emulating cats requires a standard ELF kernel. dreamcast requires a raw netbsd-GENERIC_MD.bin kernel for bootstrap, but it has been put in binary/kernel. arc requires netbsd-RAMDISK.gz kernel as alpha, but it has been put in binary/kernel. (yes, I did the latter two, but it was just because i386 put it there) For now, it might be a compromise to change MDSET_RELEASEDIR in distrib/shark/instkernel/instkernel/Makefile from binary/kernel to installation/instkernel, I think. --- Izumi Tsutsui |
|
|
Re: port-shark/41672: Install kernel in release directory is ELFversion only.On Nov 6, 2009, at 11:09 AM, Izumi Tsutsui wrote:
> (3)Where and in which name install RAMDISK kernels should be put > > Maybe we should re-think about this. > > There are several historical and port specific variants. > Some ports require special binary formats and others not. > The firmware on shark and cats require a.out kernels, > but gxemul emulating cats requires a standard ELF kernel. > dreamcast requires a raw netbsd-GENERIC_MD.bin kernel for bootstrap, > but it has been put in binary/kernel. > arc requires netbsd-RAMDISK.gz kernel as alpha, > but it has been put in binary/kernel. > (yes, I did the latter two, but it was just because i386 put it there) > > For now, it might be a compromise to change MDSET_RELEASEDIR > in distrib/shark/instkernel/instkernel/Makefile from > binary/kernel to installation/instkernel, I think. That would be fine with me (INSTALLATION_DIRS+=installation/instkernel also needs to be added to etc/etc.shark/Makefile.inc). One other thing, though: The ".aout" naming is inconsistent: netbsd.aout-GENERIC.gz and netbsd- INSTALL.aout.gz. cats also uses the "netbsd.aout" form. I don't really care what the name of the file is, but I will note that renaming it back to netbsd.gz would kill two birds with one stone. Assuming the ELF version disappeared, anyway :) |
|
|
Re: port-shark/41672: Install kernel in release directory isELFversion only.> One other thing, though:
> > The ".aout" naming is inconsistent: netbsd.aout-GENERIC.gz and netbsd- > INSTALL.aout.gz. Well, it's an old known problem caused by inconsistency of KERNEL_SUFFIXES handling between src/etc/Makefile (for GENERIC etc) and src/distrib/common/Makefile.mdset (for md image ones), but they are too hard to read for me... sgimips has had the same problem for ecoff ones. > cats also uses the "netbsd.aout" form. Hmm, because they use >>MDSET_POST.netbsd.aout-INSTALL= \ rather than >>MDSET_SUFFIXES.-= aout create-aout for multiple kernels? I prefer netbsd-FOO.aout.gz names than netbsd.aout-FOO.gz ones, so I think we should fix src/etc/Makefile. Anyway, this problem should be handled in another PR because it isn't shark specific. --- Izumi Tsutsui |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |