LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2011, 01:36 PM   #1
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Rep: Reputation: 0
Modification to Linux


I'm trying to add a modification to Linux for my Master's thesis. My Prof suggested running Linux as a program to facilitate debugging.

I need some suggestions as to how to do this. I am working in Ubuntu 10.4.1. I can get Linux 2.6.36.2 to compile. I can't figure out how to run it - as a standalone or as an OS.

Also, I'd appreciate suggestions for a development environment. I looked into Eclipse, KDevelop, Code::Blocks, and Anjuta. Reports on various forums list problems with all of these. I am not eager to spend the time to evaluate all these IDEs only to conclude that none are workable. I am most familiar with Visual Studio but need to find the appropriate include files specific to a Windows installation.
 
Old 01-06-2011, 01:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
How that is done depends on what you mean by that. debugging what? There are plenty of debugging tools for Linux, e.g. valgrind, so surely he wouldn't mean making a new tool like this. Maybe he means, i don't know, some sort of appliance to connect to some other equipment, e.g. an engine computer for diagnostic analysis??

Why are you trying to rebuild a linux kernel? If you don't know how to use what you've got, I'd suggest you shouldn't be doing it. Not least becuase it doesn't make sense (as I read it) to ask how to run it "standalone".

IDE's.... vi is nice. works for me. Do you know Red Dwarf? In the book / TV Series, Rimmer would spend ages drawing out the perfect study timetable for his space exams. It would be so perfect, and he'd spend so long making it, that by the time it was finished, his schedule was already half way through. So he'd have to do another timetable to account for this, and so on... Do you even need a full on sexy IDE? I'd doubt it. vi is nice.
 
1 members found this post helpful.
Old 01-10-2011, 01:10 PM   #3
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Original Poster
Rep: Reputation: 0
I guess I wasn't clear. My Prof suggested "running Linux as a program" or "standalone" would be the same as running a new shell. Not a shell forked from Ubuntu, but my modified Linux as a shell or standalone program. I would like to be able to run and evaluate my modification without risking disabling or breaking the OS I am using.

You are right, I don't know what I am doing - yet. That is why I joined the Newbie group. The thesis concept is simple and straight forward. It's the tools I need to research and learn that are holding me back at the moment.

An IDE is an integrated suite of applications including at least an editor, compiler, assembler, linker, and debugger. By integrating such programs, productivity is improved. An IDE is a tool I am familiar with when writing software. Vi is only one part of an IDE. Yes, vi is nice but not all that I am looking for. I'll check out Valgrind. Thanks.
 
Old 01-10-2011, 01:28 PM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 587

Rep: Reputation: 49
Quote:
Originally Posted by cmccullo View Post
...I would like to be able to run and evaluate my modification without risking disabling or breaking the OS I am using...
Use VirtualBox???

Here is an old link on the subject: http://astahost.com/info.php/languag...ten_t9153.html

Looks like C to me so any IDE for C might work.

Also, you could look at "Linux From Scratch"

P.S I don't 'really' know what I am talking about and I am even not sure I know what you are talking about so, guide yourself accordingly...

Last edited by Robert.Thompson; 01-10-2011 at 01:38 PM.
 
Old 01-10-2011, 09:19 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Unless your prof has lost the plot you had better ask them to explain their suggestion again because what you have said they said makes no sense.
 
Old 01-11-2011, 01:27 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
I agree with Catkin : Linux != shell and Linux != program. Your Prof's terminology is erroneous/unclear.
Possibly(!) he meant run Linux in a VM type env on top of (inside) MS-Win?
 
Old 01-14-2011, 09:37 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Quote:
Originally Posted by cmccullo View Post
running Linux as a program
eh? does he mean User Mode Linux or something?
 
Old 01-14-2011, 11:44 AM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
I thought he meant he downloaded the kernel and wants to build his own OS. If this is true then OP needs to know that the linux kernel is just the heart of the OS. Its takes more apps to run the Kernel. Good start as already said http://linuxfromscratch.org . Its so easy a newbie can do it. Well almost anyways.

Hey try to be more clear and maybe we can help you further.
 
Old 01-22-2011, 02:08 PM   #9
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Original Poster
Rep: Reputation: 0
Yes, I came across User Mode Linux. This looks like what Prof referred to.

I had to try a couple sets of instructions until I got UML to compile. After working through several problems I still can't get it to run.

The root file system is mounted, virtual consoles 1 through 12 are assigned, then I get this:
init: console-setup main process (235) terminated with status 1
udevd[244]: failed to create queue file: No such file or directory
udevd[244]: error creating queue file

But, this seems a problem for another forum.
Thanks for all the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification Linux 2.6 Scheduler aerofloat Programming 1 07-26-2006 11:51 PM
file modification in linux nov Linux - Newbie 3 06-05-2005 09:02 AM
boot linux after partition modification romain Linux - Newbie 1 12-14-2001 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration