AW: Read Barebox Infos from Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
Gesendet: Montag, 21. Februar 2022 14:59
An: Michael Graichen; barebox@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux