Booting host on a P2020RDB freescale board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm working on kvm for booke architecture for my project. I tried direct mapping
the guest kernel on the board by setting the setenv othbootargs mem=512M on the
board but due to this my host(linux-3.0-rc4) started getting crashed giving me
this dump. After this i have reverted back to my original configuration of the
board as well as rootfs for guest the error still persists. Also the error is a
run time error sometimes the host crashes sometimes it boots up fine. The
following is the dump of the error :

WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 10000000 ...
   Image Name:   Linux-3.0.0-rc4
   Created:      2011-10-13  19:34:40 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3458633 Bytes = 3.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 20000000 ...
   Image Name:   
   Created:      2011-12-05  11:24:47 UTC
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    38223845 Bytes = 36.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 0c000000
   Booting using the fdt blob at 0xc000000
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 2db8c000, end 2fffffe5 ... OK
   Loading Device Tree to 00ff6000, end 00fff99e ... OK
WARNING: could not find compatible node fsl-usb2-dr: FDT_ERR_NOTFOUND.
Using P2020 RDB machine description
Cannot reserve gpages without hugetlb enabled
Memory CAM mapping: 256 Mb, residual: 0Mb
Linux version 3.0.0-rc4 (mittal@ubuntu) (gcc version 4.5.1 (Sourcery G++ Lite
2010.09-55) ) #4 SMP Fri Oct 14 01:041
Found initrd at 0xedb8c000:0xefffffe5
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->0
PCI host bridge /pcie@ffe09000  ranges:
 MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000 
  IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
/pcie@ffe09000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->0
PCI host bridge /pcie@ffe0a000  ranges:
 MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 
  IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ffe0a000: PCICSRBAR @ 0xfff00000
MPC85xx RDB board from Freescale Semiconductor
arch: exit
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   empty
  HighMem  empty
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
MMU: Allocated 1088 bytes of context maps for 255 contexts
PERCPU: Embedded 7 pages/cpu @c0a92000 s6592 r8192 d13888 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=/dev/sda1 rw rootdelay=30 console=ttyS0,115200 mem=256M
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 250928k/262144k available (7012k kernel code, 11216k reserved, 216k
data, 1517k bss, 344k init)
Kernel virtual memory layout:
  * 0xfff5f000..0xfffff000  : fixmap
  * 0xffc00000..0xffe00000  : highmem PTEs
  * 0xffbda000..0xffc00000  : early ioremap
  * 0xd1000000..0xffbda000  : vmalloc & ioremap
SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe40000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[3555555] shift[22] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
ftrace: allocating 16385 entries in 49 pages
mpic: requesting IPIs...
e500 family performance monitor hardware support registered
Brought up 2 CPUs
NET: Registered protocol family 16
             
PCI: Probing PCI hardware
pci 0000:00:00.0: ignoring class b20 (doesn't match header type 01)
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
pci 0001:02:00.0: ignoring class b20 (doesn't match header type 01)
pci 0001:02:00.0: PCI bridge to [bus 03-ff]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0:   bridge window [io  0xffbed000-0xffbfcfff]
pci 0000:00:00.0:   bridge window [mem 0xa0000000-0xbfffffff]
pci 0000:00:00.0:   bridge window [mem pref disabled]
pci 0001:02:00.0: PCI bridge to [bus 03-03]
pci 0001:02:00.0:   bridge window [io  0xffbdb000-0xffbeafff]
pci 0001:02:00.0:   bridge window [mem 0xc0000000-0xdfffffff]
pci 0001:02:00.0:   bridge window [mem pref disabled]
pci 0000:00:00.0: enabling device (0106 -> 0107)
pci 0001:02:00.0: enabling device (0106 -> 0107)
bio: create slab <bio-0> at 0
raid6: int32x1    166 MB/s
raid6: int32x2    297 MB/s
raid6: int32x4    426 MB/s
raid6: int32x8    335 MB/s
raid6: using algorithm int32x4 (426 MB/s)
Freescale Elo / Elo Plus DMA driver
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.24.
Switching to clocksource timebase
Switched to NOHz mode on CPU #0
Switched to NOHz mode on CPU #1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Unable to handle kernel paging request for data at address 0xedb8c000
Faulting instruction address: 0xc0685690
Oops: Kernel access of bad area, sig: 11 [#1]
SMP NR_CPUS=8 P2020 RDB
Modules linked in:
NIP: c0685690 LR: c0685604 CTR: 00000000
REGS: cf06de10 TRAP: 0300   Not tainted  (3.0.0-rc4)
MSR: 00029000 <EE,ME,CE>  CR: 22022024  XER: 00000000
DEAR: edb8c000, ESR: 00000000
TASK = cf068000[1] 'swapper' THREAD: cf06c000 CPU: 1
GPR00: 00000000 cf06dec0 cf068000 cf26e000 00000007 c070cd40 00000001 00000000 
GPR08: 00000000 c06b6c70 c06d9aa4 c06b0000 22022022 100a78e8 00000000 00000000 
GPR16: c0000a00 c05fc340 c05fc30c c05fc354 c06b6cf0 c06851e4 c0684f00 c0710000 
GPR24: 00000000 00000000 c0685f68 c0710000 edb8c000 02473fe5 c06b6c70 cf06dec0 
NIP [c0685690] unpack_to_rootfs+0x114/0x2f8
LR [c0685604] unpack_to_rootfs+0x88/0x2f8
Call Trace:
[cf06dec0] [c0685604] unpack_to_rootfs+0x88/0x2f8 (unreliable)
[cf06df20] [c0685fcc] populate_rootfs+0x64/0x230
[cf06dfa0] [c0002260] do_one_initcall+0x44/0x1c4
[cf06dfd0] [c0683908] kernel_init+0xa0/0x140
[cf06dff0] [c0010aac] kernel_thread+0x4c/0x68
Instruction dump:
3ec0c068 3e20c060 900b6c70 7d3e4b78 3ee0c071 3a52c30c 3a890080 3a73c354 
3ab551e4 3ad64f00 3a31c340 48000130 <881c0000> 835e0010 2f800030 837e0014 
---[ end trace 75d2b1226921d2ff ]---
Kernel panic - not syncing: Attempted to kill init!
Call Trace:
[cf06dca0] [c000a454] show_stack+0x108/0x1c0 (unreliable)
[cf06dcf0] [c04f235c] dump_stack+0x2c/0x44
[cf06dd00] [c04f2428] panic+0xb4/0x1d8
[cf06dd60] [c006c5d4] do_exit+0x684/0x6d8
[cf06ddb0] [c000d630] die+0xec/0x1c8
[cf06dde0] [c001951c] bad_page_fault+0xb4/0x114
[cf06de00] [c00121f0] handle_page_fault+0x7c/0x80
--- Exception: 300 at unpack_to_rootfs+0x114/0x2f8
    LR = unpack_to_rootfs+0x88/0x2f8
[cf06df20] [c0685fcc] populate_rootfs+0x64/0x230
[cf06dfa0] [c0002260] do_one_initcall+0x44/0x1c4
[cf06dfd0] [c0683908] kernel_init+0xa0/0x140
[cf06dff0] [c0010aac] kernel_thread+0x4c/0x68




Also my board environment variables are:


baudrate=115200                         
bdev=sda1                               
bootargs=root=/dev/sda1 rw rootdelay=30 console=ttyS0,115200 ramdisk_size=600000
bootcmd=setenv bootargs root=/dev/$bdev rw rootdelay=30
console=$consoledev,$baudrate $othbootargs;usb start;ext2lor
bootdelay=10                            
bootfile=uImage
consoledev=ttyS0
eth1addr=00:00:00:00:00:02
eth2addr=00:00:00:00:00:03
eth3addr=00:00:00:00:00:04
eth4addr=00:00:00:00:00:05
eth5addr=00:00:00:00:00:06
ethact=eTSEC1
ethaddr=00:00:00:00:00:01
fdtaddr=c00000
fdtfile=p2020rdb.dtb
gatewayip=<gateway ip>
hostname=P2020RDB
ipaddr=<ip assigned to the machine>
jffs2nand=mtdblock9
jffs2nor=mtdblock3
loadaddr=1000000
loads_echo=1
nandboot=setenv bootargs root=/dev/$jffs2nand rw rootfstype=jffs2
console=$consoledev,$baudrate $othbootargs;nand r;
nandbootaddr=100000
nandfdtaddr=80000
nandfdtsize=80000
nandimgsize=400000
netdev=eth0
netmask=255.255.0.0
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostr
norboot=setenv bootargs root=/dev/$jffs2nor rw console=$consoledev,$baudrate
rootfstype=jffs2 $othbootargs;bootm $nr
norbootaddr=ef080000
norfdtaddr=ef040000
othbootargs=ramdisk_size=600000
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate
$othbootargs; tftp $ramdiskaddr $ramdiskfiler
ramdiskaddr=2000000
ramdiskfile=rootfs.ext2.gz.uboot
rootpath=/opt/nfsroot
serverip=<server ip>
tftpflash=tftpboot $loadaddr $uboot; protect off 0x11000000 +$filesize; erase
0x11000000 +$filesize; cp.b $loadaddre
uboot=u-boot.bin
usb_phy_type=ulpi
usbext2boot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate
$othbootargs; usb start;ext2load usb 0:4r
usbfatboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate
$othbootargs; usb start;fatload usb 0:2 $r
vscfw_addr=ef000000



If anyone has come across this issue or has any knowledge about this error ,
please help.

Thanks in advance


--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux