# Architecture specific features f0:12345:respawn:/sbin/agetty 115200 ttyAML0 vt100
GRUB_PLATFORMS="efi-64"
ROOT=$PWD/ emerge --ask --usepkgonly --oneshot --nodeps qemu
/etc/portage/package.make
# These settings were set by the catalyst build script that automatically # built this stage. # Please consult /usr/share/portage/config/make.conf.example for a more # detailed example. COMMON_FLAGS="-O2 -pipe -march=armv8-a+crypto+crc -mabi=lp64 -mtune=cortex-a53" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing. CHOST="aarch64-unknown-linux-gnu" MAKEOPTS="-j4" FEATURES="-pid-sandbox buildpkg" #FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc" PKGDIR=/var/potato/binpkgs/ # NOTE: This stage was built with the bindist Use flag enabled # This sets the language of build output to English. # Please keep this setting intact when reporting bugs. LC_MESSAGES=C USE="-X gpm fbcon alsa -udev" ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" GRUB_PLATFORMS="efi-64" PORTDIR_OVERLAY="/var/db/repos/portage_overlay"
potato-chroot.sh
/etc/init.d/qemu-binfmt start cd /usr/potato mount -t proc none proc mount -o bind /dev dev mount -o bind /var/db/repos/gentoo var/db/repos/gentoo mount -o bind /sys sys cp /etc/resolv.conf etc/resolv.conf echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register chroot . /bin/bash --login umount sys umount var/db/repos/gentoo umount dev umount proc
PORTAGE_BINHOST="ssh://user@pkghost/usr/potato/var/potato/binpkgs" FEATURES="getbinpkg"
emerge --ask dtc libgpiod
git clone https://github.com/libre-computer-project/libretech-wiring-tool.git
make make install
vim /etc/init.d/rtc
#!/sbin/openrc-run # Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 name="i2c rtc overlays" description="make rtc " depend() { before hwclock } start() { /opt/librecomputer/libretech-wiring-tool/ldto enable i2c-ao /opt/librecomputer/libretech-wiring-tool/ldto enable i2c-ao-ds3231 }
chmod 755 rtc rc-update add rtc boot
[ 11.809520] rtc-ds1307 1-0068: registered as rtc0 [ 11.810886] rtc-ds1307 1-0068: setting system clock to 2023-05-04T11:58:05 UTC (1683201485)
mobilemouse ~ # i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --