No ttyS0 interface with new kernel

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

No ttyS0 interface with new kernel

Postby chemary » Sat Jul 06, 2013 9:10 pm

Hello,
I spent the whole day updating my sheevaplug, now I have kernel 3.9.9 from http://www.xilka.com/kernel installed without problems, and "U-Boot 2012.04.01 (Jun 01 2012 - 02:27:06)" I got it working after trying several environment variables for booting from USB.

But I found that after updating to last kernel I have lost the serial console via the miniUSB, when control is passed to the kernel I don't get messages anymore

$this->bbcode_second_pass_code('', '
U-Boot 2012.04.01 (Jun 01 2012 - 02:27:06)
Marvell-Sheevaplug - eSATA - SD/MMC

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/uImage" from usb device 0:1 (usbda1)
2403409 bytes read

Reset IDE: ide_preinit failed
## Booting kernel from Legacy Image at 08000000 ...
Image Name: Linux-kirkwood-sheevaplug-3.9.9
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2403345 Bytes = 2.3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

')

These is how uBoot is configured:
$this->bbcode_second_pass_code('', '
baudrate=115200
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root} $(x_bootargs_net); ${x_bootcmd_usb}; ${x_bootcmd_sata}; bootm 0x8000000;
bootdelay=3
ethact=egiga0
ethaddr=00:XX:XX:XX:XX:XX
mtdids=nand0=orion_nand
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200 netconsole=@/,@192.168.0.5/ mtdparts=orion_nand:512k(uboot),4m@1m(kernel),507m@5m(rootfs) rw
x_bootargs_net=ip=192.168.0.2:192.168.0.1:192.168.0.1:255.255.255.0:DB88FXX81:eth0:none
x_bootargs_root=rootdelay=10 rootfstype=ext2 root=/dev/sda2
x_bootcmd_kernel=usb start; ext2load usb 0:1 0x8000000 /uImage
x_bootcmd_sata=ide reset;
x_bootcmd_usb=usb start;
')

I compared dmesg with the one from the old kernel (2.6.39.4) and I see that previuosly ttyS0 was found and console enabled but I don't see these messages now
$this->bbcode_second_pass_code('', '
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
')

$this->bbcode_second_pass_code('', '
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
')

I have the serial devices on dev and inittab seems correct
$this->bbcode_second_pass_code('', '
root@nohost:~# ll /dev/ttyS*
crw-rw---- 1 root tty 4, 64 Jul 6 22:51 /dev/ttyS0
crw-rw---T 1 root dialout 4, 65 Jul 6 22:51 /dev/ttyS1

root@nohost:~# cat /etc/inittab |grep ttyS0
T0:12345:respawn:/sbin/getty -L ttyS0 115200 vt100
')

I don't know if it's a configuration error or maybe the kernel is not compiled for having a serial console (I doubt it).

I tried also to configure netconsole without luck, even monitoring udp trafic and forcing kernel messages I don't see any traffic.
chemary
 
Posts: 1
Joined: Sat Jul 06, 2013 8:08 pm

Re: No ttyS0 interface with new kernel

Postby kmihelich » Sat Jul 06, 2013 9:47 pm

We don't support kernels that aren't ours.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 15 guests