Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 11:51
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
devx and kernel src on Puppy 5.2.8 full HD
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Hotdog


Joined: 29 Sep 2011
Posts: 103
Location: Georgia USA

PostPosted: Tue 27 Nov 2012, 00:53    Post subject:  devx and kernel src on Puppy 5.2.8 full HD
Subject description: Includes notes on using the kernel src
 

This How-To explains how I got the devx working properly with Puppy 5.2.8 in a full HD installation. Maybe you will not waste as much time as I did getting this to work.

The 5.2.8 devx in Quick Pet is gone. It was found at http://diddywahdiddy.net/Puppy500/luci_devx_528.sfs. The devx sfs file was downloaded to the “/” directory.

That may be all that you need for compiling code that is unrelated to the kernel. However, source files for the 2.6.33.2 kernel used in Puppy 5.2.8 are required for any kernel-related compiling. This was downloaded from http://bkhome.org/sources/kernel-2.6.33.2/ (usr - puppy, pwd - linux) and stored in the “/” directory. The file name is kernel_src-2.6.33.2-patched.sfs

Be advised that these files are big. The devx is about 136 mb, the kernel src is about 84 mb.

User Shinobar has given us a utility for loading and unloading sfs files on-the-fly. Find it at Menu -> Setup -> Setup Puppy -> SFS-Load on-the-fly. The utility has a pull-down which lists all the sfs files in the “/” directory. Choose either the devx or kernel src and click Load then wait. It takes a little while. When it tells you that it is done, choose the other sfs and load it. A lot has to happen in this little program, be patient.

Now you are set up to be creative, compiling your own work or that of some one else. There are some neat tools included in the devx. When you are loading its sfs you will be asked if you wish to run them right then. They will show up under Menu -> Utility.

(See attachment devx01.png. Inline image not working here)

My favorite feature of the devx is that it turns the Geany editor into an IDE (integrated development environment) with compile, build and execute right on the toolbar.

(See attachment devx02.png. Inline image not working here)

There are other instructions for permanently loading the devx.sfs and other sfs’s in a full HD installation. But, here are two caveats: 1) The installation is permanent and 2) A previous installation of Python or other development language that is also part of the devx may become broken to the point that neither one will work. The only easy fix in that situation is to reinstall Puppy Linux and start over. It happened to me.

Using SFS-Load on-the-fly lets you unload the sfs’s when desired. After a project is completed it may be a while before another comes along. Meanwhile Puppy Linux may need to use its resources to the max for video editing with Cinelerra, for example. Use the same Menu path to unload as for loading the sfs’s. However, there is no need to unload the devx and kernel src if you are working on a continuing project.

Even us full HD install users always have the option of doing our development work using a live CD of Puppy Linux. The devx and kernel src sfs’s can reside in a hard drive save file and be loaded through a reboot. Some folks prefer this method for the safety of the Puppy Linux HD installation.

If you have not used the devx before you may be surprised to find that there is no magic interface available with all the development tools just a click away. Instead, use your favorite text editor to create your source files then reference them on the command line with whatever compiler commands and options that are appropriate. Those commands will be there now. Or, use an IDE which combines the editing and compiling, assembling or interpreting functions into one program.

To see some of the command line commands that the devx provides try typing:
make --help,
python --help,
bacon -h or
gcc --help.

EDIT-1: An added note. To see what sfs's have been loaded just check the installed packages list with the Puppy Package Manager. They will have "extra SFS installed by sfs_load" in the description column.

EDIT-2: Not only do we need to compile against the kernel that we intend to use but that kernel needs to know a bit about the machine on which it runs, the CPU, memory, etc. So, after loading the kernel src, open a ROX-Filer window and move to /usr/src/linux-2.6.33.2. Open a terminal in that directory and type "make prepare". This will create and modify some files that get used behind the scenes when compiling. This will need to be done again if the kernel src SFS is unloaded and reloaded.

EDIT-3: If you intend to compile the kernel itself, here are the steps involved.

# cd /lib/modules/2.6.33.2/ (The working kernel directory)
# ln -s /usr/src/linux-source-2.6.33.2 build (should already be done by the kernel src SFS)
# cd /usr/src/linux-source-2.6.33.2 (The kernel source tree, top directory)
# make clean
NOTE: rename .config for preservation if you need to keep it because the next step will delete it. However, after the next step you can create a fresh copy if you prefer.
# make mrproper
# cp /etc/modules/DOTconfig-k2.6.33.2-27MAY2010-LUPU-SMP-TICKLESS .config (Gets copy of the working kernel config file)
# make menuconfig
# make bzImage
# make modules NOTE: This step may take hours to run. It is the only way for a Modules.symvers file to be created in the root directory of the source tree. This file is necessary for kernel module versioning (actually, it is symbol versioning) to work. Without proper versioning the kernel will reject any modules that you create.
# make modules_install

As noted earlier, repeat these steps if you unload the kernel src SFS then load it again for working with the kernel or kernel modules.
devx02.png
Description  Geany editor with compile, build, execute functions enabled.
png

 Download 
Filename  devx02.png 
Filesize  57.49 KB 
Downloaded  254 Time(s) 
devx01.png
 Description   Option to run progs when loading the devx.
 Filesize   23.57 KB
 Viewed   1231 Time(s)

devx01.png


Last edited by Hotdog on Thu 03 Jan 2013, 21:37; edited 11 times in total
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Tue 27 Nov 2012, 05:32    Post subject:  

Great tutorial and thank you for sharing Smile

Just a quick question, why do you use this 'source' file .....

http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux/pet-packages-lucid/kernel_src-2.6.33.2-patched.sfs

and not this?

http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux/pet-packages-lucid/kernel_src_L4-2.6.33.2-patched.sfs
Back to top
View user's profile Send private message 
Hotdog


Joined: 29 Sep 2011
Posts: 103
Location: Georgia USA

PostPosted: Tue 27 Nov 2012, 15:10    Post subject: Choice of sfs files  

Chrome307,

Thanks for the comment. The "L4" of the kernel source refers to the 5.2.8-004 version (my assumption), which I do not have. That was also my reasoning in the choice of the devx.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0592s ][ Queries: 12 (0.0050s) ][ GZIP on ]