Linux booting problem on powerpc 440

Sumesh Kaana sumeshkkn at hotmail.com
Wed Aug 19 23:01:16 EST 2009











Hi all,
I am trying to boot linux kernel (2.6.30) on a custom built board.I am using simple ppc platform and attached are my dts file and boot log..
I've 16Mb of RAM,UART and UIC with powerpc 440x5 processor.Kernel Image size is less than 1 mb.
i am not using any bootloaders such as U-boot
i have a small program on reset vector which will copy linux bin image from flash to 4mb (Link Address as per wrapper script), after that execution starts from link address.
the problem that i face is kernel crashes in different places while booting for different linux images, but always mentioned that 
TASK = 'swapper'

Can anyone tell what would be the problem..?

Thanks,
Sumesh.

boot log is as below:---------------------zImage starting: loaded at 0x00400000 (sp: 0x004deeb0)Allocating 0x1dad84 bytes for kernel ...gunzipping (0x00000000 <- 0x0040c000:0x004dd3f1)...done 0x1c31cc bytes
Linux/PowerPC load: console=ttyS0 root=/dev/ramFinalizing device tree... flat tree at 0x4eb300Top of RAM: 0x1000000, Total RAM: 0x1000000
Zone PFN ranges:  DMA      0x00000000 -> 0x00001000  Normal   0x00001000 -> 0x00001000Movable zone start PFN for each nodeearly_node_map[1] active PFN ranges    0: 0x00000000 -> 0x00001000MMU: Allocated 1088 bytes of context maps for 255 contextsBuilt 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064Kernel command line: console=ttyS0 root=/dev/ramNR_IRQS:512UIC0 (32 IRQ sources) at DCR 0x1c0BUG: recent printk recursion!Oops: Kernel access of bad area, sig: 11 [#1]PREEMPT PowerPC 44x PlatformModules linked in:NIP: c010c848 LR: c010c9f8 CTR: 00000000REGS: c01bfc10 TRAP: 0300   Not tainted  (2.6.30)MSR: 00021000 <ME,CE>  CR: 22004042  XER: 20000000DEAR: 00000000, ESR: 00800000TASK = c01a94b8[0] 'swapper' THREAD: c01be000GPR00: 0000005a c01bfcc0 c01a94b8 c01c5eb0 c016f3db 00000002 c01c5eb1 00000000 GPR08: 00000000 c016f3dc c016f3dc 00000000 42004048 00f08000 c015276c c0152850 GPR16: c015261c c01528dc c01bfe20 ffffffff c01b8628 c01c5e8c 00000004 00000000 GPR24: ffffffff c01be000 0000000a c01c628c c01bff68 00000000 c01c5eb2 c016f3db NIP [c010c848] vsnprintf+0x75c/0xeb0LR [c010c9f8] vsnprintf+0x90c/0xeb0Call Trace:[c01bfcc0] [c010c41c] vsnprintf+0x330/0xeb0 (unreliable)[c01bfeb0] [c010d100] vscnprintf+0x18/0x38[c01bfec0] [c002ff10] vprintk+0x8c/0x350[c01bff60] [c0030224] printk+0x50/0x60[c01bffa0] [c0193830] pidhash_init+0x5c/0xd4[c01bffc0] [c018c744] start_kernel+0x150/0x284[c01bfff0] [c0000200] skpinv+0x190/0x1ccInstruction dump:540a073e 5400e13e 7d3100ae 7d7150ae 99280000 99680001 39070001 40a2ffd4 2f860005 409effc0 38000000 57ab06b0 <98080000> 7fc3f378 7f64db78 38a1003c ---[ end trace 31fd0ba7d8756001 ]---Kernel panic - not syncing: Attempted to kill the idle task!Call Trace:[c01bfaf0] [c0005d5c] show_stack+0x4c/0x16c (unreliable)[c01bfb30] [c002f17c] panic+0xa0/0x168[c01bfb80] [c0032eb8] do_exit+0x61c/0x638[c01bfbc0] [c000b60c] kernel_bad_stack+0x0/0x4c[c01bfbf0] [c000f310] bad_page_fault+0x90/0xd8[c01bfc00] [c000e184] handle_page_fault+0x7c/0x80[c01bfcc0] [c010c41c] vsnprintf+0x330/0xeb0[c01bfeb0] [c010d100] vscnprintf+0x18/0x38[c01bfec0] [c002ff10] vprintk+0x8c/0x350[c01bff60] [c0030224] printk+0x50/0x60[c01bffa0] [c0193830] pidhash_init+0x5c/0xd4[c01bffc0] [c018c744] start_kernel+0x150/0x284[c01bfff0] [c0000200] skpinv+0x190/0x1ccRebooting in 180 seconds...

device tree file as bellow:
----------------------------
/dts-v1/;
/ {	model = "XXX,xxxx";	compatible = "XXX,xxxx";	#address-cells = <1>;	#size-cells = <1>;	dcr-parent = <&SKYBEAM_PPC>;		chosen	{		bootargs = "console=ttyS0 root=/dev/ram";	       	linux,stdout-path = "/plb/serial at 02080000";	} ;		aliases {		serial0 = &STD_UART;	} ;		memory	{		device_type = "memory";		reg = < 0x0 0x01000000 >;	} ;		cpus {		#address-cells = <1>;		#size-cells = <0>;			SKYBEAM_PPC: cpu at 0 {			device_type = "cpu";			#address-cells = <1>;			#size-cells = <1>;			reg = <0>;			clock-frequency = <25000000>;			compatible = "PowerPC,440", "ibm,ppc440";			d-cache-line-size = <0x20>;			d-cache-size = <0x8000>;			dcr-access-method = "native";			dcr-controller ;			i-cache-line-size = <0x20>;			i-cache-size = <0x8000>;			model = "PowerPC,440";			timebase-frequency = <25000000>;		} ;	} ;		UIC0: interrupt-controller0 {		compatible = "ibm,uic-440ep","ibm,uic";		interrupt-controller;		cell-index = <0>;		dcr-reg = <0x1c0 0x009>;		#address-cells = <0>;		#size-cells = <0>;		#interrupt-cells = <2>;	};		PLB: plb {		#address-cells = <1>;		#size-cells = <1>;		compatible = "simple-bus";		ranges ;				STD_UART: serial at 02080000 {			device_type = "serial";			compatible = "ns16550";			reg = <0x02080000 0x00000008>;			virtual-reg = <0x02080000>;            clock-frequency = <125000000>;			current-speed = <9600>;			interrupt-parent = <&UIC0>;			interrupts = <0x5 0x4>;		} ;	} ;}  ;



_________________________________________________________________
View photos of singles in your area Click Here
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Eninemsn%2Ecom%2Eau%2Fsearch%2Fsearch%2Easpx%3Fexec%3Dgo%26tp%3Dq%26gc%3D2%26tr%3D1%26lage%3D18%26uage%3D55%26cl%3D14%26sl%3D0%26dist%3D50%26po%3D1%26do%3D2%26trackingid%3D1046138%26r2s%3D1&_t=773166090&_r=Hotmail_Endtext&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090819/5c5dd91f/attachment.htm>


More information about the Linuxppc-dev mailing list