Skip to contentSkip to conversation

: Add read mac from eeprom in uboot by i2c and lead to the image unable to start in QEMU?

openbmc-qemu Andrew Jeffery 1 participant 1 message May 25, 2021 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi Byron,

I've Cc'ed the openbmc mailing list on this reply.

Quoted 20 lines · www
Quoted 17 lines · Andrew Jeffery

Hi Byron

Quoted 11 lines · www

Hi Andrew Jeffery, Joel Stanley & Cédric Le Goater,

chip:aspeed 2500
uboot : u-boot-2016.07 commit-id: cc6c5bef00ebbac0b37
platform: romulus

I enable read mac from eeprom by i2c in uboot, and lead to the image unable to start in QEMU. The startup process stops at "Starting kernel ...“
I'd like to ask:
1. How can I solve this problem? Do you have any suggestions?

Can you please configure your kernel with the following and re-run?

Quoted 8 lines
Quoted 5 lines

CONFIG_DEBUG_LL=y
CONFIG_DEBUG_LL_UART_8250=y
CONFIG_DEBUG_UART_PHYS=0x1e784000
CONFIG_DEBUG_UART_VIRT=0xf8184000

I set up these four items and didn't print any information.
then I add "*#define DEBUG*" in the file of *arch/arm/boot/compressed/head.S*, It's just one more line printed.

Sorry, I failed to mention that you also need to add 'debug' and 'earlyprintk' to your kernel commandline (i.e. append them to the 'bootargs' u-boot environment variable) for the CONFIG_DEBUG_* bits above to be useful.

Let me know if that helps.

Andrew

Quoted 20 lines

thanks,
Byron

Quoted 10 lines

This allows us to see the kernel log before the UART driver is probed.

Also, please ask these questions on the mailing list. Other people might have similar problems and so a public discussion will help them too. Posting publicly can help you also, because you're relying on at least one of the three of us to reply to you in a reasonable timeframe. If your question is public anyone who has the skills and time can chime in to help you out.

Andrew

Attachments:
* image.png