U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Love Kumar <love.kumar@amd.com>
To: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de, michal.simek@amd.com, git@xilinx.com
Subject: Re: [PATCH v4] test/py: net_boot: Add test cases for net boot
Date: Tue, 7 May 2024 11:22:45 +0530	[thread overview]
Message-ID: <8df3d032-65bc-4bc9-a255-ba825847ea9d@amd.com> (raw)
In-Reply-To: <20240503201842.GA2560583@bill-the-cat>



On 04/05/24 1:48 am, Tom Rini wrote:
> On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote:
> 
>> Add tests for booting image using tftpboot/pxe boot commands, tftpboot
>> boot case loads the FIT image into DDR and boots using bootm command
>> whereas pxe boot cases downloads the pxe configuration file from the
>> TFTP server and interprets it to boot the images mentioned in the pxe
>> configurations file.
>> This test relies on boardenv_* containing configuration values including
>> the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
>> boot log pattern value is matched. For example, if the parameter
>> 'pattern' is defined as 'login:', it will boot till login prompt.
>>
>> Signed-off-by: Love Kumar <love.kumar@amd.com>
> 
> I'm not quite sure where the problem is, next. After enabling FIT image
> support in my build so I can use the image I have on hand:
> U-Boot> tftpboot 200000 v6.6/image.fit.nocomp
> Waiting for Ethernet connection... done.
> Using smsc95xx_eth device
> TFTP from server 192.168.1.10; our IP address is 192.168.1.100
> Filename 'v6.6/image.fit.nocomp'.
> Load address: 0x200000
> Loading: ##################################################  82 MiB
>           3.2 MiB/s
> done
> Bytes transferred = 85984256 (5200400 hex)
> U-Boot> U-Boot> crc32 200000 $filesize
> CRC32 for 00200000 ... 054003ff ==> 754c839a
> U-Boot> U-Boot> bootm 200000
> ## Loading kernel from FIT Image at 00200000 ...
> Could not find configuration node
> ERROR -2: can't get kernel image!
> U-Boot>
> 
> And in u_boot_boardenv_rpi_arm64.py:
> env__tftp_boot_test_skip = False
> 
> env__net_tftp_bootable_file = {
>      'fn': 'v6.6/image.fit.nocomp',
>      'addr': 0x00200000,
>      'size': 85984256,
>      'crc32': '754c839a',
>      'pattern': 'Linux',
>      'config': 'conf-852',
> }
> 
> But it's not trying to boot conf-852 but instead just passing the
> address. This image lacks a default config, which your example has and I
> think is why the tests work in your case.
> 

Hi,

Yes, this case expects to have some default config in fit image as it 
uses 'bootm <addr>' command to boot, below change in fit image should work.

configurations {
     default = "conf-852";

test_net_tftpboot_boot_config - This case will boot from the given 
config: 'bootm 200000#conf-852'

Regards,
Love Kumar

  reply	other threads:[~2024-05-07  5:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-03 12:09 [PATCH v4] test/py: net_boot: Add test cases for net boot Love Kumar
2024-05-03 20:07 ` Tom Rini
2024-05-03 20:18 ` Tom Rini
2024-05-07  5:52   ` Love Kumar [this message]
2024-05-07 13:20     ` Tom Rini
2024-05-07 13:26       ` Michal Simek
2024-05-07 14:35         ` Tom Rini
2024-05-07 13:26     ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8df3d032-65bc-4bc9-a255-ba825847ea9d@amd.com \
    --to=love.kumar@amd.com \
    --cc=git@xilinx.com \
    --cc=michal.simek@amd.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox