Passing boot logs to Linux?
Dragan Simic
dsimic at manjaro.org
Wed Dec 20 21:16:30 CET 2023
On 2023-12-20 21:03, Sean Anderson wrote:
> On 12/20/23 14:24, Csókás Bence wrote:
>> On 2023. 12. 20. 9:29, Dragan Simic wrote:
>>> On 2023-12-20 08:52, Csókás Bence wrote:
>>>> On 2023. 12. 20. 8:09, Dragan Simic wrote:
>>>>> On 2023-12-20 07:49, Csókás Bence wrote:
>>>> That's what I read as well. Is there support for U-boot to write and
>>>> Linux to read PStores?
>>>
>>> No and yes, but U-Boot can already read pstore. Please see
>>> doc/usage/cmd/pstore.rst for the U-Boot part, and
>>> Documentation/admin-guide/pstore-blk.rst for the Linux kernel part.
>>
>> Irrelevant, as we only want to write out the console log to U-Boot,
>> and
>> not the other way around (that's for collecting panic logs, which is
>> already implemented).
>>
>>> Another benefit of using pstore would be no permanently wasted RAM
>>> for
>>> the recorded console contents. Also, having the data recorded to a
>>> storage device also goes along with providing permanent records.
>>
>> I'm positively *not gonna save boot logs to disk*, as most embedded
>> systems have Flash-based storage media; writing to them on every boot
>> would be devastating. Plus, I don't want the console subsystem to
>> depend
>> on any file/disk operations/drivers.
>
> pstore is agnostic to the backend used. In U-Boot we only support RAM
> backends at the moment.
That's a very good point.
More information about the U-Boot
mailing list