All of lore.kernel.org
 help / color / mirror / Atom feed
* Dev Environment?
@ 2011-08-13 17:57 Daniel Hilst Selli
  2011-08-14  4:18 ` Mulyadi Santosa
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Hilst Selli @ 2011-08-13 17:57 UTC (permalink / raw)
  To: kernelnewbies

Hey people.. I start to read a book about kernel, and
want to make some changes to it, for study purpose. ue
I think in edit it, an use qemu to test it with some minimal
distribution installation.

So how people usually do?

Thanks!
--
"Do or do not... there is no try" Yoda Master

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Dev Environment?
  2011-08-13 17:57 Dev Environment? Daniel Hilst Selli
@ 2011-08-14  4:18 ` Mulyadi Santosa
       [not found]   ` <4E475441.6030608@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Mulyadi Santosa @ 2011-08-14  4:18 UTC (permalink / raw)
  To: kernelnewbies

Hi..

On Sun, Aug 14, 2011 at 00:57, Daniel Hilst Selli <danielhilst@gmail.com> wrote:
> Hey people.. I start to read a book about kernel, and
> want to make some changes to it, for study purpose. ue
> I think in edit it, an use qemu to test it with some minimal
> distribution installation.
>
> So how people usually do?

That's really subjective...btw, i am not developer, but here's my "setup":
- cscope plus vim for source code navigation. if I am lazy, I simply
go to lxr.linux.no for online code browsing

- plain qemu or qemu+kvm for running the kernel plus activating its
gdb stub. Then hook gdb into it so I can freely stop kernel execution
anywhere I like

- of course, gcc as the compiler.

- ccache, if you wanna to speed up repetitive compilation

- "screen" tool running all of the above as its sessions :)


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Dev Environment?
       [not found]   ` <4E475441.6030608@gmail.com>
@ 2011-08-14  8:59     ` Mulyadi Santosa
  2011-08-15  3:14       ` Daniel Hilst Selli
                         ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2011-08-14  8:59 UTC (permalink / raw)
  To: kernelnewbies

Hi :)

On Sun, Aug 14, 2011 at 11:51, Daniel Hilst Selli <danielhilst@gmail.com> wrote:
> Thanks Mulyadi, I was installing gentoo with qemu.. but takes soo long to
> install that I give up,
> I was thinking in a minimal distro as dsl or lfs. What you suggest ?

Next time, pls keep kernelnewbies list address intact :)

About disk image, how about using prebuilt one provided in
http://wiki.qemu.org/Download? or ones in http://fs.devloop.org.uk/ ?
I think busybox might be a good fit for a tiny setup :)


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Dev Environment?
  2011-08-14  8:59     ` Mulyadi Santosa
@ 2011-08-15  3:14       ` Daniel Hilst Selli
       [not found]       ` <20110815043805.GB3166@localhost>
  2011-08-15  4:44       ` Christophe Hauser
  2 siblings, 0 replies; 6+ messages in thread
From: Daniel Hilst Selli @ 2011-08-15  3:14 UTC (permalink / raw)
  To: kernelnewbies

Em 14-08-2011 05:59, Mulyadi Santosa escreveu:
> Hi :)
>
> On Sun, Aug 14, 2011 at 11:51, Daniel Hilst Selli<danielhilst@gmail.com>  wrote:
>> Thanks Mulyadi, I was installing gentoo with qemu.. but takes soo long to
>> install that I give up,
>> I was thinking in a minimal distro as dsl or lfs. What you suggest ?
> Next time, pls keep kernelnewbies list address intact :)
>
> About disk image, how about using prebuilt one provided in
> http://wiki.qemu.org/Download? or ones in http://fs.devloop.org.uk/ ?
> I think busybox might be a good fit for a tiny setup :)
>
>
Ohh, sorry about list, I just click at reply (where should be reply for 
all), I'll
pay more attention next time.

prebuilt disk images? Sounds handy!! Thanks again!

-- 
"Do or do not... there is no try" Yoda Master

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Dev Environment?
       [not found]       ` <20110815043805.GB3166@localhost>
@ 2011-08-15  4:40         ` Mulyadi Santosa
  0 siblings, 0 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2011-08-15  4:40 UTC (permalink / raw)
  To: kernelnewbies

Hi :)

On Mon, Aug 15, 2011 at 11:38, Christophe <kereoz@kereoz.org> wrote:
> I personally like to debootstrap a Debian and make a qcow2 image from it. You don't need the kernel to be on the image as you can directly pass a kernel to qemu with the -kernel option.

I agree, just to add that AFAICT the provided qemu image in the links
I mentioned has no kernel image inside them

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Dev Environment?
  2011-08-14  8:59     ` Mulyadi Santosa
  2011-08-15  3:14       ` Daniel Hilst Selli
       [not found]       ` <20110815043805.GB3166@localhost>
@ 2011-08-15  4:44       ` Christophe Hauser
  2 siblings, 0 replies; 6+ messages in thread
From: Christophe Hauser @ 2011-08-15  4:44 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Aug 14, 2011 at 03:59:04PM +0700, Mulyadi Santosa wrote:
> Hi :)
> 
> On Sun, Aug 14, 2011 at 11:51, Daniel Hilst Selli <danielhilst@gmail.com> wrote:
> > Thanks Mulyadi, I was installing gentoo with qemu.. but takes soo long to
> > install that I give up,
> > I was thinking in a minimal distro as dsl or lfs. What you suggest ?
> 
> Next time, pls keep kernelnewbies list address intact :)
> 
> About disk image, how about using prebuilt one provided in
> http://wiki.qemu.org/Download? or ones in http://fs.devloop.org.uk/ ?
> I think busybox might be a good fit for a tiny setup :)

I personally like to debootstrap a Debian and make a qcow2 image from it. You don't need the kernel to be on the image as you can directly pass a kernel to qemu with the -kernel option.

aptitude install debootstrap

#For a wheezy image :
debootstrap wheezy ./wheezy http://ftp.fr.debian.org/debian

# For a 1GB image :
dd if=/dev/zero of=fs.img bs=1M count=1000
mkfs.ext4 fs.img
mount -o loop fs.img /mnt
cp -a wheezy/* /mnt
umount /mnt

# Convert it in qcow2:
qemu-img convert fs.img -O qcow2 fs.qcow2

# Use it in qemu or kvm
qemu -hda fs.qcow2 -kernel arch/${ARCH}/boot/bzimage  -append
"${KERNEL_OPTIONS}"

If you are using vim, you can use pyclewn to control gdb from vim and
set breakpoints and stuff.
http://pyclewn.sourceforge.net/

--
Christophe

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-15  4:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-13 17:57 Dev Environment? Daniel Hilst Selli
2011-08-14  4:18 ` Mulyadi Santosa
     [not found]   ` <4E475441.6030608@gmail.com>
2011-08-14  8:59     ` Mulyadi Santosa
2011-08-15  3:14       ` Daniel Hilst Selli
     [not found]       ` <20110815043805.GB3166@localhost>
2011-08-15  4:40         ` Mulyadi Santosa
2011-08-15  4:44       ` Christophe Hauser

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.