User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

OTP usb bit

Thu Jun 28, 2018 10:28 am

Hi! me again. As i was reading over booting a raspberry pi from a USB storage, it says there is a one time programmable bit. If i programmed this bit, does this mean i will only be able to boot this raspberry pi from USB? Does this mean i cant ever boot it again from a sd card again?
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
procount
Posts: 1988
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: OTP usb bit

Thu Jun 28, 2018 10:33 am

DarkPlatinum wrote:
Thu Jun 28, 2018 10:28 am
If i programmed this bit, does this mean i will only be able to boot this raspberry pi from USB?
No, it just adds another boot option for you.
DarkPlatinum wrote:
Thu Jun 28, 2018 10:28 am
Does this mean i cant ever boot it again from a sd card again?
EDIT: No, it will always try to boot from the SD card like it did before, but if one isn't fitted, it will look for a bootable FAT partition on any attached USB devices.

I believe the latest 3B+ models have this bit set in the factory anyway.
Last edited by procount on Thu Jun 28, 2018 12:30 pm, edited 1 time in total.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 10:40 am

Oh ok thanks! Are there any downsides from enabling this?
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
DougieLawson
Posts: 37109
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: OTP usb bit

Thu Jun 28, 2018 11:56 am

DarkPlatinum wrote:
Thu Jun 28, 2018 10:40 am
Oh ok thanks! Are there any downsides from enabling this?
No. If it can't find a bootable SDCard it attempts to boot a USB device. So reverting to SDCards is easy.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

epoch1970
Posts: 4250
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: OTP usb bit

Thu Jun 28, 2018 12:16 pm

procount wrote:
Thu Jun 28, 2018 10:33 am
No, it means if you have a bootable USB stick inserted at boot time, it will try to boot from that first.
Not true. It always tries the SD first.
If USB OTP is set, it will try USB (mass storage, network) next.
https://www.raspberrypi.org/documentati ... ootflow.md
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
procount
Posts: 1988
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: OTP usb bit

Thu Jun 28, 2018 12:31 pm

Yes, sorry - my memory failed me. I have updated my post accordingly.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 12:31 pm

DougieLawson wrote:
Thu Jun 28, 2018 11:56 am
DarkPlatinum wrote:
Thu Jun 28, 2018 10:40 am
Oh ok thanks! Are there any downsides from enabling this?
No. If it can't find a bootable SDCard it attempts to boot a USB device. So reverting to SDCards is easy.
Thanks for your help!
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 3:04 pm

Followed the Usb mass storage tutorial but im not getting the

Code: Select all

vcgencmd otp_dump | grep 17:
17:3020000a
im getting

Code: Select all

$ vcgencmd otp_dump | grep 17:
17:1020000a
also after cloning my rpi image iget a new boot.bak folder. the original boot folder is empty. i logged in as root and copy paste files from boot.bak to boot.

both config files in boot and boot.bak have arm freq of 1250, but im only getting 1200 mhz?

how do i get the correct code?
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 3:35 pm

Looks like I have unmounted the boot partition on boot. Where is the boot partition supposed to be mounted?

My settings are: Mount at start up, defaults, noatime, mount point : / , identify as /dev/mmcblk0p1, file system fat.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 3:41 pm

On opening raspberry pi configuration application:

"The raspberry pi configuration application can only modify a standard configuration.
Your configuration appears to have been modified by other tools, and so this's application cannot be used on your system.

In order to use this application, you need to have the latest firmware installed, device tree enabled and the lightdm application installed"
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
DarkPlatinum
Posts: 866
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: OTP usb bit

Thu Jun 28, 2018 3:53 pm

Let me make a new thread
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

User avatar
HawaiianPi
Posts: 5202
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: OTP usb bit

Thu Jun 28, 2018 10:49 pm

Yikes! Don't do that from a modified or overclocked OS! :shock:

Start with a plain old stock, unmodified Raspbian Stretch imaged SD card. The Lite version will be fine for this.

Only edit the config.txt file to add the command to set the OPT bit with no other changes.

Boot that card in your system and check the bit status (might have to reboot).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Beginners”