]> git.baikalelectronics.ru Git - uboot.git/commit
tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Thu, 5 Aug 2021 19:06:05 +0000 (22:06 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 21 Aug 2021 22:23:02 +0000 (18:23 -0400)
commit2a4d42e6f7c26c9d9058d5484ab6e9fc270ddc6a
tree0c2ea50a76f369c7d0c34091820eadf42e4c980f
parentc78daa9c8a950a882104e7319a28f48ba979623c
tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

%pM format string is used to print MAC-address and this is required while SPL
network boot.

This patch fixes the SPL boot issues like the following:

    Trying to boot from USB eth
    ## Error: flags type check failure for "ethaddr" <= "40309614M" (type: m)
    ## Error inserting "ethaddr" variable, errno=1
    eth0: eth_cpsw## Error: flags type check failure for "eth1addr" <=
    "81f01114M" (type: m)
    ## Error inserting "eth1addr" variable, errno=1
    , eth1: usb_ether
    eth_cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
    Problem booting with BOOTP
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/tiny-printf.c