Skip to contentSkip to conversation

ttyO2 and ttyS2 in console bootcmd.

U-Boot Chris Rodley 4 participants 4 messages May 1, 2011 – May 2, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

How does uboot specify whether it accepts ttySO or ttyS2 in the console part of the boot cmd. I am trying to boot the 2.6.39 kernel .. my new uboot works with 2.6.32
using ttyS2.

It does not work with the new 2.6.39, but I can get that to boot by
compiling uboot for the BeagleBoard and using ttySO.
I have spent a lot of time looking at the differences in the code and
have not been able to work out what it is that needs to be changed on my custom uboot to make it work.

Any ideas?
Thanks,

CJ

#1 lore raw
Quoted 13 lines · Chris Rodley

Hi,

How does uboot specify whether it accepts ttySO or ttyS2 in the console part of the boot cmd. I am trying to boot the
2.6.39 kernel .. my new uboot works with 2.6.32 using ttyS2.

It does not work with the new 2.6.39, but I can get that to boot by compiling uboot for the BeagleBoard and using ttySO.
I have spent a lot of time looking at the differences in the code and have not been able to work out what it is that needs to be changed on my custom uboot to make it work.

Quoted 4 lines

Any ideas?
Thanks,

CJ

Are you sure that its ttyS0 and not ttyO2 that fixes the problem?

Latest OMAP kernels use ttyO* instead of ttyS* and the necessary change are already there in U-Boot.

Look at "include/configs/omap3_beagle.h" in the U-Boot sources.

Regards,
Vaibhav

#2 lore raw
In reply to Chris Rodley

Dear Chris Rodley,

Quoted 2 lines · In message <[email protected]> you wrote:

How does uboot specify whether it accepts ttySO or ttyS2 in the console part of the boot cmd.

U-Boot passes Linux kernel boot arguments in the "bootargs" environment variable. For U-Boot, this is just a variable setting. U-Boot does not interpret it's content in any way.

Quoted 2 lines

I am trying to boot the 2.6.39 kernel .. my new uboot works with 2.6.32
using ttyS2.

U-Boot uses fixed configuration settings and has no notion of such device names.

Quoted 2 lines

It does not work with the new 2.6.39, but I can get that to boot by
compiling uboot for the BeagleBoard and using ttySO.

This sentence makes no sense to me.

Quoted 3 lines

I have spent a lot of time looking at the differences in the code and
have not been able to work out what it is that needs to be changed on my custom uboot to make it work.

We have no idea what "your custom uboot" might be. [Please note the correct spelling: U-Boot.]

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If ignorance is bliss, why aren't there more happy people?
#3 lore raw
In reply to Chris Rodley
Quoted 6 lines · Chris Rodley

Hi,

How does uboot specify whether it accepts ttySO or ttyS2 in the console part of the boot cmd. I am trying to boot the 2.6.39 kernel .. my new uboot works with 2.6.32
using ttyS2.

Quoted 8 lines

It does not work with the new 2.6.39, but I can get that to boot by
compiling uboot for the BeagleBoard and using ttySO.
I have spent a lot of time looking at the differences in the code and
have not been able to work out what it is that needs to be changed on my custom uboot to make it work.

Any ideas?

From the u-boot command prompt, first display the env variable console
with the printenv command. It is probably currently set to ttyS2,115200n8. Use setenv to change console to ttyO2,115200n8, then save it with saveenv. Here is how it should look:

Overo # printenv console
console=ttyS2,115200n8
Overo # setenv console ttyO2,115200n8
iRobot # saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x240000 -- 100% complete.
Writing to Nand... done
Overo #

Quoted 11 lines

Thanks,

CJ

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot