I confirmed that SD_PWR_ON
is HI
, SDCard was turned off when I set SD_PWR_ON
to LO
.
It seems the hardware is not a problem so.
By the way, CM5 is really fast.
I’ve attempted to use the 6.6.78 image a couple of times, I was able to get it to work but more often then not when resetting the uconsole, I would not be able to start the OS again. I assume its something that I’m doing. I balenaEtcher the first couple of times after opting to extract the image so that it was a *.img file only and not a *.img.xz file. When this failed a couple of times, I tried the raspberry imager. I was carefull to ensure that the imager did not apply any custom settings. The CM5 that I have is a 8gig lite with wifi. Its definitely an image that I want to use, its just this issue I’m running into, the audio did work. I did attempt to install emulation station.
If anyone want to test CM5 Lite,
sudo rpi-eeprom-config
, back up the contents.sudo rpi-eeprom-config -e
, write the contents below.
[all]
POWER_OFF_ON_HALT=1
WAKE_ON_GPIO=0
BOOT_ORDER=0xf1
SD_BOOT_MAX_RETRIES=2
- Shutdown uConsole completely
- Remove the SDCard and turn on the power.
- After about 10s, insert the SDCard quickly.
In this way, the bootloader detect the SDCard without sd cmd error.
@Rex thanks for the work.
CM5 on eMMC with same results (random screen fail, but hdmi work if some how to load gui. In text-mode blackscreen on hdmi too).
dmesg with success panel
[ 0.831361] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 0.841858] /axi/pcie@120000/rp1/dsi@128000/panel@0: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000
[ 0.870905] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 0.881397] /axi/pcie@120000/rp1/dsi@128000/panel@0: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000
[ 2.191946] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 4.419283] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Resetting panel... (Attempt 1)
[ 4.802644] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Running initialization sequence...
[ 5.118643] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Attempting to exit sleep mode (try 1/5)...
[ 5.118657] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Successfully exited sleep mode
[ 5.442809] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Panel power mode: 0x18
[ 5.442811] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Panel power mode stable at 0x18
[ 5.442812] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Turning display on...
[ 5.602648] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Enabling backlight...
[ 5.670639] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Panel successfully prepared
dmesg with failure
[ 0.830339] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 0.840831] /axi/pcie@120000/rp1/dsi@128000/panel@0: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000
[ 0.869877] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 0.880370] /axi/pcie@120000/rp1/dsi@128000/panel@0: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000
[ 2.150991] /axi/pcie@120000/rp1/dsi@128000: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/panel@0
[ 4.215033] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Resetting panel... (Attempt 1)
[ 4.597935] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Running initialization sequence...
[ 4.913922] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Attempting to exit sleep mode (try 1/5)...
[ 4.913938] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Successfully exited sleep mode
[ 5.398932] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Failed to read power mode on first attempt, restarting initialization...
[ 5.398934] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Resetting panel... (Attempt 2)
[ 5.781916] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Running initialization sequence...
[ 6.097916] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Attempting to exit sleep mode (try 1/5)...
[ 6.097927] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Successfully exited sleep mode
[ 6.582951] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Failed to read power mode on first attempt, restarting initialization...
[ 6.582953] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Resetting panel... (Attempt 3)
[ 6.966739] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Running initialization sequence...
[ 7.285919] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Attempting to exit sleep mode (try 1/5)...
[ 7.285933] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Successfully exited sleep mode
[ 7.766695] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Failed to read power mode on first attempt, restarting initialization...
[ 7.766697] panel-cwu50-cm5 1f00130000.dsi.0: CWU50: Panel failed initialization after multiple attempts
Maybe just increase the number of attempts while we have no better solution?
@teo anymore attempts will cause the kernel to panic and fail. this panel is real fickle. all the checks and retries i put in. it’s a lot better then it was but i’m still working on it.
@Eric_Jamieson sd cards are a problem with the cm5, you can try the solution below that @paragonnov came up with.
@paragonnov do you need to remove the sd before every boot?
w/ sdcard, w/o sdcard. Both are detected sdcard on insertion.
Number 5 is key above
do you have to boot and insert it every time or after the first time can you leave it in?
It will be maintained until the device is completely turned off. (I had not confirm POWER_OFF_ON_HALT=0)
Boot
- Power on with sdcard, on bootloader reinsert sdcard.
- Power off without sdcard, on bootloader reinsert sdcard.
- After boot, rebooting system
Not boot
- Power on with sdcard, on bootloader do nothing
- After boot, shutdown system
Just had to pop the batteries because the lcd backlight wouldn’t turn off for the first time. Booted back up just fine though. And I’ve had the DevTerm running since early morning. Maybe 6+ hours.
sounds like that sd card issue. about how many times have you booted without it failing?
This is the first time it’s failed, I haven’t kept track but at least a dozen. It booted back up and shut down again fine after popping the batteries.
Tried 2 more SD cards, ones that others have had luck with. No good here.
Hooked up external monitor, and found that it does “seem” to be booting. On the external monitor, I just see the wallpaper, nothing else. I wouldn’t even see that if I were having an SD card issue right? I don’t seem to have any keyboard control though. I just see the wallpaper on it.
On the uConsole I can just see the backlight turning on. I enabled boot messages, I see it fly through the boot up sequence on the external monitor than it goes to the wallpaper. I never get a screen on the uConsole itself and all I get on the external is the wallpaper. With a mouse hooked up, I can move around on the external. So I seem to be booted fine, just no screen.
If you see the desktop on the external monitor then the sd card worked but the panel didn’t. The panel is still not working 100% yet but if you’re on kernel 6.6.78 and have the backlight systemd service installed then you’ll have the best chance of it working. If you are on the image that came with 6.6.78 then the backlight service is already installed.
I am on 6.6.78, I downloaded the latest one posted yesterday. It turns off a lot easier than previously, just no screen. Getting there.
I ordered a CM5 lite a couple days ago so I’ll be able to do some testing and see if we can figure out a solution to the sd card problem and the panel. The panel works about 90-95% on my CM5 with eMMC right now and I don’t have any problem shutting down.
Dose the no boot happen on just battery power only or when charger is plugged in also? Perhaps maybe a power issue?
Both, the no boot is a problem with the lite version and the sd card being recognized. CM5 lite and eMMC both have problems with the panel that’s driver related.
Got ya! I have a handful of cards I can try when my uConsole shows up. Looking forward to jumping in and helping out.