LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-23-2011, 01:58 PM   #1
Chaosmaster
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Unhappy Embedded System Switch from 2.6.19.7 to 2.6.30+ No output at all


Hello Guys,

I hope I'm posting in the correct forum.
I am working with a (specialized) embedded system (NEC VR4133A MIPS CPU)
It is currently running U-Boot 1.3.2 + Linux-Kernel 2.6.19.7.
I am trying to get a kernel >=2.6.30 running on the box.

I do have the source-code and config for the system running on there and i was able to build a running kernel from the sources.
I was also able to port the drivers for the board to 2.6.20.1 and successfully boot it.

Now I'm trying to port the drivers to a kernel >=2.6.30.
With some patching i managed to compile the kernel (actually I'm using 2.6.32.27 for testing) but when i try to boot it through U-Boot, I do not get any (serial-)console output at all after u-boot passes execution to the kernel.
I even put a printk in the very beginning of the setup.c for the board, still nothing.

Right now I'm becoming really frustrated as I'm running out of ideas and I've got no clue how to debug the kernel without even getting any output at all.

I am not even sure how to test if there's something wrong with the console-drivers or if the kernel doesn't boot at all.

I am also wondering if this could be caused by a too old u-boot (even though i don't really get how this could cause a kernel not booting at all when it can successfully boot an older kernel).

I hope someone can point me into the right direction.

Thanks in advance,

Chaos
 
Old 03-23-2011, 05:41 PM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
Does the kernel start at-all ?
If not are you using a proper "console=" option in the kernel command line ?
 
Old 03-24-2011, 04:46 AM   #3
Chaosmaster
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

I'm using the same config that worked with the 2.6.19 and 2.6.20 Kernels (console=/dev/ttyS1,115200n8).
I also tried ttyS0 - ttyS4 no luck.
Is there a chance the naming has changed in the newer kernel?
If so, how could i find out the new name?
Is there a way to tell the kernel to use all available consoles for output?

As far as i can see i really have no way to tell if the kernel is running because the serial-console (so far) is my only means of communication with the box. (The network-drivers also need to be ported).

Any other suggestions?

Thx,

Chaos

EDIT:

I now put in some lines in my setup.c which (should) switch on all available LEDs, this works for 2.6.19 however in 2.6.32.27 the LEDs don't turn on.
I kind of have the feeling my setup code isn't called at all...
How can i make sure it is being called? Which files need to be changed so the code can be hooked into the kernel?

Last edited by Chaosmaster; 03-24-2011 at 05:20 AM.
 
Old 03-27-2011, 05:39 PM   #4
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
I think it is "console=ttyS0" (do not need a /dev/ttyS0 since /dev is not mounted and not known by kernel). Can you try this please ?
 
Old 03-31-2011, 04:12 AM   #5
l2y3n2
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
in drivers/serial/vr41xx_siu.c

816static struct console siu_console = {
817 .name = "ttyVR",
818 .write = siu_console_write,
819 .device = uart_console_device,
820 .setup = siu_console_setup,
821 .flags = CON_PRINTBUFFER,
822 .index = -1,
823 .data = &siu_uart_driver,
824};

so I think you should try: "console=ttyVR1"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File System for embedded system nima0102 Linux - Security 3 11-19-2010 03:12 PM
File system for embedded system nima0102 Linux - General 2 05-04-2010 12:01 AM
[SOLVED] Getting xdebug 2.0.5 switch text output to html output lhorace Linux - Server 1 11-01-2009 05:23 PM
Xpert in 8-16 bit microcontroller embedded system now inclining toward embedded linux priyadarshan Linux - Embedded & Single-board computer 2 02-12-2009 04:28 AM
Script or Terminal command to switch audio output? jjsonp Linux - Software 0 01-26-2008 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration