LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2011, 11:25 AM   #1
SlackBuddy
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
Help! In how to add a system call using a built-in kernel in Slackware


I'm new in slackware and I did this to add a system call.



>added gb.c in usr/src/linux/kernel
>added gb.o into obj-y =
>added #define __NR_gb 341 in "/usr/src/linux/arch/x86/include/asm/unistd_32.h "
>added asmlinkage int sys_gb(); in "/usr/src/linux/arch/x86/include/asm/syscalls.h"
>added .long sys_gb in "/usr/src/linux/arch/x86/kernel/syscall_table_32.h"
>So that's done

>slackpkg update

#Compiling part#
make xconfig
make
make modules_install install
cd /boot
mkinitrd -o initrd-img-2.6.37.6 2.6.37.6
"edited lilo added initrd= /boot/initrd-img-2.6.37.6"
lilo
init 6 (reboot)

then it gives me the tty error in boot up
 
Old 09-29-2011, 12:33 PM   #2
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Another post where a lot of data on context is missing... What are you talking about? Which system call? For what purpose? Who wrote what? (Did YOU code something or did you get a THIRD PARTY patch ?)...

Edit: Use the 'CODE' tags to write your dumps and code... Also tell us what was the command which dump that stuff...

Last edited by NoStressHQ; 09-29-2011 at 12:34 PM.
 
Old 09-29-2011, 01:06 PM   #3
fgcl2k
Member
 
Registered: Jan 2011
Distribution: Slackware 14.1
Posts: 118

Rep: Reputation: 32
What is the exact boot error that you get?
And yes, I agree that a little more context would be helpful.
BTW, have you read the README.initrd document?
 
Old 09-29-2011, 08:32 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
And the contents of gb.c might be nice, too.
 
Old 09-29-2011, 08:38 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Also, which .config did you use? One of the stock ones in /boot, a zcat /proc/config.gz > /usr/src/linux/.config, or whateve was in the linux source to start with?
 
Old 09-30-2011, 03:24 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,131

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
sorry, besides clarification questions above, how your kernel hacking relates to Slackware?
 
  


Reply



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
add a system call in 2.6.36 kernel coolsandyforyou Linux - Kernel 2 12-17-2010 10:13 AM
How to add a system call in 2.6.x kernel SungWon Chung Linux - Kernel 2 11-26-2007 09:32 PM
Add New System Call in RH9 kernel-2.4.20-8 kamal_h_mehta Programming 0 04-08-2006 08:51 AM
how to add another system call in to the kernel?? Pratik H Pandya Programming 1 03-26-2006 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:18 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
Open Source Consulting | Domain Registration