Commit Graph

17661 Commits

Author SHA1 Message Date
tsutsui 1fe42822fe Drop -data-change-warn from MKISOFS_FLAGS.
It's available only on cdrtools-3.x and later.
2024-05-31 20:57:32 +00:00
tsutsui 25b14f946f Build mac68k and macppc iso images using tools/mkhybrid. 2024-05-31 20:54:33 +00:00
martin f9eb578e4a More rump markers 2024-05-25 14:11:20 +00:00
tsutsui 1de614c8d0 Remove installboot(8) calls against emips install media.
XXX: maybe we should also remove blindly copied bootxx binaries.
2024-05-24 13:26:35 +00:00
tsutsui d01834fb75 Pull sharable src/usr.sbin/installboot/cd9660.c. 2024-05-24 10:13:44 +00:00
tsutsui ec7170c331 Remove installboot(8) from emips miniroot too. 2024-05-23 15:00:43 +00:00
tsutsui c745827c14 Also remove installboot(8) from emips install ramdisk. 2024-05-22 16:24:40 +00:00
tsutsui 2bea8b15aa Use native cd9660 blocksize to specify block numbers in cd9660.c.
This reduces diffs from src/usr.sbin/installboot/cd9660.c.
Also explicitly call cd9660_match() to get fstype->blocksize properly.
2024-05-19 15:52:34 +00:00
tsutsui 741cd576e4 Sync with src/usr.sbin/installboot/cd9660.c:
- include now properly updated cd9660_extern.h for function prototypes
  and remove them from local installboot.h
- use ISO_MAXNAMLEN rather than (BSD specific and incorrect) MAXNAMLEN
- use proper names for the secondary boot file
- appease several pointer signedness warnings (not fatal on HOST tools)
2024-05-19 15:51:30 +00:00
tsutsui 7e1194a3e4 Put a RAMDISK kernel and SYS_UBOOT into hp300 installcd to make it bootable.
This should finally close PR/54455.
2024-05-19 15:50:00 +00:00
christos 3c6141f6f3 include all extra flavors of the kernel and use the proper variable for
the machine dependent installation directory.
2024-05-18 02:03:17 +00:00
christos 9a57126d1c use IMAGESPECEXTRA to include libdata and don't include IMAGERUNTIME 2024-05-17 21:31:10 +00:00
christos 1f259ef1e5 Add /dev/pipe to the spec list using IMAGESPECEXTRA 2024-05-17 20:27:09 +00:00
christos fa65999dca use IMAGERUNTIME to copy extra data instead of random pax commands 2024-05-17 20:26:48 +00:00
christos d308a2f4e0 Add IMAGERUNTIME and IMAGESPECEXTRA variables 2024-05-17 19:54:28 +00:00
christos f9a956b234 Add more extra stuff on the cds 2024-05-16 17:55:48 +00:00
christos f2a4ad5a9b Apply the -xx treatment to the rest of the ffs makefs invocations. 2024-05-16 15:46:42 +00:00
tsutsui 73e733dee4 Add -data-change-warn to MKISOFS_ARGS for macppc as done for mac68k:
https://mail-index.netbsd.org/source-changes/2023/05/19/msg144826.html
> Creating Type&Creator mappings for .bin (macbinary encoded) files,
> mkisofs changes files, then turns around and complains they have been
> changed.
>
> This is a self-inflicted wound, so demote the error to a warning.

This looks to make macppccd builds with cdrtools-3.02a10.
2024-05-16 14:21:45 +00:00
christos baab9fc215 Add missing stuff for vax 2024-05-15 16:31:35 +00:00
christos 8047228591 Factor out common stuff. 2024-05-15 16:29:53 +00:00
christos 1a4228f94c check if the ${MACHINE} directory exists 2024-05-14 17:17:13 +00:00
christos c3d63bc897 Add the same extra stuff from amd64 2024-05-14 17:15:13 +00:00
christos 5685bf84e6 Add the extra spec for the amd64 cdroms 2024-05-14 14:58:41 +00:00
christos aa283a51b7 Put back -xx (this will break some archs but we'll fix them) and automatically
generate the spec for the machine-specific portions of the cdrom.
2024-05-14 14:58:05 +00:00
christos cbec7da0ed more Xf86misc obsolete 2024-05-13 14:59:31 +00:00
christos 2b74ac1f4d mark more of libXxf86misc obsolete 2024-05-13 14:56:44 +00:00
rillig 9cfc443f88 lint: warn when comparing an integer to a floating point constant 2024-05-11 15:53:38 +00:00
mlelstv d965a38342 Fix aarch64 build 2024-05-11 07:34:33 +00:00
andvar 8fe9dcb1b3 s/timestemps/timestamps/ in comments. 2024-05-11 06:31:59 +00:00
riastradh 716bb5516e xdebug/shl.mi: Delete libXxf86misc.so.2.0.debug.
Loading existing applications that linked against this into a
debugger should continue to work, so it shouldn't be obsoleted, but
the file is no longer installed.
2024-05-10 12:24:08 +00:00
riastradh cd6bc63f92 xbase/shl.mi: Delete, rather than obsolete, libXxf86misc.so.M(.N).
Obsolete lines here will lead postinstall to delete the shlib, which
will break any existing applications linked against it.  Deleting the
lines has no effect on postinstall.

(We should maybe have a different way to mark them instead, as
suggested in PR 57581, but we don't, so this is what we do for now.)

However, keep the obsolete line for libXxf86misc.so, since the .so
symlink itself is only used when linking new applications.
2024-05-10 12:21:49 +00:00
riastradh d318e69575 xbase/shl.mi: Copy comment about delete vs obsolete from base/shl.mi. 2024-05-10 12:18:16 +00:00
christos d2d9aaf4f8 Remove the -xx, now we have the list of 20 platforms that have incomplete
fspecs. Instead of augmenting the platform spec with an autogenerated one,
we should understand why we have missing entries in the first place.
2024-05-09 16:09:03 +00:00
mrg 40a4e0d1da fix gcc 12 builds. 2024-05-09 15:54:58 +00:00
pho 3dc92541ec port-arm/58194: Resurrect vmt(4) from bitrot
On this architecture vmt(4) used to search for a node "/hypervisor" in the
FDT and probed the VMware hypervisor call only when the node was
found. However, things appear to have changed and VMware no longer provides
the FDT node.

Since vmt(4) doesn't actually need to read anything from FDT, and the
hypervisor call logically resides in virtual CPUs themselves, it would be
better to attach it directly to cpu, just like how it's probed on x86.
2024-05-09 12:09:58 +00:00
nia cbd7fd84d4 unhook libXxf86misc from the build and mark obsolete
library has no users in src or pkgsrc, it's primarily useful for
managing input devices on mid-2000s xfree86 servers
2024-05-09 06:38:27 +00:00
kre 966af04570 No point testing if the spec file is empty before running makespec,
the previous commands guarantee that cannot be the case, so makespec
was never being run.   Just run it unconditionally.

Seems to fix the build for me.
2024-05-09 03:41:05 +00:00
mrg 63829c3207 fix gcc 12 support. 2024-05-09 02:14:21 +00:00
christos 4967e4351f Fail on incomplete mtree specs 2024-05-08 16:08:08 +00:00
christos 27fb837206 PR/58196: Jan-Benedict Glaw: If there was no spec file specified, generate
one on the fly. Should fix reproducible builds where the mode and the
ownership/group is not fixed and picked up from the filesystem.
2024-05-07 20:33:20 +00:00
mrg 465b033192 mark more libpam* with pam. 2024-05-06 08:38:51 +00:00
macallan dfd1081321 sprinkle rump, gcc=12 etc.
Now sparc64 with HAVE_GCC=12 and MKRUMP=no builds again
2024-05-06 06:06:40 +00:00
mrg 59f75f88a6 mark libpam* as being part of pam. 2024-05-06 05:27:46 +00:00
riastradh b129f29edd tests/lib/libm: Test nextafter/nexttoward and variants.
The tests are fairly trivial but should work without any conditionals
about floating-point formats.
2024-05-05 02:53:01 +00:00
reed e5d2f1f842 add the catman pages to the set for mkcsmapper and mkesdb 2024-05-04 19:16:22 +00:00
reed b3ebb17e10 Install the mkcsmapper.1 and mkesdb.1 manpages. 2024-05-04 19:10:04 +00:00
dyoung 7c4812b990 Add a device tree for the Red Pitaya SDRlab 122-16.
To boot NetBSD on the 122-16, copy the .dtb built from
zynq-red-pitays-122-16.dts, the first-stage bootloader (called
boot.bin) and U-Boot that came with the 122-16 and a kernel image,
netbsd.ub, built for earmv7hf to an MS-DOS partition on an
MBR-partitioned SD card.  At the U-Boot prompt, "Zynq> ", type these
commands:

i2c dev 0
eeprom read 0 0x50 0 0x1804 0x400
env import -b 0 0x400 hw_rev serial ethaddr
setenv bootargs "root=ld0a"
fatload mmc 0 0x01f00000 device~1.dtb
fatload mmc 0 0x02000000 netbsd.ub
fdt addr 0x01f00000
fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr
bootm 0x02000000 - 0x01f00000

Note that the ethernet PHY will not attach unless you have applied
the patches from Lloyd Parkes in kern/58083.
2024-05-04 02:21:48 +00:00
gutteridge 7db2523dea Add dhcpcd to riscv ramdisk, etc.
Be consistent with configs for pretty much every other (modern) arch
and provide dhcpcd, lest someone end up using this image and then be
surprised (as happened relatively recently with evbmips images). This
means of course we also need bpf.

While here, add a few wedge devices, too. This aligns us with the
device definitions evbmips uses (that appears to be where the riscv
Makefile was copied from back in 2015).
2024-05-04 00:41:06 +00:00
tsutsui 2c8ccd9ea5 Add 98542 and 98543 framebuffers to supported "Graphics Devices" section.
I hope someone will sync a list of supported devices in port wiki pages
with one in this installation notes.
2024-05-01 19:40:56 +00:00
andvar 4412324be5 viac7temp(4): rewrite temperature sensor to read value from MSR instead of using
documented cpuid instruction and eax register.

This approach is adapted from linux via-cputemp.c, no official documentation is
currently available. However, msr value seems to work on all tested CPUs while
documented cpuid instruction typically reports 0, even for my C7-D CPU.
msr value seems to have temperature in Celsius in lower 24-bits without fraction
(thus "msr & 0xffffff;" is used).

Tested on my personal systems based on CPUs below (i386 and amd64):
C7-D 1.6GHz (i386 only), Nano X2 L4350E, Nano X2 U4300, U2300 Nano, KX-U6580.
Also got one response via email which was based on Nano X2 L4050 (VE-900).
Nano reports independent values for each core.
KX-U6580 seems to show the same value for all cores but more testing is needed.

Since it works on amd64 capable CPUs, adding driver to GENERIC kernel config.
Also moving viac7temp man page to x86 instead of i386 (with updates).
In theory the change should add support for all VIA Nano CPUs and Zhaoxin CPUs
 at least up to KX-6000(G) series.

In the future I may need to introduce amd64 kernel module as well.

Plan to pullup to at least netbsd-10.

Patch mainly reviewed by riastradh.
2024-04-30 19:35:28 +00:00