From mboxrd@z Thu Jan 1 00:00:00 1970 From: Terence Soh Subject: Re: printk on framebuffer console Date: Wed, 31 May 2006 09:47:43 +0800 Message-ID: <447CF5BF.5080507@singnet.com.sg> References: <447C03C6.3000805@singnet.com.sg> <447C37F5.8000008@gmail.com> <447CE73C.2060807@singnet.com.sg> <447CE95C.2080603@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from [10.3.1.93] (helo=sc8-sf-list1-new.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1FlFpC-0005Xo-5Y for linux-fbdev-devel@lists.sourceforge.net; Tue, 30 May 2006 18:48:42 -0700 Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1FlFpC-0002PI-6Y for linux-fbdev-devel@lists.sourceforge.net; Tue, 30 May 2006 18:48:42 -0700 Received: from smtp42.singnet.com.sg ([165.21.103.146]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1FlFpA-0004Dx-E8 for linux-fbdev-devel@lists.sourceforge.net; Tue, 30 May 2006 18:48:42 -0700 In-Reply-To: <447CE95C.2080603@gmail.com> Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: "Antonino A. Daplas" Cc: Linux Fbdev development list >>Are xxxfb_setcolreg function() and info->pseudo_palette necessary for >>FB_VISUAL_TRUECOLOR? I thought it's required for FB_VISUAL_PSEUDOCOLOR. >> > > > Other way around, the info->pseudo_palette is needed for truecolor and > directcolor. So fill this array properly, and you should be good to go. > Look at any driver (ie vesafb.c) on how it's done. > Thanks Tony, Turned out that I was missing the xxxfb_setcolreg function() and info->pseudo_palette. Once that's done, the console is appearing on the framebuffer. Another question. The console only prints starting from the scripts in /etc/init.d/rcS , the printk messages from the various drivers are missing. My kernel command line is "console=ttyS0 root=/dev/mtdblock3 rootfstype=jffs2". Is there any reason why? Terence. ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642