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

Re: Installing Debian Jessie on an ARM board



On Wed, 2015-12-02 at 15:49, Alexey Smishlayev wrote:
> On 02/12/15 15:38, Neil Williams wrote:
> >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.
> 
> This makes so much sense, thank you.
> 
> >You can use debootstrap and QEMU. (qemu-user-static package)
> 
> So would I run debootstrap on QEMU using my ARM kernel? I can see that
> rootfs can be "cross-debootstrapped", so it can be done on any host?
> What purpose exactly does the second command (cp) serve?

I'm also trying to debootstrap armhf for Banana Pi (Allwinner A20 SoC)
and using similar procedure Neil described but I'm using
qemu-debootstrap which does everything in one pass, i.e. populate rootfs
and copies qemu-arm-static in the rootfs, chroots in the new rootfs and
start debootstrap second-stage. Command is:
qemu-debootstrap --foreign --arch=armhf --include=ntpdate,less,u-boot,u-boot-tools,flash-kernel,kmod,firmware-linux-free,dialog,fake-hwclock,locales jessie /dev/sdb2

It is described here:
http://techieventures.blogspot.ca/2014/10/install-debian-jessie-with-debian-u.html

> >$ 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.

Best regards


Reply to: