From shibuthomas at tataelxsi.co.in Mon Jan 3 06:29:31 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Mon, 03 Jan 2011 11:59:31 +0530 Subject: source code of /sbin/init Message-ID: <4D216CCB.1070301@tataelxsi.co.in> Hi All, How can I get the source code of /sbin/init executable used in RHEL 6.0 Regards, ShibuThomas From ricks at nerd.com Mon Jan 3 17:59:31 2011 From: ricks at nerd.com (Rick Stevens) Date: Mon, 03 Jan 2011 09:59:31 -0800 Subject: source code of /sbin/init In-Reply-To: <4D216CCB.1070301@tataelxsi.co.in> References: <4D216CCB.1070301@tataelxsi.co.in> Message-ID: <4D220E83.5080403@nerd.com> On 01/02/2011 10:29 PM, ShibuThomas wrote: > Hi All, > > How can I get the source code of /sbin/init executable used in RHEL 6.0 Install the upstart-sysvinit source RPM. This is true of any binary on the system. First, find out which RPM contains the binary via rpm -qf /path/to/binary The source code for that RPM in in the .src.rpm with the same name. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Never try to outstubborn a cat. - ---------------------------------------------------------------------- From ricks at nerd.com Mon Jan 3 18:03:22 2011 From: ricks at nerd.com (Rick Stevens) Date: Mon, 03 Jan 2011 10:03:22 -0800 Subject: Run an executable from InitRamfs In-Reply-To: <4D1D56F0.30206@tataelxsi.co.in> References: <4D1D56F0.30206@tataelxsi.co.in> Message-ID: <4D220F6A.4000704@nerd.com> On 12/30/2010 08:07 PM, ShibuThomas wrote: > Hi ALL, > > Is it possible to execute my application(eg.hello world program) from > initramfs before switching to /sbin/init and after the execution of my > application I want to execute kernel Init?. No. init is the parent process of the entire system. You can make your application run before anything else, but remember that until the network is up (e.g. after the NIC drivers are loaded and the network startup script is run), your machine isn't even seen on the network. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Huked on foniks reely wurked for me! - ---------------------------------------------------------------------- From shibuthomas at tataelxsi.co.in Tue Jan 4 04:42:48 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Tue, 04 Jan 2011 10:12:48 +0530 Subject: source code of /sbin/init In-Reply-To: <4D220E83.5080403@nerd.com> References: <4D216CCB.1070301@tataelxsi.co.in> <4D220E83.5080403@nerd.com> Message-ID: <4D22A548.7050605@tataelxsi.co.in> Hi All, Is same upstart-0.6.5-9.fc14.src.rpm used in RHEL 6.0?.If not, please let me know the exact upstart rpm package name used in RHEL 6.0 Which is the file get invoke first while calling /sbin/init. How it is possible to recompile the src of /sbin/init?. Is there is any tutorials to explain the code flow /sbin/init. Regards, ShibuThomas On 1/3/2011 11:29 PM, Rick Stevens wrote: > On 01/02/2011 10:29 PM, ShibuThomas wrote: >> Hi All, >> >> How can I get the source code of /sbin/init executable used in RHEL 6.0 > > Install the upstart-sysvinit source RPM. This is true of any binary > on the system. First, find out which RPM contains the binary via > > rpm -qf /path/to/binary > > The source code for that RPM in in the .src.rpm with the same name. > ---------------------------------------------------------------------- > - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - > - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - > - - > - Never try to outstubborn a cat. - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > From shibuthomas at tataelxsi.co.in Tue Jan 4 05:36:40 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Tue, 04 Jan 2011 11:06:40 +0530 Subject: Installing sysvinit-2.87-1.dsf.el6.src Message-ID: <4D22B1E8.2030008@tataelxsi.co.in> Hi All, How can I find the sysvinit-2.87-1.dsf.el6.src.rpm installed location. I use the command rpm -ivh sysvinit-2.87-1.dsf.el6.src.rpm for installing the package. which will be the default installation location for sysvinit-2.87-1.dsf.el6.src.rpm Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Tue Jan 4 10:09:37 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Tue, 04 Jan 2011 15:39:37 +0530 Subject: Doubt on GPLv3 license. Message-ID: <4D22F1E1.1090902@tataelxsi.co.in> Hi All, I found that Bash shell used in RHEL 6.0 is comes under GPLv3 license.We are going to use RHEL 6.0 distro as linux distro for developing a custom product.So my doubt is,we are using Init script in Initramfs and SysInit script,inittab etc which all need bash shell,If I use bash shell whether I need to publish my source code. Our product is a custom movie player. Regards, ShibuThomas From ricks at nerd.com Tue Jan 4 18:03:59 2011 From: ricks at nerd.com (Rick Stevens) Date: Tue, 04 Jan 2011 10:03:59 -0800 Subject: Installing sysvinit-2.87-1.dsf.el6.src In-Reply-To: <4D22B1E8.2030008@tataelxsi.co.in> References: <4D22B1E8.2030008@tataelxsi.co.in> Message-ID: <4D23610F.2040706@nerd.com> On 01/03/2011 09:36 PM, ShibuThomas wrote: > Hi All, > > How can I find the sysvinit-2.87-1.dsf.el6.src.rpm installed location. It will be in the "source" repository. I believe EL6 uses yum to update, so check the files in /etc/yum.repos.d and enable the source repo, then "yum install sysvinit-2.87-1.dsf.el6.src.rpm". > I use the command rpm -ivh sysvinit-2.87-1.dsf.el6.src.rpm for > installing the package. > > which will be the default installation location for > sysvinit-2.87-1.dsf.el6.src.rpm It will be either in /usr/src/redhat or the ~username/rpmbuild tree (with "username" being the name of the user you installed it as). ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Linux is like a wigwam...no windows, no gates...and apache inside! - ---------------------------------------------------------------------- From shibuthomas at tataelxsi.co.in Wed Jan 5 04:53:16 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Wed, 05 Jan 2011 10:23:16 +0530 Subject: change init script in intramfs to init process(c function) Message-ID: <4D23F93C.6040704@tataelxsi.co.in> Hi All, I' m trying to create int process instead of /int script in initramfs.Here I need to mount root file system and after that I want to execute first user space program /sbin/init.my root file system is in /dev/sda1 partition. Can anyone help me to know the following: 1) The corresponding c function for mounting RFS with argument. 2) C function for switching /sbin/init. Is this function call run_init_process("/sbin/init")in (init/main.c in kernel source) will switch procees into /sbin/int. Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Wed Jan 5 12:36:09 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Wed, 05 Jan 2011 18:06:09 +0530 Subject: Build error in RHEL 6.0 Message-ID: <4D2465B9.2040909@tataelxsi.co.in> Hi All, I'm getting error while make c program in RHEL 6.0. I have used command "gcc -static Init.c -o Init" showing the error: /opt/RHEL6.0/usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status But " gcc Init.c o Init " is working fine. How can I rectify the problem. Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Thu Jan 6 06:03:09 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Thu, 06 Jan 2011 11:33:09 +0530 Subject: Regarding support of GMA_HD in RHEL 6.0 Message-ID: <4D255B1D.5050401@tataelxsi.co.in> Hi All, I'm using RHEL 6.0 running on an i5 core.Using dmesg I found that 'i915' driver is being enabled.Can anyone tell me whether this is the driver that is used for supporting builtin hardware acceleration (GMA-HD) available with i5 core? Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Tue Jan 11 13:42:28 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Tue, 11 Jan 2011 19:12:28 +0530 Subject: License for building a custom product using fedora Message-ID: <4D2C5E44.2070403@tataelxsi.co.in> Dear All, Can anyone clarify my following concern on fedora 14? Following are the steps we are planning to do with Fedora 14. Please let us know if any of the steps mentioned below cost customer(Say Company 'A') to pay Fedora 14. 1. Dowload Fedora 14 source code 2. Install the same in a Dell Latitude E6410 Laptop 3. Customize the source code of Fedora 14 This step includes: a) Removal of unwanted packages (from product point of view) of Fedora 14 Example: X11, some bin utils etc. b) Change the configuration of the Linux kernel Please note: Not the source code modification c) Add product specific custom drivers 4. Compile the customized source code to create an image(Kernel + product specific application) . 5. Flash this image to N number of devices 6. Sell these devices to the world wide consumers Following are our concerns in using Fedora 14 server for the product: 1) Whether Company 'A' would need a license to redistribute the above mentioned image inside a device? 1.1) What is cost of license in case a license fee exists? 1.2) If license fee exists, whether it will vary according to the number of standard packages of Fedora 14 incorporated in this image? 2) Whether there would be any royalty per shipped system that incorporates this image ? 2.1) If royalty exists, which assets owned by Fedora 14 is causing it. Example: Kernel patches developed by Fedora 14, Supporting packages etc. Regards, ShibuThomas From mccarty at yournetguard.com Tue Jan 11 15:20:15 2011 From: mccarty at yournetguard.com (Ronald Mccarty) Date: Tue, 11 Jan 2011 09:20:15 -0600 Subject: License for building a custom product using fedora In-Reply-To: <4D2C5E44.2070403@tataelxsi.co.in> References: <4D2C5E44.2070403@tataelxsi.co.in> Message-ID: <85FCAF9F-A8CB-4425-9D1B-9B4BF11105BB@yournetguard.com> Shibu, At a high level you'll need to remove the Fedora logos and ensure each package you are using permits redistribution. Most of the GNU stuff will be fine...it gets dicey around some drivers. Here's the license: http://fedoraproject.org/wiki/Legal/Licenses/LicenseAgreement14 My 2 cents on the subject is if you're going to use one of the "full" distros, you are much better using an "additive" approach when using them, i.e., include the full distro to meet their licensing, and then add your software in a clearly defined way to keep the two sepearte--if someone asks you for the "free" stuff, you point them to a distro or provide it with the system. There are smaller, tighter, functional distros, those are not w/o challenges though, as you're likely wanting a pretty good repository to stay up with some patching. --ron On Jan 11, 2011, at 7:42 AM, ShibuThomas wrote: > Dear All, > > Can anyone clarify my following concern on fedora 14? > > Following are the steps we are planning to do with Fedora 14. > > Please let us know if any of the steps mentioned below cost customer(Say Company 'A') to pay Fedora 14. > > 1. Dowload Fedora 14 source code > 2. Install the same in a Dell Latitude E6410 Laptop > 3. Customize the source code of Fedora 14 > This step includes: > a) Removal of unwanted packages (from product point of view) of Fedora 14 > Example: X11, some bin utils etc. > b) Change the configuration of the Linux kernel > Please note: Not the source code modification > c) Add product specific custom drivers > 4. Compile the customized source code to create an image(Kernel + product specific application) . > 5. Flash this image to N number of devices > 6. Sell these devices to the world wide consumers > > Following are our concerns in using Fedora 14 server for the product: > 1) Whether Company 'A' would need a license to redistribute the above mentioned image inside a device? > 1.1) What is cost of license in case a license fee exists? > 1.2) If license fee exists, whether it will vary according to the number of standard packages of Fedora 14 incorporated in this image? > 2) Whether there would be any royalty per shipped system that incorporates this image ? > 2.1) If royalty exists, which assets owned by Fedora 14 is causing it. > Example: Kernel patches developed by Fedora 14, Supporting packages etc. > > Regards, > ShibuThomas > > > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe --ron -- Ronald Mccarty mccarty at YourNetGuard.com Web: http://www.yournetguard.com/ Blog: http://ron.yournetguard.com/ Linkedin: http://www.linkedin.com/in/ronaldmccarty Twitter: http://twitter.com/ronmccarty/ Facebook: http://bit.ly/YourNetGuard Podcast: http://www.blockedports.com/ -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From shibuthomas at tataelxsi.co.in Tue Jan 18 09:05:09 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Tue, 18 Jan 2011 14:35:09 +0530 Subject: doubt in frame buffer using with RHEL 6.0 Message-ID: <4D3557C5.5080409@tataelxsi.co.in> Hi All, I'm using an i5 core with builtin graphics accelerator GMA-HD running on an RHEL 6.0 OS. I needed to test the graphics acceleration capabilities of the graphics driver(which I found out was i915 in my PC). I used the following code(which I got from the internet ) for writing to framebuffer. /*******************************************************/ #include #include #include #include #include int main() { int fbfd = 0; struct fb_var_screeninfo vinfo; struct fb_fix_screeninfo finfo; long int screensize = 0; //char *fbp = 0; char *fbp = 0; int x = 0, y = 0; long int location = 0; int count ; /* Open the file for reading and writing */ fbfd = open("/dev/fb0", O_RDWR); if (!fbfd) { printf("Error: cannot open framebuffer device.\n"); exit(1); } printf("The framebuffer device was opened successfully.\n"); /* Get fixed screen information */ if (ioctl(fbfd, FBIOGET_FSCREENINFO, &finfo)) { printf("Error reading fixed information.\n"); exit(2); } /* Get variable screen information */ if (ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)) { printf("Error reading variable information.\n"); exit(3); } /* Figure out the size of the screen in bytes */ screensize = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel / 8; printf("\nScreen size is %d",screensize); printf("\nVinfo.bpp = %d",vinfo.bits_per_pixel); // printf("\nFinfo.bpp = %d",finfo.bits_per_pixel); /* Map the device to memory */ fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED,fbfd, 0); if ((int)fbp == -1) { printf("Error: failed to map framebuffer device to memory.\n"); exit(4); } printf("The framebuffer device was mapped to memory successfully.\n"); x = 100; y = 100; /* Where we are going to put the pixel */ /* Figure out where in memory to put the pixel */ location = (x+vinfo.xoffset) * (vinfo.bits_per_pixel/8) + (y+vinfo.yoffset) * finfo.line_length; for(count = 1 ;count < 100 ;count++) { *(fbp + location) = 255; /* Some blue */ *(fbp + location + count) = 0; /* A little green */ *(fbp + location + count + 1) = 0; /* A lot of red */ *(fbp + location + count + 2) = 0; /* No transparency */ } munmap(fbp, screensize); close(fbfd); return 0; } /*************************************************************************/ After running the above code no change was found on display but ' cat /dev/fb0 ' showed some data. Could someone explain why nothing was seen on screen? (I also found that fb0 correspond to the frame buffer 'inteldrmfb' .) Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Fri Jan 21 08:51:20 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Fri, 21 Jan 2011 14:21:20 +0530 Subject: How to display custom logo on start up Message-ID: <4D394908.8040803@tataelxsi.co.in> Hi All, Is it possible to display custom logo image before showing ReadHat splash screen image?. The file menu.lst in grub contains "splashimage=(hd0,0)/boot/grub/splash.xpm.gz".I changed the splash.xpm.gz.and reboot the system. But it was not effective. The orginal splash.xpm used in RHEL 6.0 is a black background image.But during the bootup time it is displaying "RED HAT LINUX ENTERPRISE" on that black background.How this is working?. Can anyone help me to know how can I customize the boot up logo display. Regards, ShibuThomas From shibuthomas at tataelxsi.co.in Fri Jan 21 13:42:53 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Fri, 21 Jan 2011 19:12:53 +0530 Subject: Regarding play mouth usage Message-ID: <4D398D5D.7020202@tataelxsi.co.in> Hi All, How can I use play mouth for displaying a customized theme at boot up. What all are the packages we needed in RHEL 6.0 to make it works? Regards, ShibuThomas From kuhlbreeze at rocketmail.com Sun Jan 23 18:09:30 2011 From: kuhlbreeze at rocketmail.com (Lyle) Date: Sun, 23 Jan 2011 10:09:30 -0800 (PST) Subject: Redhat-install-list Digest, Vol 83, Issue 7 'help' In-Reply-To: References: Message-ID: <114766.74956.qm@web161903.mail.bf1.yahoo.com> 'help' Please remove kuhlbreeze at rocketmail.com from this mail list. Thanks, Lyle ________________________________ From: "redhat-install-list-request at redhat.com" To: redhat-install-list at redhat.com Sent: Fri, January 21, 2011 11:00:02 AM Subject: Redhat-install-list Digest, Vol 83, Issue 7 Note: Forwarded message is attached. Send Redhat-install-list mailing list submissions to redhat-install-list at redhat.com To subscribe or unsubscribe via the World Wide Web, visit https://www.redhat.com/mailman/listinfo/redhat-install-list or, via email, send a message with subject or body 'help' to redhat-install-list-request at redhat.com You can reach the person managing the list at redhat-install-list-owner at redhat.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Redhat-install-list digest..." Today's Topics: 1. How to display custom logo on start up (ShibuThomas) 2. Regarding play mouth usage (ShibuThomas) _______________________________________________ Redhat-install-list mailing list Redhat-install-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-install-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricks at nerd.com Mon Jan 24 17:20:06 2011 From: ricks at nerd.com (Rick Stevens) Date: Mon, 24 Jan 2011 09:20:06 -0800 Subject: Redhat-install-list Digest, Vol 83, Issue 7 'help' In-Reply-To: <114766.74956.qm@web161903.mail.bf1.yahoo.com> References: <114766.74956.qm@web161903.mail.bf1.yahoo.com> Message-ID: <4D3DB4C6.9050904@nerd.com> On 01/23/2011 10:09 AM, Lyle wrote: > 'help' > > Please remove kuhlbreeze at rocketmail.com from this mail list. You unsubscribe yourself by following the instructions at the bottom of EVERY posting on the list: https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request at redhat.com Subject: unsubscribe ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - I.R.S.: We've got what it takes to take what you've got! - ----------------------------------------------------------------------