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

rpi64 recipe for RaspberryPi Compute Module 4 #22

Open
obachtos opened this issue May 20, 2021 · 3 comments
Open

rpi64 recipe for RaspberryPi Compute Module 4 #22

obachtos opened this issue May 20, 2021 · 3 comments

Comments

@obachtos
Copy link

obachtos commented May 20, 2021

I'm would to use debos to build an image for a Raspberry Pi Compute Module 4. When I naively just use the rpi64 recipe the system fails to boot properly. u-boot starts with the following:

U-Boot 2021.01+dfsg-4 (Mar 12 2021 - 23:00:43 +0000)
                                        
DRAM:  3.9 GiB                          
RPI: Board rev 0x14 outside known range 
RPI Unknown model (0xc03140)            
MMC:   mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... In:    serial
Out:   vidconsole                       
Err:   vidconsole                       
Net:   eth0: ethernet@7d580000
PCIe BRCM: link down
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x44 exceeds max(0x0)
switch to partitions #0, OK
mmc0(part 0) is current device
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x44 exceeds max(0x0)

*** repeating same error a lot ***

MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x44 exceeds max(0x0)
** Bad device size - mmc 0 **
Card did not respond to voltage select! : -110
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
PCIe BRCM: link down
ethernet@7d580000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
bcmgenet: PHY startup failed: -110
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-dc-a6-32-fe-c3-47


*** repeating similar error ***
....

So apparently the eMMC memory is not detected properly. Also when I do mmc info I get 0 Bytes capacity:

U-Boot> mmc info
Device: emmc2@7e340000
Manufacturer ID: 15
OEM: 100
Name: 8GTF4 
Bus Speed: 25000000
Mode: MMC legacy
Rd Block Len: 512
MMC version 4.0
High Capacity: Yes
Capacity: 0 Bytes
Bus Width: 4-bit
Erase Group Size: 104 MiB

Any suggestions on how I could adapt the recipe to work for a CM4?

@hacor
Copy link

hacor commented Feb 24, 2023

Hi @obachtos

Did you eventually get this to work?
I'm trying to build a Debos image for CM4 and stumbling upon the same problems

Thanks!
Hacor

@obachtos
Copy link
Author

obachtos commented Mar 2, 2023

Unfortunately no, we ended up building an image by hand.

@hacor
Copy link

hacor commented Mar 3, 2023

Ok thank you for the info!

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

No branches or pull requests

2 participants