| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-14-2025, 11:26 AM
|
#1
|
|
Member
Registered: Jan 2019
Distribution: Ubuntu, Debian, Buildroot
Posts: 50
Rep: 
|
How to debug - Kernel freezing with added 16550 UART IP in FPGA
So, there's this somewhat suboptimal situation:
In a project on a ZynqMP / Ultrascale+, running Linux on the CPU and the FPGA doing application specific stuff (of course), we have a running system so far.
I do application software and some bare metal MCU programming, then there's an FPGA guy. Neither of us more than superficially touched Linux kernel stuff.
The guy who was a bit of a Linux kernel / driver guy is no longer with us, though.
While there were no plans to change the custom logic stuff where we'd have reckoned with needing a replacement for him (not easy to find), we added an extra 16550 UART, which should just use a mainline kernel driver and all is good.
Well, we did that and the kernel halts during boot.
We passed, via u-boot, kernel args like "debug" and "ignore_loglevel". The extra information shown in the log did not help.
Basically there were a few lines of "ZynqMP DMA driver Probe sucess" and then the last line "ttyS0 at MMIO ... (irq = 55, base_baud = ...) is a 16550A",
and then it simply halts.
How would one proceed from here to find out what exactly the kernel doesn't like about the HW change?
Is full blown source level kernel debugging sensible here? It seems a bit involved, to simply get an idea about the decision to halt (if that was a decision and not some wild crash).
|
|
|
|
08-16-2025, 07:45 AM
|
#2
|
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,418
|
If there is no kernel stack trace, then it doesn't seem like a software problem in the kernel. Since it's crashing right where you enable the UART, you may have a hardware issue. Perhaps it is coming up in an incorrect state.
|
|
|
1 members found this post helpful.
|
08-18-2025, 12:48 PM
|
#3
|
|
Member
Registered: Jan 2019
Distribution: Ubuntu, Debian, Buildroot
Posts: 50
Original Poster
Rep: 
|
But would one gain any insight about that "coming up in an incorrect state" by engagnig any sort of debugging mechnisms?
I did notice now that there is an entry about 8250 (also counting for 16550, apparently) UARTS to have the max number of 4, while the system now apparently has 4 that I surely know are of that type, and 2 of ATM unknown to me type, which cuold be that. Though AFAIK only one is new, and the system worked then apparently with 5 UARTS before. Well, maybe only this one new is also of the type.
Would Linux then simply halt (and not just warn) at boot, if there are 5 such UARTS and the max number is set to 4? (e.g. CONFIG_SERIAL_8250_NR_UARTS=4)
|
|
|
|
All times are GMT -5. The time now is 06:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|