summaryrefslogtreecommitdiff
path: root/distrib/arm64
AgeCommit message (Collapse)Author
2023-02-10Use "echo '/ *' | disklabel -wAT-" to put all free space into theKenneth R Westerback
root partition. Identical behaviour as but more readable than the "echo 'a a\n\n\n\nw\nq\n'| disklabel -E" it replaces. It also eliminates the extraneous output of -E that required ">/dev/null". ok kn@
2023-02-06Add space after comma in MD "No * partition in *,try again." repliesKlemens Nanni
split across `echo -n' and `echo'. Those in single `echo' have it.
2023-01-28install sbin/kbd on arm64's ramdisk, so a user can set a keyboard layout ifPeter Hessler
they are using a glass console and kezboard. tested with a Thinkpad X13s with a DE kezboard. OK deraadt@ miod@ kn@
2022-09-26Hide error messages while extracting Apple firmware. Depending on theMark Kettenis
model there might be no firmware and we want to avoid confusing users with WARNING messages about patterns that were not matched. ok deraadt@
2022-09-03Keep _fw2 in local md_consoleinfo() scopeKlemens Nanni
Missed in previous OK kettenis
2022-09-03Copy Apple touchpad firmware on machines that need it.Mark Kettenis
ok kn@, deraadt@
2022-08-07Modern EFI systems tend to want larger EFI Sys partitions, they playTheo de Raadt
games in there, in particular during BIOS upgrade sequences. ok krw kettenis dv
2022-03-31on-ramdisk firmware extraction can overflow the install-media directoryTheo de Raadt
because of the the tar+mv combination. Purge both path variations better, so that an interrupted install can be restarted. ok miod abieber kettenis
2022-03-28Running getty(8) on /dev/console when using a glass console interferes withMark Kettenis
running Xorg in a way that isn't fully understood. So change the arm64 install.md to munge /etc/ttys to enable the ttyC0 entry if we detect that wsdisplay0 is the console and make sure the code in install.sub that does the actual munging disables the console entry before enabling another entry to prevent running two getty(8) processes on (effectively) the same device. ok deraadt@
2022-03-22Polish the bits that copy the firmware in place on Apple systems a bit more.Mark Kettenis
This mostly adds some checks to make sure that if for some reason the firmware files aren't present on the EFI System Partition the users doesn't see several error messages. ok deraadt@
2022-03-13Now that fdisk(8) retains the EFI System Partition on Apple systems, skipMark Kettenis
formatting the partition such that its contents actually survive. ok krw@
2022-03-06Simple move firmware subdirectory in place as suggested by deraadt@Mark Kettenis
Improved chicken scratches from tb@
2022-03-06Fetch bwfm(4) firmware from the EFI System Partition on Apple SiliconMark Kettenis
devices and copy it into the right directory on the ramdisk such that it can be used in the installer. And copy it in place at the end of the install procedure such that it is available for use in the newly installed system. ok deraadt@
2022-02-10Use fdisk's -b to create boot partitions instead of -e scripts.Kenneth R Westerback
Build, boot and install tested by bluhm@ ok bluhm@
2022-02-04Now that installboot(8) creates the startup.nsh file, remove the shellMark Kettenis
scripting doing the same thing from here. ok deraadt@, visa@
2021-12-14Don't overwrite the Raspberry Pi config.txt if it already exists.Mark Kettenis
ok sthen@, jsg@, deraadt@
2021-10-04Add firmwares for rsu(4), rtwn(4), and urtwn(4) drivers.Kevin Lo
ok deraadt@
2021-09-26'-g' no longer needs '-i'.Kenneth R Westerback
No functional change.
2021-08-29new installboot will sometimes reuse the existing msdos boot partition insteadTheo de Raadt
of running newfs_msdos, so fsck_msdos gets run behind the scenes. A few architectures were missing this binary on their install media jsg notices two more arch need it also, due to crazy Makefile games in installboot
2021-07-26Pass make flags to kernel and lib buildskn
Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes make(1) to both build the RAMDISK kernel and build libraries. Doing so does not propagate the flags specified to the ramdisk_cd invocation, which in turn means `-j4' for example is ignored and both kernel and libraries will not be built in parallel. Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough to separate flags, variable assignments and targets from each other and only pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar' does *not* pass `-C.' to change directories. (can be easily tested with `make -p ... | grep MFLAGS'.) This makes hacking on ramdisks/the installer much faster, espescially since the `bsd' target does `make clean' and therefore builds a new kernel every time. OK deraadt
2021-07-20Use installboot -p such that the right partition will be newfs'ed.Mark Kettenis
ok krw@, deraadt@
2021-07-18Remove hackery around /tmp/i/resolv.conf*. In particular "lookup file bind"Theo de Raadt
is required because of TLS servername for contacting ftp.openbsd.org, and there is no point doing that in resolv.conf.tail because it is no longer used. ok florian kn
2021-07-16Replace dhclient with dhcpleased/resolvd on the ramdisk.Florian Obser
OK deraadt who also helped making some space.
2021-06-25Allow (w)hole disk allocation for GPT disks. Use fdisk -A when Apple APFS ISCKenneth R Westerback
partition is detected. Otherwise the normal big hammer fdisk -ig. Only create EFI SYS boot partition on GPT disks that are the ROOTDISK. ok kettenis@ deraadt@
2021-06-07Changing the default from (W)hole disk to (E)dit MBR wasn't enough to preventMark Kettenis
folks from shooting themselves in the foot. Make sure (W) can't be used if an "APFS ISC" is found on the disk. This is the most essential partition that is required for Apple M1 machines to boot. ok krw@, deraadt@
2021-06-06Use installboot(8) on arm64 ramdisks like we do for amd64.Mark Kettenis
ok krw@
2021-06-03Use machdep.compatible to determine Pine64 and Raspberry Pi "platforms".Mark Kettenis
Also recognize Apple "platforms" and change the default from "whole" to "edit" when installing on disk with a GPT on those. This should prevent users from accidentally overwriting essential partitions that are needed to boot those machines. ok deraadt@
2021-05-30Add initial support for installing on a disk with a GPT. Mostly taken fromMark Kettenis
amd64. This makes the installer recognize an OpenBSD partition such that the installation will proceed if such a partition is found. ok krw@, deraadt@
2021-04-17Embiggen arm64 ramdisk kernel and miniroot/install img files. ProvideStuart Henderson
U-Boot binaries that work on Raspberry Pi 3 and 4 (and possibly others) and firmware for Raspberry Pi 4. This allows the same installation method as used on Raspberry Pi 3 without separate UEFI firmware (although UEFI can still be used). Help from kettenis@ jsg@ deraadt@
2021-04-13handle iso dirTheo de Raadt
2021-04-10build arm64 install*.imgTheo de Raadt
requested by kettenis, first testing by kn
2021-02-15distrib: arm64: avoid customization in mr.fs targetSebastien Marie
arm64 ramdisk has customization in mr.fs target, in order to create usr/mdec/pine64 and usr/mdec/rpi directories (files will be copied inside them by runlist.sh). uses MKDIR directive to create these directories instead of. it put back mr.fs target identical to others archs. ok deraadt@
2020-05-18Make ffs2 the default for newfs; change all calls to create e.g. floppyOtto Moerbeek
filesystems or ramdisks to use explicit -O 1; installer already does that. ok sthen@
2020-05-17Change install images called *.fs to *.img. These are UFS filesystem images,Theo de Raadt
but additionally have a bootblock in the first 8K (since UFS does not use that space). There are some UEFI direct-from-internet bootloaders that require the name *.img. So this makes things more convenient for those, while keeping it consistant in all architectures. ok kettenis beck kn
2019-11-17Use disable-bt overlay with raspberry pi so the pl011 will be used asJonathan Gray
console uart instead of the 'mini uart' a quirky 8250 alike which lacks flow control and break detection. By default the pl011 is used for bluetooth. The pins the console is on do not change. When com(4) takes over the console with the mini uart on rpi3 I see noise before output resumes and can't interact with the console after it has booted. With pluart(4) as console everything is fine.
2019-10-31When writing to a raw vnd device with dd if the input file size is not aJonathan Gray
multiple of bs use conv=sync to zero pad the final record. Avoids "vnd0: sloppy write from proc" messages when building arm releases. tested by deraadt@
2019-10-03remove device_tree_address from rpi config.txtJonathan Gray
U-Boot has been built with CONFIG_OF_BOARD for a year now ok patrick@
2019-06-23Create space for the bootloader/firmware for Rockchip SoCs by leavingMark Kettenis
more empty space before the MS-DOS and OpenBSD partitions. Also make sure we don't overwrite the firmware with the Pine64 on anything but the Pine64 and Pine64+. With help from jsg@ ok deraadt@, jsg@, patrick@
2019-06-07eliminate differences between all the list files as much asTheo de Raadt
possible, and remove the failed previous attempts at sharing in ./miniroot and ./ramdisk. maybe now that differences are eliminated we can start a new sharing effort? i dunno..
2019-05-13Add tee(1) to the ramdisk filesystem and use it to provide both aChristian Weisgerber
moving progress bar during auto upgrade/install and a clean log afterwards. ok deraadt@
2019-05-03Further removal of differences (using install instead of cp, sortingTheo de Raadt
chunks in a specified order, using a few variables, performing bsd.rd to bsd.gz conversion as similar as possible)
2019-04-30repair more trivial differencesTheo de Raadt
2019-04-30rm is in /bin, no need to specifyTheo de Raadt
2019-04-30Every Makefile on every architecture had deviated in unique ways.Theo de Raadt
Eliminate many more differences. When it makes sense, build bsd.rd and miniroot/ramdisk.fs and cd.iso in the same directory. More steps coming after this..
2019-04-29TOPDIR and TOP are not neccessary.Theo de Raadt
2019-04-29remove the abstraction REV on top of abstraction OSrev which is alwaysTheo de Raadt
the sme.
2019-04-28cleanup the situation around "df -i"Theo de Raadt
2019-04-28Cull BSDRD variables which are always bsd.rdTheo de Raadt
2019-04-28CBIN variable is also pointless, it is always "instbin". Rather thanTheo de Raadt
having two mysterious names, let's settle on one.
2019-04-28the BSD_RD variable is pointlessTheo de Raadt