Re: Re : Re: [opensuse-arm] Transactional update on RPi4

2020-06-29 Thread Ludwig Nussel
Am 29.06.20 um 10:50 schrieb Guillaume GARDET:
> - Ludwig Nussel  a écrit :
>> Am 29.06.20 um 10:05 schrieb Guillaume Gardet:
>>>> From: Ludwig Nussel 
>>>> Sent: 29 June 2020 09:59
>>>> To: opensuse-arm@opensuse.org
>>>> Subject: Re: [opensuse-arm] Transactional update on RPi4
>>>>
>>>> Am 28.06.20 um 23:03 schrieb Bill Merriam:
>>>>> I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated
>>>>> and used Raspbian to flash the latest firmware.  I wasn't sure how to
>>>>> flash the firmware from openSUSE.
>>>>
>>>> I guess it would make sense to document that process in the wiki (eg
>>>> https://en.opensuse.org/HCL:Raspberry_Pi4). Anyone?
>>>
>>> This should be available now in Tumbleweed with
>> raspberrypi-firmware-eeprom package.
>>
>> Ah, good to know. Should we include that package by default in the
>> rpi4 images then? Makes me a bit nervous though as a firmware
>> upgrade cannot be rolled back as the rest of MicroOS promises.
>
> This package should installed automatically in RPi4 by zypper thanks
> to the 'Supplements: modalias(of:N*T*Cbrcm,bcm2711*C*)'

Only if you run "zypper inr" or install via yast and the package is
actually on the medium though, right? The only place where the
package should appear automatically is the online repo. So needs
adjustments of 000package-groups resp kiwi files to make sure the
DVD and appliances contain it.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\
 V_/_  http://www.suse.com/
SUSE Software Solutions Germany GmbH, HRB 36809 (AG Nürnberg), GF: Felix
Imendörffer
-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



Re : Re: [opensuse-arm] Transactional update on RPi4

2020-06-29 Thread Guillaume GARDET


- Ludwig Nussel  a écrit :
> Am 29.06.20 um 10:05 schrieb Guillaume Gardet:
> >> From: Ludwig Nussel 
> >> Sent: 29 June 2020 09:59
> >> To: opensuse-arm@opensuse.org
> >> Subject: Re: [opensuse-arm] Transactional update on RPi4
> >>
> >> Am 28.06.20 um 23:03 schrieb Bill Merriam:
> >>> I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated
> >>> and used Raspbian to flash the latest firmware.  I wasn't sure how to
> >>> flash the firmware from openSUSE.
> >>
> >> I guess it would make sense to document that process in the wiki (eg
> >> https://en.opensuse.org/HCL:Raspberry_Pi4). Anyone?
> >
> > This should be available now in Tumbleweed with
> raspberrypi-firmware-eeprom package.
> 
> Ah, good to know. Should we include that package by default in the
> rpi4 images then? Makes me a bit nervous though as a firmware
> upgrade cannot be rolled back as the rest of MicroOS promises.

This package should installed automatically in RPi4 by zypper thanks to the 
'Supplements: modalias(of:N*T*Cbrcm,bcm2711*C*)'

> 
> Wouldn't this kind of upgrade normally be a job for fwupd?

It could be, but I guess this would need some work from upstream rpi, to 
upstream fwupd... 

Cheers,
Guillaume


> 
> cu
> Ludwig
> 
> -- 
>  (o_   Ludwig Nussel
>  //\
>  V_/_  http://www.suse.com/
> SUSE Software Solutions Germany GmbH, HRB 36809 (AG Nürnberg), GF: Felix
> Imendörffer
> -- 
> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org
> 

--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



Re: [opensuse-arm] Transactional update on RPi4

2020-06-29 Thread Ludwig Nussel
Am 29.06.20 um 10:05 schrieb Guillaume Gardet:
>> From: Ludwig Nussel 
>> Sent: 29 June 2020 09:59
>> To: opensuse-arm@opensuse.org
>> Subject: Re: [opensuse-arm] Transactional update on RPi4
>>
>> Am 28.06.20 um 23:03 schrieb Bill Merriam:
>>> I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated
>>> and used Raspbian to flash the latest firmware.  I wasn't sure how to
>>> flash the firmware from openSUSE.
>>
>> I guess it would make sense to document that process in the wiki (eg
>> https://en.opensuse.org/HCL:Raspberry_Pi4). Anyone?
>
> This should be available now in Tumbleweed with
raspberrypi-firmware-eeprom package.

Ah, good to know. Should we include that package by default in the
rpi4 images then? Makes me a bit nervous though as a firmware
upgrade cannot be rolled back as the rest of MicroOS promises.

Wouldn't this kind of upgrade normally be a job for fwupd?

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\
 V_/_  http://www.suse.com/
SUSE Software Solutions Germany GmbH, HRB 36809 (AG Nürnberg), GF: Felix
Imendörffer
-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



RE: [opensuse-arm] Transactional update on RPi4

2020-06-29 Thread Guillaume Gardet


> -Original Message-
> From: Ludwig Nussel 
> Sent: 29 June 2020 09:59
> To: opensuse-arm@opensuse.org
> Subject: Re: [opensuse-arm] Transactional update on RPi4
>
> Am 28.06.20 um 23:03 schrieb Bill Merriam:
> > I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated
> > and used Raspbian to flash the latest firmware.  I wasn't sure how to
> > flash the firmware from openSUSE.
>
> I guess it would make sense to document that process in the wiki (eg
> https://en.opensuse.org/HCL:Raspberry_Pi4). Anyone?

This should be available now in Tumbleweed with raspberrypi-firmware-eeprom 
package.
Info from the package description:
**
The update mechanism writes recovery.bin and the EEPROM update image(s)
(pieeprom.upd and vl805.bin) to the EFI partition. The SHA256 hash of the
corresponding images are written to pieeprom.sig and/or vl805.sig. This guards
against file system corruption which could cause the EEPROM to be flashed with
an invalid image. This is not a security check.

At the next reboot the ROM runs recovery.bin which updates EEPROM(s).  If the
update was successful recovery.bin renames itself to RECOVERY.000 to prevent it
from running a second time then resets the system.  The system should then boot
normally.
**

>
> > Transactional servers update their software every day and reboot as
> > needed, without me having to pay attention.  I would like to try that
> > on a RPI4.  Are there TS images for RPI4 already built in OBS or do I
> > need to create one?
>
> That is basically MicroOS. You can get the Tumbleweed version of it from
> https://download.opensuse.org/ports/aarch64/tumbleweed/appliances/
> Or, if you want, you could help with some beta testing of the 15.2 port:
> https://download.opensuse.org/repositories/openSUSE:/Leap:/15.2:/MicroOS:/
> ToTest/images/

You may also use the DVD or NET ISOs to install openSUSE Tumbleweed, MicroOS, 
Leap.
Not tested myself yet.

Cheers,
Guillaume


>
> > Although I run some Pis on SSD drives, on some I just use the SDHC
> > card.  It strikes me that transactional updates might work very well
> > on SDHC cards or maybe not.  Does it help or hurt wear leveling on flash?
>
> There shouldn't be much of a difference to a traditional system. In the end 
> both
> download and install rpms. MicroOS 15.2 and Tumbleweed in general turn on
> rpm's _minimize_writes setting to avoid overwriting files that didn't change
> though.
>
> cu
> Ludwig
>
> --
>  (o_   Ludwig Nussel
>  //\
>  V_/_  http://www.suse.com/
> SUSE Software Solutions Germany GmbH, HRB 36809 (AG Nürnberg), GF: Felix
> Imendörffer
> --
> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.


Re: [opensuse-arm] Transactional update on RPi4

2020-06-29 Thread Ludwig Nussel
Am 28.06.20 um 23:03 schrieb Bill Merriam:
> I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated and
> used Raspbian to flash the latest firmware.  I wasn't sure how to flash
> the firmware from openSUSE.

I guess it would make sense to document that process in the wiki (eg
https://en.opensuse.org/HCL:Raspberry_Pi4). Anyone?

> Transactional servers update their software every day and reboot as
> needed, without me having to pay attention.  I would like to try that
> on a RPI4.  Are there TS images for RPI4 already built in OBS or do I
> need to create one?

That is basically MicroOS. You can get the Tumbleweed version of it from
https://download.opensuse.org/ports/aarch64/tumbleweed/appliances/
Or, if you want, you could help with some beta testing of the 15.2 port:
https://download.opensuse.org/repositories/openSUSE:/Leap:/15.2:/MicroOS:/ToTest/images/

> Although I run some Pis on SSD drives, on some I just use the SDHC
> card.  It strikes me that transactional updates might work very well on
> SDHC cards or maybe not.  Does it help or hurt wear leveling on flash?

There shouldn't be much of a difference to a traditional system. In the
end both download and install rpms. MicroOS 15.2 and Tumbleweed in
general turn on rpm's _minimize_writes setting to avoid overwriting
files that didn't change though.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\
 V_/_  http://www.suse.com/
SUSE Software Solutions Germany GmbH, HRB 36809 (AG Nürnberg), GF: Felix
Imendörffer
-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



[opensuse-arm] Transactional update on RPi4

2020-06-28 Thread Bill Merriam
I have openSUSE 15.2 running very nicely on an RPI4 8GB.  I cheated and
used Raspbian to flash the latest firmware.  I wasn't sure how to flash
the firmware from openSUSE.

I am also cheating and using an SDHC card to load u-boot and hand it a
script that starts USB.  It then finds SUSE on a USB SSD hard drive and
boots perfectly.  I am not sure if that process is necessary but I got
it working and stopped trying to boot without the SDHC card.

Thank you for getting the RPI4 working.

I have several of them running as servers for various things.  I use a
seperate Pi for each thing I run.  It makes it easy to update things
and runs things without running out of RAM.  It does require I update
lots of machines everyday.  

Transactional servers update their software every day and reboot as
needed, without me having to pay attention.  I would like to try that
on a RPI4.  Are there TS images for RPI4 already built in OBS or do I
need to create one?

Although I run some Pis on SSD drives, on some I just use the SDHC
card.  It strikes me that transactional updates might work very well on
SDHC cards or maybe not.  Does it help or hurt wear leveling on flash?

Thanks in advance  for anybody that has thoughts on these questions.

Bill
-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org