Hacking RELEASE Painless Linux - it's Linux, but painless (Windows, Mac OS, Linux & Android)

dovere

Well-Known Member
Newcomer
Joined
Apr 26, 2018
Messages
55
Trophies
0
Age
29
XP
255
Country
Italy
Hey Tempers,

I rebuild the painless-linux kernel with applied Lakka patches. That means we finally have bluetooth sound, fixed battery indicator and Joycon support in Painless Linux.

Install Painless-Linux as described here:

https://github.com/natinusala/painless-linux

Then extract the archive attached to this post and patch your Painless-Linux setup as described in the readme.txt.

Big thx to @natinusala for your help. :)

Does this means we can now boot linux withouth trigger the battery bug on horizon?
 

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
Lakka works so if @DarkOrb has ported everything there, there is no reason why it shouldn't work with 128gb cards

Was someone able to verify that the patch fixes the issue with 128gb cards or more? I have a 200gb card and was not able to get it to work. I am going to do more testing later to make sure I didn't do something wrong.

@DarkOrb Do you know if your patch also fixes the issue with using cards that are 128gb or higher?

Edit: I am able to run Arch Linux on my 32gb card, but I still can't get it to work on my 200gb card
 
Last edited by CuriousTommy,

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
@DarkOrb Do you have the source code (with the patches added on) posted online? I am having trouble getting systemd-binfmt to work and I think it has to do with how the kernel is configured.

Edit: I wonder if you were using this config file when you compiled the Linux kernel. The "CONFIG_BINFMT_MISC" is not set, which is probably the cause for systemd-binfmt to fail.
 
Last edited by CuriousTommy,

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
@natinusala What is the process like for modifying the Linux kernel (used in Lakka) to make it usable on Arch Linux? I am assuming that putting a compiled (for Lakka) kernel in the boot folder won't be enough.
 

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
Apply all of Lakka patches to your coreboot, u-boot and Linux. Check the config(s). Done.

edit : also use Lakka's repos as a base

I have one dumb question to ask you! When you are about to compile the kernel, should the command for compiling the kernel be something like this:
Code:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image
Or is it just this:
Code:
make
 

KitsumiTheFox

Well-Known Member
Newcomer
Joined
Jan 9, 2016
Messages
85
Trophies
0
Age
23
Location
Utah
XP
590
Country
United States
I wrote the image to an SD Card using Win32 Disk Imager, and I tried 2 different SDHC cards, a Samsung 32GB card, and a Fujifilm 16GB card, but neither of them worked.
It can't find the /dev/mmcblk0p2 and then goes into
Code:
mmc0: Timeout waiting for hardware interrupt.
 

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
@natinusala From what I understand, you are supposed to have a .dtb be generated when you compile the Linux kernel, but I don't see it when I look in the "linux/arch/arm64/boot/dts" directory. Is there something I am missing in this command?
Code:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image

Also, what do we do with the u-boot files once we compile it? Do I need to store it in a certain location?

I wrote the image to an SD Card using Win32 Disk Imager, and I tried 2 different SDHC cards, a Samsung 32GB card, and a Fujifilm 16GB card, but neither of them worked.
It can't find the /dev/mmcblk0p2 and then goes into
Code:
mmc0: Timeout waiting for hardware interrupt.

That's strange, it works fine on my 32gb SanDisk card. The two problems might be that the image file is corrupted or that you may need to use another program, like etcher.
 

KitsumiTheFox

Well-Known Member
Newcomer
Joined
Jan 9, 2016
Messages
85
Trophies
0
Age
23
Location
Utah
XP
590
Country
United States
@natinusala From what I understand, you are supposed to have a .dtb be generated when you compile the Linux kernel, but I don't see it when I look in the "linux/arch/arm64/boot/dts" directory. Is there something I am missing in this command?
Code:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image

Also, what do we do with the u-boot files once we compile it? Do I need to store it in a certain location?



That's strange, it works fine on my 32gb SanDisk card. The two problems might be that the image file is corrupted or that you may need to use another program, like etcher.
I've tried using Etcher, Win32DiskImager, DD, and building the partition table myself and none of that has worked so far.
 

A3660537JPN

Well-Known Member
Member
Joined
Sep 13, 2017
Messages
117
Trophies
0
Age
34
XP
1,212
Country
Japan
Hey Tempers,

I rebuild the painless-linux kernel with applied Lakka patches. That means we finally have bluetooth sound, fixed battery indicator and Joycon support in Painless Linux.

Install Painless-Linux as described here:

https://github.com/natinusala/painless-linux

Then extract the archive attached to this post and patch your Painless-Linux setup as described in the readme.txt.

Big thx to @natinusala for your help. :)

How did you build it?
I want to build for ubuntu.
 

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
I am making progress, but I am blocked by another issue. When I load my custom kernel, I am able to see the startup screen (the one with the four tuxes and messages below), but once it leaves that screen, it gets stuck on another screen with a white underscore. I can't ssh into the machine (it doesn't seem like the machine is connected to the internal)

I first used DarkOrb .config only (as a test), but I also added some options from natinusala config file to see if that would fix my problem. I applied the patched for Linux and coreboot, but not for u-boot since the patch seems to be Lakka specific. I follow parts of the guide on shofel2 (Building u-boot, coreboot, and Linux. I ignored the other parts). I also added a modified boot.scr file.

Looking through the "/var/log" directory, I did find some interesting error with xorg.

Here is a Xorg log when I boot with DarkOrb's kernel
Code:
[     9.017]
X.Org X Server 1.20.0
X Protocol Version 11, Revision 0
[     9.017] Build Operating System: Linux Arch Linux
[     9.017] Current Operating System: Linux alarm 4.16.5-g8efd0af-dirty #3 SMP PREEMPT Sat Jul 7 10:14:38 PDT 2018 aarch64
[     9.017] Kernel command line: root=/dev/mmcblk0p2 rw fbcon=rotate:3 rootwait loglevel=4 ssh consoleblank=0
[     9.017] Build Date: 22 June 2018  04:53:06PM
[     9.017]
[     9.017] Current version of pixman: 0.34.0
[     9.017]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     9.017] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.018] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 12 16:33:52 2018
[     9.041] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.043] (==) No Layout section.  Using the first Screen section.
[     9.043] (==) No screen section available. Using defaults.
[     9.043] (**) |-->Screen "Default Screen Section" (0)
[     9.043] (**) |   |-->Monitor "<default monitor>"
[     9.043] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[     9.043] (==) Automatically adding devices
[     9.043] (==) Automatically enabling devices
[     9.043] (==) Automatically adding GPU devices
[     9.043] (==) Automatically binding GPU devices
[     9.043] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     9.049] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[     9.049]     Entry deleted from font path.
[     9.049]     (Run 'mkfontdir' on "/usr/share/fonts/misc").
[     9.050] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     9.050]     Entry deleted from font path.
[     9.050] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.050]     Entry deleted from font path.
[     9.065] (==) FontPath set to:
    /usr/share/fonts/TTF,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/75dpi
[     9.065] (==) ModulePath set to "/usr/lib/xorg/modules"
[     9.065] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[     9.065] (II) Module ABI versions:
[     9.065]     X.Org ANSI C Emulation: 0.4
[     9.065]     X.Org Video Driver: 24.0
[     9.065]     X.Org XInput driver : 24.1
[     9.065]     X.Org Server Extension : 10.0
[     9.066] (++) using VT number 7

[     9.066] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     9.070] (II) xfree86: Adding drm device (/dev/dri/card1)
[     9.087] (II) xfree86: Adding drm device (/dev/dri/card0)
[     9.089] (II) no primary bus or device found
[     9.089]     falling back to /sys/devices/platform/50000000.host1x/drm/drm/card1
[     9.089] (II) LoadModule: "glx"
[     9.093] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     9.136] (II) Module glx: vendor="X.Org Foundation"
[     9.136]     compiled for 1.20.0, module version = 1.0.0
[     9.136]     ABI class: X.Org Server Extension, version 10.0
[     9.136] (==) Matched modesetting as autoconfigured driver 0
[     9.136] (==) Matched fbdev as autoconfigured driver 1
[     9.136] (==) Assigned the driver to the xf86ConfigLayout
[     9.137] (II) LoadModule: "modesetting"
[     9.138] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     9.148] (II) Module modesetting: vendor="X.Org Foundation"
[     9.148]     compiled for 1.20.0, module version = 1.20.0
[     9.148]     Module class: X.Org Video Driver
[     9.148]     ABI class: X.Org Video Driver, version 24.0
[     9.148] (II) LoadModule: "fbdev"
[     9.148] (WW) Warning, couldn't open module fbdev
[     9.148] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     9.148] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     9.170] (II) modeset(0): using drv /dev/dri/card1
[     9.171] (II) modeset(G0): using drv /dev/dri/card0
[     9.171] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[     9.171] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     9.171] (==) modeset(0): RGB weight 888
[     9.171] (==) modeset(0): Default visual is TrueColor
[     9.171] (II) Loading sub module "glamoregl"
[     9.171] (II) LoadModule: "glamoregl"
[     9.171] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     9.215] (II) Module glamoregl: vendor="X.Org Foundation"
[     9.215]     compiled for 1.20.0, module version = 1.0.1
[     9.215]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.594] (II) modeset(0): glamor X acceleration enabled on tegra
[    10.594] (II) modeset(0): glamor initialized
[    10.595] (II) modeset(0): Output DSI-1 has no monitor section
[    10.595] (II) modeset(0): EDID for output DSI-1
[    10.595] (II) modeset(0): Printing probed modes for output DSI-1
[    10.595] (II) modeset(0): Modeline "720x1280"x60.0   78.00  720 856 928 1000  1280 1290 1292 1300 (78.0 kHz)
[    10.595] (II) modeset(0): Output DSI-1 connected
[    10.595] (II) modeset(0): Using sloppy heuristic for initial modes
[    10.595] (II) modeset(0): Output DSI-1 using initial mode 720x1280 +0+0
[    10.596] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    10.596] (==) modeset(0): DPI set to (96, 96)
[    10.596] (II) Loading sub module "fb"
[    10.596] (II) LoadModule: "fb"
[    10.596] (II) Loading /usr/lib/xorg/modules/libfb.so
[    10.600] (II) Module fb: vendor="X.Org Foundation"
[    10.600]     compiled for 1.20.0, module version = 1.0.0
[    10.600]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.601] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    10.601] (==) modeset(G0): RGB weight 888
[    10.601] (==) modeset(G0): Default visual is TrueColor
[    10.601] (II) Loading sub module "glamoregl"
[    10.601] (II) LoadModule: "glamoregl"
[    10.602] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    10.602] (II) Module glamoregl: vendor="X.Org Foundation"
[    10.602]     compiled for 1.20.0, module version = 1.0.1
[    10.602]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.623] (II) modeset(G0): glamor X acceleration enabled on NV12B
[    10.623] (II) modeset(G0): glamor initialized
[    10.623] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    10.623] (==) modeset(G0): DPI set to (96, 96)
[    10.623] (II) Loading sub module "fb"
[    10.623] (II) LoadModule: "fb"
[    10.623] (II) Loading /usr/lib/xorg/modules/libfb.so
[    10.623] (II) Module fb: vendor="X.Org Foundation"
[    10.623]     compiled for 1.20.0, module version = 1.0.0
[    10.623]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.729] (==) modeset(G0): Backing store enabled
[    10.729] (==) modeset(G0): Silken mouse disabled
[    10.732] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[    10.732] (==) modeset(G0): DPMS enabled
[    10.732] (II) modeset(G0): [DRI2] Setup complete
[    10.732] (II) modeset(G0): [DRI2]   DRI driver: nouveau
[    10.732] (II) modeset(G0): [DRI2]   VDPAU driver: nouveau
[    10.770] (==) modeset(0): Backing store enabled
[    10.770] (==) modeset(0): Silken mouse disabled
[    10.787] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    10.788] (==) modeset(0): DPMS enabled
[    10.791] (II) modeset(0): [DRI2] Setup complete
[    10.791] (II) modeset(0): [DRI2]   DRI driver: tegra
[    10.791] (II) modeset(0): [DRI2]   VDPAU driver: tegra
[    10.791] (II) Initializing extension Generic Event Extension
[    10.794] (II) Initializing extension SHAPE
[    10.795] (II) Initializing extension MIT-SHM
[    10.795] (II) Initializing extension XInputExtension
[    10.800] (II) Initializing extension XTEST
[    10.800] (II) Initializing extension BIG-REQUESTS
[    10.800] (II) Initializing extension SYNC
[    10.801] (II) Initializing extension XKEYBOARD
[    10.801] (II) Initializing extension XC-MISC
[    10.801] (II) Initializing extension SECURITY
[    10.802] (II) Initializing extension XFIXES
[    10.802] (II) Initializing extension RENDER
[    10.802] (II) Initializing extension RANDR
[    10.803] (II) Initializing extension COMPOSITE
[    10.803] (II) Initializing extension DAMAGE
[    10.803] (II) Initializing extension MIT-SCREEN-SAVER
[    10.804] (II) Initializing extension DOUBLE-BUFFER
[    10.804] (II) Initializing extension RECORD
[    10.804] (II) Initializing extension DPMS
[    10.805] (II) Initializing extension Present
[    10.805] (II) Initializing extension DRI3
[    10.805] (II) Initializing extension X-Resource
[    10.805] (II) Initializing extension XVideo
[    10.806] (II) Initializing extension XVideo-MotionCompensation
[    10.806] (II) Initializing extension GLX
[    10.815] (II) AIGLX: Loaded and initialized tegra
[    10.815] (II) GLX: Initialized DRI2 GL provider for screen 0
[    10.815] (II) Initializing extension XFree86-VidModeExtension
[    10.816] (II) Initializing extension XFree86-DGA
[    10.816] (II) Initializing extension XFree86-DRI
[    10.816] (II) Initializing extension DRI2
[    10.831] (II) modeset(G0): Damage tracking initialized
[    10.837] (II) modeset(0): Damage tracking initialized
[    10.838] (II) modeset(0): Setting screen physical size to 190 x 338
[    11.173] (II) config/udev: Adding input device Joy-Con Rails (/dev/input/event0)
[    11.173] (II) No input driver specified, ignoring this device.
[    11.173] (II) This device may have been added with another device file.
[    11.173] (II) config/udev: Adding input device Joy-Con Rails (/dev/input/js0)
[    11.173] (II) No input driver specified, ignoring this device.
[    11.173] (II) This device may have been added with another device file.
[    11.174] (II) config/udev: Adding input device stmfts (/dev/input/event1)
[    11.174] (**) stmfts: Applying InputClass "libinput touchscreen catchall"
[    11.174] (II) LoadModule: "libinput"
[    11.174] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    11.200] (II) Module libinput: vendor="X.Org Foundation"
[    11.200]     compiled for 1.20.0, module version = 0.28.0
[    11.200]     Module class: X.Org XInput Driver
[    11.200]     ABI class: X.Org XInput driver, version 24.1
[    11.200] (II) Using input driver 'libinput' for 'stmfts'
[    11.200] (**) stmfts: always reports core events
[    11.200] (**) Option "Device" "/dev/input/event1"
[    11.200] (**) Option "_source" "server/udev"
[    11.201] (II) event1  - stmfts: is tagged by udev as: Touchscreen
[    11.201] (II) event1  - stmfts: device is a touch device
[    11.201] (II) event1  - stmfts: device removed
[    11.218] (**) Option "config_info" "udev:/sys/devices/platform/7000c500.i2c/i2c-3/3-0049/input/input1/event1"
[    11.218] (II) XINPUT: Adding extended input device "stmfts" (type: TOUCHSCREEN, id 6)
[    11.218] (**) Option "AccelerationScheme" "none"
[    11.218] (**) stmfts: (accel) selected scheme none/0
[    11.218] (**) stmfts: (accel) acceleration factor: 2.000
[    11.218] (**) stmfts: (accel) acceleration threshold: 4
[    11.224] (II) event1  - stmfts: is tagged by udev as: Touchscreen
[    11.224] (II) event1  - stmfts: device is a touch device
[    11.227] (II) config/udev: Adding input device stmfts (/dev/input/mouse0)
[    11.227] (II) No input driver specified, ignoring this device.
[    11.227] (II) This device may have been added with another device file.
[    11.229] (II) config/udev: Adding input device gpio-keys (/dev/input/event2)
[    11.229] (**) gpio-keys: Applying InputClass "libinput keyboard catchall"
[    11.229] (II) Using input driver 'libinput' for 'gpio-keys'
[    11.229] (**) gpio-keys: always reports core events
[    11.229] (**) Option "Device" "/dev/input/event2"
[    11.229] (**) Option "_source" "server/udev"
[    11.230] (II) event2  - gpio-keys: is tagged by udev as: Keyboard
[    11.230] (II) event2  - gpio-keys: device is a keyboard
[    11.230] (II) event2  - gpio-keys: device removed
[    11.246] (**) Option "config_info" "udev:/sys/devices/platform/gpio-keys/input/input2/event2"
[    11.246] (II) XINPUT: Adding extended input device "gpio-keys" (type: KEYBOARD, id 7)
[    11.249] (II) event2  - gpio-keys: is tagged by udev as: Keyboard
[    11.249] (II) event2  - gpio-keys: device is a keyboard
[    11.272] (II) modeset(0): Disabling kernel dirty updates, not required.
[    20.323] (II) modeset(0): Allocate new frame buffer 1280x720 stride
[    94.367] (II) event1  - stmfts: device removed
[    94.384] (II) event2  - gpio-keys: device removed
[    94.403] (II) UnloadModule: "libinput"
[    94.404] (II) UnloadModule: "libinput"
[    94.489] (II) Server terminated successfully (0). Closing log file.

Here is a Xorg log when I boot with my kernel
Code:
[     9.019]
X.Org X Server 1.20.0
X Protocol Version 11, Revision 0
[     9.019] Build Operating System: Linux Arch Linux
[     9.019] Current Operating System: Linux alarm 4.17.0-rc4-g3b5e1c00741b-dirty #2 SMP PREEMPT Sun Aug 12 11:37:29 PDT 2018 aarch64
[     9.019] Kernel command line: root=/dev/mmcblk0p2 rw fbcon=rotate:3 rootwait loglevel=4 ssh consoleblank=0
[     9.019] Build Date: 22 June 2018  04:53:06PM
[     9.019]
[     9.019] Current version of pixman: 0.34.0
[     9.019]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     9.019] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.019] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 12 16:30:54 2018
[     9.043] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.045] (==) No Layout section.  Using the first Screen section.
[     9.045] (==) No screen section available. Using defaults.
[     9.045] (**) |-->Screen "Default Screen Section" (0)
[     9.045] (**) |   |-->Monitor "<default monitor>"
[     9.046] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[     9.046] (==) Automatically adding devices
[     9.046] (==) Automatically enabling devices
[     9.046] (==) Automatically adding GPU devices
[     9.046] (==) Automatically binding GPU devices
[     9.046] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     9.051] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[     9.051]     Entry deleted from font path.
[     9.052]     (Run 'mkfontdir' on "/usr/share/fonts/misc").
[     9.052] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     9.052]     Entry deleted from font path.
[     9.052] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.052]     Entry deleted from font path.
[     9.067] (==) FontPath set to:
    /usr/share/fonts/TTF,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/75dpi
[     9.067] (==) ModulePath set to "/usr/lib/xorg/modules"
[     9.067] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[     9.067] (II) Module ABI versions:
[     9.067]     X.Org ANSI C Emulation: 0.4
[     9.067]     X.Org Video Driver: 24.0
[     9.067]     X.Org XInput driver : 24.1
[     9.067]     X.Org Server Extension : 10.0
[     9.068] (++) using VT number 7

[     9.068] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     9.072] (II) xfree86: Adding drm device (/dev/dri/card1)
[     9.087] (II) xfree86: Adding drm device (/dev/dri/card0)
[     9.088] (II) no primary bus or device found
[     9.088]     falling back to /sys/devices/platform/50000000.host1x/drm/drm/card1
[     9.089] (II) LoadModule: "glx"
[     9.092] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     9.136] (II) Module glx: vendor="X.Org Foundation"
[     9.136]     compiled for 1.20.0, module version = 1.0.0
[     9.136]     ABI class: X.Org Server Extension, version 10.0
[     9.136] (==) Matched modesetting as autoconfigured driver 0
[     9.136] (==) Matched fbdev as autoconfigured driver 1
[     9.136] (==) Assigned the driver to the xf86ConfigLayout
[     9.136] (II) LoadModule: "modesetting"
[     9.137] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     9.148] (II) Module modesetting: vendor="X.Org Foundation"
[     9.148]     compiled for 1.20.0, module version = 1.20.0
[     9.148]     Module class: X.Org Video Driver
[     9.148]     ABI class: X.Org Video Driver, version 24.0
[     9.148] (II) LoadModule: "fbdev"
[     9.148] (WW) Warning, couldn't open module fbdev
[     9.149] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     9.149] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     9.169] (II) modeset(0): using drv /dev/dri/card1
[     9.170] (II) modeset(G0): using drv /dev/dri/card0
[     9.170] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[     9.170] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     9.170] (==) modeset(0): RGB weight 888
[     9.171] (==) modeset(0): Default visual is TrueColor
[     9.171] (II) Loading sub module "glamoregl"
[     9.171] (II) LoadModule: "glamoregl"
[     9.171] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     9.215] (II) Module glamoregl: vendor="X.Org Foundation"
[     9.215]     compiled for 1.20.0, module version = 1.0.1
[     9.215]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.583] (II) modeset(0): glamor X acceleration enabled on tegra
[    10.583] (II) modeset(0): glamor initialized
[    10.583] (II) modeset(0): Output DSI-1 has no monitor section
[    10.584] (II) modeset(0): EDID for output DSI-1
[    10.584] (II) modeset(0): Printing probed modes for output DSI-1
[    10.584] (II) modeset(0): Modeline "720x1280"x60.0   78.00  720 856 928 1000  1280 1290 1292 1300 (78.0 kHz)
[    10.584] (II) modeset(0): Output DSI-1 connected
[    10.584] (II) modeset(0): Using sloppy heuristic for initial modes
[    10.584] (II) modeset(0): Output DSI-1 using initial mode 720x1280 +0+0
[    10.584] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    10.584] (==) modeset(0): DPI set to (96, 96)
[    10.584] (II) Loading sub module "fb"
[    10.584] (II) LoadModule: "fb"
[    10.585] (II) Loading /usr/lib/xorg/modules/libfb.so
[    10.589] (II) Module fb: vendor="X.Org Foundation"
[    10.589]     compiled for 1.20.0, module version = 1.0.0
[    10.589]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.590] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    10.590] (==) modeset(G0): RGB weight 888
[    10.590] (==) modeset(G0): Default visual is TrueColor
[    10.590] (II) Loading sub module "glamoregl"
[    10.590] (II) LoadModule: "glamoregl"
[    10.590] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    10.590] (II) Module glamoregl: vendor="X.Org Foundation"
[    10.590]     compiled for 1.20.0, module version = 1.0.1
[    10.591]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.610] (II) modeset(G0): glamor X acceleration enabled on NV12B
[    10.610] (II) modeset(G0): glamor initialized
[    10.610] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    10.610] (==) modeset(G0): DPI set to (96, 96)
[    10.610] (II) Loading sub module "fb"
[    10.610] (II) LoadModule: "fb"
[    10.610] (II) Loading /usr/lib/xorg/modules/libfb.so
[    10.610] (II) Module fb: vendor="X.Org Foundation"
[    10.610]     compiled for 1.20.0, module version = 1.0.0
[    10.610]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.716] (==) modeset(G0): Backing store enabled
[    10.716] (==) modeset(G0): Silken mouse disabled
[    10.718] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[    10.718] (==) modeset(G0): DPMS enabled
[    10.719] (II) modeset(G0): [DRI2] Setup complete
[    10.719] (II) modeset(G0): [DRI2]   DRI driver: nouveau
[    10.719] (II) modeset(G0): [DRI2]   VDPAU driver: nouveau
[    10.757] (==) modeset(0): Backing store enabled
[    10.757] (==) modeset(0): Silken mouse disabled
[    10.770] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    10.770] (==) modeset(0): DPMS enabled
[    10.772] (II) modeset(0): [DRI2] Setup complete
[    10.772] (II) modeset(0): [DRI2]   DRI driver: tegra
[    10.773] (II) modeset(0): [DRI2]   VDPAU driver: tegra
[    10.773] (II) Initializing extension Generic Event Extension
[    10.775] (II) Initializing extension SHAPE
[    10.777] (II) Initializing extension MIT-SHM
[    10.779] (II) Initializing extension XInputExtension
[    10.784] (II) Initializing extension XTEST
[    10.784] (II) Initializing extension BIG-REQUESTS
[    10.785] (II) Initializing extension SYNC
[    10.785] (II) Initializing extension XKEYBOARD
[    10.785] (II) Initializing extension XC-MISC
[    10.785] (II) Initializing extension SECURITY
[    10.786] (II) Initializing extension XFIXES
[    10.786] (II) Initializing extension RENDER
[    10.786] (II) Initializing extension RANDR
[    10.787] (II) Initializing extension COMPOSITE
[    10.787] (II) Initializing extension DAMAGE
[    10.787] (II) Initializing extension MIT-SCREEN-SAVER
[    10.787] (II) Initializing extension DOUBLE-BUFFER
[    10.788] (II) Initializing extension RECORD
[    10.788] (II) Initializing extension DPMS
[    10.788] (II) Initializing extension Present
[    10.788] (II) Initializing extension DRI3
[    10.789] (II) Initializing extension X-Resource
[    10.789] (II) Initializing extension XVideo
[    10.789] (II) Initializing extension XVideo-MotionCompensation
[    10.789] (II) Initializing extension GLX
[    10.799] (II) AIGLX: Loaded and initialized tegra
[    10.799] (II) GLX: Initialized DRI2 GL provider for screen 0
[    10.799] (II) Initializing extension XFree86-VidModeExtension
[    10.799] (II) Initializing extension XFree86-DGA
[    10.800] (II) Initializing extension XFree86-DRI
[    10.800] (II) Initializing extension DRI2
[    10.817] (II) modeset(G0): Damage tracking initialized
[    10.822] (II) modeset(0): Damage tracking initialized
[    10.822] (II) modeset(0): Setting screen physical size to 190 x 338
[    11.155] (II) config/udev: Adding input device Joy-Con Rails (/dev/input/event0)
[    11.155] (II) No input driver specified, ignoring this device.
[    11.155] (II) This device may have been added with another device file.
[    11.156] (II) config/udev: Adding input device Joy-Con Rails (/dev/input/js0)
[    11.156] (II) No input driver specified, ignoring this device.
[    11.156] (II) This device may have been added with another device file.
[    11.157] (II) config/udev: Adding input device stmfts (/dev/input/event2)
[    11.157] (**) stmfts: Applying InputClass "libinput touchscreen catchall"
[    11.157] (II) LoadModule: "libinput"
[    11.157] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    11.181] (II) Module libinput: vendor="X.Org Foundation"
[    11.182]     compiled for 1.20.0, module version = 0.28.0
[    11.182]     Module class: X.Org XInput Driver
[    11.182]     ABI class: X.Org XInput driver, version 24.1
[    11.182] (II) Using input driver 'libinput' for 'stmfts'
[    11.182] (**) stmfts: always reports core events
[    11.182] (**) Option "Device" "/dev/input/event2"
[    11.182] (**) Option "_source" "server/udev"
[    11.183] (II) event2  - stmfts: is tagged by udev as: Touchscreen
[    11.183] (II) event2  - stmfts: device is a touch device
[    11.183] (II) event2  - stmfts: device removed
[    11.199] (**) Option "config_info" "udev:/sys/devices/platform/7000c500.i2c/i2c-3/3-0049/input/input1/event2"
[    11.199] (II) XINPUT: Adding extended input device "stmfts" (type: TOUCHSCREEN, id 6)
[    11.199] (**) Option "AccelerationScheme" "none"
[    11.199] (**) stmfts: (accel) selected scheme none/0
[    11.199] (**) stmfts: (accel) acceleration factor: 2.000
[    11.199] (**) stmfts: (accel) acceleration threshold: 4
[    11.206] (II) event2  - stmfts: is tagged by udev as: Touchscreen
[    11.206] (II) event2  - stmfts: device is a touch device
[    11.209] (II) config/udev: Adding input device stmfts (/dev/input/mouse0)
[    11.209] (II) No input driver specified, ignoring this device.
[    11.209] (II) This device may have been added with another device file.
[    11.211] (II) config/udev: Adding input device gpio-keys (/dev/input/event1)
[    11.211] (**) gpio-keys: Applying InputClass "libinput keyboard catchall"
[    11.211] (II) Using input driver 'libinput' for 'gpio-keys'
[    11.211] (**) gpio-keys: always reports core events
[    11.211] (**) Option "Device" "/dev/input/event1"
[    11.211] (**) Option "_source" "server/udev"
[    11.212] (II) event1  - gpio-keys: is tagged by udev as: Keyboard
[    11.212] (II) event1  - gpio-keys: device is a keyboard
[    11.212] (II) event1  - gpio-keys: device removed
[    11.231] (**) Option "config_info" "udev:/sys/devices/platform/gpio-keys/input/input2/event1"
[    11.231] (II) XINPUT: Adding extended input device "gpio-keys" (type: KEYBOARD, id 7)
[    11.234] (II) event1  - gpio-keys: is tagged by udev as: Keyboard
[    11.234] (II) event1  - gpio-keys: device is a keyboard
[    11.249] failed to add fb -6
[    11.249] (EE) modeset(0): failed to set mode: No such device or address
[    20.380] (II) modeset(0): Allocate new frame buffer 1280x720 stride
[    20.390] failed to add rotate fb
[    23.225] (WW) modeset(0): Page flip failed: No such device or address
[    23.226] (EE) modeset(0): present flip failed
[    23.362] (WW) modeset(0): Page flip failed: No such device or address
[    23.362] (EE) modeset(0): present flip failed
[    23.685] (WW) modeset(0): Page flip failed: No such device or address
[    23.685] (EE) modeset(0): present flip failed
[    23.695] (WW) modeset(0): Page flip failed: No such device or address
[    23.696] (EE) modeset(0): present flip failed
[    23.712] (WW) modeset(0): Page flip failed: No such device or address
[    23.712] (EE) modeset(0): present flip failed
[    23.727] (WW) modeset(0): Page flip failed: No such device or address
[    23.727] (EE) modeset(0): present flip failed
[    23.744] (WW) modeset(0): Page flip failed: No such device or address
[    23.744] (EE) modeset(0): present flip failed
[    23.764] (WW) modeset(0): Page flip failed: No such device or address
[    23.764] (EE) modeset(0): present flip failed
[    23.777] (WW) modeset(0): Page flip failed: No such device or address
[    23.777] (EE) modeset(0): present flip failed
[    23.795] (WW) modeset(0): Page flip failed: No such device or address
[    23.795] (EE) modeset(0): present flip failed
[    23.812] (WW) modeset(0): Page flip failed: No such device or address
[    23.812] (EE) modeset(0): present flip failed
[    23.827] (WW) modeset(0): Page flip failed: No such device or address
[    23.827] (EE) modeset(0): present flip failed
[    23.844] (WW) modeset(0): Page flip failed: No such device or address
[    23.844] (EE) modeset(0): present flip failed
[    23.861] (WW) modeset(0): Page flip failed: No such device or address
[    23.868] (EE) modeset(0): present flip failed
[    23.879] (WW) modeset(0): Page flip failed: No such device or address
[    23.879] (EE) modeset(0): present flip failed
[    23.897] (WW) modeset(0): Page flip failed: No such device or address
[    23.897] (EE) modeset(0): present flip failed
[    23.912] (WW) modeset(0): Page flip failed: No such device or address
[    23.912] (EE) modeset(0): present flip failed
[    23.928] (WW) modeset(0): Page flip failed: No such device or address
[    23.928] (EE) modeset(0): present flip failed
[    23.956] (WW) modeset(0): Page flip failed: No such device or address
[    23.956] (EE) modeset(0): present flip failed
[    23.978] (WW) modeset(0): Page flip failed: No such device or address
[    23.978] (EE) modeset(0): present flip failed
[    23.995] (WW) modeset(0): Page flip failed: No such device or address
[    23.995] (EE) modeset(0): present flip failed
[    24.011] (WW) modeset(0): Page flip failed: No such device or address
[    24.011] (EE) modeset(0): present flip failed
[    24.027] (WW) modeset(0): Page flip failed: No such device or address
[    24.027] (EE) modeset(0): present flip failed
[    24.044] (WW) modeset(0): Page flip failed: No such device or address
[    24.044] (EE) modeset(0): present flip failed
[    24.094] (WW) modeset(0): Page flip failed: No such device or address
[    24.094] (EE) modeset(0): present flip failed
[    24.119] (WW) modeset(0): Page flip failed: No such device or address
[    24.119] (EE) modeset(0): present flip failed
[    40.786] (WW) modeset(0): Page flip failed: No such device or address
[    40.786] (EE) modeset(0): present flip failed


Going off of the logs, It seems that my kernel may be missing something that xorg needs, but search this error online does not lead to any helpful information. I am not sure what I am doing wrong here...

@natinusala Have you encounter an error like this before?
 

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
Use Lakka's config

So I tried to use the Lakka config, and it seems that the screen doesn't turn on after applying the exploit. I tried to launch the exploit multiple times to make sure this wasn't a weird quirk.

Edit: I did do "make nintendo-switch_defconfig" before replacing the config with Lakka, am I not suppose to do that?

Edit2: Using a kernel that was built from the Lakka build system does display the boot screen, but it gets sent to a debugging shell. This probably means that I am doing something wrong...
 
Last edited by CuriousTommy,

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
@natinusala Since my Linux source is not working with your config file, I decided to use the Linux source that the Lakka build system has already put together. The only change I did to your script was disabling the initramfs option since the system would boot to an emergency shell otherwise.

However, I am sad to report that I am back to square one again... The screen gets stucks at the white underscore and the Xorg log complains about the same error. I am going to try and disable all the GUI components and see if I can at least get Linux to boot with internet support. However, It sounds like I might have hit a dead end...

P.S: Thank you for helping me natinusala, I really appreciate it! I apologize if you find me tagging you annoying.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-