* Cannot boot properly
@ 2002-04-05 13:35 Jon Fridriksson
2002-04-05 14:44 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Jon Fridriksson @ 2002-04-05 13:35 UTC (permalink / raw)
To: linuxppc-embedded
Hello all
I am trying install linux on a custom powerpc embedded platform
(MPC823). My kernel sources are from ftp.denx.de and I use
ppcboot-1.1.2. I am able to install and boot a little bit older kernel
(2.4.4-2001-05-12 also from denx.de) but I'm having problems with the
newest sources (2.4.4-2002-03-21), which i like to install on my target.
I connect my target to my PC through an ethernet and a serial port and
mount a NFS root file system. Here is where the probem arises with the
newer kernel. When i boot (with bootm command in ppcboot), the output on
my screen is all garbled where everything was ok before. The kernel is
still active on the target but does not respond throgh the serial port
anymore. (I use minicom to connect and boot parameters are set to 9600
baud in ppcboot). Any ideas?? Does the newer kernel overide the baud
settings somehow? Is it necessary to upgrade to ppcboot-1.1.5 for the
newer kernel to boot??
Regards
Jon F. Hjartar
Student at Aalborg University
--
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot boot properly
2002-04-05 13:35 Cannot boot properly Jon Fridriksson
@ 2002-04-05 14:44 ` Wolfgang Denk
2002-04-05 17:01 ` Jon Fridriksson
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2002-04-05 14:44 UTC (permalink / raw)
To: Jon Fridriksson; +Cc: linuxppc-embedded
Dear Jon,
in message <3CADA82E.9000502@control.auc.dk> you wrote:
>
> I connect my target to my PC through an ethernet and a serial port and
> mount a NFS root file system. Here is where the probem arises with the
> newer kernel. When i boot (with bootm command in ppcboot), the output on
> my screen is all garbled where everything was ok before. The kernel is
> still active on the target but does not respond throgh the serial port
> anymore. (I use minicom to connect and boot parameters are set to 9600
> baud in ppcboot). Any ideas?? Does the newer kernel overide the baud
Check the output carefully, and compare against a working system. I
bet, that most of the time every second character is missing, right?
If this i the case, you have mis-configured the serial ports. Make
sure to enable both SMC1 and SMC2 in the kernel configuration, and
select the right one as console port. Also make sure that you select
CONFIG_ALTSMC2.
If you check with your ".config" file, the following options should
be selected:
CONFIG_SMC1_UART=y
# CONFIG_CONS_SMC1 is not set
CONFIG_UART_MAXIDL_SMC1=1
CONFIG_SMC1_UART_RX_BDNUM=4
CONFIG_SMC1_UART_RX_BDSIZE=32
CONFIG_SMC1_UART_TX_BDNUM=4
CONFIG_SMC1_UART_TX_BDSIZE=32
CONFIG_SMC2_UART=y
CONFIG_ALTSMC2=y
CONFIG_CONS_SMC2=y
CONFIG_UART_MAXIDL_SMC2=1
CONFIG_SMC2_UART_RX_BDNUM=4
CONFIG_SMC2_UART_RX_BDSIZE=32
CONFIG_SMC2_UART_TX_BDNUM=4
CONFIG_SMC2_UART_TX_BDSIZE=32
[This system uses SMC2 as console port - the settings for
CONFIG_CONS_SMC1 and CONFIG_CONS_SMC2 may be different on your box]
> settings somehow? Is it necessary to upgrade to ppcboot-1.1.5 for the
> newer kernel to boot??
This is not necessary (though recommended anyway).
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Q: Why do PCs have a reset button on the front?
A: Because they are expected to run Microsoft operating systems.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot boot properly
2002-04-05 14:44 ` Wolfgang Denk
@ 2002-04-05 17:01 ` Jon Fridriksson
2002-04-05 18:54 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Jon Fridriksson @ 2002-04-05 17:01 UTC (permalink / raw)
To: linuxppc-embedded
Wolfgang Denk wrote:
>Dear Jon,
>
>in message <3CADA82E.9000502@control.auc.dk> you wrote:
>
>>I connect my target to my PC through an ethernet and a serial port and
>>mount a NFS root file system. Here is where the probem arises with the
>>newer kernel. When i boot (with bootm command in ppcboot), the output on
>>my screen is all garbled where everything was ok before. The kernel is
>>still active on the target but does not respond throgh the serial port
>>anymore. (I use minicom to connect and boot parameters are set to 9600
>>baud in ppcboot). Any ideas?? Does the newer kernel overide the baud
>>
>
>Check the output carefully, and compare against a working system. I
>bet, that most of the time every second character is missing, right?
>
Right!
>If this i the case, you have mis-configured the serial ports. Make
>sure to enable both SMC1 and SMC2 in the kernel configuration, and
>select the right one as console port. Also make sure that you select
>CONFIG_ALTSMC2.
>
Done that and now it works !!
Thank you for your quick response
Regards
Jon F. Hjartar
>
>
>If you check with your ".config" file, the following options should
>be selected:
>
> CONFIG_SMC1_UART=y
> # CONFIG_CONS_SMC1 is not set
> CONFIG_UART_MAXIDL_SMC1=1
> CONFIG_SMC1_UART_RX_BDNUM=4
> CONFIG_SMC1_UART_RX_BDSIZE=32
> CONFIG_SMC1_UART_TX_BDNUM=4
> CONFIG_SMC1_UART_TX_BDSIZE=32
> CONFIG_SMC2_UART=y
> CONFIG_ALTSMC2=y
> CONFIG_CONS_SMC2=y
> CONFIG_UART_MAXIDL_SMC2=1
> CONFIG_SMC2_UART_RX_BDNUM=4
> CONFIG_SMC2_UART_RX_BDSIZE=32
> CONFIG_SMC2_UART_TX_BDNUM=4
> CONFIG_SMC2_UART_TX_BDSIZE=32
>
>[This system uses SMC2 as console port - the settings for
>CONFIG_CONS_SMC1 and CONFIG_CONS_SMC2 may be different on your box]
>
>>settings somehow? Is it necessary to upgrade to ppcboot-1.1.5 for the
>>newer kernel to boot??
>>
>
>This is not necessary (though recommended anyway).
>
>Wolfgang Denk
>
--
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot boot properly
2002-04-05 17:01 ` Jon Fridriksson
@ 2002-04-05 18:54 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2002-04-05 18:54 UTC (permalink / raw)
To: Jon Fridriksson; +Cc: linuxppc-embedded
Dear Jon,
in message <3CADD870.4050200@control.auc.dk> you wrote:
>
> >If this i the case, you have mis-configured the serial ports. Make
> >sure to enable both SMC1 and SMC2 in the kernel configuration, and
> >select the right one as console port. Also make sure that you select
> >CONFIG_ALTSMC2.
> >
>
> Done that and now it works !!
Congratulations!
> Thank you for your quick response
You're welcome!
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Use C++ to confuse your enemies; use C to produce stable code.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-05 18:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-05 13:35 Cannot boot properly Jon Fridriksson
2002-04-05 14:44 ` Wolfgang Denk
2002-04-05 17:01 ` Jon Fridriksson
2002-04-05 18:54 ` Wolfgang Denk
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).