Skip to contentSkip to conversation

How to pause u-boot after serial init

U-Boot-Users Nishant Galange 3 participants 3 messages Jan 6, 2005

lore
Share & tools
lore
#0 lore raw

Dear all,

I have a query regarding my custom board (8266 based PMC card, 512K boot flash, Himem (top boot), 32 MB main flash, 128 MB SDRAM, u-boot 1.1.1).

When trying to bring up the serial port, I want to stop execution after serial initialization. So, I inserted an infinite loop ('hang') in init_sequence[] in lib_ppc/board.c.

The problem is that a 'hang' placed just after console_init_f works but I can't see any display on Hype Terrminal, because no prints have happened yet.

And a 'hang' placed after 'display options' dosen't even load! The data lines (seen on a Logic Analyzer) show all 0s

Can anybody please shed some light on this problem? Any help / hints will be greatly appreciated.

Regards,
Nishant.

#1 lore raw
Quoted 10 lines · In message <[email protected]> you wrote:

I have a query regarding my custom board (8266 based PMC card, 512K boot fl ash, Himem (top boot), 32 MB main flash, 128 MB SDRAM, u-boot 1.1.1).

Will you please use a shorter linelength, say 70 characters or so as suggested by the netiquette? Thanks.

When trying to bring up the serial port, I want to stop execution after ser ial initialization. So, I inserted an infinite loop ('hang') in init_sequ ence[] in lib_ppc/board.c.

I don't understand what this would be good for, but if you really want to do this...

Quoted 3 lines

The problem is that a 'hang' placed just after console_init_f works but I c an't see any display on Hype Terrminal, because no prints have happened y et.

That's what you asked for...

Quoted 2 lines

And a 'hang' placed after 'display options' dosen't even load! The data lin es (seen on a Logic Analyzer) show all 0s

What do you mean by "does not load"? And which data lines are you talking about, and when do you sample these data lines?

Quoted 2 lines

Can anybody please shed some light on this problem? Any help / hints will b e greatly appreciated.

I have no idea what you're trying to do, but attaching a BDI2000 and running the code under GDB is probably the fastest way to find out what's going on on your system.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
An armed society is a polite society.
#2 lore raw
In reply to Nishant Galange

If your hang function is an infinite loop, then any code after it will NOT get a chance to execute and you will not see any console output. U-Boot is single threaded, non-multitasking.

Quoted 27 lines · Nishant Galange

Dear all,

I have a query regarding my custom board (8266 based PMC card, 512K boot flash, Himem (top boot), 32 MB main flash, 128 MB SDRAM, u-boot 1.1.1).

When trying to bring up the serial port, I want to stop execution after serial initialization. So, I inserted an infinite loop ('hang') in init_sequence[] in lib_ppc/board.c.

The problem is that a 'hang' placed just after console_init_f works but I can't see any display on Hype Terrminal, because no prints have happened yet.

And a 'hang' placed after 'display options' dosen't even load! The data lines (seen on a Logic Analyzer) show all 0s

Can anybody please shed some light on this problem? Any help / hints will be greatly appreciated.

Regards,
Nishant.

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users