Skip to content

Alternative download location for firmware? #5114

@mikepurvis

Description

@mikepurvis

Currently librealsense downloads the latest firmware from an S3 bucket at configure time, here:

string(REGEX MATCH "D4XX_RECOMMENDED_FIRMWARE_VERSION \"([0-9]+.[0-9]+.[0-9]+.[0-9]+)\"" _ ${ver})
set(D4XX_FW_VERSION ${CMAKE_MATCH_1})
message(STATUS "D4XX_FW_VERSION: ${D4XX_FW_VERSION}")
set(D4XX_FW_SHA1 0f91ab8cce99e845c1dc9c270bbbefb12a6b1521)
set(D4XX_FW_URL "http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/RS4xx/FW")
string(REGEX MATCH "SR3XX_RECOMMENDED_FIRMWARE_VERSION \"([0-9]+.[0-9]+.[0-9]+.[0-9]+)\"" _ ${ver})
set(SR3XX_FW_VERSION ${CMAKE_MATCH_1})
message(STATUS "SR3XX_FW_VERSION: ${SR3XX_FW_VERSION}")
set(SR3XX_FW_SHA1 55237dba5d7db20e7c218975375d05b4210e9460)
set(SR3XX_FW_URL "http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/SR300/FW")

This behaviour can be turned off by passing -DINTERNET_CONNECTION=0 to CMake, but it would be nice to instead be able to point to a local/elsewhere mirror for these assets. This could be as simple as setting the two lines to something like:

set(FW_URL_PREFIX "http://realsense-hw-public.s3-eu-west-1.amazonaws.com" CACHE STRING)
set(D4XX_FW_URL "${FW_URL_PREFIX}/Releases/RS4xx/FW")
set(SR3XX_FW_URL "${FW_URL_PREFIX}/Releases/SR300/FW")

So that a user would have the option of passing an alternative base URL in with -DFW_URL_PREFIX=http://path/to/my/mirror.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions