Jump to content

[Armbian build PR] - Resolve u-boot infinite boot loop for Banana Pi M5 when usb ssd/hard disk attached


Recommended Posts

Posted

Description

U-boot will go into boot loop when SSD is attached to the USB 3 port. There is a conflict in the patch patch/u-boot/v2022.10/meson64-boot-usb-nvme-scsi-first.patch. The boot loop has been resolved by removing the patch or by placing the priority of USB below MMC.

How Has This Been Tested?

By compiling u-boot.bin from trunk (linux-u-boot-bananapim5-current_23.05.0-trunk) for u-boot v2022.10 and v2023.4 and testing it on Bpi-M5.

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • [x] Test A - Removing patch/u-boot/v2022.10/meson64-boot-usb-nvme-scsi-first.patch
  • [x] Test B - Reordering the Priority of USB to be below MMC.

By executing Test A, BPi-M5 can boot successfully. It shows that the current patch to give higher order priority to usb/nvme/scsi create conflict to the booting process.

Test B reorder the USB to lower priority. The BPi-M5 can still boot successfully without any errors.

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] 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
  • [x] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines