Home | History | Annotate | only in /src/distrib/arc/ramdisk
History log of /src/distrib/arc/ramdisk
RevisionDateAuthorComments
 1.29 29-May-2020  tsutsui Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction.
 1.28 29-Apr-2020  mrg bump ramdisk size to 3200k for gcc 8. yay!
 1.27 29-Dec-2019  christos 1. Remove all the special handling of variables (-d -p -P -s -S) that
were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
and LDSTATIC used to be passed before) instead of appending them
to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)
 1.26 12-May-2017  martin branches: 1.26.10; 1.26.12;
Slightly increase the image size
 1.25 24-Jan-2017  christos branches: 1.25.2;
+= for MAKEFS_FLAGS
 1.24 01-May-2015  christos branches: 1.24.2; 1.24.4;
make bigger.
 1.23 12-Aug-2013  joerg Explicitly build space constrained ramdisk images without unwind tables.
 1.22 08-Aug-2013  he Bump RAMDISK size so that the contents fits again.
 1.21 11-Feb-2010  roy branches: 1.21.6; 1.21.12;
Remove terminfo.db as it's now embedded in libterminfo.
 1.20 05-Feb-2010  roy Use the rescue terminfo.db in our images instead of termcap.
 1.19 20-Sep-2009  abs 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi ansi/pc-term compatible with color
dumb|unknown 80-column dumb tty
hp300h HP Catseye console
iris-ansi-ap IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il Sun Microsystems Inc. console with working insert-line
vt100|vt100-am DEC VT100 (w/advanced video)
vt220-8 DEC VT220 8 bit terminal
vt220|vt200|vt300 DEC VT220 in vt100 emulation mode
wsvt25 NetBSD wscons in 25 line DEC VT220 mode
wsvt25m NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite NetBSD/x68k ITE
xterm|vs100 xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
 1.18 20-Sep-2009  abs ${NETBSDSRCDIR}/distrib/common/protocols => ${DISTRIBDIR}/common/protocols
${NETBSDSRCDIR}/distrib/common/services => ${DISTRIBDIR}/common/services
 1.17 25-Jan-2009  abs Use the cutdown distrib/common/services and distrib/common/protocols
rather than the full fat etc versions
 1.16 02-Feb-2008  tsutsui branches: 1.16.2; 1.16.6;
Enable sysinst on arc.
Tested on gxemul emulating PICA, but upgrade is untested at all.

Should close PR port-arc/11444.
 1.15 01-Feb-2008  tsutsui Use common/termcap.mini.
 1.14 10-May-2007  dogcow branches: 1.14.4;
Since /etc/services has gotten rather large, use a minimal one for install
kernels. (mount_nfs is notably the only binary that doesn't gracefully deal
with the lack of an /etc/services file, it appears.)
 1.13 10-Feb-2003  tsutsui Bump md_root size to 2.5Mbytes.
 1.12 01-Feb-2003  tsutsui Remove "-Wa,-xgot" hack from DBG flag for broken objcopy-crunchide
that has been fixed by simonb.
 1.11 22-Jan-2003  jdolecek bump ramdisk image to 2330k
 1.10 17-Oct-2002  lukem Rework how SMALLPROG was being used and how INET6 support was enabled.
There's two variables added to Makefile.crunch:

SMALLPROG If 1, add SMALLPROG=1 to CRUNCHENV. [default: 1]
This can be used by various Makefiles to
determine if a `small' version of the program
is required.

SMALLPROG_INET6 If 1 and SMALLPROG == 1, add SMALLPROG_INET6=1
to CRUNCHENV. [default: 0]
This can be used by various Makefiles to
determine if the `small' version has INET6
support enabled.

Only enable SMALLPROG_INET6 for programs on the ramdisks that have INET6 in
the appropriate kernel, and cleanup INET6 setting.
(Note: this means that sysinst won't get INET6 support if the kernel
it's running on doesn't have it).

This change saves a fair bit of space on various install images
(including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in
the kernel but were unconditionally getting INET6 support in their tools.
 1.9 26-May-2002  jdolecek it's 2304_k_
 1.8 26-May-2002  jdolecek bump ramdisk size, 2M isn't enough
 1.7 02-May-2002  lukem branches: 1.7.2;
yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
 1.6 27-Apr-2002  tsutsui Fix IMAGESIZE. (typo in rev 1.4?)
 1.5 26-Apr-2002  lukem replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
 1.4 23-Apr-2002  tv The "objcopy" based crunchide method has a problem on MIPS; it turns global
symbols into locals, but relocs are left in place (rather than attempting
to resolve-in-place with "ld -r", even with "-Bsymbolic").

Standard MIPS code will generate CALL16 relocs for function calls, but
the linker forbids such relocs from being used to call local symbols (such
as those turned "local" by objcopy). So, rather than battle the toolchain
uphill, work around it for the moment by forcing 32-bit GOT references with
the assembler option "-xgot".

This will be fixed in a more clean manner in the future.
 1.3 14-Apr-2002  tsutsui Set DBG="-Os -mmemcpy" and pass it to crunchgen.
 1.2 12-Apr-2002  lukem minor NDWO tweak
 1.1 06-Apr-2002  tsutsui First cut at ramdisk build infrastructure for arc with NDWO.
 1.7.2.1 28-May-2002  lukem pull up 1.8-1.9 (requested by jdolocek):
bump ramdisk size, 2M isn't enough
it's 2304_k_
 1.14.4.1 23-Mar-2008  matt sync with HEAD
 1.16.6.1 05-Oct-2008  mjf Sync with HEAD.
 1.16.2.2 02-Feb-2008  tsutsui Enable sysinst on arc.
Tested on gxemul emulating PICA, but upgrade is untested at all.

Should close PR port-arc/11444.
 1.16.2.1 02-Feb-2008  tsutsui file Makefile was added on branch mjf-devfs on 2008-02-02 04:23:07 +0000
 1.21.12.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.24.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.25.2.1 19-May-2017  pgoyette Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)
 1.26.12.1 07-Jun-2020  martin Pull up following revision(s) (requested by tsutsui in ticket #939):

distrib/arc/ramdisk/Makefile: revision 1.29
sys/arch/arc/arc/arcbios.c: revision 1.18
distrib/arc/ramdisk/list: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.198
sys/arch/arc/conf/RAMDISK: revision 1.83
distrib/arc/ramdisk/Makefile: revision 1.28

bump ramdisk size to 3200k for gcc 8. yay!

-

Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls.

Fixes silent hangup right after starting a kernel on my
Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC).
Reviewed by soda@. Maybe other ARC machines are also affected.

Note GXemul was not affected by this problem because it doesn't
have actual ARC BIOS ROM and emulates ARC functions internally.

Should be pulled up to at least netbsd-9.

-

Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction.

Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction.

Currently NetBSD/arc kernels are loaded at 0x80200000
(on some machines ARC BIOS uses regions before it) and
ARC BIOS also uses around 0x807f0000, so bootloader fails
on loading >6MB kernels.

Note GXemul doesn't have this restriction because it loads
a kernel directly via a command line argument.

Tested by installing using sysinst on RAMDISK kernel on netbsd-9.
Should be pulled up to netbsd-9.
 1.26.10.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.5 09-Jan-2020  martin PR install/54780: in the (of course totally unlikely) case that sysinst
should crash, run "stty sane".
 1.4 20-Nov-2008  tsutsui branches: 1.4.50; 1.4.52;
Use vt100 rather than wsvt25 for TERM since the latter makes
both FG/BG colors white during sysinst on Express5800/230 with tga(4).
 1.3 02-Feb-2008  tsutsui branches: 1.3.2; 1.3.6; 1.3.12;
Enable sysinst on arc.
Tested on gxemul emulating PICA, but upgrade is untested at all.

Should close PR port-arc/11444.
 1.2 26-Jul-2003  salo branches: 1.2.22;
netbsd.org->NetBSD.org
 1.1 06-Apr-2002  tsutsui First cut at ramdisk build infrastructure for arc with NDWO.
 1.2.22.1 23-Mar-2008  matt sync with HEAD
 1.3.12.1 23-Nov-2008  riz Pull up following revision(s) (requested by tsutsui in ticket #109):
distrib/arc/instkernel/Makefile: revision 1.11
sys/arch/arc/conf/RAMDISK: revision 1.76
sys/arch/arc/conf/GENERIC: revision 1.159
distrib/arc/ramdisk/dot.profile: revision 1.4
Use vt100 rather than wsvt25 for TERM since the latter makes
both FG/BG colors white during sysinst on Express5800/230 with tga(4).
It looks the ARC BIOS has another limit which prevents loading
a kernel larger than 8MB (it is not emulated by gxemul BTW),
so disable several devices in GENERIC and shrink RAMDISK kernel again
by sprinkled "no" keywords etc.
 1.3.6.1 05-Oct-2008  mjf Sync with HEAD.
 1.3.2.2 02-Feb-2008  tsutsui Enable sysinst on arc.
Tested on gxemul emulating PICA, but upgrade is untested at all.

Should close PR port-arc/11444.
 1.3.2.1 02-Feb-2008  tsutsui file dot.profile was added on branch mjf-devfs on 2008-02-02 04:23:07 +0000
 1.4.52.1 28-Jan-2020  msaitoh Pull up following revision(s) (requested by martin in ticket #669):
distrib/playstation2/miniroot/dot.profile: revision 1.5
distrib/sparc64/instfs/dot.profile: revision 1.8
distrib/hpcarm/miniroot/dot.profile: revision 1.3
distrib/emips/miniroot/dot.profile: revision 1.2
distrib/x68k/floppies/ramdisk/dot.profile: revision 1.16
distrib/zaurus/ramdisk/dot.profile: revision 1.4
distrib/i386/ramdisks/common/dot.profile: revision 1.7
distrib/cobalt/ramdisk/dot.profile: revision 1.2
distrib/hpcsh/miniroot/dot.profile: revision 1.5
distrib/evbarm/instkernel/ramdisk/dot.profile: revision 1.3
distrib/riscv/ramdisk/dot.profile: revision 1.2
distrib/sandpoint/ramdisk/dot.profile: revision 1.2
distrib/landisk/ramdisk/dot.profile: revision 1.3
distrib/amd64/ramdisks/common/dot.profile: revision 1.4
distrib/macppc/floppies/ramdisk/dot.profile: revision 1.14
distrib/mipsco/ramdisk/dot.profile: revision 1.3
distrib/evbmips/instkernel/ramdisk/dot.profile: revision 1.2
distrib/acorn32/ramdisk/dot.profile: revision 1.4
distrib/cats/ramdisk/dot.profile: revision 1.5
distrib/vax/ramdisk/dot.profile: revision 1.10
distrib/pmax/miniroot/dot.profile: revision 1.3
distrib/sparc/miniroot/dot.profile: revision 1.16
distrib/hpcmips/miniroot/dot.profile: revision 1.8
distrib/prep/floppies/ramdisk/dot.profile: revision 1.3
distrib/news68k/floppies/ramdisk/dot.profile: revision 1.8
distrib/alpha/instkernel/ramdisk/dot.profile: revision 1.11
distrib/ofppc/ramdisks/common/dot.profile: revision 1.2
distrib/mac68k/instkernel/ramdisk/dot.profile: revision 1.9
distrib/hp300/ramdisk/dot.profile: revision 1.7
distrib/ews4800mips/floppies/ramdisk/dot.profile: revision 1.2
distrib/emips/ramdisk/dot.profile: revision 1.3
distrib/newsmips/floppies/ramdisk/dot.profile: revision 1.7
distrib/bebox/ramdisk/dot.profile: revision 1.2
distrib/rs6000/ramdisk/dot.profile: revision 1.2
distrib/sgimips/miniroot/dot.profile: revision 1.2
distrib/mvme68k/miniroot/dot.profile: revision 1.9
distrib/hppa/ramdisk/dot.profile: revision 1.2
distrib/luna68k/ramdisk/dot.profile: revision 1.2
distrib/sgimips/ramdisk/dot.profile: revision 1.4
distrib/evbsh3/instkernel/ramdisk/dot.profile: revision 1.2
distrib/evbppc/ramdisk/dot.profile: revision 1.5
distrib/shark/instkernel/ramdisk/dot.profile: revision 1.5
distrib/pmax/ramdisk/dot.profile: revision 1.11
distrib/dreamcast/ramdisk/dot.profile: revision 1.3
distrib/arc/ramdisk/dot.profile: revision 1.5
distrib/atari/floppies/common/dot.profile: revision 1.8
PR install/54780: in the (of course totally unlikely) case that sysinst
should crash, run "stty sane".
 1.4.50.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.24 29-May-2020  tsutsui Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction.
 1.23 03-Aug-2011  tsutsui branches: 1.23.46;
less is no more
 1.22 01-Aug-2011  tsutsui Use distrib/utils/more to shrink ramdiskbin.
 1.21 03-Jul-2011  tron Update location of "less" source directory to the build of various
install medias.
 1.20 14-Jan-2011  tsutsui Adjust file lists for recent move:
usr/sbin/chown -> sbin/chown
usr/bin/chgrp -> bin/chgrp
 1.19 11-Feb-2010  roy Remove terminfo.db as it's now embedded in libterminfo.
 1.18 05-Feb-2010  roy Use the rescue terminfo.db in our images instead of termcap.
 1.17 20-Sep-2009  abs 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi ansi/pc-term compatible with color
dumb|unknown 80-column dumb tty
hp300h HP Catseye console
iris-ansi-ap IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il Sun Microsystems Inc. console with working insert-line
vt100|vt100-am DEC VT100 (w/advanced video)
vt220-8 DEC VT220 8 bit terminal
vt220|vt200|vt300 DEC VT220 in vt100 emulation mode
wsvt25 NetBSD wscons in 25 line DEC VT220 mode
wsvt25m NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite NetBSD/x68k ITE
xterm|vs100 xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
 1.16 20-Sep-2009  abs ${NETBSDSRCDIR}/distrib/common/protocols => ${DISTRIBDIR}/common/protocols
${NETBSDSRCDIR}/distrib/common/services => ${DISTRIBDIR}/common/services
 1.15 29-Apr-2009  tsutsui Fix indent on common/protocols changes.
 1.14 25-Jan-2009  abs branches: 1.14.2;
Use the cutdown distrib/common/services and distrib/common/protocols
rather than the full fat etc versions
 1.13 06-May-2008  dyoung Add -lprop to the LIBS line so that ifconfig will link.
 1.12 02-Feb-2008  tsutsui branches: 1.12.2; 1.12.6; 1.12.8;
Use less(1) rather than x_more.
 1.11 01-Feb-2008  tsutsui Use common/termcap.mini.
 1.10 10-May-2007  dogcow branches: 1.10.4;
Since /etc/services has gotten rather large, use a minimal one for install
kernels. (mount_nfs is notably the only binary that doesn't gracefully deal
with the lack of an /etc/services file, it appears.)
 1.9 10-Sep-2005  dsl Delete the:
SPECIAL dmesg srcdir distrib/utils/x_dmesg
line from all the ramdisk 'list' files. dmesg/Makefile will add -DSMALL
if SMALLPROG is defined (which it is by Makefile.crunch).
 1.8 18-Apr-2005  tsutsui Put a brandnew boot program to install ramdisk.
 1.7 16-Apr-2005  tsutsui Add newfs_msdos(8) for install ramdiskbin.

ARCBIOS can load binaries only from msdosfs on disks (or iso9660 on cdroms).
 1.6 19-Jan-2003  tsutsui branches: 1.6.6;
Remove "srcdir distrib/utils/x_mount" from ramdisk lists
since src/sbin/mount/Makefile no longer links fs specific routines.
 1.5 17-Oct-2002  lukem Now that usr.bin/ftp/Makefile supports SMALLPROG and SMALLPROG_INET6,
we don't need distrib/utils/x_ftp anymore...
 1.4 29-May-2002  lukem remove unnecessary MTREE line
 1.3 26-Apr-2002  lukem branches: 1.3.2;
replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
 1.2 13-Apr-2002  lukem consistency cleanup
 1.1 06-Apr-2002  tsutsui First cut at ramdisk build infrastructure for arc with NDWO.
 1.3.2.1 29-May-2002  lukem Pull up revision 1.4 (requested by lukem):
remove unnecessary MTREE line
 1.6.6.1 01-May-2005  tron Pull up revision 1.7 (requested by tsutsui in ticket #229):
Add newfs_msdos(8) for install ramdiskbin.
ARCBIOS can load binaries only from msdosfs on disks (or iso9660 on cdroms).
 1.10.4.1 23-Mar-2008  matt sync with HEAD
 1.12.8.1 18-May-2008  yamt sync with head.
 1.12.6.2 05-Oct-2008  mjf Sync with HEAD.
 1.12.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.2.2 02-Feb-2008  tsutsui Use less(1) rather than x_more.
 1.12.2.1 02-Feb-2008  tsutsui file list was added on branch mjf-devfs on 2008-02-02 09:23:42 +0000
 1.14.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.23.46.1 07-Jun-2020  martin Pull up following revision(s) (requested by tsutsui in ticket #939):

distrib/arc/ramdisk/Makefile: revision 1.29
sys/arch/arc/arc/arcbios.c: revision 1.18
distrib/arc/ramdisk/list: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.198
sys/arch/arc/conf/RAMDISK: revision 1.83
distrib/arc/ramdisk/Makefile: revision 1.28

bump ramdisk size to 3200k for gcc 8. yay!

-

Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls.

Fixes silent hangup right after starting a kernel on my
Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC).
Reviewed by soda@. Maybe other ARC machines are also affected.

Note GXemul was not affected by this problem because it doesn't
have actual ARC BIOS ROM and emulates ARC functions internally.

Should be pulled up to at least netbsd-9.

-

Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction.

Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction.

Currently NetBSD/arc kernels are loaded at 0x80200000
(on some machines ARC BIOS uses regions before it) and
ARC BIOS also uses around 0x807f0000, so bootloader fails
on loading >6MB kernels.

Note GXemul doesn't have this restriction because it loads
a kernel directly via a command line argument.

Tested by installing using sysinst on RAMDISK kernel on netbsd-9.
Should be pulled up to netbsd-9.
 1.2 01-Feb-2008  tsutsui branches: 1.2.2;
Use common/termcap.mini.
 1.1 06-Apr-2002  tsutsui branches: 1.1.24;
First cut at ramdisk build infrastructure for arc with NDWO.
 1.1.24.1 23-Mar-2008  matt sync with HEAD
 1.2.2.2 01-Feb-2008  tsutsui Use common/termcap.mini.
 1.2.2.1 01-Feb-2008  tsutsui file termcap.mini was added on branch mjf-devfs on 2008-02-01 14:28:19 +0000

RSS XML Feed