* Read Barebox Infos from Linux @ 2022-02-21 13:04 Michael Graichen 2022-02-21 13:59 ` Ahmad Fatoum 2022-02-21 14:01 ` Sascha Hauer 0 siblings, 2 replies; 5+ messages in thread From: Michael Graichen @ 2022-02-21 13:04 UTC (permalink / raw) To: barebox Hey, I was just wondering if it is possibe to read the Barebox log messages or the Barebox version from within Linux? Best regards Michael _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Read Barebox Infos from Linux 2022-02-21 13:04 Read Barebox Infos from Linux Michael Graichen @ 2022-02-21 13:59 ` Ahmad Fatoum 2022-02-22 11:57 ` AW: " Michael Graichen 2022-02-21 14:01 ` Sascha Hauer 1 sibling, 1 reply; 5+ messages in thread From: Ahmad Fatoum @ 2022-02-21 13:59 UTC (permalink / raw) To: Michael Graichen, barebox Hi Michael, On 21.02.22 14:04, Michael Graichen wrote: > Hey, > > I was just wondering if it is possibe to read the Barebox log messages or the Barebox version from within Linux? That's what CONFIG_FS_PSTORE_CONSOLE does, see https://www.barebox.org/doc/latest/filesystems/pstore.html > Barebox version from within Linux? Yes, check out /proc/device-tree/chosen/barebox-version If you are curious what else barebox is fixing up into the device tree, try of_diff - + This will apply all DT fixups to a copy of the barebox device tree and show a diff before and after, e.g. chosen { + barebox-version = "barebox-2021.05.0-20220126-2"; + bootargs = "console=ttymxc1,115200n8"; + reset-source = "POR"; + reset-source-instance = <0x0>; + bootsource = "/soc/bus@2100000/mmc@2198000"; }; Cheers, Ahmad > > Best regards > Michael > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: Read Barebox Infos from Linux 2022-02-21 13:59 ` Ahmad Fatoum @ 2022-02-22 11:57 ` Michael Graichen 2022-02-23 8:14 ` Sascha Hauer 0 siblings, 1 reply; 5+ messages in thread From: Michael Graichen @ 2022-02-22 11:57 UTC (permalink / raw) To: Ahmad Fatoum, barebox, Sascha Hauer Hey Ahmed and Sascha, Thanks for your reply. This is all meant to work with devicetree support. Not x86/efi systems? Best regards Michael ________________________________________ Von: Ahmad Fatoum <a.fatoum@pengutronix.de> Gesendet: Montag, 21. Februar 2022 14:59 An: Michael Graichen; barebox@lists.infradead.org Betreff: Re: Read Barebox Infos from Linux Hi Michael, On 21.02.22 14:04, Michael Graichen wrote: > Hey, > > I was just wondering if it is possibe to read the Barebox log messages or the Barebox version from within Linux? That's what CONFIG_FS_PSTORE_CONSOLE does, see https://www.barebox.org/doc/latest/filesystems/pstore.html > Barebox version from within Linux? Yes, check out /proc/device-tree/chosen/barebox-version If you are curious what else barebox is fixing up into the device tree, try of_diff - + This will apply all DT fixups to a copy of the barebox device tree and show a diff before and after, e.g. chosen { + barebox-version = "barebox-2021.05.0-20220126-2"; + bootargs = "console=ttymxc1,115200n8"; + reset-source = "POR"; + reset-source-instance = <0x0>; + bootsource = "/soc/bus@2100000/mmc@2198000"; }; Cheers, Ahmad > > Best regards > Michael > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Read Barebox Infos from Linux 2022-02-22 11:57 ` AW: " Michael Graichen @ 2022-02-23 8:14 ` Sascha Hauer 0 siblings, 0 replies; 5+ messages in thread From: Sascha Hauer @ 2022-02-23 8:14 UTC (permalink / raw) To: Michael Graichen; +Cc: Ahmad Fatoum, barebox On Tue, Feb 22, 2022 at 11:57:59AM +0000, Michael Graichen wrote: > Hey Ahmed and Sascha, > > Thanks for your reply. > > This is all meant to work with devicetree support. Not x86/efi systems? The place where pstore lives can also be described on the kernel command line, so I think it should work there as well. I don't know how to pick a suitable memory address though on x86/efi. The initial pstore support in the kernel is from Intel, so I think it really should work on these systems. Whether the all the necessary pieces are also in barebox is another topic :) Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Read Barebox Infos from Linux 2022-02-21 13:04 Read Barebox Infos from Linux Michael Graichen 2022-02-21 13:59 ` Ahmad Fatoum @ 2022-02-21 14:01 ` Sascha Hauer 1 sibling, 0 replies; 5+ messages in thread From: Sascha Hauer @ 2022-02-21 14:01 UTC (permalink / raw) To: Michael Graichen; +Cc: barebox Hi Michael, On Mon, Feb 21, 2022 at 01:04:33PM +0000, Michael Graichen wrote: > Hey, > > I was just wondering if it is possibe to read the Barebox log messages or the Barebox version from within Linux? Yes. See https://www.barebox.org/doc/latest/filesystems/pstore.html Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-23 8:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-02-21 13:04 Read Barebox Infos from Linux Michael Graichen 2022-02-21 13:59 ` Ahmad Fatoum 2022-02-22 11:57 ` AW: " Michael Graichen 2022-02-23 8:14 ` Sascha Hauer 2022-02-21 14:01 ` Sascha Hauer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox