Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jul 2010
    Posts
    251

    creating a patch questions

    Hi.

    - I'm trying to create a zip based patch that adds/swaps complete files on the target device.
    The patch shows up on my SB Radio under available patches. But installing gives me

    Patch not downloaded, failed to verify SHA checksum.

    But I've literally check the sha1 checksum of the zip file and in the repo.xml a million times. It is correct. What's happening here? Server log shows no errors or warnings, nothing.
    Or is the fact that LMS = v8.1.2 and Radio FW = v7.7.3 r16676 (patched) a problem?

    - Is it possible to use the patch installer on a picoreplayer? Or SqueezePlay?
    And what's the device target shortname? fab4=touch, baby=radio, SqueezePlay=squeezeplay, jivelite=everything else with jivelite? Is it "jivelite"?
    If I add a patch item for "jivelite" and "fab4" does the more specific name (fab4) take precedence over the more general one (jivelite)? Just wondering because the SB Touch also runs jivelite.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,545

    creating a patch questions

    > - I'm trying to create a zip based patch that adds/swaps complete files
    > on the target device.
    > The patch shows up on my SB Radio under available patches. But
    > installing gives me
    >
    > Patch not downloaded, failed to verify SHA checksum.


    Maybe it's failing to download, or it's some https URL the radio can't
    handle, and therefore only a redirect response or something is
    "downloaded"? Hard to tell without sha and URL :-).

    > Or is the fact that LMS = v8.1.2 and Radio FW = v7.7.3 r16676 (patched)
    > a problem?


    That can be a problem, too, but wouldn't complain about the checksum.

    > - Is it possible to use the patch installer on a picoreplayer? Or
    > SqueezePlay?


    Not sure. You'd have to look into the Patch Installer app. Erland wrote
    it for Squeezeplay. But I believe it depends on tools and files
    available on the hardware, which you probably wouldn't have on a SP on
    Windows.

    I'm pretty ure JiveLite is not supported.

    > And what's the device target shortname? fab4=touch, baby=radio,
    > SqueezePlay=squeezeplay, jivelite=everything else with jivelite? Is it
    > "jivelite"?


    I would assume that jivelite is jivelite. Nothing else is jivelite.

    > If I add a patch item for "jivelite" and "fab4" does the more specific
    > name (fab4) take precedence over the more general one (jivelite)? Just
    > wondering because the SB Touch also runs jivelite.


    Fab4 is not using jivelite, but Squeezeplay.

  3. #3
    Senior Member
    Join Date
    Jul 2010
    Posts
    251
    Quote Originally Posted by mherger View Post
    some https URL the radio can't
    handle, and therefore only a redirect response or something is
    "downloaded"?
    Yes, it's a https URL. Seem radio can't handle https (can Touch?). That's probably why.

    Is offering http downloads even possible on github? I couldn't find anything useful on that, always seems to redirect to https.


    Manually patching the SqueezePlay app on a desktop machine should probably not prove too difficult for most people if all you have to do is copy one file and one folder. So SqueezePlay should be ok.
    But I will look into Erlands PatchInstaller, esp. for pCP.


    But let me see if I get this right now: the UI on radio and touch(fab4) devices is called SqueezePlay, and that's where the stand-alone desktop player gets its name from. And jivelite is the UI name on the piCorePlayer. And target="jivelite" would be... piCorePlayer?

    BTW the min and maxversion numbers in a patch repo listing refer to the firmware version of a device, no?

  4. #4
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,290
    Quote Originally Posted by afriend View Post

    Is offering http downloads even possible on github? I couldn't find anything useful on that, always seems to redirect to https.
    I believe they enforce https on github pages in new github accounts: https://docs.github.com/en/github/wo...d-github-pages

    My account is created before June 2016 so I can still host things over http on github. I could probably setup a repository for you under my account if you don’t find another way and don’t mind having me as owner of it. However, I wouldn’t rely on http hosting working via github on longer terms, wouldn’t surprise me if they eventually terminate http support.

    Quote Originally Posted by afriend View Post
    Manually patching the SqueezePlay app on a desktop machine should probably not prove too difficult for most people if all you have to do is copy one file and one folder. So SqueezePlay should be ok.
    But I will look into Erlands PatchInstaller, esp. for pCP.
    It uses os.execute to run a number of native OS commands, at least “rm”, “mkdir” and “patch”, so these needs to be available and support the arguments I’m using. Might work on SqueezePlay on Linux but at least Windows is going to be problematic. You will find the relevant code in _download function here: https://github.com/erland/squeezebox...pplet.lua#L489
    Related to pCP you probably also need to verify that the user running SqueezePlay has write access to the SqueezePlay source. On real Squeezeboxes SqueezePlay runs as root but this might not be the case on other installations.

    Quote Originally Posted by afriend View Post
    But let me see if I get this right now: the UI on radio and touch(fab4) devices is called SqueezePlay, and that's where the stand-alone desktop player gets its name from. And jivelite is the UI name on the piCorePlayer. And target="jivelite" would be... piCorePlayer?
    If “System:getMachine()” is “squeezeplay” the Patch Installer have some logic to identify model based on screen resolution:
    https://github.com/erland/squeezebox...Applet.lua#L97
    Don’t remember if this is relevant for your situation.

    Quote Originally Posted by afriend View Post
    BTW the min and maxversion numbers in a patch repo listing refer to the firmware version of a device, no?
    I think so, at least I’m passing the value of JIVE_VERSION constant to LMS in the jivepatches command when asking LMS for available patches. However, remember that device version and LMS version used to be in sync previously, so it might be worth testing that it works correctly now when LMS has higher version number than the devices.
    Erland Isaksson (My homepage)
    Developer of many plugins/applets
    Starting with LMS 8.0 I no longer support my plugins/applets (see here for more information )

  5. #5
    Senior Member
    Join Date
    Jul 2010
    Posts
    251
    Eventually I decided against creating patches. pCP would be difficult (permissions, sudo) and the latest mod makes the NowPlaying menu item disappear from the home menu on the Radio (even though it works as expected otherwise).
    So for now while it still requires some manual terminal twiddling detailled instructions should help.
    Thank you for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •