* [Qemu-arm] 9p as rootfs
@ 2016-09-23 19:38 ` mar.krzeminski
0 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-23 19:38 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers, qemu-arm
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
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/
/
[-- Attachment #2: Type: text/html, Size: 1471 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] 9p as rootfs
@ 2016-09-23 19:38 ` mar.krzeminski
0 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-23 19:38 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers, qemu-arm
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/
/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-arm] 9p as rootfs
2016-09-23 19:38 ` [Qemu-devel] " mar.krzeminski
@ 2016-09-23 19:41 ` mar.krzeminski
-1 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-23 19:41 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers, qemu-arm
[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]
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/
> /
[-- Attachment #2: Type: text/html, Size: 2296 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] 9p as rootfs
@ 2016-09-23 19:41 ` mar.krzeminski
0 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-23 19:41 UTC (permalink / raw)
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/
> /
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-arm] 9p as rootfs
2016-09-23 19:41 ` [Qemu-devel] " mar.krzeminski
@ 2016-09-27 19:33 ` mar.krzeminski
-1 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-27 19:33 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers, qemu-arm
[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]
So for some reason kernel expect that 9pfs channel will be named
/dev/root (root= seem to be ignored).
Working command line:
Kernel: /root=/dev/root rootfstype=9p rootflags=trans=virtio rw/
Qemu: /-device virtio-9p-device,fsdev=host_fs,mount_tag=/dev/root -fsdev
local,id=host_fs,security_model=none,path=////work/rootfs/
/
Thanks,
Marcin/
/
W dniu 23.09.2016 o 21:41, mar.krzeminski pisze:
> 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/
>> /
>
[-- Attachment #2: Type: text/html, Size: 3211 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] 9p as rootfs
@ 2016-09-27 19:33 ` mar.krzeminski
0 siblings, 0 replies; 8+ messages in thread
From: mar.krzeminski @ 2016-09-27 19:33 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers, qemu-arm
So for some reason kernel expect that 9pfs channel will be named
/dev/root (root= seem to be ignored).
Working command line:
Kernel: /root=/dev/root rootfstype=9p rootflags=trans=virtio rw/
Qemu: /-device virtio-9p-device,fsdev=host_fs,mount_tag=/dev/root -fsdev
local,id=host_fs,security_model=none,path=////work/rootfs/
/
Thanks,
Marcin/
/
W dniu 23.09.2016 o 21:41, mar.krzeminski pisze:
> 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/
>> /
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] 9p as rootfs
2016-09-27 19:33 ` [Qemu-devel] " mar.krzeminski
@ 2016-09-28 7:16 ` Pradeep Kiruvale
-1 siblings, 0 replies; 8+ messages in thread
From: Pradeep Kiruvale @ 2016-09-28 7:16 UTC (permalink / raw)
To: mar.krzeminski; +Cc: qemu-arm, qemu-devel@nongnu.org Developers
Hi Marcin,
Hope you have compiled the qemu with virtfs enabled.i.e --enable-virtfs
And the cli looks like this. But I am working on x86 not ARM.
-fsdev local,id=root,path=${ROOTFS},security_model=none,writeout=immediate
-device virtio-9p-pci,fsdev=root,mount_tag=/dev/root
-Regards,
Pradeep
On 27 September 2016 at 21:33, mar.krzeminski <mar.krzeminski@gmail.com>
wrote:
> So for some reason kernel expect that 9pfs channel will be named /dev/root
> (root= seem to be ignored).
> Working command line:
>
> Kernel: /root=/dev/root rootfstype=9p rootflags=trans=virtio rw/
> Qemu: /-device virtio-9p-device,fsdev=host_fs,mount_tag=/dev/root -fsdev
> local,id=host_fs,security_model=none,path=////work/rootfs/
> /
> Thanks,
> Marcin/
> /
> W dniu 23.09.2016 o 21:41, mar.krzeminski pisze:
>
> 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/
>>> /
>>>
>>
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] 9p as rootfs
@ 2016-09-28 7:16 ` Pradeep Kiruvale
0 siblings, 0 replies; 8+ messages in thread
From: Pradeep Kiruvale @ 2016-09-28 7:16 UTC (permalink / raw)
To: mar.krzeminski; +Cc: qemu-devel@nongnu.org Developers, qemu-arm
Hi Marcin,
Hope you have compiled the qemu with virtfs enabled.i.e --enable-virtfs
And the cli looks like this. But I am working on x86 not ARM.
-fsdev local,id=root,path=${ROOTFS},security_model=none,writeout=immediate
-device virtio-9p-pci,fsdev=root,mount_tag=/dev/root
-Regards,
Pradeep
On 27 September 2016 at 21:33, mar.krzeminski <mar.krzeminski@gmail.com>
wrote:
> So for some reason kernel expect that 9pfs channel will be named /dev/root
> (root= seem to be ignored).
> Working command line:
>
> Kernel: /root=/dev/root rootfstype=9p rootflags=trans=virtio rw/
> Qemu: /-device virtio-9p-device,fsdev=host_fs,mount_tag=/dev/root -fsdev
> local,id=host_fs,security_model=none,path=////work/rootfs/
> /
> Thanks,
> Marcin/
> /
> W dniu 23.09.2016 o 21:41, mar.krzeminski pisze:
>
> 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/
>>> /
>>>
>>
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-09-28 7:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-23 19:38 [Qemu-arm] 9p as rootfs mar.krzeminski
2016-09-23 19:38 ` [Qemu-devel] " mar.krzeminski
2016-09-23 19:41 ` [Qemu-arm] " mar.krzeminski
2016-09-23 19:41 ` [Qemu-devel] " mar.krzeminski
2016-09-27 19:33 ` [Qemu-arm] " mar.krzeminski
2016-09-27 19:33 ` [Qemu-devel] " mar.krzeminski
2016-09-28 7:16 ` Pradeep Kiruvale
2016-09-28 7:16 ` Pradeep Kiruvale
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.