Shop OBEX P1 Docs P2 Docs Learn Events
Booting a P2 off of ROM or OTP PROM or UV-EPROM? — Parallax Forums

Booting a P2 off of ROM or OTP PROM or UV-EPROM?

Does anyone know if this is possible. The main reason is that I don't want that boot code writable or even modifiable by the system, so I can store hash verification functions and the hash of it and other hashes in the boot ROM, and therefore verify the contents of every other bit of storage in the system.
Does anyone know of such a device that P2 (or even P1 for that matter) can boot off of?

Thanks,
Doug

Comments

  • evanhevanh Posts: 16,023
    edited 2024-02-25 14:36

    The old 8-bit parallel bus with a wide address bus, with 32+ pins, no. Best you can do is buy an SPI part with write protect feature. Many of them have a permanent lock option that supposedly can't be unlocked again.
    For Prop1, an I2C part instead.

  • hinvhinv Posts: 1,255

    I found this https://www.analog.com/media/en/technical-documentation/data-sheets/ds28c22.pdf, but how can I be sure that whatever program that loads data from somewhere else in to compare to a hash in this chip is not messed with and bypassing the process altogether if the program isn't in ROM or OTP PROM or UV-EPROM?

  • evanhevanh Posts: 16,023
    edited 2024-02-25 14:47

    Not something I've concerned myself with. I make the system as open and configurable as possible, In my line, if someone messes with the setup and it goes badly then that's on them.

    Safeties are always independent of control. If they also mess with the safeties then that's really on them.

  • hinvhinv Posts: 1,255
    edited 2024-02-25 16:42

    @evanh said:
    The old 8-bit parallel bus with a wide address bus, with 32+ pins, no. Best you can do is buy an SPI part with write protect feature. Many of them have a permanent lock option that supposedly can't be unlocked again.
    For Prop1, an I2C part instead.

    Thanks! I didn't know such feature existed. I found this:

  • hinvhinv Posts: 1,255

    @evanh said:
    Not something I've concerned myself with. I make the system as open and configurable as possible, In my line, if someone messes with the setup and it goes badly then that's on them.

    Safeties are always independent of control. If they also mess with the safeties then that's really on them.

    For most things, I would agree, but I just want to make a secure computer that doesn't run anything I haven't explicitly approved to keep important private data.

Sign In or Register to comment.