Hi Scott:<br>
<br>
I am still stuck at Linux kernel booting in MPC8343EA based board.<br>
<br>
I have disabled "Ethernet, PCI, USB, dma engines " in the *.dts file and also in the kernel config.<br>
I am using MPC8349emitxgp.dts ; enabled MPC8349ITX support in
kernel config also. In fact, I tried building MPC8349emITX; MPC8349MDS
also. Same behaviour!<br>
<br>
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after<br>
<br>
I am using Linux-V-2.6.27.18 and using powerpc-e300c3-gnu
toolchain - gcc-4.1.69-eglibc-2.5.69-1 to build u-boot-1.3.2
& linux.<br>
<br>
With this, the kernel boots up (explicitly passing the DTB file and cuImage NEVER worked) and hangs after printing<br>
"Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)"<br>
<br>
With a few debug printks looks like the kernel hangs in <br>
"cpu_idle" in --main/init.c<br>
<br>
Any clues..?? HELP!!!<br>
Please find the dts file and screen-dump below:<br>
<br>
Thanks,<br>
Junita<br>
DTS file:<br>
=======<br>
<br>
/dts-v1/;<br>
<br>
/ {<br>
model = "MPC8349EMITXGP";<br>
compatible = "MPC8349EMITXGP", "MPC834xMITX", "MPC83xxMITX";<br>
#address-cells = <1>;<br>
#size-cells = <1>;<br>
<br>
aliases {<br>
serial0 = &serial0;<br>
};<br>
<br>
cpus {<br>
#address-cells = <1>;<br>
#size-cells = <0>;<br>
<br>
PowerPC,8349@0 {<br>
device_type = "cpu";<br>
reg = <0x0>;<br>
d-cache-line-size = <32>;<br>
i-cache-line-size = <32>;<br>
d-cache-size = <32768>;<br>
i-cache-size = <32768>;<br>
timebase-frequency = <0>; //
from bootloader<br>
bus-frequency =
<0>;
// from bootloader<br>
clock-frequency =
<0>; //
from bootloader<br>
};<br>
};<br>
memory {<br>
device_type = "memory";<br>
reg = <0x00000000 0x10000000>;<br>
};<br>
<br>
<br>
soc8349@e0000000 {<br>
#address-cells = <1>;<br>
#size-cells = <1>;<br>
device_type = "soc";<br>
compatible = "simple-bus";<br>
ranges = <0x0 0xe0000000 0x00100000>;<br>
reg = <0xe0000000 0x00000200>;<br>
bus-frequency =
<0x0fe502a8>;
// from bootloader<br>
<br>
wdt@200 {<br>
device_type = "watchdog";<br>
compatible = "mpc83xx_wdt";<br>
reg = <0x200 0x100>;<br>
};<br>
<br>
i2c@3000 {<br>
#address-cells = <1>;<br>
#size-cells = <0>;<br>
cell-index = <0>;<br>
compatible = "fsl-i2c";<br>
reg = <0x3000 0x100>;<br>
interrupts = <14 0x8>;<br>
interrupt-parent = <&ipic>;<br>
dfsrr;<br>
};<br>
<br>
mdio@24520 {<br>
#address-cells = <1>;<br>
#size-cells = <0>;<br>
compatible = "fsl,gianfar-mdio";<br>
reg = <0x24520 0x20>;<br>
<br>
};<br>
serial0: serial@4500 {<br>
cell-index = <0>;<br>
device_type = "serial";<br>
compatible = "ns16550";<br>
reg = <0x4500 0x100>;<br>
clock-frequency =
<0>; //
from bootloader<br>
interrupts = <9 0x8>;<br>
interrupt-parent = <&ipic>;<br>
};<br>
<br>
ipic: pic@700 {<br>
interrupt-controller;<br>
#address-cells = <0>;<br>
#interrupt-cells = <2>;<br>
reg = <0x700 0x100>;<br>
device_type = "ipic";<br>
};<br>
};<br>
<br>
};<br>
<br>
Screen-shot:<br>
==========<br>
Trying TSEC0<br>
Speed: 100, full duplex<br>
Using TSEC0 device<br>
TFTP from server 192.168.201.14; our IP address is 192.168.201.199<br>
Filename '8349.dtb'.<br>
Load address: 0x900000<br>
Loading: #<br>
done<br>
Bytes transferred = 12288 (3000 hex)<br>
SC3000> bootm 0x00600000 - 0x00900000<br>
## Booting image at 00600000 ...<br>
Image Name: Linux-2.6.27.18<br>
Created: 2009-12-11 0:16:24 UTC<br>
Image Type: PowerPC Linux Kernel Image (gzip compressed)<br>
Data Size: 850785 Bytes = 830.8 kB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Uncompressing Kernel Image ... OK<br>
## Current stack ends at 0x0FF9BD48 => set upper limit to 0x00800000<br>
## cmdline at 0x007FFF00 ... 0x007FFF2E<br>
bd address = 0x0FF9BFC4<br>
memstart = 0x00000000<br>
memsize = 0x10000000<br>
flashstart = 0xFE000000<br>
flashsize = 0x00080000<br>
flashoffset = 0x00034000<br>
sramstart = 0x00000000<br>
sramsize = 0x00000000<br>
bootflags = 0x00000001<br>
intfreq = 399.999 MHz<br>
busfreq = 266.666 MHz<br>
ethaddr = 00:E0:0C:00:8C:01<br>
IP addr = 192.168.201.199<br>
baudrate = 115200 bps<br>
Skipping initrd<br>
Booting using the fdt at 0x900000<br>
No initrd<br>
## device tree at 0x00900000 ... 0x00902FFF (len=12288=0x3000)<br>
Loading Device Tree to 007fc000, end 007fefff ... OK<br>
Updating property 'timebase-frequency' = 03 f9 40 aa<br>
Updating property 'bus-frequency' = 0f e5 02 a8<br>
Updating property 'clock-frequency' = 17 d7 83 fc<br>
Updating property 'bus-frequency' = 0f e5 02 a8<br>
Updating property 'clock-frequency' = 0f e5 02 a8<br>
## Transferring control to Linux (at address 00000000) ...<br>
Using MPC834x ITX machine description<br>
Linux version 2.6.27.18 (root@localhost.localdomain) (gcc version 4.1.2) #26 Th9 -> find_legacy_serial_port()<br>
stdout is /soc8349@e0000000/serial@4500<br>
Found legacy serial port 0 for /soc8349@e0000000/serial@4500<br>
mem=e0004500, taddr=e0004500, irq=0, clk=266666664, speed=0<br>
legacy_serial_console = 0<br>
default console speed = 115740<br>
<- find_legacy_serial_port()<br>
console [udbg0] enabled<br>
setup_arch: bootmem<br>
mpc834x_itx_setup_arch()<br>
arch: exit<br>
Top of RAM: 0x8000000, Total RAM: 0x8000000<br>
Memory hole size: 0MB<br>
Zone PFN ranges:<br>
DMA 0x00000000 -> 0x00008000<br>
Normal 0x00008000 -> 0x00008000<br>
Movable zone start PFN for each node<br>
early_node_map[1] active PFN ranges<br>
0: 0x00000000 -> 0x00008000<br>
On node 0 totalpages: 32768<br>
free_area_init_node: node 0, pgdat c01b6224, node_mem_map c01d0000<br>
DMA zone: 32512 pages, LIFO batch:7<br>
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512<br>
Kernel command line: root=/dev/ram rw console=ttyS0,115200 mem=128M<br>
IPIC (128 IRQ sources) at fdffd700<br>
PID hash table entries: 512 (order: 9, 2048 bytes)<br>
time_init: decrementer frequency = 66.666666 MHz<br>
time_init: processor frequency = 399.999996 MHz<br>
clocksource: timebase mult[3c00001] shift[22] registered<br>
clockevent: decrementer mult[1111] shift[16] cpu[0]<br>
-> check_legacy_serial_console()<br>
console was specified !<br>
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)<br>
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)<br>
SC3000 - After vfs_caches_init_early -1<br>
SC3000 - After vfs_caches_init_early-2<br>
Memory: 127912k/131072k available (1688k kernel code, 3000k reserved, 68k data,)SC3000 - After vfs_caches_init_early-3<br>
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<br>
Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)<br>
<br>
<br>
<br><div><span class="gmail_quote">On 12/7/09, <b class="gmail_sendername">Scott Wood</b> <<a href="mailto:scottwood@freescale.com">scottwood@freescale.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Dec 06, 2009 at 10:41:25PM -0800, <a href="mailto:ajijuni@gmail.com">ajijuni@gmail.com</a> wrote:<br> > Hi<br> ><br> > We have an MPC8343EA based custom board.<br> ><br> > I am not able to get Linux up and running in this. No serial output to debug further.<br>
> U-boot shows correct 'bdinfo' & 'clocks' output.<br> > inux hangs at machine_probe.<br> <br> Check that the platform file you're intending to use matches the compatible<br> field in the root node of the device tree -- and that said platform file is<br>
actually being built.<br> <br><br> -Scott<br> </blockquote></div><br>