Skip to contentSkip to conversation

Cannot boot properly

DISCUSSION Jon Fridriksson 2 participants 4 messages Apr 5, 2002

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw

Dear Jon,

Quoted 8 lines · in message <[email protected]> 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]

Quoted 2 lines

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: [email protected]
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/

#2 lore raw
Quoted 13 lines · Wolfgang Denk

Dear Jon,

Quoted 8 lines · in message <[email protected]> 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

Quoted 3 lines

Check the output carefully, and compare against a working system. I bet, that most of the time every second character is missing, right?

Right!

Quoted 5 lines

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

Quoted 24 lines

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]

Quoted 8 lines
Quoted 3 lines

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/

#3 lore raw

Dear Jon,

Quoted 8 lines · in message <[email protected]> you wrote:
Quoted 6 lines

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!

Quoted 1 line

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: [email protected] Use C++ to confuse your enemies; use C to produce stable code.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/