From owner-freebsd-arm@freebsd.org Sun Nov 1 19:25:17 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 660DF457897 for ; Sun, 1 Nov 2020 19:25:17 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CPQx839tPz4V39 for ; Sun, 1 Nov 2020 19:25:16 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm1-x32f.google.com with SMTP id h62so2627611wme.3 for ; Sun, 01 Nov 2020 11:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=BElR/rNyb6BfRf6KOicsugmCuJzFX4iNfyJaLYqBtl0=; b=Up940sLX+kecyODToe4FoPapYMFJ4xfZsqRNk6RMg6d7UOC07LuJG06usl7PgdfuD/ 6+FZFrckiusq6YLIOjQGYM4tV8E1v6xX6eha1IdziAb45f9CAkz0ArPD4vMooitr+HqG 7CZj2yRwSGSo+oZctTcoQDXwguyNzWRocgy1XdR90yM3KDrTKOOS0eoRnt51lFRQLzYh LSYsZ927IAEbuSX56/vlSIcdarb6NN1L7cXqLg4YKmqy/AbqZGq0eoPQNb6pL0bYAFSr VMW1Kj7D4jIxfpJQPRFqwkMOXGFLSC89aF45C+E699tjDPHTbjE+0NgoESQaiS8gk+PS rP1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=BElR/rNyb6BfRf6KOicsugmCuJzFX4iNfyJaLYqBtl0=; b=QTof4eAATWIu+PenWj9qi5B3ycoqGYWE+CrKMZ1tcRCm6cY/7T7VNIE2Wp5OfOZed6 o33Ys9yk40s86vnycV5rIACcnYoa5KcOCsTb/RW76taWFc15AYH9vFyWPqFoiVtkl2Ej IYTMi0ZPEMWrxJTOtxyxztoNLAX0fGTvnDhX0cH6mE5YCiNmdxpQSWy0Kty3o3dpA135 1trBMPi9jfAgFQhC3F0XpMFadiibhTEfLv3vms2dA/c6XoGo6n0sndx1VgR/HBBMZ0ps dEFuRYbWtnQSWmA+nYbP/3tm0BLmWw35EMFwJW4H135kPdfABIW+ZXOcbVJx8/Rj5/rL G4Qw== X-Gm-Message-State: AOAM530SuUfe68buSAe0/Hyhl01UNSg0qUQDdvKbp4i4ArWmRWx9FBjX 97n4nGI5HFtuYLPttA7ataB+uFKC4OhY5A== X-Google-Smtp-Source: ABdhPJwyGy3TAqxFtFQenDpXufJAyYs10XGCJZ3XODAhq+ZrPZnIP8Ix6Aj4ckJpHRwICXnfZnQIGQ== X-Received: by 2002:a1c:60d4:: with SMTP id u203mr13884465wmb.103.1604258714338; Sun, 01 Nov 2020 11:25:14 -0800 (PST) Received: from ?IPv6:2a02:ed0:3374:ec01:6345:9de0:de1b:fc81? ([2a02:ed0:3374:ec01:6345:9de0:de1b:fc81]) by smtp.gmail.com with ESMTPSA id o184sm12575041wmo.37.2020.11.01.11.25.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Nov 2020 11:25:13 -0800 (PST) From: Guy Yur Subject: u-boot 2020.07 fails to see BOOTARM.EFI on fat partition with custom installation To: freebsd-arm@freebsd.org Message-ID: <18d7b209-959e-7c4b-1d5e-1c7b9506783c@gmail.com> Date: Sun, 1 Nov 2020 21:25:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4CPQx839tPz4V39 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Up940sLX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of guyyur@gmail.com designates 2a00:1450:4864:20::32f as permitted sender) smtp.mailfrom=guyyur@gmail.com X-Spamd-Result: default: False [-3.26 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.28)[-0.283]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.991]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32f:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2020 19:25:17 -0000 Hi, u-boot 2020.01 through 2020.07 have a regression where u-boot only sees shortname files on the fat filesystem if they have the archive attribute set. The issue was fixed in u-boot 2020.10: https://github.com/u-boot/u-boot/commit/1788a9697f51aebb25623e6216c09304756748ff Are there plans to update u-boot-master port to 2020.10? The issue doesn't affect images created by makefs which sets the flag. When doing custom steps (newfs_msdos, mount, copy loader.efi to EFI/BOOT/BOOTARM.EFI and umount),if the source file is on UFS, the target file will not have UF_ARCHIVE set. u-boot will fail to see BOOTARM.EFI and the system will not boot. Specifically, this happened to me with u-boot-orangepi-pc. 0040c440  42 4f 4f 54 41 52 4d 20  45 46 49 00 00 83 d3 9e |BOOTARM EFI.....| 0040c450  5f 51 5f 51 00 00 d3 9e  5f 51 8f 00 a8 a7 08 00  |_Q_Q...._Q......| Thanks, Guy Yur