Re: [Celinux-dev] [Q] TinyLinux project status (resend)

2012-04-24 Thread Ezequiel García
Hi, Linux in under 2 megabytes of RAM, even when running from ROM, is not a realistic goal. For context: linux 0.0.1 was developed on a 4 megabyte system in 1991. Swap support was added in december of that year so it could run on a 2 megabyte system. After some research I came to the same

Re: [Celinux-dev] [Q] TinyLinux project status (resend)

2012-04-24 Thread Ezequiel García
Hi, 2012/4/24 Gustavo Sverzut Barbieri barbi...@profusion.mobi: It seems Linux is not aiming that low after all, however a little effort to try to un-bloat the current state of things can't hurt, right? Do you know the state of uCLinux, when those options are enabled it should be better,

Re: [Celinux-dev] [Q] TinyLinux project status (resend)

2012-04-24 Thread Ezequiel García
Yes, to my understanding ucLinux was merged into vanilla Linux during 2.6 development, but it was the options hidden under a global flag. These flags would enable remove MMU and other parts. Confirm? I tried that on a 5282 mmu-less board, so... confirmed to the best of my knowledge :)

Re: Svn Error

2012-04-23 Thread Ezequiel García
On Mon, Apr 23, 2012 at 9:14 AM, Madhav Mohan madhav...@gmail.com wrote: Hi Guys I have just started learning about the tools to start contributing to open source. I had installed svn through apt get in  ubuntu 10.10 but when I try to commit anything to the repository i get this error This

Linux code quality

2012-04-20 Thread Ezequiel García
Off-topic, perhaps not relevant... need to throw this out me :) Why do I have to hear that linux code is not well written? Having seen lots of other projects, it seems very neat to me. Actually, it is one of the main reasons that makes me want to learn, help, etc. Thanks, Ezequiel.

Re: TinyLinux project status

2012-04-11 Thread Ezequiel García
Hi Peter, 2012/4/10 Peter Teoh htmldevelo...@gmail.com: http://www.chibios.org/dokuwiki/doku.php?id=chibios:documents:requirements This is 2KiB RAM for recommended configuration. It is not Linux, but is based on RTOS. Chibios looks interesting, thanks... 2012/4/11 Peter Teoh

TinyLinux project status

2012-04-10 Thread Ezequiel García
Hello, I would like to know what is the current status of the tiny linux project? (The current goals, status and activeness). I've found this: http://elinux.org/Linux_Tiny but it seems a bit outdated. Also, I would like to know what's the smaller kernel (static and dynamic memory footprint)

[Q] TinyLinux project status (resend)

2012-04-10 Thread Ezequiel García
Hello, I would like to know what is the current status of the tiny linux project? (The current goals, status and activeness). I've found this: http://elinux.org/Linux_Tiny but it seems a bit outdated. I'm adding Thomas to CC, cause he maintains (or used to according to elinux) a list of

Re: [question] v4l read() operation

2012-02-27 Thread Ezequiel García
Hi Dave, 2012/2/25 Dave Hylands dhyla...@gmail.com: I'm not all that familiar with v4l, but based on what you've posted, you need to populate the read routine in your v4l2_fops structure to support read. My bad! You are totally right: I forgot about my webcam. When I did: $ cat /dev/video0

[question] between probe() and open()

2012-02-25 Thread Ezequiel García
Hello, This is a question in general about usb drivers and in particular about easycap driver. Is there any way a driver can be accesed between after usb_probe() but before device open()? I guess not, since any further operation on the device needs a struct file pointer, i.e. a file descriptor

[question] v4l read() operation

2012-02-25 Thread Ezequiel García
Hi, If I register a video device with this fops: static const struct v4l2_file_operations v4l2_fops = { .owner = THIS_MODULE, .open= xxx_open, .unlocked_ioctl = xxx_unlocked_ioctl, .poll = xxx_poll, .mmap = xxx_mmap, }; then if

Re: Iterating through all the processes in a module

2012-02-22 Thread Ezequiel García
Hi Arokux, On 2/22/12, Arokux B. aro...@gmail.com wrote: Having my code as a module I can trigger its execution (load a module) and disable it (unload a module). How can I achieve this if the code is inside the kernel? One possibility I see is adding an entry in the procfs. I think you want

Re: [PATCH 1/2] staging: easycap: Clean comment style in easycap_usb_probe()

2012-02-19 Thread Ezequiel García
Hi, 2012/2/18 Dan Carpenter dan.carpen...@oracle.com: The first line of the comment here should be a blank line. Ok.        /*         * blah blah blah         * blah blah blah         */ +     /* A new struct easycap is always allocated when interface 0 is probed. +      * It is not

Re: Question on registering driver fops

2012-02-18 Thread Ezequiel García
2012/2/15 Bjørn Mork bj...@mork.no: IMPORT{program}=v4l_id $tempnode So yes, looks like udev will open your device when it's plugged. Thanks! I checked that and you are right. It is also possible to stop udev service and then insert the device. In this case, the device is not opened after

Re: [QUESTION] staging/easycap fix

2012-02-16 Thread Ezequiel García
Hi Peter, 2012/2/15, Peter Senna Tschudin peter.se...@gmail.com: The post: Intro to V4L2: http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Intro-to-V4L2/ And the post: The VIVI driver; a great starting point for V4L2 driver writers: http://lwn.net/Articles/203971/ Thanks,

Question on registering driver fops

2012-02-14 Thread Ezequiel García
Hi, I noticed that after registering a video driver with video_register_device the open function gets called. The registration is like: peasycap-video_device.fops = v4l2_fops; peasycap-video_device.minor = -1; peasycap-video_device.release = (void *)(videodev_release);

[QUESTION] staging/easycap fix

2012-02-13 Thread Ezequiel García
Hi, I'm try to fix staging/easycap driver. I know it has some bugs somewhere (I've seen some panics while using the device) but I wanted to improve the code style before debugging it. In the meantime, I expect to develop a better understanding of the code. However, I want know if I am in the

Re: [QUESTION] staging/easycap fix

2012-02-13 Thread Ezequiel García
El día 14 de febrero de 2012 02:06, Greg KH g...@kroah.com escribió: On Tue, Feb 14, 2012 at 01:47:52AM -0300, Ezequiel García wrote: 2. second, I am fixing some style issues (besides checkpatch), for instance if syntax: -   if (0 == bInterfaceNumber) { +   if (bInterfaceNumber == 0) { You

Re: Booting root filesystem from usb device

2011-12-01 Thread Ezequiel García
--- El mié 30-nov-11, Greg KH g...@kroah.com escribió: Then just pass the command line option to sleep for a while before looking for the root device.  I do that just fine on my tiny dns server that runs from a USB flash drive. Look in Documentation/kernel-parameters.txt for the

Booting root filesystem from usb device

2011-11-30 Thread Ezequiel García
Hi, I have a very silly question. I was building a small hand made root filesystem (with busybox and such) just to show how the process would be done. Something pretty similar to free-electrons 'embedded linux from scratch' (http://free-electrons.com/docs/elfs/) but on a usb device

Re: busybox utility

2011-11-24 Thread Ezequiel García
--- El mié 23-nov-11, naveen yadav yad.nav...@gmail.com escribió: For security issue in busybox. I could not find detail but below slide mention it . https://speakerd.s3.amazonaws.com/presentations/4e9334432deb290054011ba7/slides.pdf For what it's worth in our company we use busybox in

Re: busybox utility

2011-11-24 Thread Ezequiel García
--- El mié 23-nov-11, naveen yadav yad.nav...@gmail.com escribió: De: naveen yadav yad.nav...@gmail.com Asunto: Re: busybox utility Para: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Jeff Haran jha...@bytemobile.com, kernelnewbies@kernelnewbies.org Fecha: miércoles, 23 de

Re: ENOMEM failure on mmap call

2011-10-13 Thread Ezequiel García
--- El jue 13-oct-11, Mulyadi Santosa mulyadi.sant...@gmail.com escribió: this is what I am not clear, do those 10 threads allocate 8 MB each? or 8 MB total? remember that threads share address space by default... I am sorry maybe I explained myself incorrectly, threads don't actually

Re: ENOMEM failure on mmap call

2011-10-13 Thread Ezequiel García
--- El jue 13-oct-11, Mulyadi Santosa mulyadi.sant...@gmail.com escribió: I am sorry maybe I explained myself incorrectly, threads don't actually allocate anything; just mmap it's own stack space (8MB each). I see, so 8 MB each and since you created 10 threads, I suppose that would

ENOMEM failure on mmap call

2011-10-10 Thread Ezequiel García
Hi, I have a SH4 board: $ uname -a Linux LINUX7109 2.6.23.17_stm23_A18B-HMP_7109-STSDK #1 PREEMPT Fri Aug 6 16:08:19 ART 2010 sh4 unknown and suppose I have eaten pretty much all the memory, and have only 9 MB left (aprox.) $ free total used free sharedbuffers cached

Re: OS Books suggestion

2011-06-07 Thread Ezequiel García
I appreciate all the answers. But actually I was just looking for a review on the three books I asked for. Thanks anyway. Ezequiel. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

OS Books suggestion

2011-06-01 Thread Ezequiel García
I am looking for some biblographic material for OS learning (mostly for linux). I've read Linux Device Drivers, and I am interested in these: * The design of unix operating system (Bach) * Modern operative systems (Tanenbaum) * Operating Systems design and implementation(Tanenbaum) I haven't

Rv: Re: knewbies project? - updating LDD3 source

2011-05-24 Thread Ezequiel García
De: DG dang...@gmail.com Asunto: Re: knewbies project? - updating LDD3 source Para: Jim Cromie jim.cro...@gmail.com Cc: kernelnewbies kernelnewbies@kernelnewbies.org Fecha: martes, 24 de mayo de 2011, 15:14 On Tue, May 24, 2011 at 11:47 AM, Robert P. J. Day rpj...@crashcourse.ca

revisiting scullpipe implementation

2011-05-22 Thread Ezequiel García
Hi everybody, I don't know if anyone cares about this subject. But here it goes anyway. I've been reading through the excellent Linux Device Driver book (third ed.) for the past months. I have decided to give it a try to the drivers samples, starting by scull. After some minor updates (mostly

Re: unlocked_ioctl explanation

2011-05-19 Thread Ezequiel García
...@gmail.com Asunto: Re: unlocked_ioctl explanation Para: Ezequiel García elezegar...@yahoo.com.ar Cc: kernelnewbies@kernelnewbies.org Fecha: miércoles, 18 de mayo de 2011, 3:20 Hi Ezequiel, 2011/5/17 Ezequiel García elezegar...@yahoo.com.ar I am aware that ioctl has been superseeded by unlocked_ioctl

asm/types.h question

2011-05-15 Thread Ezequiel García
Hi all, The types listed in asm/types.h __u8, __u16, __u32 and such... ¿ are these types the same as the ones for the kernel ? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Understanding framebuffer drivers

2011-05-08 Thread Ezequiel García
Hi, I am trying to understand framebuffer drivers. I am looking through DirectFB code and have already coded some little examples that accesses my radeondrmfb device through ioctls() and mmap(). Also, I've found this link, but it is very outdated (kernel 2.2)

Kernel compilation

2011-05-02 Thread Ezequiel García
Greetings,After reading Linux Kernel in a Nutshell (by the way, great book), I now have my own kernel configured for my hardware needs.  However, I have some really strange behavior. On tty1, the same tty that launches X11, I have to press twice each keyboard key. Anyone has any idea what's

Staging git tree

2011-04-27 Thread Ezequiel García
Hi everyone, I would like to know where can I find the most recently added staging patches. I heard something about Greg's tree, but I'm not sure wich git tree is it. Also, I would like to ask how can different people work on staging without agreeing on it. I mean, what if I start correcting

Compiling single module

2011-04-26 Thread Ezequiel García
Hi, I browse through the whole net looking how to build a single module from drivers/staging. Tried this on /usr/src/linux: make M=drivers/staging/xgifb/ modules And it worked... root@zeta-pc:/usr/src/linux# make M=drivers/staging/xgifb/ modules   CC [M]  drivers/staging/xgifb/XGI_main_26.o