Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/distrib/x68k/floppies



In article <20020519135002S.isaki%NetBSD.org@localhost>
isaki%NetBSD.org@localhost wrote:

> Thanks. secondary boot image is included in floppy.
> but I got:
> 
> boot_ustar: Invalid magic
> [Hit key to reboot]
> 
> Do you have any idea?
> I don't have enough time today, sorry...

It seems pax vs gnu-tar incompatibility.
x68k/stand/boot_ustar/boot_ustar.S checks ustar magic as:
---
                cmpl    #0x00757374,%a1@(256)   | magic `\0ust'
                bne     error_invalidfs
                cmpl    #0x61722020,%a1@(260)   | magic `ar  '
                bne     error_invalidfs
 :
error_invalidfs:
error_invalidmagic:     BOOT_ERROR("Invalid magic")
---

and tar(1) (which was used in privious one) generates
the following magic at offset 256:
00000100  00 75 73 74 61 72 20 20-00 74 73 75 74 73 75 69  .ustar  .tsutsui  

but pax(1) (used in distrib/common/buildfloppies.sh) generates:
00000100  00 75 73 74 61 72 00 30-30 74 73 75 74 73 75 69  .ustar.00tsutsui  

I don't know ustar spec in POSIX, but I guess it's better
to fix boot_ustar.S to match both magics. (sorry, I don't have x68k)
---
Izumi Tsutsui
tsutsui%ceres.dti.ne.jp@localhost



Home | Main Index | Thread Index | Old Index