From: Thomas Glanzmann Date: Sun, 6 Feb 2022 06:19:29 +0000 (+0100) Subject: notes about OpenBSD and rtc X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/a905e370171bb20d0017a3fb097fd0c0d1c1e4de?ds=inline notes about OpenBSD and rtc --- diff --git a/bootstrap.sh b/bootstrap.sh index 3152afc..9ffa72f 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -43,6 +43,10 @@ build_linux() curl -s https://tg.st/u/9ce9060dea91951a330feeeda3ad636bc88c642c.patch | git am - curl -s https://tg.st/u/5nly | git am - curl -s https://tg.st/u/0wM8 | git am - + curl -s https://tg.st/u/114e7b2c8bcbbdd2aade6711169d65fc1cbaafb5.patch | git am - + curl -s https://tg.st/u/1e286fea8f626d571aed6e620f4e166a694317c2.patch | git am - + curl -s https://tg.st/u/888add910ab5dd1b7500fd2583d8ba5aa73538f3.patch | git am - + curl -s https://tg.st/u/d0801e9a20532025b82c06342da068da9aa12967.patch | git am - curl -s https://tg.st/u/config-2022-01-28 > .config make olddefconfig make -j 16 bindeb-pkg @@ -154,9 +158,9 @@ upload_artefacts() mkdir -p build cd build +build_linux build_m1n1 build_uboot -build_linux build_rootfs build_live_stick build_di_stick diff --git a/doc/OpenBSD.txt b/doc/OpenBSD.txt index a756090..dcbd173 100644 --- a/doc/OpenBSD.txt +++ b/doc/OpenBSD.txt @@ -3,3 +3,28 @@ https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/install70.img 18:57 < kettenis> just remember that with the current DTB all machines default to serial console 18:57 < kettenis> so you'll have to type "set tty fb0" at the boot> prompt 19:13 < kettenis> but if you already have u-boot running, the standard instructions from INSTALL.arm64 are all you need + +set tty fb0 +boot + +Choose whole disk, but it will wipe any linux partitions + +Interface is bge0 + +Hostname: ftp.eu.openbsd.org + +Firmware needs to go in /etc/firmware + +pkg_add -i bash gnupg vim sudo fvwm2 chromium mtr mpv + +halt -p + +echo 'set tty fb0' > /etc/boot.conf + +systat sensors + +# Login Manager X +xenodm + +20:37 < kettenis> the files need to be renamed; it prints the name if wants at the end +20:37 < kettenis> this will all change once the naming scheme that marcan came up with gets blessed by the Linux maintainers diff --git a/doc/rtc.txt b/doc/rtc.txt new file mode 100644 index 0000000..f7abfec --- /dev/null +++ b/doc/rtc.txt @@ -0,0 +1,12 @@ +curl -s https://tg.st/u/114e7b2c8bcbbdd2aade6711169d65fc1cbaafb5.patch | git am - +curl -s https://tg.st/u/1e286fea8f626d571aed6e620f4e166a694317c2.patch | git am - +curl -s https://tg.st/u/888add910ab5dd1b7500fd2583d8ba5aa73538f3.patch | git am - +curl -s https://tg.st/u/d0801e9a20532025b82c06342da068da9aa12967.patch | git am - + +CONFIG_SPMI_APPLE=y +CONFIG_MFD_APPLE_SPMI_SERA_PMU=y +CONFIG_RTC_DRV_APPLE_PMU_SERA=y + +01:52 < jeffmiw> Glanzmann: rtc support over spmi is here : https://github.com/jfbortolotti/linux/tree/spmi_rtc , you need the following flags in your kernel config: CONFIG_SPMI_APPLE=y CONFIG_MFD_APPLE_SPMI_SERA_PMU=y CONFIG_RTC_DRV_APPLE_PMU_SERA=y +01:53 < jeffmiw> tested on mba for now, branch only have the changes for t8103 +01:58 < jeffmiw> this enables to boot with current time set in rtc, and rtc is updated is system date/time is changed