Re: Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
 On Wed, Mar 12, 2014 at 1:39 AM, Rahul Garg rahul.lnm...@gmail.com wrote:

 Hi all,

 I am also thinking of taking this challenge. But I found very limited
 information on submission.

 So can you help me what we need to submit for the Assigment 1,

Hi Rahul,

Please send in your assigmnet1.c file with the Makefile. Those two
files are what I sent in for Task 01.

 will dmesg (or /proc/kmsg) output and module(assignement1.c and
 Makeflie) be enough ??

Yes this will be fine, what I sent in for Task 01 wa tail -f
/var/log/messages you can use any method of choice to prove you
actually did compile then load and unload the module. Entirely left up
to you :)

Also is there any group of forum where we can discuss assignments ?

I felt the same when I first started on this but over time I have
realised why we are asked to do this alone. It simply makes us search
for relevant information and we learn the hard way but what is learnt
will never be forgotten unlike cutting and pasting some working code
someone else did. That being said when ever I have had questions or
got stuck with a assignment I have found most times immediate and fast
helpful responses so I feel if you first TRY then submit what you have
that will be the begining of a very enlightening journey for you as it
has definitely been for me.

I am on my fifth task and this is something I have always wanted to
learn to do ever since I first started meddling with DOS Interrupts
way back in 1982 and that is writing device drivers.

Whatever you send in please make sure it is in PLAIN TEXT format, else
will immediately be rejected. There is valid reason behind this and
that is all linux kernel level work is done using git and email and
plain text is the preferred mode of patch submission.

Hope this has helped and I wish you good luck. It is fully worth
investing your time in as I have learnt so much I am humbled.

Thank's - Aruna


 Regards
 Rahul

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Please help.. trying to use USB keyboard to open a shell on LCD display

2014-03-12 Thread Kim Chan
Hello, folks,



It is a comfort to me that I have people to ask questions here and I hope I 
could be answering to some hard quetions someday.

I've beeing trying to attach a USB keyboard to our embedded system to open a 
shell on the LCD display using framebuffer console. The USB host controller is 
from the opencore(USB1.1) and it works for USB memory.

Some of the boot arguments are (I've tried some variants)

console=tty1 
fbcon=map:,font:SUN8x16,vc:1-3 
root=/dev/ram 



The problem is, after the final sys_execve() which executes /sbin/init of the 
ramdisk, I cannot see any printf results frome the busybox init_main function 
not to mention the shell. So I cannot use shell commands like getty. Using uart 
as the console I can see printf results in the busybox init_main routine. (I 
use console=ttyS,mmio,0xff003000,115200n8  in that case)

Using some prints on separate uart print routine, I can see from the kbd_event 
function that the key value is going to current vc which is using tty1. The key 
value is then handed to put_queue function where the character is somehow 
copied to tty buffer. Flush_to_ldisc is scheduled for it and it will probably 
get passed on to the virtual console. By the way, I guess the keyboard data is 
delivered to current fg_console (vc 0 which is using tty1).



Added to this, there is a notifier_call_chain and the notifier block is 
registered by vcs_poll_data_get function which I don't know weather is 
necessary or not. So one of my questions is if vcs is necessary for my case. (I 
guess not. There is no other notifier blocks registered)



I gathered that without inittab (I don't use inittab which should be ok for 
most cases) the assumed default inittab tty2::askfirst:-/bin/sh 
tty3::askfirst:-/bin/sh tty4::askfirst:-/bin/sh is being applied by the busybox 
so there maybe 3 shells on tty2,tty3, and tty4 running somewhere.

But even if there are shells running I don't know how to switch to those ttys. 
I tried using Ctrl-Alt F2 (or F3, F4) using the USB keyboard to switch to 
tty2,3,4 to see if any shell comes up on the LCD but couldn't see it.

I tried using inittab with no avail before.



And I don't know how the printf in busybox is connected to the kernel.  I guess 
busybox talks with stdio(stdout,stdin..) and the file is connected to the 
kernel anyhow. I've digged up how vc driver is connected to the console switch 
functions and to the bit blitting functions and how the printk is handled in 
the kernel. But these console, tty, framebuffer console.. things are very 
complex to me. and I hope somebody could point me to what should be checked. 
Any hint will be deeply appreciated.



Best Regards,

Chan
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.orgmailto:Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: where is the printf source for busybox?

2014-03-12 Thread Mohan L
 ssize_t attribute_hidden _cs_write(void *cookie, const char *buf, size_t
 bufsize)
 {
 return write(*((int *) cookie), (char *) buf, bufsize);
 }
  what does cs stand for here? (Hm.. seems like custom streams..in the
 code) and I couldn't follow past write above. Where is the function write
 defined?


Hi Chan,

write is a system call.

$ man 2 write

syscall table for x86 architecture can be found in :
path/arch/x86/syscalls/syscall_32.tbl

# cat path/arch/x86/syscalls/syscall_32.tbl | grep 'write'

4   i386write   sys_write

The format is:
number abi name entry point compat entry point

search sys_write definition in kernel source.

Thanks
Mohan L
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


RE: where is the printf source for busybox?

2014-03-12 Thread Kim Chan

Wow, that was it. I'm happy to hear that because I thought it should end up 
with a system call anyway.
Then isn't there some codes making the system call? Or is it that the compiler 
understands that 'write' is a system call and inserts the assembly code for 
calling it by itself?
Thanks in adv.
Chan

From : Mohan L l.mohan...@gmail.com
Sent : 2014-03-12 15:31:24 ( +09:00 )
To : Kim Chan c...@etri.re.kr
Cc : Dave Hylands dhyla...@gmail.com, kernelnewbies@kernelnewbies.org 
kernelnewbies@kernelnewbies.org
Subject : Re: where is the printf source for busybox?






ssize_t attribute_hidden _cs_write(void *cookie, const char *buf, size_t 
bufsize)
{
return write(*((int *) cookie), (char *) buf, bufsize);
}
what does cs stand for here? (Hm.. seems like custom streams..in the code) and 
I couldn't follow past write above. Where is the function write defined?


Hi Chan,

write is a system call.

$ man 2 write

syscall table for x86 architecture can be found in :  
path/arch/x86/syscalls/syscall_32.tbl

# cat path/arch/x86/syscalls/syscall_32.tbl | grep 'write'

4   i386write   sys_write

The format is:
number abi name entry point compat entry point

search sys_write definition in kernel source.

Thanks
Mohan L

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to use sparse to check my driver

2014-03-12 Thread wangyubin
Hi, silverstri

 how does it actually call 'spare'? Do I need to modify my Makefile to
 add a new target or something?
If you called 'make C=2 ... ', the make will auto call sparse to check 
the source.
Obviously, you should install sparse first.

If you do the 'make C=2 drivers/staging/wlan-ng/', and don't get the 
check results,
I think maybe the 'wlan-ng' doesn't include in your built target.

Please use 'make menuconfig' to add the target wlan-ng.
1. make menuconfig
2. select 'Device Drivers --'
3. select 'Staging drivers --'
4. select 'Prism2.5/3 USB driver' like this ' M Prism2.5/3 USB driver'
5. exit the menuconfig
6. make C=2 drivers/staging/wlan-ng/ then you will get the check result.

I had test it on kernel v2.6.32.61, and got the messages below:

CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm - include/asm-x86
CALL scripts/checksyscalls.sh
CHECK scripts/mod/empty.c
CHECK drivers/staging/wlan-ng/prism2usb.c
drivers/staging/wlan-ng/hfa384x_usb.c:2810:62: warning: dubious: !x | !y
drivers/staging/wlan-ng/prism2fw.c:124:14: warning: symbol 'ns3data' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:125:13: warning: symbol 's3data' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:128:14: warning: symbol 'ns3plug' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:129:13: warning: symbol 's3plug' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:132:14: warning: symbol 'ns3crc' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:133:12: warning: symbol 's3crc' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:136:14: warning: symbol 'ns3info' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:137:13: warning: symbol 's3info' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:140:5: warning: symbol 'startaddr' 
was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:143:14: warning: symbol 'nfchunks' 
was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:144:12: warning: symbol 'fchunk' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:152:7: warning: symbol 'pda' was not 
declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:153:21: warning: symbol 'nicid' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:154:20: warning: symbol 'rfid' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:155:20: warning: symbol 'macid' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:156:20: warning: symbol 'priid' was 
not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:193:5: warning: symbol 'prism2_fwtry' 
was not declared. Should it be static?
drivers/staging/wlan-ng/prism2fw.c:237:15: warning: memset with byte 
count of 12
drivers/staging/wlan-ng/prism2fw.c:460:15: warning: memset with byte 
count of 12
CC [M] drivers/staging/wlan-ng/prism2usb.o
In file included from drivers/staging/wlan-ng/prism2usb.c:5:0:
drivers/staging/wlan-ng/prism2fw.c: In function prism2_fwtry:
drivers/staging/wlan-ng/prism2fw.c:208:9: warning: format %d expects 
argument of type int, but argument 3 has type size_t [-Wformat]
drivers/staging/wlan-ng/prism2fw.c: In function writeimage:
drivers/staging/wlan-ng/prism2fw.c:1109:1: warning: the frame size of 
4272 bytes is larger than 2048 bytes [-Wframe-larger-than=]
CHECK drivers/staging/wlan-ng/p80211conv.c
CHECK drivers/staging/wlan-ng/p80211req.c
CHECK drivers/staging/wlan-ng/p80211wep.c
CHECK drivers/staging/wlan-ng/p80211wext.c
CHECK drivers/staging/wlan-ng/p80211netdev.c
LD [M] drivers/staging/wlan-ng/prism2_usb.o
==

Best Regards!
wangyubin

On 03/12/2014 05:31 AM, m silverstri wrote:
 I am trying to use sparse to check my driver that I developed.

 From http://kernelnewbies.org/Sparse, It said 'make C=2
 drivers/staging/wlan-ng/', what does it check it I  do 'make C=2' and
 how does it actually call 'spare'? Do I need to modify my Makefile to
 add a new target or something?

 Thank you.

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 .






___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Does register_chrdev function make device file under /dev ?

2014-03-12 Thread Valdis . Kletnieks
On Tue, 11 Mar 2014 08:01:26 -, Kim Chan said:

 To my understanding, device file is needed when a user program wants to
 access the device and we don't need to generate the device file for us to use
 the device in kernel. Is my understanding correct?

Right.  You don't need to generate the device file because you shouldn't be
accessing the device in a file-like manner from inside the kernel.

 I am trying to open a shell on my LCD (is it going to be tty2

That's userspace, not kernel access.


pgp1FTlZNga7b.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Not mounting rootfs

2014-03-12 Thread Valdis . Kletnieks
On Tue, 11 Mar 2014 23:54:25 -0300, Flavio Ceolin said:
 Any tip is extremely welcome :)

 [0.820886] List of all partitions:

tip 1:  What would you expect to see here that isn't here?  That's right,
an output of what partitions it found.

-hda ./buildroot-2013.05/output/images/rootfs.ext2

seems to have misfired.

Either that, or  '-append root=/dev/ram0' and ram0 doesn't point at
a root file system.  You might want to decide whether ram0 or ext2 is
where you want taht root to be

 [0.821097] No filesystem could mount root, tried:
 [0.821399] Kernel panic - not syncing: VFS: Unable to mount root fs on 
 unknown-block(0,0)





pgpmsh35WIHlU.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
  On Wed, Mar 12, 2014 at 10:14 AM, Saurabh Jain saurabh4768j...@gmail.com 
 wrote:
  I'm Sorry! but i am new to this mailing list . Can anybody tell me about
  which assignment you people are talking ?

Here you go : http://eudyptula-challenge.org/

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread Ronald Dahlgren
I signed up last month and received and completed my first task. I got a
congratulations email for the first task, but have not received any
subsequent assignments. Any idea what I should do about that?

Ron Dahlgren
http://www.dahlgren.so | @ScaleItRon
On Mar 10, 2014 11:22 PM, Aruna Hewapathirane 
aruna.hewapathir...@gmail.com wrote:

 It seems too many people signed up at the moment... causing the scripts to
 malfunction. Should be resolved in a day or two is what I was told. I have
 so far received four tasks. Thank you !

 Aruna


 On Tue, Mar 11, 2014 at 2:14 AM, Srivardhan M S srivardha...@gmail.comwrote:

 Yes... Just sent the solution for the 1st assignment... You  not
 gettting? What is the issue?

 Thank-you,
 Sri

 On Tue, Mar 11, 2014 at 11:19 AM, Mandeep Sandhu
 mandeepsandhu@gmail.com wrote:
  Yes.
 
  Just remember to send a plain text mail.
 
  HTH,
  -mandeep
 
 
  On Tue, Mar 11, 2014 at 10:36 AM, sanjeev sharma
  sanjeevsharmae...@gmail.com wrote:
  Hello All,
 
  Have you guys getting your assignment's ?
 
  Regards
  Sanjeev Sharma
 
 
  On Wed, Mar 5, 2014 at 10:50 AM, Mallesh Koujalagi
  mallesh.koujalagi.sandi...@gmail.com wrote:
 
  Good info, thanks for sharing
 
 
  On Tue, Mar 4, 2014 at 8:38 PM, Amit Saha amitsaha...@gmail.com
 wrote:
 
  On Wed, Mar 5, 2014 at 2:19 PM, Mandeep Sandhu
  mandeepsandhu@gmail.com wrote:
   Came across this in Greg (KH)s G+ feed.
  
   http://eudyptula-challenge.org/
  
   Thought I'd share it here too in case someone missed it.
  
   Looks like a fun and interesting way to start off doing stuff in
 the
   kernel!
 
  Interesting! Thanks for sharing.
 
 
  --
  http://echorand.me
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread Ronald Dahlgren
And now the second task has arrived. Thanks to whomever kicked the machine
into action :-)

Ron Dahlgren
http://www.dahlgren.so | @ScaleItRon
On Mar 12, 2014 8:28 AM, Ronald Dahlgren ronald.dahlg...@gmail.com
wrote:

 I signed up last month and received and completed my first task. I got a
 congratulations email for the first task, but have not received any
 subsequent assignments. Any idea what I should do about that?

 Ron Dahlgren
 http://www.dahlgren.so | @ScaleItRon
 On Mar 10, 2014 11:22 PM, Aruna Hewapathirane 
 aruna.hewapathir...@gmail.com wrote:

 It seems too many people signed up at the moment... causing the scripts
 to malfunction. Should be resolved in a day or two is what I was told. I
 have so far received four tasks. Thank you !

 Aruna


 On Tue, Mar 11, 2014 at 2:14 AM, Srivardhan M S 
 srivardha...@gmail.comwrote:

 Yes... Just sent the solution for the 1st assignment... You  not
 gettting? What is the issue?

 Thank-you,
 Sri

 On Tue, Mar 11, 2014 at 11:19 AM, Mandeep Sandhu
 mandeepsandhu@gmail.com wrote:
  Yes.
 
  Just remember to send a plain text mail.
 
  HTH,
  -mandeep
 
 
  On Tue, Mar 11, 2014 at 10:36 AM, sanjeev sharma
  sanjeevsharmae...@gmail.com wrote:
  Hello All,
 
  Have you guys getting your assignment's ?
 
  Regards
  Sanjeev Sharma
 
 
  On Wed, Mar 5, 2014 at 10:50 AM, Mallesh Koujalagi
  mallesh.koujalagi.sandi...@gmail.com wrote:
 
  Good info, thanks for sharing
 
 
  On Tue, Mar 4, 2014 at 8:38 PM, Amit Saha amitsaha...@gmail.com
 wrote:
 
  On Wed, Mar 5, 2014 at 2:19 PM, Mandeep Sandhu
  mandeepsandhu@gmail.com wrote:
   Came across this in Greg (KH)s G+ feed.
  
   http://eudyptula-challenge.org/
  
   Thought I'd share it here too in case someone missed it.
  
   Looks like a fun and interesting way to start off doing stuff in
 the
   kernel!
 
  Interesting! Thanks for sharing.
 
 
  --
  http://echorand.me
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
 I'm glad to hear that this challenge is real, and someone's getting
something out of it. When the challenge first appeared I  saw that there
was very little actual information on its web page, and when I sent an
email inquiry (somewhat testy, I admit),  I got snarky humour in
response, leading me to believe the whole thing was probably some kind of
antisocial prank. I still   don't like that the organizers are
anonymous, of unknown competence, but that's between them and those who
choose to  take them up on the challenge. -- Arlie (Arlie Stephens
ar...@worldash.org)

Hi Arlie,

Anonymous you say ?

If you have a look at this : https://www.kernel.org/ then have a another
careful look at this: http://eudyptula-challenge.org/ do you see a
resemblance ? kernel.org is not a bunch of jerks neither are they anonymous
or anti-social exactly the opposite actually.

Unknown competence huh ? Am guessing here as well but that kind of humour
can only initiate from gregkh and as you know he is the stable kernel
maintainer and has given this a whole lot of thought... and you send out
'testy' emails what did you expect to get back ? You reap what you sow my
dear :)

Have no illusions about this it is very REAL and am betting my life's
savings this is gregkh at work so you are being mentored by ze man himself.
Though I somehow do not think he will acknowledge to this..

If you view the source at http://eudyptula-challenge.org/ you will see :

!--
 Wait, this looks like the kernel.org theme!  You stole it, I'm going to
 sick my badgers on you!

 Relax man, the kernel.org theme is MIT licensed.  See the main.css file
 for details if you really want to know more.
--

It really does not get any better than this, this is sincere transparency
and accountability to me but given one has to know where to look but that
is all the more fun ?

Aruna ( Unknown competence and anti-social my brown skinny ass - no offence
meant )
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread sanmukh rao
But doesnt it encode the attachments into base64. How to avoid that?

-Sanmukh

On Wed, Mar 12, 2014 at 9:52 AM, Mandeep Sandhu
mandeepsandhu@gmail.com wrote:
 I'm using gmail on the web.

 You can send plain text mails from it if thats what you're worried about.

 HTH,
 -mandeep



___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread Aruna Hewapathirane
Try thunderbird http://www.mozilla.org/en-US/thunderbird/


On Wed, Mar 12, 2014 at 12:56 PM, sanmukh rao i.sanm...@gmail.com wrote:

 But doesnt it encode the attachments into base64. How to avoid that?

 -Sanmukh

 On Wed, Mar 12, 2014 at 9:52 AM, Mandeep Sandhu
 mandeepsandhu@gmail.com wrote:
  I'm using gmail on the web.
 
  You can send plain text mails from it if thats what you're worried about.
 
  HTH,
  -mandeep
 
 

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread sanmukh rao
Thanks :)

I am using mutt by the way. So got covered.

-Sanmukh

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel!

2014-03-12 Thread Asutosh Das
Used Thunderbird this time with plain text settings. Hope it works.
Appreciate the suggestions.
On Mar 12, 2014 10:29 PM, sanmukh rao i.sanm...@gmail.com wrote:

 Thanks :)

 I am using mutt by the way. So got covered.

 -Sanmukh

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Arlie Stephens
On Mar 12 2014, Aruna Hewapathirane wrote:
  I'm glad to hear that this challenge is real, and someone's getting
 something out of it. When the challenge first appeared I  saw that there
 was very little actual information on its web page, and when I sent an
 email inquiry (somewhat testy, I admit),  I got snarky humour in
 response, leading me to believe the whole thing was probably some kind of
 antisocial prank. I still   don't like that the organizers are
 anonymous, of unknown competence, but that's between them and those who
 choose to  take them up on the challenge. -- Arlie (Arlie Stephens
 ar...@worldash.org)
 
 Hi Arlie,
 
 Anonymous you say ?
 
 If you have a look at this : https://www.kernel.org/ then have a another
 careful look at this: http://eudyptula-challenge.org/ do you see a
 resemblance ? kernel.org is not a bunch of jerks neither are they anonymous
 or anti-social exactly the opposite actually.

Aha - I'm not well plugged into the linux kernel community. I don't
have the familiarity with website styles that would lead me to notice
patterns. I've used a bunch of them, but that doesn't mean I've paid
attention to style. 

 Unknown competence huh ? Am guessing here as well but that kind of humour
 can only initiate from gregkh and as you know he is the stable kernel
 maintainer and has given this a whole lot of thought... and you send out
 'testy' emails what did you expect to get back ? You reap what you sow my
 dear :)

It's all a matter of who has the bigger ego ;-) 

I saw a new site that wasn't even in google yet, and made no attempt
to establish credentials. I also compared it with its supposed model,
the Matasano Crypto Challenge at
http://www.matasano.com/articles/crypto-challenges/ and saw major
differences in things that mattered to me - the crypto site explains
who is behind it, and includes relevant articles. The Eudylypta site
has nothing.  

I know I'm competent and well meaning, and don't know that they are,
and reacted accordingly.  

_If_ the site owners are people known and well regarded in the linux
community, _they_ saw a person who wasn't known there, and therefore was
clueless-by-definition, and should know better than to challenge their
well regarded majesty - even with them unidentified ;-)  

_If_ on the other hand, they were a bunch of college kids being more
clever than usual about getting the intenet to do their homework (my
first thought), or trolls wanting to see how many innocent newbies
they could take in (my second thought) then they saw someone too smart 
to be taken in, who needed to be chased away lest they spoil the
scam. 

Their reaction was consistent with either possibility. 

 Have no illusions about this it is very REAL and am betting my life's
 savings this is gregkh at work so you are being mentored by ze man himself.
 Though I somehow do not think he will acknowledge to this..

Perhaps. I'm not familiar with his sense of humour, though recent postings
(last year) interactions on LKML suggest he's less bitey than Linus,
which is a good sign. 

Truth to tell, I haven't paid much attention to who's who in the linux
community, except Mel Gorman, and I'm a lot more likely to read
linux-mm than the full LKML feed. (Yes, I'm a memory management type,
by inclination at least.)  

 It really does not get any better than this, this is sincere transparency
 and accountability to me but given one has to know where to look but that
 is all the more fun ?
 
 Aruna ( Unknown competence and anti-social my brown skinny ass - no offence
 meant )

*rofl* I can copy someone else's web page source (MIT licensed or
not) and put up a joke web page using it. If it's appropriately
licensed (as this one is) I wouldn't even be doing anything
illegal. That doesn't mean I'm the author of whatever I copy.

Anyway, I hope it is Greg Kroah-Hartman, or someone equally
competent and overall well regarded. Though the truth is, the second
part doesn't much matter, if people are getting something out of the
course. 

---
Arlie

(Arlie Stephens ar...@worldash.org)


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: where is the printf source for busybox?

2014-03-12 Thread Dave Hylands
Hi,


On Tue, Mar 11, 2014 at 11:55 PM, Kim Chan c...@etri.re.kr wrote:


 Wow, that was it. I'm happy to hear that because I thought it should end
 up with a system call anyway.
 Then isn't there some codes making the system call? Or is it that the
 compiler understands that 'write' is a system call and inserts the assembly
 code for calling it by itself?


In uclibc, the write source code is found here:
http://git.uclibc.org/uClibc/tree/libc/sysdeps/linux/common/write.c

How the syscall is actually implemented is architecture specific, and will
be in one of the directories here:
http://git.uclibc.org/uClibc/tree/libc/sysdeps/linux

For example, for ARM, with EABI, then I believe that it winds up here:
http://git.uclibc.org/uClibc/tree/libc/sysdeps/linux/arm/syscall-eabi.S

The SWI instruction transfers control to the kernel.

On the kernel side, how the syscalls get handled is also architecture
specific, but it will generally wind up at a function called sys_FUNCTION,
however the generation of the function name is usually hidden behind a
macro.

So sys_write in the kernel winds up being declared here:
http://lxr.linux.no/#linux+v3.13.5/fs/read_write.c#L514

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
snip

 Aha - I'm not well plugged into the linux kernel community. I don't
 have the familiarity with website styles that would lead me to notice
 patterns. I've used a bunch of them, but that doesn't mean I've paid
 attention to style.

Oh-kay fair enough... and understood :)

 Unknown competence huh ? Am guessing here as well but that kind of humour
  can only initiate from gregkh and as you know he is the stable kernel
  maintainer and has given this a whole lot of thought... and you send out
  'testy' emails what did you expect to get back ? You reap what you sow my
  dear :)

 It's all a matter of who has the bigger ego ;-)


I myself personally have no ego due to being suddenly made to realize
long years ago by the wifey that if I was being a real jerk then I had to
go cook my own dinner ( Back then I had no idea how to boil an egg let
alone cook a decent meal and yes I was being a jerk ) Soo.. ever since then
I do not subscribe to this ego thing prefer to be humble and laid back !


 I saw a new site that wasn't even in google yet, and made no attempt
 to establish credentials. I also compared it with its supposed model,
 the Matasano Crypto Challenge at
 http://www.matasano.com/articles/crypto-challenges/ and saw major
 differences in things that mattered to me - the crypto site explains
 who is behind it, and includes relevant articles. The Eudylypta site
 has nothing.

 Well that link to the Matasano Crypto ChallengeI IS right there on the
eudyptula challenge site that should have rung a bell no ?


 I know I'm competent and well meaning, and don't know that they are,
 and reacted accordingly.


Fair enough again and understood again :)


 _If_ the site owners are people known and well regarded in the linux
 community, _they_ saw a person who wasn't known there, and therefore was
 clueless-by-definition, and should know better than to challenge their
 well regarded majesty - even with them unidentified ;-)


The site uses teh exact same css from kernel.org that makes me think
someone from kernel.org is behind all this ?



 _If_ on the other hand, they were a bunch of college kids being more
 clever than usual about getting the intenet to do their homework (my
 first thought), or trolls wanting to see how many innocent newbies
 they could take in (my second thought) then they saw someone too smart
 to be taken in, who needed to be chased away lest they spoil the
 scam.


Oh-kay my turn to apologize, one lives and learns... you did the right
thing by questioning !


 Their reaction was consistent with either possibility.

  Have no illusions about this it is very REAL and am betting my life's
  savings this is gregkh at work so you are being mentored by ze man
 himself.
  Though I somehow do not think he will acknowledge to this..

 Perhaps. I'm not familiar with his sense of humour, though recent postings
 (last year) interactions on LKML suggest he's less bitey than Linus,
 which is a good sign.


Like I said am GUESSINg but everything points to gregkh... or someone in
his team !


 Truth to tell, I haven't paid much attention to who's who in the linux
 community, except Mel Gorman, and I'm a lot more likely to read
 linux-mm than the full LKML feed. (Yes, I'm a memory management type,
 by inclination at least.)


Aaagh I dislke  segfaults to little pieces :)


  It really does not get any better than this, this is sincere transparency
  and accountability to me but given one has to know where to look but that
  is all the more fun ?
 
  Aruna ( Unknown competence and anti-social my brown skinny ass - no
 offence
  meant )

 *rofl* I can copy someone else's web page source (MIT licensed or
 not) and put up a joke web page using it. If it's appropriately
 licensed (as this one is) I wouldn't even be doing anything
 illegal. That doesn't mean I'm the author of whatever I copy.


True and agreed !


 Anyway, I hope it is Greg Kroah-Hartman, or someone equally
 competent and overall well regarded. Though the truth is, the second
 part doesn't much matter, if people are getting something out of the
 course.


Arlie believe me I personally learnt a whole lot of things and I sincerely
believe anyone joining who has the patience and  perseveres will be a happy
cookie.

You have a happy day my friend :)



 ---
 Arlie

 (Arlie Stephens ar...@worldash.org)


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


kernel build problems with KDB patch

2014-03-12 Thread RS
Hello


I want to use KDB to debug the module. 
I have done this:
1.  make mrproper
2.  download the patch from the site 
(ftp://oss.sgi.com/www/projects/kdb/download/). Include 
kdb-v4.4-2.6.32-common-6.bz2 and kdb-v4.4-2.6.32-x86-6.bz2
3.  patch -p1  kdb-v4.4-2.6.32-common-6
 patch -p1  kdb-v4.4-2.6.32-x86-6
4.  make menuconfig
 Kernel hacking ---
 Compile the kernel with frame pointers(set Y) 
 Built-in Kernel Debugger support (set Y)  
 KDB off by default(set Y)
5.  make


ERROR LOG:
arch/x86/kernel/traps.c:418 error:expected identifier or '(' before 'if'
arch/x86/kernel/traps.c:437 error:expected identifier or '(' before 'if'
arch/x86/kernel/traps.c:441 error:expected identifier or '(' before 'if'
...
conflicting types for 'reassert_nmi'
...note:previous definition of 'reassert_nmi' was here
...


What should I do ?


Thanks,
HeChuan___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies