Received: from eggs.gnu.org ([2001:4830:134:3::10]:49198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnWMw-00077D-Nw for qemu-devel@nongnu.org; Fri, 23 Sep 2016 15:42:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnWMu-0002qr-Oc for qemu-devel@nongnu.org; Fri, 23 Sep 2016 15:42:45 -0400 References: <6f7cd004-06b6-0ee5-86bc-082aa593ea64@gmail.com> From: "mar.krzeminski" Message-ID: Date: Fri, 23 Sep 2016 21:41:35 +0200 MIME-Version: 1.0 In-Reply-To: <6f7cd004-06b6-0ee5-86bc-082aa593ea64@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] 9p as rootfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org Developers" , qemu-arm And most important, while mounting as roots, error is: [ 1.086235] device: '9p-1': device_add [ 1.087859] 9pnet_virtio: no channels available [ 1.091619] device: '9p-1': device_unregister [ 1.092783] device: '9p-1': device_create_release [ 1.093534] VFS: Cannot open root device "host" or unknown-block(0,0): error -2 Thanks, Marcin W dniu 23.09.2016 o 21:38, mar.krzeminski pisze: > Hello, > > I have a problem in my custom arm machine to use 9p fs as a rootfs. > > 9p command line i qemu: > > /-device virtio-9p-device,fsdev=host_fs,mount_tag=hostfs -fsdev > local,id=host_fs,security_model=none,path=/work/rootfs/ > > Kernel cmd line: > > /--append "root=hostfs rootfstype=9p rootflags=trans=virtio noinitrd > console=ttyS3,115200" > > /Device tree entry: > > / virtio: virtio_mmio@ff0a4000 {// > // compatible = "virtio,mmio";// > // reg = <0xff0a4000 0x200>;// > // interrupts = <0 72 1>;// > // status = "okay";// > // }; > > > / I can mount this fs from kernel using fstab entry: > /hostfs /mnt/host 9p trans=virtio 0 0 > > /Do you have any idea what am I doing wrong? > > Thanks, > Marcin/ > /