Change Debug Port From UART0 to USB0

Dear Support Team:

I am glad to have beaglebone black board to start my Linux activities.

Currently I am working on Baremetal Programming on Beagle Bone Black Board. I gone through the BBB booting procedure and I found that the boot environment using UART0 as debug/console. Now, I want to change debug port from UART0 to USB0.

  1. Is it fixed in Boot ROM code only.?

  2. What are all the necessary information should I know.?

  3. Is it required to modify in u-boot source code.? if yes, where can I change.?

Please respond as soon as possible.

Thanks and Regards,
Siva Prakash Reddy

Dear Support Team:

Sorry, just a community of users. No Support Team here. :wink:

I am glad to have beaglebone black board to start my Linux activities.

Currently I am working on Baremetal Programming on Beagle Bone Black Board. I gone through the BBB booting procedure and I found that the boot environment using UART0 as debug/console. Now, I want to change debug port from UART0 to USB0.

1. Is it fixed in Boot ROM code only.?
2. What are all the necessary information should I know.?
3. Is it required to modify in u-boot source code.? if yes, where can I change.?

The Boot ROM "defaults" to UART0, this is why you see "CCCCCC's.."
over the usart when the eMMC and microSD are blank..

However u-boot can be "easly" programed to change the UART0 to a different UARTx

However to change from UART0 to USB0, "you'll" have to do some work..

PS, once you jump from u-boot to app x, the "usb" handoff is complex...

Regards,

Thank You For Your Response.

However to change from UART0 to USB0, “you’ll” have to do some work…

Can you please guide me how to proceed.?
Where to change.?

Is it required to change to any configuration setting while building U-Boot source code.?

However u-boot can be “easly” programed to change the UART0 to a different UARTx

If the Boot ROM is fixed, how can we change that.?

>However to change from UART0 to USB0, "you'll" have to do some work..
>

Can you please guide me how to proceed.?
Where to change.?

Like i said, "you'll" have some work todo..

Is it required to change to any configuration setting while building U-Boot source code.?

>
>However u-boot can be "easly" programed to change the UART0 to a different UARTx
>

If the Boot ROM is fixed, how can we change that.?

No, the Boot ROM is still defaulted to UART0, but that doesn't stop
you from using a different UARTx when U-Boot runs..

Regards,

Hello:

Thanks for the valuable response.

In my case I had created only BOOT partition on my SD Card and I copied the MLO, U-boot.img and uEnv.txt files.

the content in the uEnv.txt is as follows:

uenvcmd=setenv bootargs console=ttyUSB0,115200n8 console=${console}
echo *** Booting To Baremetal_1 ***

Before applying USB power to BBB, SD card is inserted and I pressed and hold the Switch-2 to boot from SD Card.

But there is no response from the board at USB0 port.

Is it problem with uEnv.txt file.?

Are there required for any changes.?

Thanks And Regards,

Siva Prakash Reddy

Plug in a usb serial adapter into the j1 debug port.. did u-boot
actually do what you expected?

Regards,

Hello Robert:

What you said is normal connection like using USB to TTL cable connecting to J1 Header.

Plug in a usb serial adapter into the j1 debug port… did u-boot
actually do what you expected?

It is working properly.

Normally, when the board is completely up and Linux Login prompt is only showing in the USB0 port of the board.

But, I am trying to achieve the same on USB0 port on the board, i.e., I wan to see the Uboot debug information on USB0 port.

the following is the uboot log information coming on the UART0 port (J1 Connector)

<i><b>U-Boot SPL 2011.09-00002-gd0e52e5 (Apr 14 2012 - 22:13:07)
Texas Instruments Revision detection unimplemented
No AC power, disabling frequency switch
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img

U-Boot 2011.09-00002-gd0e52e5 (Apr 14 2012 - 22:13:07)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
No daughter card present
NAND:  HW ECC Hamming Code selected
No NAND device found!!!
0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

Net:   cpsw
Hit any key to stop autoboot:  3 ��� 2 ��� 1 ��� 0 
SD/MMC found on device 0
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
reading uImage

3132976 bytes read
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.1.0-00010-g66bfbd2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3132912 Bytes = 3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...</b></i>

Is it possible to see the same on USB0 port with any proper modifications.?

Thanks and Regards,
Siva Prakash Reddy.

I did some parts of the task, but not complete.

http://youtu.be/9CxfKfjykz4

https://elinux.org/images/b/b2/Netconsole.pdf