Jump to content

[Armbian build PR] - rockchip64: fix uboot compressed btrfs handling


RSS Bot

Recommended Posts

Description

Fix incorrect data read sometimes in last 4kb of compressed files on btrfs.

In my case only last 2560 bytes of dtb file was broken, so the only issue was warnings in dmesg on boot. Well, last 2560 of vmlinuz was also broken, but fortunately there was only '\0' bytes, so system was functional and this problem was unnoticed.

Patch taken from upstream uboot: https://github.com/u-boot/u-boot/commit/b1d3013d024086c042dbae4ddd99db56bb55b5e7

How Has This Been Tested?

  • [x] Boot from zstd compressed btrfs partition
  • [x] Check uboot loaded kernel sha1sum in uboot console

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines