Re: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-19 Thread swamydp

Hello 

Sorry for the late reply. I was busy with another project.

I finally got linux 2.6 to boot on HITECH board. 

Thanks to John Linn for all the pointers to debug the code. I also got the
UARTLITE as console working. I had to disable several macros in
virtex_devices.c to make the kernel boot.

Now I am working on using UART16550 as console which is free at Xilinx after
registration. Thanks to Marc and Stephen for the info.

--swamy



swamydp wrote:
> 
> 
> I am trying to boot linux 2.6 on HITECH virtex 4(fx60) board. Linux hangs
> at address 0xc00045ec which is in the __udelay function. I am using EDK
> 9.2i and gcc version 4.0.2 for compiling the kernel. The following is the
> boot message from the bootloader. 
> 
> loaded at: 0040 0054E19C
> board data at: 0054C120 0054C19C
> relocated to:  00404064 004040E0
> zimage at: 00404E55 0054B5B4
> avail ram: 0054F000 0200
> 
> Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/sda2
> Uncompressing Linux...done.
> Now booting the kernel
> 
> Any help is greatly appreciated. I have run out of ideas to fix this.
> 
> Thanks
> swamy
> 
> 

-- 
View this message in context: 
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-board-tp17222725p18012972.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-04 Thread Stephen Neuendorffer
In 10.1, it is actually free...

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:linuxppc-embedded-
> [EMAIL PROTECTED] On Behalf Of Howard,
Marc
> Sent: Wednesday, June 04, 2008 2:45 PM
> To: John Linn; Peter Korsgaard; swamydp
> Cc: linuxppc-embedded@ozlabs.org
> Subject: RE: linux 2.6 hangs at __delay function on Viretx 4 board
> 
> Every year at the Embedded Systems Conference I would complain to the
> Xilinix folks about the 16550 not being free.  This year I complained
&
> they told me that even though it is listed as a purchased core when
you
> go to "buy" it you get it for free.  This was just prior to the 10.x
> release.
> 
> Marc W Howard
> 
> > -Original Message-
> > From:
> > [EMAIL PROTECTED]
> g [mailto:linuxppc-embedded-bounces+marc.howard=kla->
> [EMAIL PROTECTED] On Behalf Of John Linn
> > Sent: Wednesday, June 04, 2008 2:23 PM
> > To: Peter Korsgaard; swamydp
> > Cc: linuxppc-embedded@ozlabs.org
> > Subject: RE: linux 2.6 hangs at __delay function on Viretx 4 board
> >
> > Hi Peter,
> >
> > Yes you need to enable UARTLITE as the console in the kernel
> > configuration.
> >
> > You have the command line syntax, ttyUL0, correct.
> >
> > They have now changed the UART 16550 to be a free core in the EDK,
not
> > sure which version of the EDK that happened.
> >
> > Thanks,
> > John
> >
> > -Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
On
> > Behalf Of Peter Korsgaard
> > Sent: Wednesday, June 04, 2008 2:56 AM
> > To: swamydp
> > Cc: linuxppc-embedded@ozlabs.org
> > Subject: Re: linux 2.6 hangs at __delay function on Viretx 4 board
> >
> > >>>>> "swamydp" == swamydp  <[EMAIL PROTECTED]> writes:
> >
> >  swamydp> Hi John
> >
> >  swamydp> I am using UARTLITE as serial console. I do not have
license
> >  swamydp> for UART 16550.  I have enabled the drivers for uartlite
in
> >  swamydp> menuconfig while configuring the kernel. I have tested all
> >  swamydp> combinations for the kernel command line - tty0, ttyUL0,
> >  swamydp> ttyl0, ttyS0 but could not get uartlite to output kernel
> >  swamydp> printk messages.
> >
> > Correct syntax is console=ttyUL0
> >
> >  swamydp> Since I am using uartlite , the following settings are
> >  swamydp> turned off in menuconfig
> >
> >  swamydp> CONFIG_SERIAL_8250=n
> >  swamydp> CONFIG_SERIAL_8250_CONSOLE=n
> >
> > Do you have console on uartlite (CONFIG_SERIAL_UARTLITE_CONSOLE)
> > enabled?
> >
> > --
> > Bye, Peter Korsgaard
> > ___
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> >
> > This email and any attachments are intended for the sole use
> > of the named recipient(s) and contain(s) confidential
> > information that may be proprietary, privileged or
> > copyrighted under applicable law. If you are not the intended
> > recipient, do not read, copy, or forward this email message
> > or any attachments. Delete this email message and any
> > attachments immediately.
> >
> >
> > ___
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-04 Thread Howard, Marc
Every year at the Embedded Systems Conference I would complain to the
Xilinix folks about the 16550 not being free.  This year I complained &
they told me that even though it is listed as a purchased core when you
go to "buy" it you get it for free.  This was just prior to the 10.x
release.

Marc W Howard 

> -Original Message-
> From: 
> [EMAIL PROTECTED]
g [mailto:linuxppc-embedded-bounces+marc.howard=kla->
[EMAIL PROTECTED] On Behalf Of John Linn
> Sent: Wednesday, June 04, 2008 2:23 PM
> To: Peter Korsgaard; swamydp
> Cc: linuxppc-embedded@ozlabs.org
> Subject: RE: linux 2.6 hangs at __delay function on Viretx 4 board
> 
> Hi Peter,
> 
> Yes you need to enable UARTLITE as the console in the kernel
> configuration.
> 
> You have the command line syntax, ttyUL0, correct.
> 
> They have now changed the UART 16550 to be a free core in the EDK, not
> sure which version of the EDK that happened.
> 
> Thanks,
> John
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter Korsgaard
> Sent: Wednesday, June 04, 2008 2:56 AM
> To: swamydp
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: linux 2.6 hangs at __delay function on Viretx 4 board
> 
> >>>>> "swamydp" == swamydp  <[EMAIL PROTECTED]> writes:
> 
>  swamydp> Hi John
> 
>  swamydp> I am using UARTLITE as serial console. I do not have license
>  swamydp> for UART 16550.  I have enabled the drivers for uartlite in
>  swamydp> menuconfig while configuring the kernel. I have tested all
>  swamydp> combinations for the kernel command line - tty0, ttyUL0,
>  swamydp> ttyl0, ttyS0 but could not get uartlite to output kernel
>  swamydp> printk messages.
> 
> Correct syntax is console=ttyUL0
> 
>  swamydp> Since I am using uartlite , the following settings are
>  swamydp> turned off in menuconfig
> 
>  swamydp> CONFIG_SERIAL_8250=n
>  swamydp> CONFIG_SERIAL_8250_CONSOLE=n
> 
> Do you have console on uartlite (CONFIG_SERIAL_UARTLITE_CONSOLE)
> enabled?
> 
> -- 
> Bye, Peter Korsgaard
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 
> This email and any attachments are intended for the sole use 
> of the named recipient(s) and contain(s) confidential 
> information that may be proprietary, privileged or 
> copyrighted under applicable law. If you are not the intended 
> recipient, do not read, copy, or forward this email message 
> or any attachments. Delete this email message and any 
> attachments immediately.
> 
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-04 Thread Peter Korsgaard
> "John" == John Linn <[EMAIL PROTECTED]> writes:

 John> Hi Peter,
 John> Yes you need to enable UARTLITE as the console in the kernel
 John> configuration.

Yeah, I know - I wrote the driver after all ;)

 John> You have the command line syntax, ttyUL0, correct.

 John> They have now changed the UART 16550 to be a free core in the EDK, not
 John> sure which version of the EDK that happened.

Ok.

-- 
Bye, Peter Korsgaard
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-04 Thread John Linn
Hi Peter,

Yes you need to enable UARTLITE as the console in the kernel
configuration.

You have the command line syntax, ttyUL0, correct.

They have now changed the UART 16550 to be a free core in the EDK, not
sure which version of the EDK that happened.

Thanks,
John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Peter Korsgaard
Sent: Wednesday, June 04, 2008 2:56 AM
To: swamydp
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: linux 2.6 hangs at __delay function on Viretx 4 board

>>>>> "swamydp" == swamydp  <[EMAIL PROTECTED]> writes:

 swamydp> Hi John

 swamydp> I am using UARTLITE as serial console. I do not have license
 swamydp> for UART 16550.  I have enabled the drivers for uartlite in
 swamydp> menuconfig while configuring the kernel. I have tested all
 swamydp> combinations for the kernel command line - tty0, ttyUL0,
 swamydp> ttyl0, ttyS0 but could not get uartlite to output kernel
 swamydp> printk messages.

Correct syntax is console=ttyUL0

 swamydp> Since I am using uartlite , the following settings are
 swamydp> turned off in menuconfig

 swamydp> CONFIG_SERIAL_8250=n
 swamydp> CONFIG_SERIAL_8250_CONSOLE=n

Do you have console on uartlite (CONFIG_SERIAL_UARTLITE_CONSOLE)
enabled?

-- 
Bye, Peter Korsgaard
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-04 Thread Peter Korsgaard
> "swamydp" == swamydp  <[EMAIL PROTECTED]> writes:

 swamydp> Hi John

 swamydp> I am using UARTLITE as serial console. I do not have license
 swamydp> for UART 16550.  I have enabled the drivers for uartlite in
 swamydp> menuconfig while configuring the kernel. I have tested all
 swamydp> combinations for the kernel command line - tty0, ttyUL0,
 swamydp> ttyl0, ttyS0 but could not get uartlite to output kernel
 swamydp> printk messages.

Correct syntax is console=ttyUL0

 swamydp> Since I am using uartlite , the following settings are
 swamydp> turned off in menuconfig

 swamydp> CONFIG_SERIAL_8250=n
 swamydp> CONFIG_SERIAL_8250_CONSOLE=n

Do you have console on uartlite (CONFIG_SERIAL_UARTLITE_CONSOLE)
enabled?

-- 
Bye, Peter Korsgaard
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-06-03 Thread swamydp

Hi John

I am using UARTLITE as serial console. I do not have license for UART 16550.
I have enabled the drivers for uartlite in menuconfig while configuring the
kernel. I have tested all combinations for the kernel command line - tty0,
ttyUL0, ttyl0, ttyS0 but could not get uartlite to output kernel printk
messages. 

Since I am using uartlite , the following settings are turned off in
menuconfig

CONFIG_SERIAL_8250=n
CONFIG_SERIAL_8250_CONSOLE=n

I have seen many posts claim that uartlite seems to work with ttyUL0 setting
in the kernel command line but I am having trouble with that.

Thanks
swamy




Hi Swamy,

Sorry for the long delay. Sounds like the console is not setup
correctly.

I notice in your command line it appears that you have 2 console
statements.  I have not tested this ever and I would change it to only
have the console=ttyS0,9600.  I have seen other mailings, no Xilinx
specific, related to this causing problems.

This console setup assumes you're using the Xilinx 16550 UART.  It could
be an issue with the xparameters*.h file with the address of the UART.

Have you compared your arch/ppc/platforms/4xx/xparameters/xparameters*.h
file, whichever one it's setup to use, to the ones that we provided in
the Git tree?

I'm assuming you have the kernel configured correctly to use the
UART16550 driver and the console is turned on, both are needed.  The
16550 is 8250 compatible (mostly) and works with it's driver from Linux.

CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y

Thanks,
John


-- 
View this message in context: 
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-board-tp17222725p17638198.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-05-28 Thread John Linn
Hi Swamy,

Sorry for the long delay. Sounds like the console is not setup
correctly.

I notice in your command line it appears that you have 2 console
statements.  I have not tested this ever and I would change it to only
have the console=ttyS0,9600.  I have seen other mailings, no Xilinx
specific, related to this causing problems.

This console setup assumes you're using the Xilinx 16550 UART.  It could
be an issue with the xparameters*.h file with the address of the UART.

Have you compared your arch/ppc/platforms/4xx/xparameters/xparameters*.h
file, whichever one it's setup to use, to the ones that we provided in
the Git tree?

I'm assuming you have the kernel configured correctly to use the
UART16550 driver and the console is turned on, both are needed.  The
16550 is 8250 compatible (mostly) and works with it's driver from Linux.

CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y

Thanks,
John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of swamydp
Sent: Monday, May 26, 2008 10:12 PM
To: linuxppc-embedded@ozlabs.org
Subject: RE: linux 2.6 hangs at __delay function on Viretx 4 board


Hi John

Please ignore my previous message. The kernel boots until initializing
the
root files system and then hangs. Thats expected since I do not have
root
file system set up yet. I dumped the __log_buf and found it. 

I don't understand why no message is printed by printk after "Now
booting".
Does console init occur after root file system init ?

Thanks
swamy



swamydp wrote:
> 
> Hi John
> 
> Sorry for getting back late. 
> 
> I have been debugging further using the UART to send output directly
to
> serial post. Now I see that just after entering start_kernel, a ITLB
miss
> exception occurs and linux hangs at that point. 
> 
> Looks like the kernel is probably not running at all yet, may stuck in
> early initialization.
> 
>>> Yes
> 
> 1. Has the kernel ever ran on this board or is this development to get
> it running?
> 
>>> No. This is a new board and I am trying to build a simple EDK system
>>> with only
> PPC, UART, PIC as the devices.
>  
> 2. Not sure on the tools you are using to build it.  You mention the
> EDK, but you must not be using it's compiler as it's not configured in
> the EDK to build Linux. 
> 
>>> EDK 9.2 version, XMD for debug. Kernel 2.6 version is built in linux
>>> machine and zImage.elf is downloaded
> to the board.
> 
> Thanks for the UART suggestion, works well. Any suggestions as to what
> might be wrong in start_kernel function ? I will continue debugging
> meanwhile.
> 
> Thanks
> swamy
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-bo
ard-tp17222725p17482754.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-05-24 Thread swamydp

Hi John

Sorry for getting back late. 

I have been debugging further using the UART to send output directly to
serial post. Now I see that just after entering start_kernel, a ITLB miss
exception occurs and linux hangs at that point. 

Looks like the kernel is probably not running at all yet, may stuck in
early initialization.

>> Yes

1. Has the kernel ever ran on this board or is this development to get
it running?

>> No. This is a new board and I am trying to build a simple EDK system with
>> only
PPC, UART, PIC as the devices.
 
2. Not sure on the tools you are using to build it.  You mention the
EDK, but you must not be using it's compiler as it's not configured in
the EDK to build Linux. 

>> EDK 9.2 version, XMD for debug. Kernel 2.6 version is built in linux
>> machine and zImage.elf is downloaded
to the board.

Thanks for the UART suggestion, works well. Any suggestions as to what might
be wrong in start_kernel function ? I will continue debugging meanwhile.

Thanks
swamy



-- 
View this message in context: 
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-board-tp17222725p17454696.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-05-16 Thread John Linn
Swamy,

Looks like the kernel is probably not running at all yet, may stuck in
early initialization.

1. Has the kernel ever ran on this board or is this development to get
it running?

I have ran into issues with the memory being setup incorrectly (the end
address/how much memory) and seen something similar to this. I would
review the bootstrap loader output carefully to ensure the memory is
setup correctly.

2. Not sure on the tools you are using to build it.  You mention the
EDK, but you must not be using it's compiler as it's not configured in
the EDK to build Linux. 

I use the ELDK 4.1 right now as we are still figuring out our tool
situation. 

3. Without a good JTAG emulator, bring up can be painful in my
experience.  The EDK GDB/XMD is not fully MMU aware, so once the MMU is
one it won't allow you to debug.  If you have access to an MMU aware
debugger that could help.

I have used BDI 2000 for these type of problems and it helped.

4. In the absense of an MMU debugger, using the UART to slam bytes out
of the serial port can help. The UART lite is easier for that as there's
no setup required. The kernel can map an MMU TLB so that the UART is
usable early, make sure that is setup in the early startup.  Then I just
use *(char *) =  in the code to see
what it's doing.

5. I would probably see where the udelay is called early in the kernel
startup and why. I sometimes hack on it, comment stuff out, to get past
it and figure out more data.  Not always a good path, but can help.

Good luck,
John


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of swamydp
Sent: Friday, May 16, 2008 8:57 AM
To: linuxppc-embedded@ozlabs.org
Subject: RE: linux 2.6 hangs at __delay function on Viretx 4 board


John

Thanks for your suggestions.

 I looked up the virtual address for __log_buf in System.map and
subtracted
0xc000 to get the physical address. I then reset the processor from
XMD
and dump contents of the physical address of __log_buf using 'mrd'
command
from XMD. All I see is bunch of zeros in those locations.

I am debugging but do not have much clue.

Swamy



John Linn wrote:
> 
> Hi Swamy,
> 
> I have seen this sometime before I think, but don't remember why.
> 
> I see that udelay depends on loops_per_jiffy, have you looked to see
> what value it is? Maybe it's garbage and some large value?
> 
> Have you tried dumping the __log_buf to understand how far it got thru
> booting the kernel before it got hung?
> 
> I assume you must be using xmd to load the image, you can also use it
to
> dump the buffer.
> 
> On another processor I have seen it get hung in the calibrate_delay
call
> from the kernel if the interrupts or timer aren't working, but haven't
> ever seen that on the Powerpc.
> 
> Thanks,
> John
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of swamydp
> Sent: Tuesday, May 13, 2008 9:29 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: linux 2.6 hangs at __delay function on Viretx 4 board
> 
> 
> 
> I am trying to boot linux 2.6 on HITECH virtex 4(fx60) board. Linux
> hangs at
> address 0xc00045ec which is in the __udelay function. I am using EDK
> 9.2i
> and gcc version 4.0.2 for compiling the kernel. The following is the
> boot
> message from the bootloader. 
> 
> loaded at: 0040 0054E19C
> board data at: 0054C120 0054C19C
> relocated to:  00404064 004040E0
> zimage at: 00404E55 0054B5B4
> avail ram: 0054F000 0200
> 
> Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/sda2
> Uncompressing Linux...done.
> Now booting the kernel
> 
> Any help is greatly appreciated. I have run out of ideas to fix this.
> 
> Thanks
> swamy
> 
> -- 
> View this message in context:
>
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-bo
> ard-tp17222725p17222725.html
> Sent from the linuxppc-embedded mailing list archive at Nabble.com.
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

-- 
View this message in context:
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-bo
ard-tp17222725p17276753.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the

RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-05-16 Thread swamydp

John

Thanks for your suggestions.

 I looked up the virtual address for __log_buf in System.map and subtracted
0xc000 to get the physical address. I then reset the processor from XMD
and dump contents of the physical address of __log_buf using 'mrd' command
from XMD. All I see is bunch of zeros in those locations.

I am debugging but do not have much clue.

Swamy



John Linn wrote:
> 
> Hi Swamy,
> 
> I have seen this sometime before I think, but don't remember why.
> 
> I see that udelay depends on loops_per_jiffy, have you looked to see
> what value it is? Maybe it's garbage and some large value?
> 
> Have you tried dumping the __log_buf to understand how far it got thru
> booting the kernel before it got hung?
> 
> I assume you must be using xmd to load the image, you can also use it to
> dump the buffer.
> 
> On another processor I have seen it get hung in the calibrate_delay call
> from the kernel if the interrupts or timer aren't working, but haven't
> ever seen that on the Powerpc.
> 
> Thanks,
> John
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of swamydp
> Sent: Tuesday, May 13, 2008 9:29 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: linux 2.6 hangs at __delay function on Viretx 4 board
> 
> 
> 
> I am trying to boot linux 2.6 on HITECH virtex 4(fx60) board. Linux
> hangs at
> address 0xc00045ec which is in the __udelay function. I am using EDK
> 9.2i
> and gcc version 4.0.2 for compiling the kernel. The following is the
> boot
> message from the bootloader. 
> 
> loaded at: 0040 0054E19C
> board data at: 0054C120 0054C19C
> relocated to:  00404064 004040E0
> zimage at: 00404E55 0054B5B4
> avail ram: 0054F000 0200
> 
> Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/sda2
> Uncompressing Linux...done.
> Now booting the kernel
> 
> Any help is greatly appreciated. I have run out of ideas to fix this.
> 
> Thanks
> swamy
> 
> -- 
> View this message in context:
> http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-bo
> ard-tp17222725p17222725.html
> Sent from the linuxppc-embedded mailing list archive at Nabble.com.
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

-- 
View this message in context: 
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-board-tp17222725p17276753.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: linux 2.6 hangs at __delay function on Viretx 4 board

2008-05-14 Thread John Linn
Hi Swamy,

I have seen this sometime before I think, but don't remember why.

I see that udelay depends on loops_per_jiffy, have you looked to see
what value it is? Maybe it's garbage and some large value?

Have you tried dumping the __log_buf to understand how far it got thru
booting the kernel before it got hung?

I assume you must be using xmd to load the image, you can also use it to
dump the buffer.

On another processor I have seen it get hung in the calibrate_delay call
from the kernel if the interrupts or timer aren't working, but haven't
ever seen that on the Powerpc.

Thanks,
John


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of swamydp
Sent: Tuesday, May 13, 2008 9:29 PM
To: linuxppc-embedded@ozlabs.org
Subject: linux 2.6 hangs at __delay function on Viretx 4 board



I am trying to boot linux 2.6 on HITECH virtex 4(fx60) board. Linux
hangs at
address 0xc00045ec which is in the __udelay function. I am using EDK
9.2i
and gcc version 4.0.2 for compiling the kernel. The following is the
boot
message from the bootloader. 

loaded at: 0040 0054E19C
board data at: 0054C120 0054C19C
relocated to:  00404064 004040E0
zimage at: 00404E55 0054B5B4
avail ram: 0054F000 0200

Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/sda2
Uncompressing Linux...done.
Now booting the kernel

Any help is greatly appreciated. I have run out of ideas to fix this.

Thanks
swamy

-- 
View this message in context:
http://www.nabble.com/linux-2.6-hangs-at-__delay-function-on-Viretx-4-bo
ard-tp17222725p17222725.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded