Hi Sascha,

On 12.08.25 12:39, Sascha Hauer wrote:
> On Mon, Aug 11, 2025 at 02:28:23PM +0200, Ahmad Fatoum wrote:
>> Inspired by U-Boot's addition of the ufetch command and the neofetch
>> utility for Linux[1], add a similar command to barebox.
>>
>> The command is meant to simplify showing off a barebox port with some
>> colored ASCII art. The usual alternative is a screenshot of a barebox
>> boot up and prompt, which for a fresh port usually will contain some
>>> = warning messages, which is not as pleasant to look at compared to:
>>
>> :##:                                   :##: none@virt64
>> -%%:  =#####.                          :%%- -----------
>>       #@@@@@.                               Kernel: barebox 2025.07.0-<snip>
>>       *@@@@@.                               Model: ARM QEMU virt64 
>> (linux,dummy-virt)
>>       *@@@@@.                               Config: arm64 multi_v8_defconfig
>>       *@@@@@.      :=##=.                   CPU: Cortex-A57 r1p0 at EL1
>>       *@@@@@.   :+%@@@@@@#+:                Memory: 1 GiB
>>       *@@@@@:-*@@@@@@@@@@@@@%*-.            Uptime: 1 second
>>       *@@@@@@@@@@@@@@%%@@@@@@@@@#=.         Shell: Hush with 155 commands 
>> and 8 aliases
>>       *@@@@@@@@@@@%**+=+*%@@@@@@@@@%+.      Consoles: input0 cs0 netconsole-1
>>       *@@@@@@@%#*++++++===+*#%@@@@@@@+      Features: FW_CFG HWRNG PCI VIRTIO
>>       *@@@@@#*+++++++++++++===+#@@@@@+       barebox: /dev 9P BTHREAD DEEP 
>> RATP W^X
>>       *@@@@@*+++++++++++++++++=*@@@@@+      Network: 1 interface, 1 up
>>       *@@@@@*+++++++++++++++++=*@@@@@+        eth0: 0.0.0.0/0
>>       *@@@@@*+++++++++++++++++=*@@@@@+      Hardening: init-stack
>>       *@@@@@*+++++++++++++++++=*@@@@@+      Devices: 85 with 17 bound
>>       *@@@@@*++++++++++++++++==*@@@@@+      Drivers: 220 drivers across 16 
>> busses
>>       *@@@@@%#*+++++++++++===+*%@@@@@+      Storage: 1x MTD (128 MiB)
>>       *@@@@@@@@%#*++++===+*#%@@@@@@@@+      Environment: 28 bytes
>>        -*%@@@@@@@@@%*++*%@@@@@@@@@%+:       Firmware:
>>           :+#@@@@@@@@@@@@@@@@@@#=:            PSCI: v1.1 over hvc
>>              .=*@@@@@@@@@@@%*-.
>>                  -+%@@@@%+:
>> -@@-                :==.               :@@-
>> :**.                                   .**:
> 
> Commands like cpuinfo and uptime are not selected by bfetch, but used
> unconditionally, so we might get some not-so-fancy
> 
> cpuinfo: No such file or directory
> uptime: No such file or directory
> 
> messages in the bfetch output.

Oh, that's decidedly not fancy. I wil suppress the error message when in 
structio
context for v2.

Cheers,
Ahmad

> 
> 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 |

Reply via email to