Is there a way of redirecting to USB or UART1 port the console boot up dump?if I wanted to go to UART1 should I change the bootargs from bootargs=mem=60M console=ttyS0 to bootargs=mem=60M console=ttyS1. If that is the case what would it be for USB?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there a way of redirecting to USB or UART1 port the console boot up dump?if I wanted to go to UART1 should I change the bootargs from bootargs=mem=60M console=ttyS0 to bootargs=mem=60M console=ttyS1. If that is the case what would it be for USB?
I believe you need to set console=ttyUSB0 or ttyUSB1 based on what is assignment from kernel.
thanks for your fast response , If I want to do that as my default "TTYUSB0" as an example. Do I change the boot arguments for TTYUSB0 in in the UBOOT or this has to be done in the Kernel?
Regards,
Javier
Once your u-boot comes up, change bootargs to reflect the change you desire. It will be picked up by Kernel and Kernel will dump messages accordingly.
yes, I understand. But what if I want to automate the process for production, so it automatically goes to TTYUSB0. Or do I need to make the change in bootargs everytime?
You can save the env variables.
after setting, use saveenv command
$saveenv
This should work.
But, ttyUSB is little tricky. Looks like Kernel assigns names to USB ports randomly. Give it a try. If it doesn't work, check in google on 'how to make serial-USB connector always enumerated as ttyUSB0".
yes, I know all that. My question is when we are in production, and we are building thousands of these. How can I automate this process? I don't think I will be changing and saving the bootars on every unit? There has to be an easier way...
I changed the arguments and the unit boots, still sends data to TTYS0 until the kernel boots up after that I believe everything is going to the USB. I couldn't verify that it was transmitting to the USB port after the kernel loads. I guess there is no way shut it off until the kernel loads. Is that correct?