st 8. 11. 2023 v 15:42 odesÃlatel Tom Rini <tr...@konsulko.com> napsal: > > On Tue, Oct 31, 2023 at 06:29:20PM +0530, Love Kumar wrote: > > > Abort the dhcp request in the middle by pressing ctrl + c on u-boot > > prompt and validate the abort status. > > > > Signed-off-by: Love Kumar <love.ku...@amd.com> > > --- > > Changes in v2: > > - Mark CMD_MII command dependency > > This doesn't work for me on a raspberry pi 3 in 32bit mode (and I > suspect fails on the rest of the Pi families and builds as well): > test/py/tests/test_net.py ..F > > ========================================== FAILURES > =========================================== > _____________________________________ test_net_dhcp_abort > _____________________________________ > test/py/tests/test_net.py:139: in test_net_dhcp_abort > eth_num = re.search(r"Current device: '(.+?)'", output).groups()[0] > E AttributeError: 'NoneType' object has no attribute 'groups' > ------------------------------------ Captured stdout call > ------------------------------------- > U-Boot> setenv autoload no > U-Boot> U-Boot> mii device > MII devices:
You have mii command enabled but you don't have any device there. I expect you have any ethernet phy on RPI3. Love should check that the actual phy device at the passed address exists to be able to abort it. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs