mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Michael Graichen <michael.graichen@hotmail.com>,
	"barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: Read Barebox Infos from Linux
Date: Mon, 21 Feb 2022 14:59:26 +0100	[thread overview]
Message-ID: <bde9d08d-43da-c3eb-6362-09c33ab8e172@pengutronix.de> (raw)
In-Reply-To: <AM9P192MB08704D48582CC36E5B0CEFFBAB3A9@AM9P192MB0870.EURP192.PROD.OUTLOOK.COM>

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


  reply	other threads:[~2022-02-21 14:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-21 13:04 Michael Graichen
2022-02-21 13:59 ` Ahmad Fatoum [this message]
2022-02-22 11:57   ` AW: " Michael Graichen
2022-02-23  8:14     ` Sascha Hauer
2022-02-21 14:01 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bde9d08d-43da-c3eb-6362-09c33ab8e172@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=michael.graichen@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox