summaryrefslogtreecommitdiff
path: root/distrib/arm64
AgeCommit message (Collapse)Author
2024-06-18grow the iso againTheo de Raadt
2024-06-09include BUILDINFO file in the iso/img files; requested by florian for ↵Theo de Raadt
sysupgrade changes
2024-05-12Rerun installboot(8) after fw_update(8) to pick up Apple boot firmwareKlemens Nanni
Firmware is fetched after bootstraps are installed, i.e. on fresh installs apple-boot is not there yet when installboot ought to place it onto the EFI System Partition. Rerun --only on Apple silicon-- to replace Asahi u-boot and boot straight into ours, nicely visible my different logo. Input sthen deraadt
2024-04-17Use $_disk consistently over $1 in md_installboot(); no functional changeKlemens Nanni
Somehow I did not amend those right away when adding local _disk in r1.43
2024-02-10grow arm64 iso media againTheo de Raadt
2023-11-13enable UDF on arm64 install mediaJonathan Gray
ok deraadt@ kn@
2023-10-26the dependency should have been moved downTheo de Raadt
2023-10-26delete incorrect dependencyTheo de Raadt
2023-10-26construct EFI bootable cdXX.iso and instalXX.iso filesTheo de Raadt
2023-10-18grow arm64 iso media spaceTheo de Raadt
2023-10-11Remove dead CRYPTOCHUNK usageKlemens Nanni
install.sub r1.1245 "Ask for disk crypto after root disk question" got rid of global CRYPTO* variables; no functional change.
2023-04-28Retire -E's "expert" mode. Introduced 23 years ago to avoidKenneth R Westerback
confusing users with FFS attributes that only experts should fiddle with. Actual use has withered away with functionality rendered moot or moved elsewhere. '-e' remains for the truly obscure corner cases. Simply excise the code for now to see if hidden users/uses are exposed. Further simplifications are possible if no such users/uses surface. ok with sthen@ millert@ kn@ otto@
2023-04-28Add support for RTL8188FTV chip to urtwn(4).Kevin Lo
Tested with Comfast CF-WU710N v4. "go ahead" deraadt@ OK stsp@
2023-04-27arm64 install.md: fix softraid crypto installation on MacCaspar Schutijser
Make sure we don't newfs the EFI Sys partition on systems that have an "apfsisc" partition in the case we're installing with softraid crypto. Debugged with help from and came up with a fix with kn@ "go ahead" kettenis@ "no objections" krw@ OK kn@
2023-04-27Treat crypto disk like the root disk, both are boot disksKlemens Nanni
Chosing [W]hole on a GPT disk means it needs non-default `-b' fdisk(8) to account for existing EFI Sys partitions, whether it modifies an existing GPT (Apple APFS ISC) or writing a new one. With 'Encrypt the root disk?' answered postively, the crypto disk instead of the root disk becomes the boot disk. Extend the logic to both crypto and root disk, really asking "is this a boot disk?". with caspar
2023-04-24Change variables 'MRFSDISKTYPE' to 'MRDISKTYPE' like every other arch.Kenneth R Westerback
No functional change. Noticed by & ok kn@
2023-04-17Remove unused variables FSDISKTYPE that point at non-existantKenneth R Westerback
'install' disktab entries. No functional change.
2023-04-14check if there is actually anything to extract from the firmware tarballRobert Nagy
on apple silicon so that we don't fill up the ramdisk by extracting the whole tarball while here, change the code so that the machdep.compatible sysctl gets read once and then that value is used in the script instead of calling sysctl several times from input and ok kn@, kettenis@
2023-04-04Enable guided disk encryption support on arm64Klemens Nanni
All board specific quirks inside the installer (and other bugs) relating to root on softraid are fixed, so that install media with the new question just works for plain as well as encrypted installs. Tested on Pinebook Pro, Raspberry Pi 4b, SolidRun CEX7.
2023-04-04Make root on softraid installations boot out of the box on Raspberry PisKlemens Nanni
Various files are put onto a pi's ESP, assuming root disk means boot disk, which is not true for root on softraid(4). Wrap the code in a loop over chunks (if any) or the single disk as before, just like installboot(8) does. OK mbuhl
2023-04-03Stop writing pine64 firmware to diskKlemens Nanni
pine64 happens to be the first board "we ran on", as kettenis explains, and this code tries to handle the situation of installing to the same disk the installer booted from. Similar boards like the Pinebook Pro don't get special treatment and work; INSTALL.arm64 already explains how to flash required firmware onto disks or install media -- Allwinner SoCs like the pine64 included. Spotted through md_installboot() dd'ing blobs onto the root disk, which does not fly with root on softraid and is in the way of arm64 getting support for guided disk encryption. Suggested by kettenis patrick Feedback jsg patrick OK patrick
2023-03-29Add missing semicolon to properly end switch caseKlemens Nanni
There since introduction, lucked out since it is the last case. No functional change.
2023-03-29Use character not block devices with dd(1) like the restKlemens Nanni
All other dd invocations in installer code, INSTALL.* instructions and dd(1) EXAMPLES use the disk's "raw device".
2023-03-29Unify variable usage in arm64 and armv7 md_installboot() with the restKlemens Nanni
`_disk' (and related variables) hold disk names as "sd0" so that all else can be constructed from it. Fix the only two offenders across distrib/ which put start the variable with "/dev/"; no functional change.
2023-03-26Simplify apple firmware copyingKlemens Nanni
Less duplicate code, easier to add new firmware. OK afresh1
2023-03-25pine64: Silence dd(1) properlyKlemens Nanni
We must not discard all errors, just disable informational messages. OK tb
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@