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

SOM board fails to boot with custom carrrier board #883

Closed
skyfall0119 opened this issue Jan 3, 2025 · 2 comments
Closed

SOM board fails to boot with custom carrrier board #883

skyfall0119 opened this issue Jan 3, 2025 · 2 comments
Labels
Hardware:SoM Coral System-on-Module (SoM) issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues

Comments

@skyfall0119
Copy link

skyfall0119 commented Jan 3, 2025

Description

I have SOM board with custom carrier board, which is designed pretty much the same with the one for dev base board except unnecessary parts (bluetooth, ethernet port, HDMI, audio port, etc.
one board I tried to follow the SOM get started guide.

https://coral.ai/docs/som/get-started/#next-steps
using ubuntu 24.04.1, installed fastboot, and download & flash through USB.
terminal says its installed successfully and it will reboot. but the terminal prompt never got back to me.
i waited for about 15minutes and decided to manually reboot.

i connected uart to check whats going on, and found that during the boot it stopped at some point.

....
[ 2.555800] [drm] VCO frequency is 5940000
[ 2.559916] [drm] VCO frequency (5940000 KHz) is supported. Settings found in row 14

when I checked the dev board for comparison, it goes

[ 2.557749] [drm] VCO frequency is 5940000
[ 2.561920] [drm] VCO frequency (5940000 KHz) is supported. Settings found in row 14
------------------ SOM BOARD LOG END ---------------------
[ 2.593809] [drm] CDN_API_General_Write_Register_blocking LANES_CONFIG ret = 0
[ 2.601074] [drm] Failed to get HDCP config - using HDCP 2.2 only
[ 2.607275] [drm] Failed to initialize HDCP
.....

with some googling, CDN_API_General_Write_Register_blocking is related to HDMI.
link
maybe we didn't have HDMI on our board, it stopped there I guess?

what is the main reason for the boot failure? can you confirm that its because of the missing HDMI? if so, then how can we configure the board so we can boot without those unnecessary parts.

also, another board I just tried to flash the image with regular dev board procedure (with SD card) to see if it works.

on the log it says
Hit any key to stop autoboot: 0
** Unrecognized filesystem type **
Executing script at 40480000
Wrong image format for "source" command
Starting auxiliary core at 0x00000000 ...
u-boot =>

is there a way to reset the board? this board is no more detected with USB after the flashing.

EDIT :
I managed to flash again by resetting usb and initialize fastboot usb from the board.
and I was able to get the log from flashing again.

Screenshot from 2025-01-03 13-54-12

as you can see it stopped while booting.
left is the board terminal, and right is the host computer terminal where i ran a fastboot flash

Click to expand!

Issue Type

Build/Install

Operating System

Ubuntu

Coral Device

SoM

Other Devices

No response

Programming Language

No response

Relevant Log Output

********* SOM board booting log ***************
[    2.534995] [drm] Pixel clock frequency: 594000 KHz, character clock frequency: 594000, color depth is 8-bit.
[    2.544936] [drm] Pixel clock frequency (594000 KHz) is supported in this color depth (8-bit). Settings found in row 27
[    2.555800] [drm] VCO frequency is 5940000
[    2.559916] [drm] VCO frequency (5940000 KHz) is supported. Settings found in row 14



*********** coral dev board boot log ***************
....
[    2.557749] [drm] VCO frequency is 5940000
[    2.561920] [drm] VCO frequency (5940000 KHz) is supported. Settings found in row 14
[    2.593809] [drm] CDN_API_General_Write_Register_blocking LANES_CONFIG ret = 0
[    2.601074] [drm] Failed to get HDCP config - using HDCP 2.2 only
[    2.607275] [drm] Failed to initialize HDCP
....


***************** flashed with SD card **********
** Unrecognized filesystem type **
## Executing script at 40480000
Wrong image format for "source" command
## Starting auxiliary core at 0x00000000 ..
u-boot =>
@google-coral-bot google-coral-bot bot added Hardware:SoM Coral System-on-Module (SoM) issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues labels Jan 3, 2025
@skyfall0119
Copy link
Author

skyfall0119 commented Jan 6, 2025

I found the way to disable.

https://www.reddit.com/r/kernel/comments/hznkem/uboot_hangs_while_booting_mendel_linux_on_custom/

since I had the dev board, I swapped the original SOM board on the dev board with my som board.
this allows the boot.

once Im in, I followed the instruction to disable the HDMI
https://gist.github.com/Namburger/f700eb6b18bd1e3697638088d5995c8b

moved SOM board back to custom board, and it boots just fine.

still, I'm not sure how I could have configured it without the working baseboard. it has to boot successfully in order to modify the device tree..

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:SoM Coral System-on-Module (SoM) issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

1 participant