[PATCH 4/5] fdt: Fix 'system' command

Stephen Warren swarren at wwwdotorg.org
Tue Mar 17 18:32:47 CET 2020


On 3/16/20 1:40 PM, twarren at nvidia.com wrote:
> From: Tom Warren <twarren at nvidia.com>
> 
> 'fdt systemsetup' wasn't working, due to the fact that the 'set' command
> was being parsed in do_fdt() by only testing for the leading 's' instead
> of "se", which kept the "sys" test further down from executing. Changed
> to test for "se" instead, now 'fdt systemsetup' works (to test the
> ft_system_setup proc w/o having to boot a kernel).

Reviewed-by: Stephen Warren <swarren at nvidia.com>

(Although I wonder if this shouldn't just test the entire string to
avoid any possible future ambiguity if more sub-commands are added
later. Or doesn't U-Boot already have some sub-command table
infra-structure this could use?)


More information about the U-Boot mailing list