[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Migrate a SD card from olinuxino lime to lime2 ?

On Wed, Jan 03, 2018 at 08:00:44PM +0100, Dominique Dumont wrote:
> I'm going to upgrade my trusty olinuxino A20 lime to a lime2 board. Both board 
> have to NAND or MMC memory and the kernel is installed on a SD card.
> To avoid a re-install from scratch, I'd like to re-use Sd card of the lime 
> board in the new lime2 board. 
> Is is possible to use flash-kernel on the old board to setup the SD card for 
> the new board ? 

Yes, but I believe it's more convenient to do so from your big noisy box.
apt install qemu-user-static
cp -p /usr/bin/qemu-arm-static /mnt/.../usr/bin/
chroot /mnt/.../

This way you avoid editing the tree branch you're sitting on -- if anything
goes wrong, you can't boot the sd card on either the old or the new board to
fix the problem (unless you run entirely from eMMC).

In theory, you can put an USB sd reader into the old board, but it's not
much different from just doing this from the big box.

> I was thinking of:
> - running the following command on the old lime card:
>   FK_MACHINE="Olimex A20-OLinuXino-LIME2" flash-kernel
> - move the SD card in the lime2 board
> - boot the lime2 board and voilà...

Should work, yeah.

I'd recommend making a copy of the card, though -- this way you'll have
_two_ functioning boards.

And, saving an image of the card on a nearby piece of spinning rust --
preferably both before and after the operation, is also a good idea.

// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets.  Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable And Non-Discriminatory prices.

Reply to: