summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/2343.toml
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
commit4b927bc37359dec23f67d3427fc982945f24f404 (patch)
tree245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_missing/accel_missing/2343.toml
parentaa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff)
downloademulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz
emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/2343.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/2343.toml39
1 files changed, 39 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/2343.toml b/gitlab/issues/target_missing/host_missing/accel_missing/2343.toml
new file mode 100644
index 00000000..f08dd7de
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/2343.toml
@@ -0,0 +1,39 @@
+id = 2343
+title = "pflash write timeout u-boot@qemu-system-aarch64"
+state = "opened"
+created_at = "2024-05-14T11:23:12.961Z"
+closed_at = "n/a"
+labels = ["workflow::Patch available"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/2343"
+host-os = "Fedora 39, Fedora 40, Debian 12"
+host-arch = "x86_64"
+qemu-version = "QEMU emulator version 8.2.2 (qemu-8.2.2-1.fc40)"
+guest-os = "U-boot bootloader"
+guest-arch = "aarch64"
+description = """Emulating the write into flash of environment variables within U-boot is not possible anymore. This works natively in Fedora 39 which has the 8.1.3 qemu version. Stopped working after transitioning to Fedora 40 which currently comes with 8.2.2, also doesn't work with Debian 12 which has 7.2.9.
+
+The write fails with the following message:
+
+```
+=> saveenv
+Saving Environment to Flash... Un-Protected 2 sectors
+Erasing Flash...
+.. done
+Erased 2 sectors
+Writing to Flash... pflash_write: Write to buffer emulation is flawed
+pflash_write: Write to buffer emulation is flawed
+pflash_write: Write to buffer emulation is flawed
+Flash buffer write timeout at address 4000000 data ffffffffb64f6361
+Timeout writing to Flash
+Protected 2 sectors
+Failed (1)
+```"""
+reproduce = """1. Download or build u-boot for aarch64 qemu. You can extract from u-boot-qemu debian package https://packages.debian.org/unstable/u-boot-qemu .
+2. `truncate -s 64m varstore.img`
+3. `qemu-system-aarch64 -machine virt -cpu cortex-a35 -nographic  -smp 2 -m 1G -bios u-boot.bin -drive if=pflash,format=raw,file=varstore.img,readonly=off,index=1 -d guest_errors,unimp`"""
+additional = """After building versions 8.1.3 and 8.1.4 I found both were working fine regartheless the host OS, the issue was introduced in 8.1.5. 
+After inspecting commits history I drop the following commit [hw/pflash: implement update buffer for block writes (hash:fcc79f2e09550b0461792491965fe202ed2219ae)](https://gitlab.com/qemu-project/qemu/-/commit/fcc79f2e09550b0461792491965fe202ed2219ae) rebuilt and the issue was gone.
+I then recheck all non working versions and both versions 8.2.2 and 7.2.9 also have this commit, this explains why it also doesn't work.
+I attached a trace running with v8.1.5 and v8.1.5 with drop commit.
+[v8.1.5.log](/uploads/04aa0e24e1e16f6bdf29a6e6be587ba1/v8.1.5.log)
+[v8.1.5-drop-fcc79f2e.log](/uploads/206fe958ab78c12542fda3764df978da/v8.1.5-drop-fcc79f2e.log)"""