Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLIMEX Teres-I: Disfunctional display #300

Open
Kreyren opened this issue Feb 3, 2024 · 0 comments
Open

OLIMEX Teres-I: Disfunctional display #300

Kreyren opened this issue Feb 3, 2024 · 0 comments

Comments

@Kreyren
Copy link

Kreyren commented Feb 3, 2024

While using the shared disk image from release https://github.com/Tow-Boot/Tow-Boot/releases/tag/release-2022.07-006 (https://github.com/Tow-Boot/Tow-Boot/releases/download/release-2022.07-006/olimex-teresI-2022.07-006.tar.xz) i get a disfunctional display unless the serial console is connected to the headphone jack.

Tow-Boot SPL 2022.07
DRAM: 2048 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.6(release):
NOTICE:  BL31: Built : 00:00:00, Jan  1 1980
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x20a2590, model: Olimex A64 Teres-I


Tow-Boot 2022.07 006 [variant: noenv]

CPU:   Allwinner A64 (SUN50I)
Model: Olimex A64 Teres-I
DRAM:  2 GiB
Core:  79 devices, 25 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
Bus usb@1c1b000: USB EHCI 1.00
scanning bus usb@1c1b000 for devices... EHCI timed out on TD - token=0x80008c80
4 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Please press [ESCAPE] or [CTRL+C] to enter the boot menu.

switch to partitions #0, OK
mmc1(part 0) is current device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:2...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
------------------------------------------------------------
1:      NixOS - Default
2:      NixOS - Configuration 5 (2024-02-03 16:38 - 24.05.20240129.97b17f3)
3:      NixOS - Configuration 4 (2024-02-03 06:26 - 24.05.20240129.97b17f3)
4:      NixOS - Configuration 3 (2024-02-02 22:16 - 24.05.20240129.97b17f3)
5:      NixOS - Configuration 2 (2024-02-02 18:08 - 24.05.20240129.97b17f3)
6:      NixOS - Configuration 1 (1970-01-01 00:00 - 24.05.20240129.97b17f3)
Enter choice: 1:        NixOS - Default
Retrieving file: /boot/extlinux/../nixos/k7z167dzhbgzj7sasac0mr31rczy4v2r-initrd-linux-aarch64-unknown-linux-gnu-6.1.75-initrd
Retrieving file: /boot/extlinux/../nixos/y7q2vvi4hxlcp9g500w9n0ai9dfkaqqs-linux-aarch64-unknown-linux-gnu-6.1.75-Image
append: init=/nix/store/bd23y9ffgm77sjsi7rx3d895gih65zw4-nixos-system-tsvetan-24.05.20240129.97b17f3/init loglevel=4
Retrieving file: /boot/extlinux/../nixos/y7q2vvi4hxlcp9g500w9n0ai9dfkaqqs-linux-aarch64-unknown-linux-gnu-6.1.75-dtbs/allwinner/sun50i-a64-teres-i.dtb
Moving Image from 0x40080000 to 0x40200000, end=43a60000
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 49669000, end 49fff9c4 ... OK
   Loading Device Tree to 000000004965b000, end 00000000496681d5 ... OK

Starting kernel ...

[    1.051852] thermal_sys: Failed to find 'trips' node
[    1.051914] thermal_sys: Failed to find trip points for thermal-sensor id=1

<<< NixOS Stage 1 >>>

loading module dm_mod...
running udev...
Starting systemd-udevd version 255.2
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
starting device mapper and LVM...
checking /dev/disk/by-label/NIXOS_SD...
fsck (busybox 1.36.1)
[fsck.ext4 (1) -- /mnt-root/] fsck.ext4 -a /dev/disk/by-label/NIXOS_SD
NIXOS_SD: clean, 537032/7791728 files, 4810230/31207424 blocks
mounting /dev/disk/by-label/NIXOS_SD on /...

<<< NixOS Stage 2 >>>

running activation script...
[agenix] creating new generation in /run/agenix.d/1
[agenix] decrypting secrets...
decrypting '/nix/store/qi0qva347j0hbdda1gvxiyr372m1w34i-kreyren-user-password.age' to '/run/agenix.d/1/kreyren-user-password'...
Error: No matching keys found

[ Did rage not do what you expected? Could an error be more useful? ]
[ Tell us: https://str4d.xyz/rage/report                            ]
chmod: cannot access '/run/agenix.d/1/kreyren-user-password.tmp': No such file or directory
mv: cannot stat '/run/agenix.d/1/kreyren-user-password.tmp': No such file or directory
[agenix] symlinking new secrets to /run/agenix (generation 1)...
Activation script snippet 'agenixInstall' failed (1)
[agenix] chowning...
chown: cannot access '/run/agenix.d/1/kreyren-user-password': No such file or directory
Activation script snippet 'agenixChown' failed (1)
setting up /etc...
starting systemd...

Welcome to NixOS 24.05 (Uakari)!

[  OK  ] Created slice Virtual Machine and Container Slice.
[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/systemd-fsck.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
         Expecting device /dev/disk/by-label/FIRMWARE...
         Expecting device /dev/ttyS0...
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Containers.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on Userspace Out-Of-Memory (OOM) Killer Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
         Mounting Huge Pages File System...
         Mounting POSIX Message Queue File System...
         Mounting Kernel Debug File System...
         Starting Create List of Static Device Nodes...
         Starting Load Kernel Module configfs...
         Starting Load Kernel Module drm...
         Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module fuse...
         Starting mount-pstore.service...
         Starting Create SUID/SGID Wrappers...
         Starting Journal Service...
         Starting Load Kernel Modules...
         Starting Remount Root and Kernel File Systems...
         Starting Coldplug All udev Devices...
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Finished Create List of Static Device Nodes.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Started Journal Service.
[  OK  ] Finished Load Kernel Modules.
[  OK  ] Finished Remount Root and Kernel File Systems.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Firewall...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save OS Random Seed...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev gracefully...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Load/Save OS Random Seed.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create Static Device Nodes in /dev gracefully.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Starting Rule-based Manager for Device Events and Files...
[  OK  ] Finished Create SUID/SGID Wrappers.
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished mount-pstore.service.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device /dev/disk/by-label/FIRMWARE.
         Starting File System Check on /dev/disk/by-label/FIRMWARE...
[  OK  ] Finished Firewall.
[  OK  ] Finished File System Check on /dev/disk/by-label/FIRMWARE.
         Mounting /boot/firmware...
[  OK  ] Mounted /boot/firmware.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Userspace Out-Of-Memory (OOM) Killer...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Started Userspace Out-Of-Memory (OOM) Killer.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started logrotate.timer.
[  OK  ] Started nix-gc.timer.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Nix Daemon Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Network Manager Script Dispatcher Service...
[   14.741341] lima 1c40000.gpu: error -ENODEV: _opp_set_regulators: no regulator (mali) found
         Starting Store Sound Card State...
         Starting Kernel Auditing...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting D-Bus System Message Bus...
         Starting Logrotate configuration check...
         Starting Name Service Cache Daemon (nsncd)...
[  OK  ] Started Reset console on configuration changes.
         Starting resolvconf update...
         Starting Virtual Machine and Container Registration Service...
[  OK  ] Finished Store Sound Card State.
[  OK  ] Finished Kernel Auditing.
[  OK  ] Finished Logrotate configuration check.
[  OK  ] Started Name Service Cache Daemon (nsncd).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
         Starting Accounts Service...
         Starting User Login Management...
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Virtual Console Setup...
[  OK  ] Finished resolvconf update.
[  OK  ] Created slice Slice /system/systemd-backlight.
[  OK  ] Reached target Preparation for Network.
         Starting Networking Setup...
         Starting Load/Save Screen Backligh…rightness of backlight:backlight...
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started User Login Management.
[  OK  ] Finished Load/Save Screen Backlight Brightness of backlight:backlight.
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Stopped Virtual Console Setup.
[  OK  ] Finished Networking Setup.
[  OK  ] Reached target Sound Card.
         Starting Extra networking commands....
         Starting Virtual Console Setup...
[  OK  ] Finished Extra networking commands..
[  OK  ] Finished Virtual Console Setup.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
[  OK  ] Started Virtual Machine and Container Registration Service.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Authorization Manager...
         Starting Hostname Service...
[  OK  ] Started Authorization Manager.
[  OK  ] Started Accounts Service.
[  OK  ] Started Hostname Service.
         Starting WPA supplicant...
[  OK  ] Started Network Manager.
         Starting Network Manager Wait Online...
[  OK  ] Started WPA supplicant.
[  OK  ] Reached target Network.
         Starting SSH Daemon...
         Starting Permit User Sessions...
[  OK  ] Started SSH Daemon.
[  OK  ] Finished Permit User Sessions.
         Starting Display Manager...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Display Manager.
[  OK  ] Created slice Slice /user/132.
         Starting User Runtime Directory /run/user/132...
[  OK  ] Finished User Runtime Directory /run/user/132.
         Starting User Manager for UID 132...
[  OK  ] Started User Manager for UID 132.
[  OK  ] Started Session c1 of User gdm.
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Host and Network Name Lookups...
[  OK  ] Stopped target User and Group Name Lookups.
         Stopping User and Group Name Lookups...
         Stopping Name Service Cache Daemon (nsncd)...
[  OK  ] Stopped Name Service Cache Daemon (nsncd).
         Starting Name Service Cache Daemon (nsncd)...
[  OK  ] Started Name Service Cache Daemon (nsncd).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[  OK  ] Finished Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.


<<< Welcome to NixOS 24.05.20240129.97b17f3 (aarch64) - ttyS0 >>>

Run 'nixos-help' for the NixOS manual.

tsvetan login:

Notice the:

Tow-Boot SPL 2022.07
DRAM: 2048 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.6(release):
NOTICE:  BL31: Built : 00:00:00, Jan  1 1980
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x20a2590, model: Olimex A64 Teres-I

As the behavior and output seems to be identical to the issue on alpine linux where u-boot was compiled with arm-trusted-firmware that had set SUNXI_SETUP_REGULATORS=0 which caused the seemingly exact same issue: https://wiki.postmarketos.org/wiki/OLIMEX_Teres_i#Disfunctional_display_when_BL31.bin_is_compiled_with_SUNXI_SETUP_REGULATORS=0

Though i wasn't able to find mention of SUNXI_SETUP_REGULATORS in TowBoot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant