cizia64 / CrossMix-OS

Enhanced OS for the TrimUI Smart Pro
GNU General Public License v3.0
198 stars 29 forks source link

Dont load / black screen 1.2.1 #108

Open dskmusic opened 1 month ago

dskmusic commented 1 month ago

I make a clean install in a brand SD, put only your system and bios. trying to stasrt, the console get stuck on black screen, no logo, no start... nothing. If I power+volume- for 10 seconds with old sd, system bot, and I can change the sd and use the apps. but trying to run dorectly with the new sd and your system dont works.

cizia64 commented 1 month ago

OK I need to start a documentation about black screen so it's a good occasion. It's good to mention: until now I have never seen a bricked TSP! This device is almost impossible to brick in a "normal" usage.

Here a first list of checks:

Why is it happening ?

Hard to say without having the device under the hand but very probably because the internal storage has been saturated. We already know that these 2 porst from PortMaster are saturating the internal storage in one launch : duke3D - Alien World Order or ROTT (Rise Of The Triad) .

Flashing the bootlogo with a too big file could triggers a problem too (but CrossMix check the file size before flashing). So if you have flashed your logo with a logo from your own check that the bit depth is 24 bits and not more! You can also re-flash the original logo to have less black screens at boot.

dskmusic commented 1 month ago

Thanks, for me works as I say pres both for 10 seconds... but is some strange the black screen..

cizia64 commented 1 month ago

Have you flashed your bootlogo ? With a file from your own ?

dskmusic commented 1 month ago

nono, I mean always get black screen. but now works :)

cardoso-thiago commented 1 month ago

Hello @cizia64. I am facing this issue but have no idea how to resolve it.

I currently have three memory cards: one with the Stock system and PortMaster installed, one with only the CrossMix files and the Stock BIOS files, and a recovery card.

When I insert the CrossMix card, the screen goes black, and holding the Power button for 10 seconds has no effect. When I insert the card with the Stock system, it also shows a black screen. It does not start even without a card.

At this point, I used the recovery card, and the card with the Stock system started working again.

I reverted the Boot image to the original, but the same thing happened again: black screen when inserting the CrossMix card, and the device only starts after running the recovery.

I know the recovery is working because it reset my Trimui settings, such as the theme and Wi-Fi.

I have already formatted and recreated the CrossMix card twice, but the result was the same.

Any idea what I can try?

Thank you.

cizia64 commented 1 month ago

Hi @cardoso-thiago ,

This is very curious.

  1. Are you using the last version of CrossMix ? (1.2.1)
  2. Do you run a port before having this problem ? (I suppose no but just in case)
  3. Do you use a guenuine SD card for CrossMix ? (sure ?)

Technically there are very few writting on the internal storage. Normally it's not a problem, except if this one is saturated. On CrossMix v1.2.1 I check the free space on internal storage so normally it's not that. PortMaster is writting some stuffs (however the busybox replacement has major impact: if the busybox binary is corrupted on your SD card it could explain this black screen) and CrossMix replace one script and few assets.

You should download CrossMix again, flash it on a new guenuine SD Card and try again but it's more interesting to try to know why you have this problem. What could be interesting is to modify some stuffs on your CrossMix SD card :

First remove these scripts from System/starts :

Restore your TSP, check that it really boot without SD card and then Insert your CrossMix SD card. Now, is it booting ?

If yes then add each script in this order :

  1. °customization.sh
  2. try a boot
  3. _FirmwareCheck.sh
  4. try a boot
  5. ex_init.sh
  6. try a boot

At which step do you have a black screen ?

dskmusic commented 1 month ago

I use other SD, same brand and model and works 🤷🏻

cardoso-thiago commented 1 month ago

Hi @cizia64, thank you very much for the response and your willingness to help. Here are the answers and the steps taken:

  1. Are you using the last version of CrossMix ? (1.2.1) Yes

  2. Do you run a port before having this problem ? (I suppose no but just in case) The last game I played before trying to install CrossMix is a port (Balatro)

  3. Do you use a guenuine SD card for CrossMix ? (sure ?) I believe so, they are Samsung cards, bought from the same store. On one of them, I'm running the stock, and the other is my backup card. Both tested with fsck and f3 (I'm using Linux)

  4. Restore your TSP, check that it really boot without SD card and then Insert your CrossMix SD card. Now, is it booting ? When inserting the card with CrossMix without the 3 scripts, I got the black screen again. After that, it no longer starts even without the card, I had to do the recovery again.

I will do the whole procedure from scratch and write down my steps here.

  1. Recovery applied successfully
  2. System starting normally without any card
  3. Card formatted in fat32 with gparted
  4. Result of the command fsck.vfat -r /dev/mmcblk0p1
fsck.fat 4.2 (2021-01-31)
/dev/mmcblk0p1: 0 files, 1/3910691 clusters
  1. Result of the command f3probe --destructive --time-ops /dev/mmcblk0
F3 probe 8.0
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.

WARNING: Probing normally takes from a few seconds to 15 minutes, but
         it can take longer. Please be patient.

Good news: The device `/dev/mmcblk0' is the real thing

Device geometry:
                 *Usable* size: 119.38 GB (250347520 blocks)
                Announced size: 119.38 GB (250347520 blocks)
                        Module: 128.00 GB (2^37 Bytes)
        Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
           Physical block size: 512.00 Byte (2^9 Bytes)

Probe time: 47.78s
 Operation: total time / count = avg time
      Read: 308.3ms / 4817 = 64us
     Write: 47.08s / 4192321 = 11us
     Reset: 0us / 1 = 0us
  1. Formatting again in fat32 with gparted
  2. New download of the CrossMix version 1.2.1 zip file
  3. Extraction of the file to the folder CrossMix-OS_v1.2.1
  4. Removal of the files _FirmwareCheck.sh, °customization.sh, and ex_init.sh
  5. Copying the contents of the folder without the removed files to the root of the formatted card (20533 files)
  6. Card structure at the root
2,4G    RetroArch/
589M    Apps/
386M    System/
269M    Emus/
256M    Backgrounds/
169M    Themes/
142M    BIOS/
89M     Icons/
73M     trimui/
71M     Best/
3,7M    Data/
3,5M    Roms/
3,4M    Imgs/
  1. Confirming once again that the system starts without any memory card
  2. Inserting the card with CrossMix and turning it on, once again the black screen
  3. Successfully turning it on without the card
  4. Trying once again, without success with the CrossMix card
  5. Holding the power button for 10 seconds, no change in the result
  6. Successfully turning it on again without any card
  7. Successfully turning it on with the stock card

Let me know if you think of any other tests I can perform. Thanks again for your willingness to help. I need to go out today, but if I have time tomorrow, I will try to make a full backup of my stock card and try to install CrossMix on it to rule out any issue with this card.

Congratulations on the excellent work!

cardoso-thiago commented 1 month ago

Hi @cizia64,

I managed to run the test I mentioned yesterday. I did a complete backup and put the CrossMix files on the "stock" card: SUCCESS! But I wasn't satisfied because, as I mentioned, my backup card is from the same brand, with the same capacity, purchased from the same store, and both passed the tests with fsck and f3. So, I followed the steps in this tutorial:

https://wiki.hacks.guide/wiki/SD_Clean/Linux

There are versions for MacOS and Windows as well.

Following the tutorial, when running the command sudo mkfs.vfat /dev/sdc -s 128, I received the following message: mkfs.vfat: Partitions or virtual mappings on device '/dev/sdc', not making filesystem (use -I to override).

This was the only difference in the process, so I ran the command again using -I: sudo mkfs.vfat /dev/sdc -s 128 -I.

I copied the CrossMix files to the card that wasn't working until yesterday, and again SUCCESS. My suspicion is that I used this card to test the alpha version of Knulli some time ago, and it may have created some unwanted mapping that the gparted format couldn't handle.

In any case, I am already setting up and transferring my games to CrossMix. I think this link or its content could be a good addition to the README as a troubleshooting step.

Thank you once again for the support and excellent work.

dskmusic commented 1 month ago

Very nice! I'll try it, I'm in dame situation as you, with 2 identically SD cards, homework and other not.

dskmusic commented 1 month ago

Hi @cizia64,

I managed to run the test I mentioned yesterday. I did a complete backup and put the CrossMix files on the "stock" card: SUCCESS! But I wasn't satisfied because, as I mentioned, my backup card is from the same brand, with the same capacity, purchased from the same store, and both passed the tests with fsck and f3. So, I followed the steps in this tutorial:

https://wiki.hacks.guide/wiki/SD_Clean/Linux

There are versions for MacOS and Windows as well.

Following the tutorial, when running the command sudo mkfs.vfat /dev/sdc -s 128, I received the following message: mkfs.vfat: Partitions or virtual mappings on device '/dev/sdc', not making filesystem (use -I to override).

This was the only difference in the process, so I ran the command again using -I: sudo mkfs.vfat /dev/sdc -s 128 -I.

I copied the CrossMix files to the card that wasn't working until yesterday, and again SUCCESS. My suspicion is that I used this card to test the alpha version of Knulli some time ago, and it may have created some unwanted mapping that the gparted format couldn't handle.

In any case, I am already setting up and transferring my games to CrossMix. I think this link or its content could be a good addition to the README as a troubleshooting step.

Thank you once again for the support and excellent work.

working for me too, great job!