linux - Can I copy the pi1b system to pi2b? -
i have raspberry pi 1b, amd bought pi2b. wonder if can use image tools copy pi1system pi2? may copy pi1's sd card .img
file, use file create data of pi2's micro sd card.
i knew cpu of both pis different. is available? did tried?
if so, will there hidden bugs inside system can't find affect system work properly?
any suggestion appreciated!
short answer
yes can, make sure os has armv7 kernel.
long answer
some quotes official raspberry pi blog:
broadcom willing step new soc, bcm2836. retains features of bcm2835, replaces single 700mhz arm11 900mhz quad-core arm cortex-a7 complex: else remains same, there no painful transition or reduction in stability.
note: armv7 backwards compatible armv6, quote below proves it.
at launch, using same armv6 raspbian userland on both raspberry pi 1 , 2
there hidden issues
it won't caused upgrading pi 1 model b pi 2 model b. caused copying image. if or system hardcoded network interface's mac address potentially cause problem. know it's not best example, sometime people don't think , hardcode things can change. depends on os.
short how-to installing new kernel on raspbian
it's idea backup sd card before making these changes, if goes wrong prevent pi booting.
to backup sd card on linux/os x can use (remember select correct device (sda/sdb/sdc):
sudo dd bs=4m if=/dev/sdx of=raspbian.img
to install armv7 kernel:
sudo apt-get update sudo apt-get install linux-image-rpi2-rpfv sudo apt-get install linux-headers-rpi2-rpfv
check /boot make sure you've got kernel7.img:
ls -lsa /boot
result of ls:
3861 -rwxr-xr-x 1 root root 3953492 feb 24 20:55 kernel.img 3818 -rwxr-xr-x 1 root root 3908696 feb 24 20:55 kernel7.img
if not work can try forcing kernel name modifying /boot/config.txt see http://elinux.org/rpiconfig#boot more options.
other issues
kernel modules wifi drivers or streaming cam in case can cause problems on new armv7 kernel if not supported default see http://l0l.org.uk/2015/02/headaches-whilst-upgrading-to-raspberry-pi-2/
Comments
Post a Comment