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

Re: Installing Debian Jessie on an ARM board



On Wed, 2 Dec 2015 14:26:35 +0200
Alexey Smishlayev <alexey@xtech2.lv> wrote:

> I figured out that in order to use USB drive as my root file system I 
> have to set bootargs to include "root=/dev/sda2 rootwait".
> 
> My question is, how can I launch the Debian installer to install
> distro on the /dev/sda2 partition?

You've already got the kernel (not the same image that DI would install)
and a working bootloader (probably not the same as DI would use) and all
you need is the rootfs. You won't likely be using the partition manager
of DI or RAID or LVM setup. At that point, there's not much of DI that
you actually need - all DI will do from this point is debootstrap and
create users.

It's simpler to create the rootfs directly on the external USB
hard drive and then just boot it. You can use debootstrap and QEMU.
(qemu-user-static package)

$ sudo debootstrap --arch armhf --foreign jessie /mnt/external-drive
$ sudo cp /usr/sbin/qemu-arm-static /mnt/external-drive/usr/bin/
$ sudo chroot /mnt/external-drive
# ./debootstrap/debootstrap --second-stage
# passwd

At that point, you have a normal Jessie system, running under emulation,
configure as you want and then umount and attach to the board.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: pgpK3g9fEZc5x.pgp
Description: OpenPGP digital signature


Reply to: