EmbeddedRelated.com
Forums
Memfault Beyond the Launch

console is not working on touch screen

Started by rohith S May 15, 2008
hi
i have done the porting kernelsuccessfully to at91sam9261ek but the the console is notdisplaying on the touch screen it is only coming on hyper terminal please reply me wt might be the error is there any driver we need to include when we are configuring linux kernel through menuconfig if so which driver we need to include please reply

kernel :linux2.6.20
uboot-1.5
gcc arm-linux-gcc-3.4.1
rohith S wrote:

> hi
> i have done the porting kernel successfully to at91sam9261ek but the the
> console is not displaying on the touch screen it is only coming on
> hyper terminal please reply me wt might be the error is there any driver
> we need to include when we are configuring linux kernel through
> menuconfig if so which driver we need to include please reply
>
You need to enable framebuffer-console driver in the kernel.
Caglar

i enabled that also but still it is not coming please reply wt might be the prob

Caglar Akyuz wrote: rohith S wrote:

>
>
> hi
> i have done the porting kernel successfully to at91sam9261ek but the the
> console is not displaying on the touch screen it is only coming on
> hyper terminal please reply me wt might be the error is there any driver
> we need to include when we are configuring linux kernel through
> menuconfig if so which driver we need to include please reply
>

You need to enable framebuffer-console driver in the kernel.
Caglar
rohith S wrote:

> i enabled that also but still it is not coming please reply wt might be
> the prob
>
What is your kernel command-line? Are you giving your virtual terminal
to the kernel at boot time? Instead of serial port, try directing kernel
output to tty0 with kernel command line option "console=tty0".

If you want to use both your serial terminal and monitor you should edit
your /etc/inittab file for console output on tty0, also.

Caglar

my inittab file is

console:: sysinit:/etc/init.d/rcS
::respawn:-/bin/sh
::askfirst:-/bin/sh

::restart:/sbin/init
::ctrlaltdel:/sbin/reboot
::shoutdown:/bin/umount -a -s

actually i given ttyS0::askfirst:-/bin/sh
but it is showing some error
can u correct if any mistake

this is at hyper terminal

putusb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
uba: uba1
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
at91_i2c at91_i2c: AT91 i2c bus driver.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 108K
[root@:]#ls
bin home mnt sbin usr
dev lib proc sys
etc lost+found root tmp
[root@:]#

Caglar Akyuz wrote: rohith S wrote:

>
>
> i enabled that also but still it is not coming please reply wt might be
> the prob
>

What is your kernel command-line? Are you giving your virtual terminal
to the kernel at boot time? Instead of serial port, try directing kernel
output to tty0 with kernel command line option "console=tty0".

If you want to use both your serial terminal and monitor you should edit
your /etc/inittab file for console output on tty0, also.

Caglar
rohith S wrote:

>
> my inittab file is
>
> console:: sysinit:/etc/init.d/rcS
To be on the safe side, change this line to:
null::sysinit:/etc/init.d/rcS

> ::respawn:-/bin/sh
> ::askfirst:-/bin/sh
>
Try removing these two.

> ::restart:/sbin/init
> ::ctrlaltdel:/sbin/reboot
> ::shoutdown:/bin/umount -a -s
>
can you add "null" to the beginning of these 3 lines,
again to be on the safe side.

> actually i given ttyS0::askfirst:-/bin/sh
you should try adding: "tty1::respawn:-/bin/sh"

> but it is showing some error
> can u correct if any mistake
>
I couldn't see any error in your output. Next time please add
full dmesg output, it helps a lot.

By the way, do you see penguin logo at boot on your lcd/monitor/whatever?

Regards,
Caglar

hi caglar

unable to solve the problem can u send me the structure of procedure or inittab and rcS structrure

regards rohith

Caglar Akyuz wrote: rohith S wrote:

>
>
>
> my inittab file is
>
> console:: sysinit:/etc/init.d/rcS

To be on the safe side, change this line to:
null::sysinit:/etc/init.d/rcS

> ::respawn:-/bin/sh
> ::askfirst:-/bin/sh
>

Try removing these two.

> ::restart:/sbin/init
> ::ctrlaltdel:/sbin/reboot
> ::shoutdown:/bin/umount -a -s
>

can you add "null" to the beginning of these 3 lines,
again to be on the safe side.

>
>
> actually i given ttyS0::askfirst:-/bin/sh

you should try adding: "tty1::respawn:-/bin/sh"

> but it is showing some error
> can u correct if any mistake
>

I couldn't see any error in your output. Next time please add
full dmesg output, it helps a lot.

By the way, do you see penguin logo at boot on your lcd/monitor/whatever?

Regards,
Caglar
hi to all

i have done the porting successfully but now i plan to do one application in the at91sam9261ek using qt but i am unable to execute a simple hello code please help me
my code is

#include
void main()
{
printf("hello");
}

i have written this int he vi editor and compiled using arm-linux-gcc compiler3.4.1 and it gives the binary file a.out this bin file i transfered to board (linux environment) but and given the command ./a.out but this is not executing it is giving error "(" missing at line 1
any thing i need to add i.e header file

pl reply and also guide me for the qt application how i need to proceed

thanks and regards
rohith
----- Original Message ----
From: rohith S
To: A...
Sent: Monday, May 19, 2008 4:02:30 PM
Subject: Re: [AT91SAM] console is not working on touch screen
hi caglar

unable to solve the problem can u send me the structure of procedure or inittab and rcS structrure

regards rohith

Caglar Akyuz wrote:
rohith S wrote:

>
> my inittab file is
>
> console:: sysinit:/etc/ init.d/rcS

To be on the safe side, change this line to:
null::sysinit: /etc/init. d/rcS

> ::respawn:-/ bin/sh
> ::askfirst:- /bin/sh
>

Try removing these two.

> ::restart:/sbin/ init
> ::ctrlaltdel: /sbin/reboot
> ::shoutdown: /bin/umount -a -s
>

can you add "null" to the beginning of these 3 lines,
again to be on the safe side.

> actually i given ttyS0::askfirst: -/bin/sh

you should try adding: "tty1::respawn: -/bin/sh"

> but it is showing some error
> can u correct if any mistake
>

I couldn't see any error in your output. Next time please add
full dmesg output, it helps a lot.

By the way, do you see penguin logo at boot on your lcd/monitor/ whatever?

Regards,
Caglar
GCC will expect main() to return an int so you might try :

int main (void)
{
}

Also, I don't know what happens in your OS when you return from main(), your AT91's startup
code might restart from reset etc.

-- Kris

________________________________________
From: A... [mailto:A...] On Behalf Of rohith S
Sent: Thursday, 29 May 2008 5:06 PM
To: A...
Subject: {Disarmed} Re: [AT91SAM] console is not working on touch screen

hi to all

i have done the porting successfully but now i plan to do one application in the at91sam9261ek
using qt but i am unable to execute a simple hello code please help me
my code is

#include
void main()
{
printf("hello");
}

i have written this int he vi editor and compiled using arm-linux-gcc compiler3.4.1 and it gives
the binary file a.out this bin file i transfered to board (linux environment) but and given the
command ./a.out but this is not executing it is giving error "(" missing at line 1
any thing i need to add i.e header file

pl reply and also guide me for the qt application how i need to proceed

thanks and regards
rohith

Memfault Beyond the Launch