linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Uart(lite)/ELDK 4.1 section mismatch -> ML403
@ 2008-03-19 14:01 Rob Schalken
  2008-03-19 14:36 ` John Linn
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Schalken @ 2008-03-19 14:01 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2313 bytes --]

I want to Port the Linux 2.6.24.3 to the ML403 board.  I tried some
different configurations:

 

**UartLite

After changing some defines and creating some symbolic link, the simple
boot loader seems to

Work. My kernel also starts because when I read the memory (using XMD),
I could read the _log_buf and

Some information was put in. I used the kernel command line:
console=ttyUL0 ip=off root=/dev/ram rw.  

But I did not get any kernel message on my serial console! When I
enabled the early boot text over

Serial port, the compiler gives some errors (gen550_init, RS_TABLE_SIZE,
etc.)!

 

**16550 Uart

After my disaster with the Uartlite, I started to use the 16550 uart.
But I immediately get the following

Error:

arch/ppc/boot/common/ns16550.c:22: error: 'RS_TABLE_SIZE' undeclared
here (not in a function)

arch/ppc/boot/common/ns16550.c:24: error: 'SERIAL_PORT_DFNS' undeclared
here (not in a function)

make[2]: *** [arch/ppc/boot/common/ns16550.o] Error 1

make[1]: *** [arch/ppc/boot/common] Error 2

make: *** [zImage] Error 2

 

I use ELDK 4.1 toolchain, which result in the following section mismatch
(warning)

WARNING: vmlinux.o(.text+0x223c): Section mismatch: reference to
.init.text:earl y_init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x2254): Section mismatch: reference to
.init.text:mach ine_init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x2258): Section mismatch: reference to
.init.text:MMU_ init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x22b2): Section mismatch: reference to
.init.text:star t_kernel (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x22b6): Section mismatch: reference to
.init.text:star t_kernel (between 'start_here' and 'initial_mmu')

 

By the way, the hardware is working, this has been tested!!

 

Could someone help to get a uart work! I only want to receive a message
from the kernel!!!! 

 

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

[-- Attachment #2: Type: text/html, Size: 7293 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Uart(lite)/ELDK 4.1 section mismatch -> ML403
  2008-03-19 14:01 Rob Schalken
@ 2008-03-19 14:36 ` John Linn
  0 siblings, 0 replies; 3+ messages in thread
From: John Linn @ 2008-03-19 14:36 UTC (permalink / raw)
  To: Rob Schalken, linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 3706 bytes --]

Hi Rob,

 

It sounds like your xparameters*.h with the #defines for the device
addresses is right for the uart as the bootstrap loader is working.

 

I don't believe early boot works was my experience with it.

 

What messages did you see in the __log_bug as this is the best tool, is
it booting all the way without a console or crashing during boot when it
tries to start the console?

 

Make sure the #define XPAR_DDR_0_SIZE 0x4000000 is in the
xparameters_ml403.h. It it's wrong the kernel will crash quickly based
on my experience.

 

Xilinx has a git server that I have been working on updating, not sure
how many changes there are in our git server as opposed to what you
have.  I have been testing arch/ppc with the ML405 which is the same as
the ML403 except a larger FPGA, but my testing has been with the 550
UART as the default.  I realize it's a tangent, but you can pull from
our server if you want as I know the state of it
(git://git.xilinx.com/linux-2.6-xlnx.git).  

 

Thanks

John Linn

 

________________________________

From: linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org
[mailto:linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org] On
Behalf Of Rob Schalken
Sent: Wednesday, March 19, 2008 8:02 AM
To: linuxppc-embedded@ozlabs.org
Subject: Uart(lite)/ELDK 4.1 section mismatch -> ML403

 

I want to Port the Linux 2.6.24.3 to the ML403 board.  I tried some
different configurations:

 

**UartLite

After changing some defines and creating some symbolic link, the simple
boot loader seems to

Work. My kernel also starts because when I read the memory (using XMD),
I could read the _log_buf and

Some information was put in. I used the kernel command line:
console=ttyUL0 ip=off root=/dev/ram rw.  

But I did not get any kernel message on my serial console! When I
enabled the early boot text over

Serial port, the compiler gives some errors (gen550_init, RS_TABLE_SIZE,
etc.)!

 

**16550 Uart

After my disaster with the Uartlite, I started to use the 16550 uart.
But I immediately get the following

Error:

arch/ppc/boot/common/ns16550.c:22: error: 'RS_TABLE_SIZE' undeclared
here (not in a function)

arch/ppc/boot/common/ns16550.c:24: error: 'SERIAL_PORT_DFNS' undeclared
here (not in a function)

make[2]: *** [arch/ppc/boot/common/ns16550.o] Error 1

make[1]: *** [arch/ppc/boot/common] Error 2

make: *** [zImage] Error 2

 

I use ELDK 4.1 toolchain, which result in the following section mismatch
(warning)

WARNING: vmlinux.o(.text+0x223c): Section mismatch: reference to
.init.text:earl y_init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x2254): Section mismatch: reference to
.init.text:mach ine_init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x2258): Section mismatch: reference to
.init.text:MMU_ init (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x22b2): Section mismatch: reference to
.init.text:star t_kernel (between 'start_here' and 'initial_mmu')

WARNING: vmlinux.o(.text+0x22b6): Section mismatch: reference to
.init.text:star t_kernel (between 'start_here' and 'initial_mmu')

 

By the way, the hardware is working, this has been tested!!

 

Could someone help to get a uart work! I only want to receive a message
from the kernel!!!! 

 

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


[-- Attachment #2: Type: text/html, Size: 18550 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Uart(lite)/ELDK 4.1 section mismatch -> ML403
@ 2008-03-19 17:27 Phil Hochstetler
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Hochstetler @ 2008-03-19 17:27 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]

I just booted the "git.xilinx.com/Linux-2.6-xlnx" source code to a login
prompt last week.  I'm using Xilinx EDK 9.2 and ELDK 4.1 crosstools
(uclib version) and Ubuntu 7.10 workstation as my host OS (under
VMware).  The easiest path is to use the Uartlite driver (and disable
the 82550 stuff because the stand directory will not compile currently,
there is a patch somewhere on the last from last Jan about what defines
are missing but you can just use uartlite instead).  Be sure to use the
correct reference design (I started with the Virtex4_PPC_Example_9_2.zip
in EDK/EDKexamples directory).   Add the sysace driver into the design
and (w/ interrupts on) and make sure you have uartlite selected (with
interrupts on).  Build the design and use the xparameters_403.h file to
build your kernel.  In this case, be sure to turn on uartlite console
support and turn off 82550 console support or your kernel will not work.
Also be sure to add Ext3 filesystem to your kernel config.  Once you add
the sysace driver support, you can then create a ace file and replace
their kernel on the compact flash and boot it to their root filesystem
(works, I just did it).  This gets you a full booted kernel on a working
root filesystem with min work.

 

For references see:  

  http://wiki.secretlab.ca/index.php/Linux_on_Xilinx_Virtex

 
http://simfami.marlab.ac.uk/piprg/wiki/index.php?title=Installing_Linux_
Kernel_2.6.23_on_the_PPC405_core_of_a_Xilinx_ML403_board

 

--phil

  


[-- Attachment #2: Type: text/html, Size: 3591 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-19 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 17:27 Uart(lite)/ELDK 4.1 section mismatch -> ML403 Phil Hochstetler
  -- strict thread matches above, loose matches on Subject: below --
2008-03-19 14:01 Rob Schalken
2008-03-19 14:36 ` John Linn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).