Installation on Rasberry Pi 4B fails

If I remember correctly, this could be a few different things.

Have you loaded raspberry pi OS? Does that work? And do you know the board PCB Revision?

At the beginning of the wiki page Adolf recommended, there are Raspberry Pi PCB Revision that causes issues. I only have Revision 1.1 and 1.2 boards so I haven’t seen this issue.

Search:
https://community.ipfire.org/search?q=whilst%20initialising%20SD%20order%3Alatest

and look for your error -22


EDIT:

Load up the the Raspberry software and find your PCB Revision


EDIT2: this might help.