<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Scott Wood schrieb:
<blockquote cite="mid:20080408164853.GH2552@loki.buserror.net"
type="cite">
<pre wrap="">On Tue, Apr 08, 2008 at 03:50:26PM +0200, Andre Schwarz wrote:
</pre>
<blockquote type="cite">
<pre wrap="">after building a debug kernel and attaching the bdi2000 it looks like
the crash occurs during "console_init()" ...
</pre>
</blockquote>
<pre wrap=""><!---->
Does your device tree have a /chosen node after u-boot is done with it?
find_legacy_serial_ports() can crash otherwise (we really should fix that).
</pre>
<blockquote type="cite">
<pre wrap="">Since we're using a dtb I omit the "console=..." argument for the
kernel. Is this correct ?
</pre>
</blockquote>
<pre wrap=""><!---->
It's OK if you have /chosen/linux,stdout-path.
</pre>
<blockquote type="cite">
<pre wrap="">If "console=/dev/ttyS0,115200N8" argument is given the serial console
stops working after console_init....
On other PowerPC system I could see something like this during boot :
-> find_legacy_serial_port()
stdout is /soc8568@e0000000/serial@4600
legacy_serial_console = 1
default console speed = 115340
<- find_legacy_serial_port()
Should I see this message also ?
</pre>
</blockquote>
<pre wrap=""><!---->
Only if you enable debug messages in legacy_serial.c.
</pre>
<blockquote type="cite">
<pre wrap="">Have I misconfigured anything ?
</pre>
</blockquote>
<pre wrap=""><!---->
One thing that sticks out from the above is that you ask for ttyS0, but the
stdout you list from the other system corresponds to ttyS1. Is this just a
difference between the two systems?
-Scott
</pre>
</blockquote>
<br>
Scott,<br>
<br>
I've added kallsyms and the #debug in legacy_serial.<br>
Obviously there's missing something <br>
-> see error "can't find stdout package
/soc8343@e0000000/serial@4500 !" below.<br>
<br>
<br>
Can you help here ?<br>
<br>
Thanks,<br>
Andre<br>
<br>
<br>
## Booting kernel from Legacy Image at ff810000 ...<br>
Image Name: 2.6.25 mvBL-M7 MPC8343 #12<br>
Image Type: PowerPC Linux Kernel Image (uncompressed)<br>
Data Size: 2494236 Bytes = 2.4 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Loading Kernel Image ... OK<br>
OK<br>
## Flattened Device Tree blob at 00000000<br>
Booting using the fdt blob at 0x600000<br>
## Loading init Ramdisk from Legacy Image at 01000000 ...<br>
Image Name: mvBC-1G uInitrd #1.1.03<br>
Image Type: PowerPC Linux RAMDisk Image (uncompressed)<br>
Data Size: 2654208 Bytes = 2.5 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Loading Ramdisk to 1fcb7000, end 1ff3f000 ... OK<br>
-> early_init_devtree(c0600000)<br>
search "chosen", depth: 0, uname:<br>
search "chosen", depth: 1, uname: chosen<br>
Looking for initrd properties... <3>initrd_start=0xdfcb7000
initrd_end=0xdff3f000<br>
Command line is: root=/dev/ram ro rootfstype=squashfs<br>
dt_root_size_cells = 1<br>
dt_root_addr_cells = 1<br>
memory scan node memory, reg size 8, data: 0 20000000 2 1,<br>
- 0 , 20000000<br>
reserving: 1fcb7000 -> 288001<br>
Phys. mem: 20000000<br>
-> move_device_tree<br>
<- move_device_tree<br>
Scanning CPUs ...<br>
boot cpu: logical 0 physical 0<br>
<- early_init_devtree()<br>
Using mvBlueLYNX-M7 machine description<br>
Linux version 2.6.25-rc8-01197-g1de15bb-dirty (root@nova) (gcc version
4.0.0 (DENX ELDK 4.1 4.0.0)) #12 PREEMPT Wed Apr 9 14:40:48 CEST 2008<br>
-> unflatten_device_tree()<br>
size is 192c, allocating...<br>
unflattening dfffe6d0...<br>
fixed up name for -><br>
fixed up name for chosen -> chosen<br>
fixed up name for wdt@200 -> wdt<br>
fixed up name for ethernet-phy@0 -> ethernet-phy<br>
fixed up name for ethernet-phy@1 -> ethernet-phy<br>
fixed up name for ethernet@24000 -> ethernet<br>
fixed up name for ethernet@25000 -> ethernet<br>
fixed up name for serial@4500 -> serial<br>
fixed up name for serial@4600 -> serial<br>
fixed up name for pic@700 -> pic<br>
fixed up name for ppcboot_env@0 -> ppcboot_env<br>
fixed up name for ppcboot_env_red@0x2000 -> ppcboot_env_red<br>
fixed up name for u-boot_autoscript@0x4000 -> u-boot_autoscript<br>
fixed up name for u-boot_autoscript_red@0x4000 ->
u-boot_autoscript_red<br>
fixed up name for dtb@0x8000 -> dtb<br>
fixed up name for dtb_red@0xa000 -> dtb_red<br>
fixed up name for kernel@0x10000 -> kernel<br>
fixed up name for rfs@0x400000 -> rfs<br>
fixed up name for u-boot@0x700000 -> u-boot<br>
fixed up name for fpga@0x780000 -> fpga<br>
<- unflatten_device_tree()<br>
Found initrd at 0xdfcb7000:0xdff3f000<br>
-> find_legacy_serial_port()<br>
stdout is /soc8343@e0000000/serial@4500<br>
legacy_serial_console = 0<br>
default console speed = 115740<br>
<- find_legacy_serial_port()<br>
console [udbg0] enabled<br>
setup_arch: bootmem<br>
mvblm7_setup_arch()<br>
arch: exit<br>
Zone PFN ranges:<br>
DMA 0 -> 131072<br>
Normal 131072 -> 131072<br>
Movable zone start PFN for each node<br>
early_node_map[1] active PFN ranges<br>
0: 0 -> 131072<br>
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
130048<br>
Kernel command line: root=/dev/ram ro rootfstype=squashfs<br>
PID hash table entries: 2048 (order: 11, 8192 bytes)<br>
clocksource: timebase mult[3c00001] shift[22] registered<br>
<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
-> check_legacy_serial_console()<br>
can't find stdout package /soc8343@e0000000/serial@4500 !<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
<br>
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)<br>
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)<br>
Memory: 514048k/524288k available (2328k kernel code, 9676k reserved,
88k data, 126k bss, 140k init)<br>
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1<br>
Mount-cache hash table entries: 512<br>
------------[ cut here ]------------<br>
Badness at lib/kref.c:43<br>
NIP: c00f5494 LR: c000d6b0 CTR: 00000000<br>
REGS: c025de60 TRAP: 0700 Not tainted
(2.6.25-rc8-01197-g1de15bb-dirty)<br>
MSR: 00029032 <EE,ME,IR,DR> CR: 84000048 XER: 00000000<br>
TASK = c0248510[0] 'swapper' THREAD: c025c000<br>
GPR00: 00000001 c025df10 c0248510 dffff170 dffff050 00000009 df80fc6a
00000000<br>
GPR08: 0007ffff 00000000 df80b990 c06011cf 24000042 5fffffff 1fffd000
00000000<br>
GPR16: 1fffffff 9fffffff 00000000 00000000 1fff8910 1ff426f8 00000004
00288000<br>
GPR24: 00000000 00000000 c02630a0 c0260000 dfffefa0 c025c000 dffff050
dffff13c<br>
NIP [c00f5494] kref_get+0xc/0x24<br>
LR [c000d6b0] of_node_get+0x20/0x38<br>
Call Trace:<br>
[c025df10] [c06011cf] 0xc06011cf (unreliable)<br>
[c025df20] [c01571a4] of_get_next_child+0x40/0x9c<br>
[c025df40] [c00bab5c] proc_device_tree_add_node+0x4c/0x144<br>
[c025df60] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025df80] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025dfa0] [c00bacc8] proc_device_tree_init+0x74/0xa0<br>
[c025dfb0] [c0235c70] proc_root_init+0xd4/0x10c<br>
[c025dfc0] [c022374c] start_kernel+0x244/0x2cc<br>
[c025dff0] [00003438] 0x3438<br>
Instruction dump:<br>
4bf289e1 7fa3eb78 3ba00000 4bfff3ad 4bffffd8 90830000 4e800020 38800001<br>
4bfffff4 80030000 21200000 7c090114 <0f000000> 7d201828 31290001
7d20192d<br>
WARNING: Bad of_node_put() on<br>
Call Trace:<br>
[c025ded0] [c00088fc] show_stack+0x50/0x190 (unreliable)<br>
[c025df00] [c000de70] of_node_release+0xb0/0xcc<br>
[c025df20] [c00f5500] kref_put+0x54/0x6c<br>
[c025df30] [c000d6ec] of_node_put+0x24/0x34<br>
[c025df40] [c00babc8] proc_device_tree_add_node+0xb8/0x144<br>
[c025df60] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025df80] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025dfa0] [c00bacc8] proc_device_tree_init+0x74/0xa0<br>
[c025dfb0] [c0235c70] proc_root_init+0xd4/0x10c<br>
[c025dfc0] [c022374c] start_kernel+0x244/0x2cc<br>
[c025dff0] [00003438] 0x3438<br>
Unable to handle kernel paging request for data at address 0x00000000<br>
Faulting instruction address: 0xc0014454<br>
Oops: Kernel access of bad area, sig: 11 [#1]<br>
PREEMPT mvBlueLYNX-M7<br>
Modules linked in:<br>
NIP: c0014454 LR: c00ba9e0 CTR: 00000000<br>
REGS: c025de70 TRAP: 0300 Not tainted
(2.6.25-rc8-01197-g1de15bb-dirty)<br>
MSR: 00009032 <EE,ME,IR,DR> CR: 44000048 XER: 00000000<br>
DAR: 00000000, DSISR: 20000000<br>
TASK = c0248510[0] 'swapper' THREAD: c025c000<br>
GPR00: c00bac0c c025df20 c0248510 00000023 ffffffff df80fd60 df80fd6e
00000000<br>
GPR08: 001fffff 00000002 df80b990 c06010f5 24000022 5fffffff 1fffd000
00000000<br>
GPR16: 1fffffff 9fffffff 00000000 00000000 1fff8910 1ff426f8 00000004
00288000<br>
GPR24: 00000000 00000000 c02630a0 c0260000 dfffefa0 00000000 c025c000
df80fd00<br>
NIP [c0014454] strcmp+0x10/0x24<br>
LR [c00ba9e0] duplicate_name+0x3c/0x94<br>
Call Trace:<br>
[c025df20] [c00ba870] __proc_device_tree_add_prop+0x54/0xd4 (unreliable)<br>
[c025df40] [c00bac0c] proc_device_tree_add_node+0xfc/0x144<br>
[c025df60] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025df80] [c00bab50] proc_device_tree_add_node+0x40/0x144<br>
[c025dfa0] [c00bacc8] proc_device_tree_init+0x74/0xa0<br>
[c025dfb0] [c0235c70] proc_root_init+0xd4/0x10c<br>
[c025dfc0] [c022374c] start_kernel+0x244/0x2cc<br>
[c025dff0] [00003438] 0x3438<br>
Instruction dump:<br>
2c000000 4082fff8 38a5ffff 8c040001 2c000000 9c050001 4082fff4 4e800020<br>
38a3ffff 3884ffff 8c650001 2c830000 <8c040001> 7c601851 4d860020
4182ffec<br>
---[ end trace 8640abe69a316dee ]---<br>
Kernel panic - not syncing: Attempted to kill the idle task!<br>
Rebooting in 180
seconds..
<br>
<BR>
MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
<BR>
</body>
</html>