Disable serial console

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Disable serial console

Postby FlySnake » Tue Dec 13, 2011 11:06 pm

I want use serial port /dev/tty02 in my application, but how can I disable console on it
I've removed console=ttyO2,115200n8 from boot.scr, but still have it /proc/cmdline :
$this->bbcode_second_pass_code('', 'console=ttyO2,115200n8 mpurate=auto buddy=none camera=none vram=12M omapfb.mode=dvi:1024x768MR-16@60 omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait')
boot.scr :
$this->bbcode_second_pass_code('', ''V%�HqN�����w��Beagleboard-xM boot script�setenv bootargs 'root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait'
mmc init
fatload mmc 0 0x80300000 uImage
bootm 0x80300000
boot
')
I don't use uEnv.txt. Where "console=ttyO2,115200n8" comes from?
FlySnake
 
Posts: 10
Joined: Tue Nov 29, 2011 6:02 pm
Location: Russia / Kaliningrad

Re: Disable serial console

Postby kmihelich » Wed Dec 14, 2011 3:17 am

boot.scr isn't just a plain text file. You need to take the commands you want to pass to u-boot, put them in a text file, and "compile" it with mkimage. You can find the basic steps on the installation pages.

You'll likely also need to adjust your inittab.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Disable serial console

Postby FlySnake » Wed Dec 14, 2011 4:02 pm

Yes, I know :) I've edited script file and then used mkimage. Sorry for the bad expression
Also I tried comment this: $this->bbcode_second_pass_code('', 's0:12345:respawn:/sbin/agetty -8 -s 115200 ttyO2 linux')
but it disables only login on the console, not all kernel output
FlySnake
 
Posts: 10
Joined: Tue Nov 29, 2011 6:02 pm
Location: Russia / Kaliningrad

Re: Disable serial console

Postby android » Fri Dec 16, 2011 8:51 pm

Hi FlySnake,

We seem to be in sync. I'm working on this now also 8-)

I think you need to set:
$this->bbcode_second_pass_code('', 'console=')
in the uEnv.txt

Otherwise it defaults to ttyO2 in the u-boot environment.

Commenting out the s0 line in inittab is also required.

Next I want to run with rootfs mounted ro.

So that's going to be an adventure also 8-)

Good Luck, Please post your results.

Talk to you soon...

johnea
android
 
Posts: 17
Joined: Sat Apr 16, 2011 7:47 pm

Re: Disable serial console

Postby FlySnake » Fri Dec 16, 2011 11:43 pm

Yes, it works! Thank you, android, again ;)
Also, the boot log has returned to tty1 (not only penguin and login promt on the monitor)
FlySnake
 
Posts: 10
Joined: Tue Nov 29, 2011 6:02 pm
Location: Russia / Kaliningrad


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 13 guests