Compare commits
10 Commits
3520dc0148
...
b2a7b2345c
| Author | SHA1 | Date | |
|---|---|---|---|
| b2a7b2345c | |||
| 4daf98816c | |||
| b8b33c8d20 | |||
| 3a6d89df4c | |||
| d05b9ee098 | |||
| 3da17134f2 | |||
| f74daa8e22 | |||
| 445f59fbbd | |||
| 4a555211f5 | |||
| 43d15bdbf8 |
2
config
2
config
@@ -2,5 +2,5 @@ target=aarch64-unknown-linux-gnu
|
|||||||
profile=default/linux/arm64/23.0/systemd
|
profile=default/linux/arm64/23.0/systemd
|
||||||
kernel_pkg=sys-kernel/raspberrypi-sources
|
kernel_pkg=sys-kernel/raspberrypi-sources
|
||||||
kernel_defconfig=bcm2835
|
kernel_defconfig=bcm2835
|
||||||
device_tree=broadcom/bcm2711-rpi-4-b.dtb
|
device_tree=broadcom/*.dtb
|
||||||
rootflags='ro rootwait=4'
|
rootflags='ro rootwait=4'
|
||||||
|
|||||||
13
config.txt
13
config.txt
@@ -1,12 +1,10 @@
|
|||||||
|
# dch: Tested working 2025-01-01 08:28 CST
|
||||||
|
|
||||||
arm_64bit=1
|
arm_64bit=1
|
||||||
|
arm_boost=1
|
||||||
|
|
||||||
start_x=1
|
start_x=1
|
||||||
|
|
||||||
bootcode_delay=0
|
|
||||||
boot_delay=0
|
|
||||||
|
|
||||||
gpu_mem=32
|
|
||||||
|
|
||||||
kernel=u-boot.bin
|
kernel=u-boot.bin
|
||||||
|
|
||||||
enable_uart=1
|
enable_uart=1
|
||||||
@@ -14,5 +12,10 @@ dtoverlay=miniuart-bt
|
|||||||
|
|
||||||
dtparam i2c_arm=on
|
dtparam i2c_arm=on
|
||||||
|
|
||||||
|
display_auto_detect=1
|
||||||
dtoverlay=vc4-kms-v3d
|
dtoverlay=vc4-kms-v3d
|
||||||
dtoverlay=vc4-kms-dsi-ili9881-7inch
|
dtoverlay=vc4-kms-dsi-ili9881-7inch
|
||||||
|
max_framebuffers=2
|
||||||
|
disable_fw_kms_setup=1
|
||||||
|
disable_overscan=1
|
||||||
|
dtparam=audio=on
|
||||||
|
|||||||
@@ -14,6 +14,6 @@ ${target}-emerge -vgKnj --root=/mnt/gentoo www-client/firefox:esr
|
|||||||
passwd -R /mnt/gentoo -d root
|
passwd -R /mnt/gentoo -d root
|
||||||
|
|
||||||
groupadd -R /mnt/gentoo -r kiosk
|
groupadd -R /mnt/gentoo -r kiosk
|
||||||
useradd -R /mnt/gentoo -r -g kiosk kiosk
|
useradd -R /mnt/gentoo -r -m -d /home/kiosk -g kiosk kiosk
|
||||||
|
|
||||||
systemctl --root=/mnt/gentoo enable wpa_supplicant@wlan0
|
systemctl --root=/mnt/gentoo enable wpa_supplicant@wlan0
|
||||||
|
|||||||
48
linux.config
48
linux.config
@@ -53,17 +53,45 @@ CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=m
|
|||||||
CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_V2=m
|
CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_V2=m
|
||||||
# CONFIG_MEDIA_CEC_SUPPORT is not set
|
# CONFIG_MEDIA_CEC_SUPPORT is not set
|
||||||
# CONFIG_MEDIA_SUPPORT is not set
|
# CONFIG_MEDIA_SUPPORT is not set
|
||||||
CONFIG_DRM=y
|
|
||||||
CONFIG_DRM_PANEL_SIMPLE=m
|
|
||||||
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=y
|
|
||||||
CONFIG_DRM_TOSHIBA_TC358762=m
|
|
||||||
CONFIG_V3D=m
|
|
||||||
CONFIG_VC4=m
|
|
||||||
CONFIG_DRM_SIMPLEDRM=y
|
|
||||||
CONFIG_BACKLIGHT_CLASS_DEVICE=m
|
|
||||||
CONFIG_BACKLIGHT_RPI=m
|
|
||||||
|
|
||||||
CONFIG_SOUND=m
|
CONFIG_DRM=m
|
||||||
|
CONFIG_DRM_KMS_HELPER=m
|
||||||
|
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
|
||||||
|
CONFIG_DRM_DISPLAY_HELPER=m
|
||||||
|
CONFIG_DRM_GEM_SHMEM_HELPER=m
|
||||||
|
CONFIG_DRM_SCHED=m
|
||||||
|
CONFIG_DRM_PANEL_SIMPLE=m
|
||||||
|
CONFIG_DRM_PANEL_ILITEK_ILI9806E=m
|
||||||
|
CONFIG_DRM_PANEL_ILITEK_ILI9881C=m
|
||||||
|
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=y
|
||||||
|
CONFIG_DRM_DISPLAY_CONNECTOR=m
|
||||||
|
CONFIG_DRM_TOSHIBA_TC358762=m
|
||||||
|
CONFIG_DRM_SIMPLE_BRIDGE=m
|
||||||
|
CONFIG_DRM_V3D=m
|
||||||
|
CONFIG_VC4=m
|
||||||
|
CONFIG_DRM_VC4_HDMI_CEC=y
|
||||||
|
CONFIG_DRM_RP1_DSI=m
|
||||||
|
CONFIG_DRM_RP1_DPI=m
|
||||||
|
CONFIG_DRM_RP1_VEC=m
|
||||||
|
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=m
|
||||||
|
CONFIG_FB_BCM2708=y
|
||||||
|
CONFIG_FB_SIMPLE=y
|
||||||
|
CONFIG_FB_SSD1307=m
|
||||||
|
CONFIG_FB_RPISENSE=m
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
CONFIG_FB_IOMEM_HELPERS=y
|
||||||
|
CONFIG_FB_BACKLIGHT=m
|
||||||
|
CONFIG_BACKLIGHT_CLASS_DEVICE=m
|
||||||
|
CONFIG_BACKLIGHT_PWM=m
|
||||||
|
CONFIG_BACKLIGHT_RPI=m
|
||||||
|
CONFIG_BACKLIGHT_LM3630A=m
|
||||||
|
CONFIG_BACKLIGHT_GPIO=m
|
||||||
|
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
|
||||||
|
CONFIG_BCM_VC_SM_CMA=m
|
||||||
|
|
||||||
|
CONFIG_SOUND=y
|
||||||
CONFIG_SND=m
|
CONFIG_SND=m
|
||||||
# CONFIG_SND_PCM_TIMER is not set
|
# CONFIG_SND_PCM_TIMER is not set
|
||||||
# CONFIG_SND_SUPPORT_OLD_API is not set
|
# CONFIG_SND_SUPPORT_OLD_API is not set
|
||||||
|
|||||||
8
overlay/etc/pam.d/kiosk
Normal file
8
overlay/etc/pam.d/kiosk
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
account required pam_localuser.so
|
||||||
|
|
||||||
|
session optional pam_loginuid.so
|
||||||
|
session required pam_env.so envfile=/etc/profile.env
|
||||||
|
session required pam_limits.so
|
||||||
|
session required pam_env.so
|
||||||
|
session required pam_unix.so
|
||||||
|
session required pam_systemd.so
|
||||||
@@ -10,11 +10,8 @@ Wants=time-sync.target
|
|||||||
After=time-sync.target
|
After=time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
TemporaryFileSystem=/home
|
ExecStart=/usr/bin/sway -d
|
||||||
ExecStartPre=!/bin/install -o kiosk -g kiosk -d -m u=rwx,go= /home/kiosk
|
|
||||||
ExecStart=/usr/bin/sway
|
|
||||||
User=kiosk
|
User=kiosk
|
||||||
Environment=WLR_RENDERER_ALLOW_SOFTWARE=1
|
|
||||||
Environment=WLR_LIBINPUT_NO_DEVICES=1
|
Environment=WLR_LIBINPUT_NO_DEVICES=1
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=tty
|
StandardOutput=tty
|
||||||
@@ -23,6 +20,6 @@ TTYPath=/dev/tty1
|
|||||||
TTYReset=yes
|
TTYReset=yes
|
||||||
TTYVHangup=yes
|
TTYVHangup=yes
|
||||||
TTYVTDisallocate=yes
|
TTYVTDisallocate=yes
|
||||||
PAMName=system-login
|
PAMName=kiosk
|
||||||
UtmpMode=user
|
UtmpMode=user
|
||||||
UtmpIdentifier=tty1
|
UtmpIdentifier=tty1
|
||||||
|
|||||||
Reference in New Issue
Block a user