Subject: Re: build.sh release failure on alpha (-current)
To: None <current-users@netbsd.org>
From: Y. Takizawa <you@nightbreak.org>
List: current-users
Date: 12/22/2004 17:19:23
> While cross-building -current alpha on i386, i noticed that `build.sh
> release' fails :
> 
> /local/src/NetBSD/tool/alpha/bin/alpha--netbsd-ld -Ttext 0x20000000 -N -e start -o bootxx_ffs.sym  start.o bootxx.o booted_dev.o blkdev.o prom.o prom_disp.o putstr.o panic_putstr.o /local/src/NetBSD/src/sys/arch/alpha/stand/bootxx_ffs/obj/lib/sa/libsa.a /local/src/NetBSD/src/sys/arch/alpha/stand/bootxx_ffs/obj/lib/kern/libkern.a -Map bootxx_ffs.map
>    text    data     bss     dec     hex filename
>    7507     336     348    8191    1fff bootxx_ffs.sym
> creating bootxx_ffs from bootxx_ffs.sym...
> -rw-r--r--  1 njoly  users  7848 Dec 20 16:54 bootxx_ffs
> checking sizes for bootxx_ffs/bootxx_ffs.sym... MAXIMUM LOAD SIZE EXCEEDED (7848 > 7680)


I caught the same failure on i386 and macppc cross-building.

I think that bootxx_ffs needs the size less than 7680 bytes
to write to 1.2M boot floppy first track, referring to
sys/arch/i386/stand/bootxx/Makefile.bootxx for example.

NetBSD/alpha has no 1.2M boot floppy now, maybe you can
_void_ the failure to increase checking size (like the following
patch to fit 1.4M floppy first track). I don't know it is correct
to fix for boot disks and release building.


Additionaly, the size of bootxx_cd9660 seems to be less than
7680 bytes on -current like this:

creating bootxx_cd9660 from bootxx_cd9660.sym...
-rw-r--r--  1 root  wheel  7176 Dec 22 16:33 bootxx_cd9660
checking sizes for bootxx_cd9660/bootxx_cd9660.sym... OK

--
Y. Takizawa
you@nightbreak.org, takizawa@computer.org


diff -cr sys/arch/alpha/stand.orig/bootxx_ffs/Makefile sys/arch/alpha/stand/bootxx_ffs/Makefile
*** sys/arch/alpha/stand.orig/bootxx_ffs/Makefile	Sun Feb  2 08:58:48 2003
--- sys/arch/alpha/stand/bootxx_ffs/Makefile	Sun Dec 19 20:50:23 2004
***************
*** 10,15 ****
  
  # not yet desired: -DBOOTXX_FS_TYPE=FS_BSDFFS
  
! PRIMARY_MAX_LOAD!=	expr 8192 - 512
  
  .include "../Makefile.bootxx"
--- 10,15 ----
  
  # not yet desired: -DBOOTXX_FS_TYPE=FS_BSDFFS
  
! PRIMARY_MAX_LOAD!=	expr 9216 - 512
  
  .include "../Makefile.bootxx"
diff -cr sys/arch/alpha/stand.orig/bootxx_lfs/Makefile sys/arch/alpha/stand/bootxx_lfs/Makefile
*** sys/arch/alpha/stand.orig/bootxx_lfs/Makefile	Mon Feb 24 08:23:08 2003
--- sys/arch/alpha/stand/bootxx_lfs/Makefile	Sun Dec 19 20:51:21 2004
***************
*** 10,15 ****
  
  # not yet desired: -DBOOTXX_FS_TYPE=FS_BSDLFS
  
! PRIMARY_MAX_LOAD!=	expr 8192 - 512
  
  .include "../Makefile.bootxx"
--- 10,15 ----
  
  # not yet desired: -DBOOTXX_FS_TYPE=FS_BSDLFS
  
! PRIMARY_MAX_LOAD!=	expr 9216 - 512
  
  .include "../Makefile.bootxx"