Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReaR on Raspberry Pi: Rear package for ARM #1197

Closed
ArnoutVerbeken opened this issue Feb 10, 2017 · 10 comments
Closed

ReaR on Raspberry Pi: Rear package for ARM #1197

ArnoutVerbeken opened this issue Feb 10, 2017 · 10 comments
Assignees
Labels
enhancement Adaptions and new features fixed / solved / done sponsored This issue will get solved on a paid base by ReaR upstream.
Milestone

Comments

@ArnoutVerbeken
Copy link

Hello,

I want to install REAR on an Raspberry3 on Debian Jessie (Raspbian actually), but I can't find suitable package for ARM (for v2.0)

Is it available anywhere? Or how should I install?

Thanks

@gozora
Copy link
Member

gozora commented Feb 12, 2017

Hi @ArnoutVerbeken ,

I don't know if there are some packages for RPI.
But ReaR is pure bash script, all you need is to download ReaR e.g. from https://github.com/rear/rear/releases, untar it and run make install.

This should do the trick.

V.

@gdha
Copy link
Member

gdha commented Feb 13, 2017

@ArnoutVerbeken How do you plan to boot from the rescue image?

@ArnoutVerbeken
Copy link
Author

@gdha I was thinking about a bootable USB stick and then restore to SDcard..?

@didacog
Copy link
Contributor

didacog commented Feb 15, 2017

@gdha

I have plans to do some testings on ARM platforms in near future, I cannot assign me any issue, but I can update this issue when I finish those tests with my results if you are agree.

Also I cannot guarantee any dates to finish my tests :-P

Anyway I can say now that if the SDcard is detected as mmc device, ReaR cannot recreate layout for it because this:

/usr/share/rear/layout/save/GNU/Linux/200_partition_layout.sh

    for disk in /sys/block/* ; do
        blockd=${disk#/sys/block/}
        if [[ $blockd = hd* || $blockd = sd* || $blockd = cciss* || $blockd = vd* || $blockd = xvd* || $blockd = dasd* || $blockd = nvme* ]]

Kind regards,

@gdha gdha self-assigned this Feb 15, 2017
@gdha
Copy link
Member

gdha commented Feb 15, 2017

Indeed, new architectures require new pre-requisites. Looking forward to pull requests.

@ArnoutVerbeken
Copy link
Author

So if I understand it right, not much I can do right now, except being patient and being a tester if needed?

@jsmeix jsmeix changed the title Rear package for ARM ReaR on Raspberry Pi: Rear package for ARM Mar 2, 2017
@gdha gdha added the needs sponsorship This issue will not get solved on a voluntary base by ReaR upstream. label Mar 30, 2017
@jsmeix jsmeix added this to the ReaR future milestone Dec 1, 2017
jsmeix added a commit that referenced this issue Feb 13, 2018
Initial support for ARM (and improved compatibility for all architectures).
It should work with Raspberry Pis, most TI and Allwinner devices.
Currently only OUTPUT=PXE is supported. You need to
manually craft a bootable disk with the kernel and initrd.
Automatic bootloader detection is not implemented.
You need to set BOOTLOADER to either "ARM", which is
a dummy and does nothing, or "ARM-ALLWINNER" which
will backup and restore the Allwinner bootloader.
For Raspberry and most TI devices it should be enough to
include the first fat partition (containing the MLO or bootcode.bin)
in the backup to backup the bootloader.
Currently it was tested only on an Allwinner PcDuino.
Testing and adaptions for other ARM devices is needed,
cf. #1197
@jsmeix
Copy link
Member

jsmeix commented Feb 13, 2018

Since #1662 is merged
I consider this issue to be at least initially solved.

Now since @Lukey3332 implemented the basics for ARM support
it should be relatively easy for other ARM users to further
enhance and adapt that to support more ARM devices
in particular Raspberry Pi.

@jsmeix jsmeix closed this as completed Feb 13, 2018
@jsmeix jsmeix added fixed / solved / done sponsored This issue will get solved on a paid base by ReaR upstream. enhancement Adaptions and new features and removed discuss / RFC needs sponsorship This issue will not get solved on a voluntary base by ReaR upstream. labels Feb 13, 2018
@jsmeix jsmeix modified the milestones: ReaR future, ReaR v2.4 Feb 13, 2018
@jsmeix
Copy link
Member

jsmeix commented Feb 13, 2018

@ArnoutVerbeken

FYI:

How you could test the current ReaR GitHub master code:

Basically "git clone" it into a separated directory and then
configure and run ReaR from within that directory like:

# git clone https://github.com/rear/rear.git

# mv rear rear.github.master

# cd rear.github.master

# vi etc/rear/local.conf

# usr/sbin/rear -D mkbackup

Note the relative paths "etc/rear/" and "usr/sbin/".

In general regarding how to work on issues in ReaR
see the sections
"Debugging issues with Relax-and-Recover"
"How to adapt and enhance Relax-and-Recover"
"How to contribute to Relax-and-Recover"
at
https://en.opensuse.org/SDB:Disaster_Recovery

@Danrancan
Copy link

Has anyone been able to solve this issue? Why was this closed? OUTPUT=PXE is the only support for ARM. Can we develop a full raspberry pi implementation of this?

@gdha
Copy link
Member

gdha commented May 26, 2022

@Danrancan Unfortuntely, no-one contributed any ARM64 code for ReaR as far as I know except for the message around PXE booting. However, the PXE booting itself is not the biggest hurdle, but recovering the PI itself:

  • the rescue image creation
  • the different disk types are tricky
  • make the target PI bootable again
  • and other unkowns

The question these days is who is willing to spent time on this for free? Via a team of persons it might be possible...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features fixed / solved / done sponsored This issue will get solved on a paid base by ReaR upstream.
Projects
None yet
Development

No branches or pull requests

6 participants