03-29-2018 12:56 AM
Currently i am using Zynq-7000 Soc having two UART named UART0 and UART1 , UART0 is used for Serial log on my SOC board, due to some requirment i wanted to disable UART0 for serial, i mean to say there is no serial for UART log.
so my queation is where i need to disable UART0 for serial, i have already try to disable uart0 info in
/* serial0 = &uart0;*/ /* commented to disable serial*/
spi0 = &qspi;
/*bootargs = "console=ttyPS0,115200 earlyprintk root=mtd:jffs2 rw rootfstype=jffs2"; */ /* modified this line and written below , to avoid serial init */
bootargs = "earlyprintk root=mtd:jffs2 rw rootfstype=jffs2";
system-conf.dtsi file bu not succeds.
can anyone suggest me where i needs to change in the kernel apart from dtsi file ?
04-02-2018 03:05 AM
Can you try this at your end to remove uart0 entry in aliases of system-conf.dtsi file?
serial0 = &ps7_uart_0; /* Remove this if you do not want console to opt or choose uart1/
ethernet0 = &gem0;
spi0 = &qspi;
status = "disbaled";
04-03-2018 03:25 AM
i have tried your suggestion but my system is not booting, since UART log is not coming after making UART0 disable i am not able to find where its goes wrong.
I have attached the device tree file for your refrence, please see my device tree file and give suggest me what are tghings required to be removed .
please keep in my i am going to use UART0 for some other purposes, so if we disable the Status of UART0 then i may not able to use for other purposes.
04-09-2018 11:50 PM
Disabling the UART steps are correct.
Yes, if you do not enable serial port it is true wont be able to to see boot log at all which will not help you to know if system is up or not. Verified your files and looks like these are original file where you havent edited anything.
What is the exact requirement? Are you looking for solution for not use UART port at all and expect to boot from SD /QSPI?
Please check if this AR where disabling the earlyprintk helps you and choose appropriate low level debug port
04-10-2018 04:16 AM
You should have at least a serial port/UART dedicated for kernel boot logs otherwise is will hang as you are seeing when removed UART from dt.