Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Support for RaspberryPi4 mass storage boot #842
Comments
|
Hallo Jens, ich habe seit ca. 6 Monaten einen Pi4 mit einer SSD bei mir liegen, der auf den Einsatz Deiner RaspberryMatic wartet,. Der schon länger bekannte Workaround mit SDHC Karte als Bootdevice und dem Betriebssystem auf der SSD funktionierte mit der RaspberryMatic leider nicht. Aktuell ist der offizielle Bootloader für die Besitzer des Pi4 freigegeben worden. Ich war schon voller Vorfreude, da sich sowohl Rasbian als auch LibreELEC mit dem Bootloader fehlrefrei auf dem Pi4 von der SSD starten lässt. Nur leider funktionierte auch mit dem offiziellen Bootloader die RaspberryMatic nicht. Ich würde mich sehr freuen, wenn Du das Startproblem der RaspberryMatic auf dem Pi4 von SSD beheben könntest. :-) Aber jetzt zu meiner Anmerkung !!! Worauf müsste man noch achten und was muss in der RaspberryMatic umgestellt werden, um alle Daten auf die SSD auszulagern, die aktuell auf dem USB Stick gespeichert werden ? 1.) Könnte die RaspberryMatic automatisch erkennen, das die Software auf einer SSD läuft und das umrouten auf die SSD sebstständig durchführen Vorab schon einmal Danke für Deinen extrem guten Job der RaspberryMatic . |
|
FYI: After some own investigation on that matter, I do have unfortunately no good news yet. While the beta bootloader provided by the raspberrypi foundation seem to allow to boot via USB mass storage without the use of any SD card, the second level bootloader RaspberryMatic is using (U-Boot) doesn't seem to support the USB2/USB3 device of the RaspberryPi4 yet. The current debug output I could catch during a debug session ended up with memory initialization in U-Boot. See:
Hence, it seems that U-Boot is not yet able to initialize/use any USB device and thus the USB boot capabilities of the latest RaspberryPi bootloader beta cannot be utilized by RaspberryMatic yet. Thus, we would need to wait until the U-Boot maintainers integrated USB support for the RaspberryPi4 in some future release. So sorry, but I think one has to wait some more time until someone from the u-boot community (see https://github.com/u-boot/u-boot) has picked up the task to integrated USB support for the RaspberryPi4 hardware target in their bootloader. Please note the following discussion link where the missing USB support in U-Boot for the RaspberryPi4 was already confirmed last year: https://www.raspberrypi.org/forums/viewtopic.php?t=244785#p1522518 UPDATE: https://lists.denx.de/pipermail/u-boot/2020-April/405216.html And here are the links to patchsets to get XHCI support integrated. I also already applied these patches and USB2/USB3 seem to work with that in principle. Nevertheless, I am unfortunately still not able to get plain USB boot without any SD card involved running even with these patches applied. U-Boot then still stops hard after the DRAM init without any further (serial) debug output that would help me to get things solved. So this still needs some more attention to get it finally done. But we are already on a good path IMHO because of the U-Boot community having ported the XHCI driver quite successfully. |
|
Hallo, da es aktuell wieder einige Post´s in den Raspberry Foren zum Thema Pi4 Bootloader gibt, wollte ich mal fragen, ob es schon positive Auswirkungen auf den Start der RaspberryMatic gibt, oder ob das Problem seitens des U-Boot noch nicht gelöst werden konnte ? |
|
Ich bin diesbezüglich auch in Wartestellung. Musste aber feststellen das die Möglichkeit RaspberryMatic von USB zu booten weitere Probleme mit sich bringt.
Ich habe meine USB-Boot Erfahrungen (noch mit Pi3B+) hier festgehalten. Anregungen und Ideen zum Thema sind da willkommen. |
|
Eigentlich möchte ich nur das die RasperyMatic von der SSD des Pi4 bootet. Selbst die kleinste SSD ist groß genug, um alle Diagramme, Historian, Red Matic usw abzuspeichern. Somit wäre die Nutzung eines weiteren Hardware Datenträgers wie USB Stick aus meiner Sicht nicht erforderlich ! Es müsste nur möglich sein, den nicht von RasperryMatic formatierten bzw. genutzten Bereich der SSD zu formatieren und somit zu nutzen.
|
Das passiert automatisch wenn du das RaspberryMatic Image auf die SSD "brennst" und von dort den ersten Start durchführst.
Hatte ich getestet. Habe es aber nicht geschafft diese Partition vernünftig nutzbar ins System zu mounten.
Sehe ich grundsätzlich auch so. Somit müsste das System so gestartet werden wie die ova-Version. Dort sind alle Pfade auf die /usr/local Partition ausgerichtet. |
See here for a first beta bootloader for RaspberryPi4 which should support booting from USB/SDD storage:
https://www.raspberrypi.org/forums/viewtopic.php?t=274595