I am trying to understand the SATA Host-Device Communication and for that I have put a lot of debug messages in the kernel driver code. Now messages are in such a huge amount that I am not able to see the initial messages of the device enumeration in the dmesg log. For the same I have modified CONFIG_LOG_BUF_SHIFT(=21) config variable to increase the ring buffer size from where dmesg takes the message but still I am facing the same issue.
So, Is there any method available by which I can log all the dmesg from the kernel boot in to a specific file?
Thanks for the Help in advance.