AW: Read Barebox Infos from Linux

Michael Graichen michael.graichen at hotmail.com
Tue Feb 22 03:57:59 PST 2022


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 at pengutronix.de>
Gesendet: Montag, 21. Februar 2022 14:59
An: Michael Graichen; barebox at 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 at 2100000/mmc at 2198000";
};

Cheers,
Ahmad


>
> Best regards
> Michael
> _______________________________________________
> barebox mailing list
> barebox at 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 |



More information about the barebox mailing list