All of lore.kernel.org
 help / color / mirror / Atom feed
From: vishalthanki@gmail.com (Vishal Thanki)
To: kernelnewbies@lists.kernelnewbies.org
Subject: User Mode Linux
Date: Thu, 17 Nov 2011 17:34:16 +0530	[thread overview]
Message-ID: <CAC3a_SCTJxYvisADvMyKBx52bPe4qgXrchVLVv_=4bhZJ=pFpg@mail.gmail.com> (raw)
In-Reply-To: <CAC3a_SDr1mhQGoHJxOUBiXNYFLw8pm1S6WNWOMuCamUfT+gT4A@mail.gmail.com>

On Wed, Nov 16, 2011 at 9:14 AM, Vishal Thanki <vishalthanki@gmail.com> wrote:
>
> On Tue, Nov 15, 2011 at 8:09 PM, Lakshmipathi.G
> <lakshmipathi.g@gmail.com> wrote:
> > But the 2nd command (i.e. losetup) returns with the error complaining
> > "/dev/loop1" is not present, but I can see /dev/loop[0..7] files
> > present.
> >
> > Try loading the module as -
> >
> > #modprobe loop
>

I have one more question in the same line (i.e. related to UML). I
tried loading an external module (build for ARCH=um type). I am able
to load that module only if i've booted UML with following command:

./linux ubda=<raw_file_system_path>

If i pass the mem parameter, i.e.

./linux ubda=<raw_file_system_path> mem=512M

I am not able to load the module. The error that I am seeing is:

overflow in relocation type 11 val a121c3c0
`tun' likely not compiled with -mcmodel=kernel

I tried to load the tun.ko. This holds true for any manually built
simple hello_world kind of module too (where i added -mcmodel=kernel
parameter in Makefile).

What can be wrong with "mem=512M" parameter? I change the size of mem
to 128K to 1G, but nothing works. It just doesn't like "mem" parameter
as bootargs.


>
> This worked. Thanks for pointing that out.
>
> > and check again.
> > My question, is it possible to do this exercise under UML (User mode linux)?
> > If you are asking about whether is it possible use to loop device on UML
> > machine,
> > then the answer is 'Yes'.
> > HTH
> >
> > --
> > ----
> > Cheers,
> > Lakshmipathi.G
> > FOSS Programmer.
> > www.giis.co.in
> >

  reply	other threads:[~2011-11-17 12:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 12:53 User Mode Linux Vishal Thanki
2011-11-15 14:39 ` Lakshmipathi.G
2011-11-16  3:44   ` Vishal Thanki
2011-11-17 12:04     ` Vishal Thanki [this message]
     [not found]       ` <CAJnfX5ubAKa-eAMCugWQ2F3Cbn8sf6AGe6ZALcxF9xKiOo0wtA@mail.gmail.com>
2011-11-17 13:50         ` Vishal Thanki
2011-11-18 14:02       ` Mulyadi Santosa
2012-03-28 17:14 Bill Chimiak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC3a_SCTJxYvisADvMyKBx52bPe4qgXrchVLVv_=4bhZJ=pFpg@mail.gmail.com' \
    --to=vishalthanki@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.