LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 07-03-2013, 05:52 PM   #1
TOOOOOOOOOOOOOL
LQ Newbie
 
Registered: May 2013
Posts: 9

Rep: Reputation: Disabled
directories


where can i find the source directory and the parent directory??
 
Old 07-03-2013, 05:58 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,466

Rep: Reputation: Disabled
You'll have to be a little more specific. The source directory for what, and the parent directory of what?

Can you provide some information about what, specifically, you're looking for, and in which context?
 
Old 07-04-2013, 02:33 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Hi,

your question is without sense.
More info please
 
Old 07-07-2013, 03:13 PM   #4
TOOOOOOOOOOOOOL
LQ Newbie
 
Registered: May 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
directories

Quote:
Originally Posted by TOOOOOOOOOOOOOL View Post
where can i find the source directory and the parent directory??
.....

here is the documentation bc im trying to write an OS for the pi raspberry...here is step seven..
So we've written the code, now to get it onto the pi. Open a terminal on your computer and change the current working directory to the parent directory of the source directory. Type make and then press enter. If any errors occur, please refer to the troubleshooting section. If not, you will have generated three files. kernel.img is the compiled image of your operating system. kernel.list is a listing of the assembly code you wrote, as it was actually generated. This is useful to check that things were generated correctly in future. The kernel.map file contains a map of where all the labels ended up, which can be useful for chasing around values.

To install your operating system, first of all get a Raspberry PI SD card which has an operating system installed already. If you browse the files in the SD card, you should see one called kernel.img. Rename this file to something else, such as kernel_linux.img. Then, copy the file kernel.img that make generated onto the SD Card. You've just replaced the existing operating system with your own. To switch back, simply delete your kernel.img file, and rename the other one back to kernel.img. I find it is always helpful to keep a backup of you original Raspberry Pi operating system, in case you need it again.

Put the SD card into a Raspberry Pi and turn it on. The OK LED should turn on. If not please see the troubleshooting page. If so, congratulations, you just wrote your first operating system. See Lesson 2: OK02 for a guide to making the LED flash on and off.
 
Old 07-07-2013, 03:25 PM   #5
TOOOOOOOOOOOOOL
LQ Newbie
 
Registered: May 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
how do you....
Open a terminal on your computer and change the current working directory to the parent directory of the source directory. Type make and then press enter.
 
Old 07-07-2013, 03:30 PM   #6
TOOOOOOOOOOOOOL
LQ Newbie
 
Registered: May 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
how do you....
Open a terminal on your computer and change the current working directory to the parent directory of the source directory. Type make and then press enter.
 
Old 07-07-2013, 03:38 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,466

Rep: Reputation: Disabled
Quote:
Originally Posted by TOOOOOOOOOOOOOL View Post
here is the documentation bc im trying to write an OS for the pi raspberry...here is step seven..
So we've written the code, now to get it onto the pi. Open a terminal on your computer and change the current working directory to the parent directory of the source directory. Type make and then press enter.
The instruction refers to a "source directory", which is a directory where you're supposed to have downloaded the source code you want to compile.

Example: Let's say you've downloaded the file some-program.1.0.tar.gz, containing source code for version 1.0 of "some-program". Let's assume you've downloaded this file to the /usr/src directory (a common location for source code).

When you extract the contents of the file with tar xzf some-program.1.0.tar.gz, the subdirectory some-program.1.0 is created in /usr/src. This directory, with the absolute path /usr/src/some-program.1.0 is your source directory for this particular program. In order to change the working directory to this directory, you would type:
Code:
cd /usr/src/some-program.1.0
However, the instructions seem to contain an error, as you're instructed to change your working directory to "the parent directory of the source directory". The parent of any directory is the directory immediately above it. In the example, that would be /usr/src. Running make in that directory is unlikely to accomplish anything, as no source code is present in that directory, but rather in various subdirectories.

I strongly suspect you're supposed to change the working directory to the (base of the) source directory itself (using the cd command shown above), and then run make.

All this is done in a terminal window of some sort. If you're working in a graphical environment, you could open an Xterm window and run the commands there.
 
Old 07-07-2013, 10:05 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...em-4175467756/
 
  


Closed Thread

Tags
directory, parent, source


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
How to store files/directories in different different directories!! anishkumarv Linux - Newbie 7 03-23-2011 05:26 PM
Copying files and sub-directories of a directory except the directories named ".abc" sri1025 Linux - General 2 08-24-2010 08:53 AM
How do I copy over directories to directories with the same name without overwriting? SentralOrigin Linux - General 1 03-14-2009 01:09 AM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM

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

All times are GMT -5. The time now is 10:40 AM.

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