Migration from Rpi1 -> Rpi2
|
7th Jul, 2017, 04:26 AM
Post: #1
|
|||
|
|||
Migration from Rpi1 -> Rpi2
Having seen that this should now work I tried it today.
I took a microSD and flashed the pi1 backup to it, placed it in a SD adaptor and tested it in Pi1 - No problem. It worked as expected. I removed from /boot/config.txt all the cpu/memory clock speeds and also the mpeg licence. I placed the microSD into a Pi2 and it seems to get stuck in the boot process. The activity light flickers a little and then it just sits there. I have no screen attached so can't see how far it got, maybe try again tomorrow..... Is there something else I need to do, or is this not possible with Xbian image? Thanks. |
|||
7th Jul, 2017, 05:39 AM
Post: #2
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(7th Jul, 2017 04:26 AM)Skywatch Wrote: Having seen that this should now work I tried it today. You do not have to remove/change mpeg license. Up to 8 comma separated licenses can be put there (I have three configured ) Quote:I placed the microSD into a Pi2 and it seems to get stuck in the boot process. The activity light flickers a little and then it just sits there. I have no screen attached so can't see how far it got, maybe try again tomorrow..... Yes / No I did this when I bought first RPi2 (about two years ago), was too lazy to configure everything from scratch . But you have to install Kernel for RPi2 when card is still plugged in a RPi1, because kernel built for RPi1 does NOT support RPi2/3 and vice versa. |
|||
19th Jul, 2017, 06:22 PM
Post: #3
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
Thanks for the helpful info. Sorry for delay in replying, been in bed with a bad back.
As for the update to pi2, it sounds like a recipe for disaster based on my previous luck, so will leave it a while until I have more time to look into it. Maybe in a month or two..... |
|||
20th Jul, 2017, 04:34 AM
Post: #4
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(19th Jul, 2017 06:22 PM)Skywatch Wrote: Thanks for the helpful info. Sorry for delay in replying, been in bed with a bad back. Oops, does not sound good Quote:As for the update to pi2, it sounds like a recipe for disaster based on my previous luck, so will leave it a while until I have more time to look into it. Maybe in a month or two..... Ok, so you know what you have to do then ... |
|||
20th Jul, 2017, 06:56 PM
Post: #5
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(20th Jul, 2017 04:34 AM)Nachteule Wrote: Ok, so you know what you have to do then ... Yes / No In theory it looks simple. Power up Pi1, install pi2 kernel, power down and move card to pi2. In practice I need to do more research and then check in with what I think the process is before I do it and make a mess of things. It's a new learning curve for me, that's going to do me some good I hope. As a hint, is the kernel for pi2 in xbian github, or where? |
|||
24th Jul, 2017, 07:53 PM
(This post was last modified: 24th Jul, 2017 10:24 PM by Nachteule.)
Post: #6
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(20th Jul, 2017 06:56 PM)Skywatch Wrote:(20th Jul, 2017 04:34 AM)Nachteule Wrote: Ok, so you know what you have to do then ... Learning by doing Quote:In theory it looks simple. Power up Pi1, install pi2 kernel, power down and move card to pi2. Kernel package is like all other packages in XBian's repository, for example you can find kernel for rpi2/3 here You have to do a bit more: 1) you have to modify file /etc/apt/sources.list.d/xbian change everything you find rpi_jessie (or rpi_stretch) to rpi2_jessie (resp rpi2_stretch) 2) sudo apt-get update # refresh package list 3) cd /tmp; apt-get download linux-image-bcm2836 # download latest kernel package for rpi2/3 4) sudo dpkg --force-all -r xbian-package-kernel # remove rp1 kernel 5) sudo dpkg -i linux-image-bcm2836*.deb # install rpi2/3 kernel 6) if dpkg complains any dependency errors, you have to run sudo apt-get install -f 7) shut down and move sd-card into rpi2 |
|||
29th Jul, 2017, 07:04 PM
Post: #7
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
@Nachteule
Thank you for taking the time to post this. Clear step-by step instructions. Marvelous! - This should be in the FAQ on the main web page for others who might be going down the same route... I'll be able to try this much sooner now |
|||
29th Jul, 2017, 08:29 PM
Post: #8
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(29th Jul, 2017 07:04 PM)Skywatch Wrote: @Nachteule When you have finished successfully, you can write an article on our wiki |
|||
25th Aug, 2017, 06:30 AM
Post: #9
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
You must be well clever - it worked a treat!
OK, I know there was a little test in the first line, but I got past that one A lot of errors came up, but I simply ignored them and continued. End result is new pi2 working with all settings retained. Backups, SSH keys, DAC, LCD, RTC, FSTAB all as before Thank you so much....I must get you a beer one day! %: |
|||
25th Aug, 2017, 07:36 PM
Post: #10
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(25th Aug, 2017 06:30 AM)Skywatch Wrote: You must be well clever - it worked a treat! Congratulations Quote:OK, I know there was a little test in the first line, but I got past that one I suppose step 4 produced them, that's why you have to use option --force-all Quote:End result is new pi2 working with all settings retained. Backups, SSH keys, DAC, LCD, RTC, FSTAB all as before Oh, I forgot: you should have to change url in file /etc/apt/sources.list, there is still raspbian repo configured, but you have to set up a debian repo there. This could cause issues when running updates Quote:Thank you so much....I must get you a beer one day! %: Cheers |
|||
26th Aug, 2017, 09:42 PM
Post: #11
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
(25th Aug, 2017 07:36 PM)Nachteule Wrote: Oh, I forgot: you should have to change url in file /etc/apt/sources.list, there is still raspbian repo configured, but you have to set up a debian repo there. Maybe you aren't so clever after all I made the changes and now when I go to upgrade in xbian-config it says 437 packages selected for upgrade. Does this sound right to you? I remember when going to jessie from wheezy there was a big upgrade like this, but I try to update I get a W gpg error and nothing will update...??? So an authentication problem it seems.... Maybe you can regain your clever status with this one! |
|||
26th Aug, 2017, 11:36 PM
Post: #12
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
I fixed it! - One day I might get as clever as you after all
|
|||
27th Aug, 2017, 12:49 AM
Post: #13
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
...or maybe not. I can update now but cannot upgrade. I get a DPKG error(1). I have tried a lot of things I have seen on the web and so far nothing works. No matter what I tried so far I get. Terminal insserv: Service mountkernfs has to be enabled to start service cgmanager insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing package cgmanager (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: cgmanager E: Sub-process /usr/bin/dpkg returned an error code (1) and.... Terminal sudo dpkg --configure -a Setting up cgmanager (0.33-2+deb8u2) ... initctl: Unknown job: K02nfs-common insserv: warning: script 'K02nfs-common' missing LSB tags and overrides initctl: Unknown job: K02udev-finish insserv: warning: script 'K02udev-finish' missing LSB tags and overrides initctl: Unknown job: K02nfs-common initctl: Unknown job: K02udev-finish initctl: Unknown job: S05nfs-common initctl: Unknown job: S01dbus insserv: warning: script 'S01dbus' missing LSB tags and overrides initctl: Unknown job: S01udev-finish initctl: Unknown job: S05nfs-common initctl: Unknown job: S01dbus initctl: Unknown job: S01udev-finish initctl: Unknown job: S05nfs-common initctl: Unknown job: S01dbus initctl: Unknown job: S01udev-finish initctl: Unknown job: S05nfs-common initctl: Unknown job: S01dbus initctl: Unknown job: S01udev-finish initctl: Unknown job: K02nfs-common initctl: Unknown job: K02udev-finish initctl: Unknown job: S05nfs-common initctl: Unknown job: S05mountnfs-bootclean.sh insserv: warning: script 'S05mountnfs-bootclean.sh' missing LSB tags and overrides initctl: Unknown job: S05checkroot-bootclean.sh insserv: warning: script 'S05checkroot-bootclean.sh' missing LSB tags and overrides insserv: Service mountkernfs has to be enabled to start service cgmanager insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing package cgmanager (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: cgmanager |
|||
27th Aug, 2017, 04:38 AM
Post: #14
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
AFAIR I had same problem, but was not able to reproduce it
Please try: Terminal sudo ln -s ../init.d/mountkernfs.sh /etc/rcS.d/S04mountkernfs and after that run again your commands |
|||
27th Aug, 2017, 08:23 AM
Post: #15
|
|||
|
|||
RE: Migration from Rpi1 -> Rpi2
I spent 6 hours trying to figure this out today and nothing I found came even close to that - Thank you.
But it's not over yet. Out of the 437 packages to be upgraded, it stopped with 93 left to go with the following message.... Terminal initctl: Unknown job: S01mountkernfs.sh x x insserv: warning: script 'S01mountkernfs.sh' missing LSB tags x x insserv: Service mountdevsubfs has to be enabled to start serv x x insserv: exiting now! x x update-rc.d: error: insserv rejected the script header x x dpkg: error processing package hdparm (--configure): x x subprocess installed post-installation script returned error x x Errors were encountered while processing: x x hdparm x x E: Sub-process /usr/bin/dpkg returned an error code (1) |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[PROBLEM] Migration from OpenElec? | zurdar | 4 | 10,270 |
14th May, 2015 07:20 PM Last Post: CurlyMo |