Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Asterfusion recovery image

Subject: Rare project developers

List archive

Re: [rare-dev] Asterfusion recovery image


Chronological Thread 
  • From: Alexander Gall <>
  • To: mc36 <>
  • Cc: Frederic LOUI <>, <>
  • Subject: Re: [rare-dev] Asterfusion recovery image
  • Date: Wed, 8 Mar 2023 08:57:10 +0100

On Tue, 7 Mar 2023 22:14:02 +0100, mc36 <> said:

> ONIE:/ #
> ONIE:/ #
> ONIE:/ #
> ONIE:/ #
> ONIE:/ # onie-self-update
> http://files.mchome.nop.hu/inet/barefoot/onie-updater-x86_64-asterfusion_x312p-r0-20230307.bi
> n
> Notice: Invalid TLV header found. Using default contents.
> Notice: Invalid TLV checksum found. Using default contents.

Not sure where this comes from but it seems harmless.

> Info: Attempting
> http://files.mchome.nop.hu/inet/barefoot/onie-updater-x86_64-asterfusion_x312p-r0-20230307.bin
> ...
> Connecting to files.mchome.nop.hu (10.10.10.10:80)
> installer 100%
> |**********************************************************************|
> 12101k 0:00:00 ETA
> Verifying image checksum ... OK.
> Preparing image archive ... OK.
> ERROR:ONIE: Machine mismatch
> Running platform : x86_64-switch_os-r0
> Update Image platform: x86_64-asterfusion_x312p-r0

So the updater refuses to work on the currently installed unbranded
ONIE. I've looked through the scripts and it seems that the installer
contained in the onie-updater accepts a flag "-f" to bypass this
check. Even though the docs for the onie-self-update command don't
mention it, I think you should be able to pass the "-f" flag to the
updater like this (/bin/onie-self-update is just another shell script,
see how the cli_static_update_parms variable gets set there):

# onie-self-update <URL> -f

Please try this. If it doesn't work, you can als try to trick the
installer by replacing x86_64-switch_os-r0 with
x86_64-asterfusion_x312p-r0 in /etc/machine.conf

If none of this works, we would be back to using the recovery iso
image on USB but you said that doesn't work either :( Then we're
starting to run out of options...

--
Alex

> Source URL:
> http://files.mchome.nop.hu/inet/barefoot/onie-updater-x86_64-asterfusion_x312p-r0-20230307.bin
> Failure: Unable to install image:
> http://files.mchome.nop.hu/inet/barefoot/onie-updater-x86_64-asterfusion_x312p-r0-20230307.bin
> ONIE:/ #
> ONIE:/ #
> ONIE:/ #


> On 3/7/23 11:49, Alexander Gall wrote:
>> On Tue, 7 Mar 2023 11:00:37 +0100, mc36 <> said:
>>
>>> so your first mail yesterday evening was with the .iso file thats what i
>>> did
>>> now please gimme the right command please
>>
>> onie-self-update
>> http://hydra.nix.net.switch.ch/RARE/asterfusion/onie-updater-x86_64-asterfusion_x312p-r0
>>
>>> thx
>>> cs
>>
>>
>>> On 3/7/23 10:05, Alexander Gall wrote:
>>>> On Tue, 7 Mar 2023 09:03:25 +0100, mc36 <> said:
>>>>
>>>>> wait what?
>>>>> imho it's the same iso but different url to keep the 80-20 alive, and i
>>>>> used the onie-update-my-shit right?
>>>>
>>>> There is one iso and one non-iso file at
>>>> http://hydra.nix.net.switch.ch/RARE/asterfusion/ (apart from the RARE
>>>> installer "onie-installer.bin"). The non-iso, called
>>>> "onie-updater-x86_64-asterfusion_x312p-r0" is a self-extracting shell
>>>> script and is meant to be used with the onie-self-update
>>>> command. AFAICT, you're trying to feed the .iso to onie-self-update,
>>>> which doesn't work.
>>>>
>>>> Hope this makes it clear :)
>>>>
>>>>> thanks,
>>>>> cs
>>>>
>>>>> On 3/7/23 08:42, Alexander Gall wrote:
>>>>>> On Tue, 7 Mar 2023 08:35:38 +0100, mc36 <> said:
>>>>>>
>>>>>>> alex it is the same image but served from my nas.... come on please
>>>>>>
>>>>>> You're confusing me. From your nas or not, the .iso file is the wrong
>>>>>> one to use with onie-self-update.
>>>>>>
>>>>>>> On 3/7/23 08:20, Alexander Gall wrote:
>>>>>>>> Hi csaba
>>>>>>>>
>>>>>>>> On Mon, 6 Mar 2023 21:46:11 +0100, mc36 <> said:
>>>>>>>>
>>>>>>>>> ONIE:/ #
>>>>>>>>> ONIE:/ # onie-self-update
>>>>>>>>> http://files.mchome.nop.hu/inet/barefoot/onie-recovery-x86_64-asterfusion_x312p-20230306.iso
>>>>>>>>
>>>>>>>> This is the iso image that should go on the USB stick for the second
>>>>>>>> method I've described. For the onie-self-update method you should
>>>>>>>> use
>>>>>>>> http://hydra.nix.net.switch.ch/RARE/asterfusion/onie-updater-x86_64-asterfusion_x312p-r0
>>>>>>>>
>>>>>>>> I hope this works. And don't forget to do the "ONIE embed"
>>>>>>>> afterwards.
>>>>>>>> Once the embed has succeeded, you should be able to check like this:
>>>>>>>>
>>>>>>>> ONIE:/ # . /etc/machine.conf
>>>>>>>> ONIE:/ # echo $onie_machine
>>>>>>>>
>>>>>>>> That should print something like "asterfusion_x312p". If it doesn't,
>>>>>>>> you should probably try the method with the ISO image and the USB
>>>>>>>> stick.
>>>>>>>>



Archive powered by MHonArc 2.6.24.

Top of Page