logo
Published on KernelTrap (http://kerneltrap.org)

ns16550 serail console in Linux 2.6.19

By
Created Sep 25 2007 - 02:12

Hi all
am having a custom PPC7410 board, with 2.4.20 kernel.
the board stops booting after i upgraded the kernel to 2.6.19 from ELDK4.1
"Freeing unused kernel memory: 300k init" then hangs. No error is reported...
Am using the same ramdisk i used in 2.4.20 kernel.. in which I hadn't set up the compulsary links(fd,stdin,stdout,stderr) specified in the devices.txt document. still it works fine with 2.4.20.is it must in 2.6
i tried to use some custom init program, it works except that printfs are not working.
processor bridge has 2 serial ports (NS16550), am using 8250.c.
in my custom init, i mmaped the serial port address and tried to write to the serial port data register.it is working fine. then what can be the reason printf failing?
what is the correct kernel commandline to boot in ramdisk mode "console=ttyS1,9600 root=/dev/ram ramdisk_szie=10240" is my command line.

Thanks in advance.
kpnash


Source URL:
http://kerneltrap.org/node/14448