Disabling Serial Console of BB-XM for using it in application and confusion reg uEnv.txt

Hi all,

I want to disable the serial console of my BB-XM for using it in my application.

I tried removing the console in CONFIG_EXTRA_ENV_SETTINGS and recompiled my u-boot and kernel.

Still I am getting theserial messages. Can anyone point me which I have to disable in u-boot and kernel for getting away with serial console?

Also I was using Sitara SDK for Beagleboard xm and I forgot to include uEnv.txt and user.txt but still the booting was proper. Is uEnv.txt and user.txt are required or not??


Sorry I dint read the README properly. I configured serial for silent booting and it works fine.

I have another question, as I want to use this serial port in my application, is it possible to use my serial port till my booting and loading of linux and thereafter the control is switched to the application.

I right now commented out the following line in /etc/inittab

#S:2345:respawn:/sbin/getty 115200 ttyO2

Will this stop my serial port being as a console? and after this can I use it in my application?

Thanks and Regards!

I right now commented out the following line in /etc/inittab

#S:2345:respawn:/sbin/getty 115200 ttyO2

To disable serial port output, you have to disable it in the first stage bootloader (x-loader) and second stage bootloader (u-boot), and then the kernel. You’d need to recompile the bootloaders to disable that feature. In the kernel, you can remove the line

console=ttyO2,115200n8 in the kernel param setting, normally it is in uEv.txt. After the kernel is booted, initV set agetty output to all terminals defined in /dev/inittab accouring to the boot level. Yes, comment that line out would disable a login terminal on the serial port. After that, you can use the serial port in your user application.