* Losing my console messages !!
@ 2004-04-05 15:54 Garcia Jérémie
2004-04-05 16:50 ` Andrei Konovalov
0 siblings, 1 reply; 3+ messages in thread
From: Garcia Jérémie @ 2004-04-05 15:54 UTC (permalink / raw)
To: linuxppc-embedded
Hi everybody,
we can say that I am a newbie in Linux embedded application but the fact is that it is now my job.
I've search for 2 weeks a clue which could have helped me but no result.
So here is my problem: I have to port a Montavista LSP for cedar (board evaluation for the ppc npe405L on a different board which has also a npe405L.
I use a bootloader called bootrom which one dowload the zImage by ftp in ram. The filesystem is supposed to be mounted via NFS. The boot succeed on the original board (cedar). But when I try to boot it on my new board I have at the console the following messages:
Attached TCP/IP interface to ibmEmac0.
Attaching network interface lo0... done.
Loading...
Reading data from host 9.100.123.254
start address cd82e8
block=ce92f4
block=d0943c
block=d29250
block=d4a4b4
Copying the board datas ...
loaded at: 00CD8308 00D63508
relocated to: 00400000 0048B200
board data at: 00488128 00488170
relocated to: 004054AC 004054F4
zimage at: 00405AA0 004875AF
avail ram: 0048C000 01000000
Linux/PPC load: console=ttyS0,38400 root=/dev/nfs ip=on rw
Uncompressing Linux...done.
Now booting the kernel
mcMCMkMkO8Z%M#QR.EM[XK!YUa~KMz8H.\I;SJCE,M<K.>+Y5H> E<+ °+ .++<U#UHT!Y.X5£<Ä_ +K
\
>>> as you can see, the linux bootloader seems to be OK since I can get the "puts" messages of the bootloader. But after the register_console() function, all the messages in buffer are unreadable.
I noticed that on the ppcNPE405L, both UARTs can be clocked with an external clock (that's true with the cedar board) or can be internally clocked. On my new board, I haven't an external clock. Will it have an impact or Linux is able to automatically adapt its behavior??
Furthermore, the board-info that bootrom pass to linux is ok (I checked it with a puts test
//arch/ppc/platforms/ceder.h
typedef struct board_info {
unsigned char bi_s_version[4]; /* Version of this structure */
unsigned char bi_r_version[30]; /* Version of the IBM ROM */
unsigned int bi_memsize; /* DRAM installed, in bytes */
unsigned char bi_enetaddr[2][6]; /* Local Ethernet MAC address */
unsigned char bi_pci_mac[6];
unsigned int bi_intfreq; /* Processor speed, in Hz */
unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
unsigned int bi_pci_busfreq; /* PCI speed in Hz */
} bd_t;
)
I noticed the presence of two "#define" which seem to be important but it's hard to me to understand how they really act:
include/asm-ppc/pc_serial.h --> #define BASE_BAUD ( 1843200 / 16 )
arch/ppc/boot/common/ns16550.c--> #define SERIAL_BAUD 9600
Of course I've tried all the parameters on the console and none seems to be the one.
Thanks for helping me and feel free to tell me if you need further informations.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Losing my console messages !!
2004-04-05 15:54 Losing my console messages !! Garcia Jérémie
@ 2004-04-05 16:50 ` Andrei Konovalov
0 siblings, 0 replies; 3+ messages in thread
From: Andrei Konovalov @ 2004-04-05 16:50 UTC (permalink / raw)
To: Garcia Jérémie; +Cc: linuxppc-embedded
Garcia Jérémie wrote:
... skipped ...
> I noticed the presence of two "#define" which seem to be important but it's hard to me to understand how they really act:
> include/asm-ppc/pc_serial.h --> #define BASE_BAUD ( 1843200 / 16 )
> arch/ppc/boot/common/ns16550.c--> #define SERIAL_BAUD 9600
>
Not sure if you should use pc_serial.h. If you look at include/asm-ppc/serial.h many boards
use their own definitions for this stuff. But probably this is OK for ceder.
Anyway,
#define BASE_BAUD ( 1843200 / 16 )
assumes that you use 1.843200 MHz clock for your UARTs.
As this is not the case for your custom board, you should change BASE_BAUD properly.
For this you could create your own header file and include it from include/asm-ppc/serial.h
(I don't think modifying pc_serial.h is a good idea).
Best regards,
Andrei
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Losing my console messages !!
@ 2004-04-06 9:28 Garcia Jérémie
0 siblings, 0 replies; 3+ messages in thread
From: Garcia Jérémie @ 2004-04-06 9:28 UTC (permalink / raw)
To: Andrei Konovalov; +Cc: linuxppc-embedded
Thanks Andrei for you help!
But do you know what are the point of those 2 different variables BASE_BAUD and SERIAL_BAUD ?
Furthermore, I tried to contact the PowerPc support to get the figure oh the ppcNPE405L clocking but I'm still waiting for their answer (in fact I have two very different figures for that clocking and I don't know which one is the right one)... How can I obtain the right value for my board? (remember that my uart is internally clocked thing that was not true in the original LSP design. Are there some specific sources for the external clock managing?)
My bootrom set those parameters:
-CPU freq = 200Mhz
-PLB freq = 50Mhz
To communicate with my bootrom, I used the minicom with 38400 701.
I'd like to get my console at 38400 8n1 when the Linux bootloader and Linux kernel are executing.
That's it...
-----Original Message-----
From: Andrei Konovalov [mailto:akonovalov@ru.mvista.com]
Sent: Mon 4/5/2004 5:50 PM
To: Garcia Jérémie
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Losing my console messages !!
Garcia Jérémie wrote:
... skipped ...
> I noticed the presence of two "#define" which seem to be important but it's hard to me to understand how they really act:
> include/asm-ppc/pc_serial.h --> #define BASE_BAUD ( 1843200 / 16 )
> arch/ppc/boot/common/ns16550.c--> #define SERIAL_BAUD 9600
>
Not sure if you should use pc_serial.h. If you look at include/asm-ppc/serial.h many boards
use their own definitions for this stuff. But probably this is OK for ceder.
Anyway,
#define BASE_BAUD ( 1843200 / 16 )
assumes that you use 1.843200 MHz clock for your UARTs.
As this is not the case for your custom board, you should change BASE_BAUD properly.
For this you could create your own header file and include it from include/asm-ppc/serial.h
(I don't think modifying pc_serial.h is a good idea).
Best regards,
Andrei
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-06 9:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-05 15:54 Losing my console messages !! Garcia Jérémie
2004-04-05 16:50 ` Andrei Konovalov
-- strict thread matches above, loose matches on Subject: below --
2004-04-06 9:28 Garcia Jérémie
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).