mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	bootflow: bootmeth_efi: Set bootp_arch as hex
bootmeth_efi sets up bootp_arch which is read later in bootp.c Currently bootp_arch is being set as integer string and being read in bootp.c as hex, this sends incorrect arch value to dhcp server which in return sends wrong file for network boot. For ARM64 UEFI Arch value is 0xb (11), here we set environment as 11 and later is read as 0x11 and 17 is sent to dhcp server. Setting it as hex string fixes the problem. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Shantur Rathore <i@shantur.com>
This commit is contained in:
		
				
					committed by
					
						 Tom Rini
						Tom Rini
					
				
			
			
				
	
			
			
			
						parent
						
							741d1e9d3f
						
					
				
				
					commit
					c5440a6ae8
				
			| @@ -339,7 +339,7 @@ static int distro_efi_read_bootflow_net(struct bootflow *bflow) | |||||||
| 	ret = env_set("bootp_vci", str); | 	ret = env_set("bootp_vci", str); | ||||||
| 	if (ret) | 	if (ret) | ||||||
| 		return log_msg_ret("vcs", ret); | 		return log_msg_ret("vcs", ret); | ||||||
| 	ret = env_set_ulong("bootp_arch", arch); | 	ret = env_set_hex("bootp_arch", arch); | ||||||
| 	if (ret) | 	if (ret) | ||||||
| 		return log_msg_ret("ars", ret); | 		return log_msg_ret("ars", ret); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user