Hi, I have some issues booting a Raspi 4 (Model B, 2GB RAM) from USB. It simply insists on having a SD-card. Following [1] I updated the firmware to the latest version coming with Tumbleweed (2022.03.01) Additionally the parameter program_usb_boot_mode=1 was applied to /boot/efi/config.txt followed by a reboot Both showed no effect, still no boot from USB possible. Any ideas what to try? Thanks Axel [1] https://en.opensuse.org/HCL:Raspberry_Pi4#From_a_running_system_on_the_RPi
On 25.03.22 at 15:54 Axel Braun wrote:
Both showed no effect, still no boot from USB possible. Any ideas what to try?
I think there is a flag that you need to set within the firmware, some hexadecimal value that tells it to try USB first, then SD-Card and so on. I can try to find the link later, already a while ago I had to do that... Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Hello Johannes, Am Freitag, 25. März 2022, 16:17:46 CET schrieb Johannes Kastl:
On 25.03.22 at 15:54 Axel Braun wrote:
Both showed no effect, still no boot from USB possible. Any ideas what to try?
I think there is a flag that you need to set within the firmware, some hexadecimal value that tells it to try USB first, then SD-Card and so on.
According to various sources on the INet this value is set with the parameter program_usb_boot_mode=1 and verified with vcgencmd otp_dump | grep 17: This command does not exist in openSUSE - anyone knows which to use instead?
I can try to find the link later, already a while ago I had to do that...
Much appreciated, thanks Axel
On 26.03.22 09:31, Axel Braun wrote:
According to various sources on the INet this value is set with the parameter program_usb_boot_mode=1 and verified with vcgencmd otp_dump | grep 17:
This command does not exist in openSUSE - anyone knows which to use instead?
Just boot a raspi-OS SD Card once and do the firmware-update / boot config from there ;-) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Am Samstag, 26. März 2022, 13:10:08 CEST schrieb Stefan Seyfried:
On 26.03.22 09:31, Axel Braun wrote: ...
This command does not exist in openSUSE - anyone knows which to use instead? Just boot a raspi-OS SD Card once and do the firmware-update / boot config from there ;-)
Well, even that did not work as expected: I got the actual Raspian OS and tried echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt first - No boot from USB Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well! I set this to 0x3 (USB Boot), which was an unlucky choice, and ended up in a red and green LED lit permanently - and nothing more happening. Finally I used the rpi-imager to write a little SD card with the USB Bootloader....that worked. BOOT_ORDER=0xf14 is now set. I have adapted the Wiki accordingly. Cheers Axel [1] https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspbe...
On 28.03.22 19:00, Axel Braun wrote:
Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well!
Did you try it? And did it really work? It certainly does not for me. raspi3:~ # rpi-eeprom-config Traceback (most recent call last): File "/usr/bin/rpi-eeprom-config", line 497, in <module> main() File "/usr/bin/rpi-eeprom-config", line 489, in main current_config, config_src = read_current_config() File "/usr/bin/rpi-eeprom-config", line 216, in read_current_config return (shell_cmd(['vcgencmd', 'bootloader_config']), "vcgencmd bootloader_config") File "/usr/bin/rpi-eeprom-config", line 109, in shell_cmd result = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib64/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd' -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Hi,
-----Original Message----- From: Stefan Seyfried <stefan.seyfried@googlemail.com> Sent: 29 March 2022 00:26 To: arm@lists.opensuse.org Subject: Re: Booting RP4 from USB
On 28.03.22 19:00, Axel Braun wrote:
Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well!
Did you try it? And did it really work? It certainly does not for me.
raspi3:~ # rpi-eeprom-config Traceback (most recent call last): File "/usr/bin/rpi-eeprom-config", line 497, in <module> main() File "/usr/bin/rpi-eeprom-config", line 489, in main current_config, config_src = read_current_config() File "/usr/bin/rpi-eeprom-config", line 216, in read_current_config return (shell_cmd(['vcgencmd', 'bootloader_config']), "vcgencmd bootloader_config") File "/usr/bin/rpi-eeprom-config", line 109, in shell_cmd result = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib64/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd'
Vcgencmd is available in raspberrypi-userland package from: https://build.opensuse.org/package/show/hardware/raspberrypi-userland Cheers, Guillaume
-- Stefan Seyfried
"For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Hi Guillaume, On 29.03.22 09:29, Guillaume Gardet wrote:
Hi,
-----Original Message----- From: Stefan Seyfried <stefan.seyfried@googlemail.com>
FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd'
Vcgencmd is available in raspberrypi-userland package from: https://build.opensuse.org/package/show/hardware/raspberrypi-userland
Then it fails just one microsecond later :-) raspi400:~ # rpi-eeprom-config -e ERROR: vcgencmd bootloader_config failed: 255 b'' b'VCHI initialization failed\n' raspi400:~ # vcgencmd measure_temp VCHI initialization failed I just have an SD card with raspi OS handy to do the proprietary stuff. Same as having a Windows installation for updating the BIOS on laptops :-P -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
On 29/03/2022 11:27, Stefan Seyfried wrote:
Hi Guillaume,
On 29.03.22 09:29, Guillaume Gardet wrote:
Hi,
-----Original Message----- From: Stefan Seyfried <stefan.seyfried@googlemail.com>
FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd'
Vcgencmd is available in raspberrypi-userland package from: https://build.opensuse.org/package/show/hardware/raspberrypi-userland
Then it fails just one microsecond later :-)
raspi400:~ # rpi-eeprom-config -e ERROR: vcgencmd bootloader_config failed: 255 b'' b'VCHI initialization failed\n'
raspi400:~ # vcgencmd measure_temp VCHI initialization failed
Would you mind to open a bug so that we can track that? Thanks! Matthias
I just have an SD card with raspi OS handy to do the proprietary stuff. Same as having a Windows installation for updating the BIOS on laptops :-P
On 29.03.22 13:07, Matthias Brugger wrote:
Would you mind to open a bug so that we can track that?
https://bugzilla.opensuse.org/show_bug.cgi?id=1197645 I was assuming that the raspberrypi-userland stuff only works with downstream kernels (also due to its unavailability in non-forbidden repos ;-)) or I would have reported that earlier. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Hi Stefan,
Gesendet: Montag, 28. März 2022 um 22:26 Uhr Von: "Stefan Seyfried" <stefan.seyfried@googlemail.com> An: arm@lists.opensuse.org Betreff: Re: Booting RP4 from USB
On 28.03.22 19:00, Axel Braun wrote:
Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well!
Did you try it? And did it really work? It certainly does not for me.
Yes, see https://paste.opensuse.org/48150002 Note I use a Raspi4 Cheers Axel
On 29.03.22 13:06, Axel Braun wrote:
Hi Stefan,
Gesendet: Montag, 28. März 2022 um 22:26 Uhr Von: "Stefan Seyfried" <stefan.seyfried@googlemail.com> An: arm@lists.opensuse.org Betreff: Re: Booting RP4 from USB
On 28.03.22 19:00, Axel Braun wrote:
Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well!
Did you try it? And did it really work? It certainly does not for me.
Yes, see https://paste.opensuse.org/48150002
Leap or tumbleweed? vcgencmd works on the TW raspi3 but fails on the Leap15.3 raspi400... But I still wonder how you manage to do this without vcgencmd installed...
Note I use a Raspi4
raspi400 in my case, which should be similar enough, I guess. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Hello Stefan Am Dienstag, 29. März 2022, 14:07:58 CEST schrieben Sie:
On 29.03.22 13:06, Axel Braun wrote:
Hi Stefan,
Gesendet: Montag, 28. März 2022 um 22:26 Uhr Von: "Stefan Seyfried" <stefan.seyfried@googlemail.com> An: arm@lists.opensuse.org Betreff: Re: Booting RP4 from USB
On 28.03.22 19:00, Axel Braun wrote:
Next I found that sudo -E rpi-eeprom-config -e allows you to change the boot order as documented here [1] - note this works from a running openSUSE system as well!
Did you try it? And did it really work? It certainly does not for me.
Yes, see https://paste.opensuse.org/48150002
Leap or tumbleweed? vcgencmd works on the TW raspi3 but fails on the Leap15.3 raspi400...
Leap 15.3, in case you are interested: https://www.axxite.com/gnuhealth40-Leap15.3-XFCE-raspi4-20220326.img.xz
But I still wonder how you manage to do this without vcgencmd installed...
No idea, just tried.....
Note I use a Raspi4
raspi400 in my case, which should be similar enough, I guess.
Yes, that should work a well (your prompt said 'Raspi3') Cheers Axel -- Dr.-Ing. Axel K. Braun M: +49.173.7003.154 T: @coogor Matrix/Elements: @docb:matrix.org PGP Fingerprint: 2E7F 3A19 A4A4 844A 3D09 7656 822D EB64 A3BA 290D Public Key available at http://www.axxite.com/axel.braun@gmx.de.asc Personal Freedom starts with free/libre Software ThinkPad X1 Extreme running openSUSE Tumbleweed 20220324
participants (7)
-
Axel Braun
-
Axel Braun
-
Axel Braun
-
Guillaume Gardet
-
Johannes Kastl
-
Matthias Brugger
-
Stefan Seyfried