linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* kernel panic on MPC8323 custom board
@ 2010-01-07 13:11 Dario Presti
  2010-01-07 17:57 ` Scott Wood
  0 siblings, 1 reply; 7+ messages in thread
From: Dario Presti @ 2010-01-07 13:11 UTC (permalink / raw)
  To: linuxppc-dev


Hello,
I'm working on MPC8323_rdb board whit 1 new flash device S29GL512P instead
of original flash devices.
the bootloader is u-boot 1.1.6 (I know is too old and I'm going to upgrade
it) and the kernel is 2.6.20.
I did this modification to the bootloader to support new flash:

1)I modified the board/mpc8323rdb/config.mk file to set TEXT_BASE from
0xFE000000 TO  0xFC000000
2)I modified the file /include/configs/MPC8323RDB.h: 

#define CFG_FLASH_BASE		0xFC000000	/* FLASH base address */ 
#define CFG_FLASH_SIZE		64	/* FLASH size is 64M */ 
#define CFG_LBLAWBAR0_PRELIM	CFG_FLASH_BASE	/* Window base at flash base */
#define CFG_LBLAWAR0_PRELIM	0x80000019	/* 64MB window size */ 
#define CFG_OR0_PRELIM		0xfc006ff7	/* 64MB Flash size */ 
#define CFG_MAX_FLASH_BANKS	1		/* number of banks */
#define CFG_MAX_FLASH_SECT	512		/* sectors per device */ 

3)I modify and recompiled .dts file 

flash@fc000000 {
		device_type = "jedec-flash";
		compatible = "direct-mapped";
		probe-type = "CFI";
		reg = <0xfc000000 0x1000000>;
		bank-width = <0x2>;
		partitions = <0x0 0x80001 0x80000 0x20000 0xa0000 0x180000 0x220000
0xde0000>;
		partition-names = "U-Boot", "dtb", "Kernel", "rootfs";
	};

but the kernel find the flash at 0xFE000000 and the boot stop because kernel
panic. The log is:

U-Boot 1.1.6 (Dec 16 2009 - 18:24:26) MPC83XX

Clock configuration:
  Coherent System Bus:  133 MHz
  Core:                 333 MHz
  QE:                   200 MHz
  BRG:                  100 MHz
  Local Bus Controller: 133 MHz
  Local Bus:             66 MHz
  DDR:                  266 MHz
  SEC:                  133 MHz
  I2C1:                 133 MHz
CPU: MPC8321E, Rev: 11 at 333.333 MHz
Board: Freescale MPC8323ERDB
I2C:   ready
DRAM:
   DDR RAM: 64 MB
FLASH: 64 MB
PCI clock is 66MHz
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Generic MII (2430d80)
UEC: PHY is Generic MII (2430d80)
FSL UEC0, FSL UEC1
Hit any key to stop autoboot:  0
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1957     0x00a6     Processor               0x20
## Booting image at fc100000 ...
   Image Name:   Linux-2.6.20.6-rt8
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1872707 Bytes =  1.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using flat device tree at 0xfc080000
   Loading Device Tree to 00783000, end 007fd11f ... Using MPC832x RDB
machine description
Linux version 2.6.20.6-rt8 (design@telsa024) (gcc version 4.0.2 20060628
(Wasabi)) #4 PREEMPT Fri Mar 28 10:31:51 CET 2008
setup_arch: bootmem
mpc832x_rdb_setup_arch()
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
arch: exit
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)

Using MPC832x RDB machine description
Linux version 2.6.20.6-rt8 (design@telsa024) (gcc version 4.0.2 20060628
(Wasabi)) #4 PREEMPT Fri Mar 28 10:31:51 CET 2008
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60408k/65536k available (3552k kernel code, 5064k reserved, 224k
data, 145k bss, 156k init)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
Generic PHY: Registered new driver
Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 4, 65536 bytes)
TCP bind hash table entries: 1024 (order: 2, 28672 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
WDT driver for MPC83xx initialized. mode:reset timeout=65535 (32 seconds)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
ucc_tdm: Freescale QE UCC TDM Driver
config_tdm Delay for Legerity!
tdm_start 16-bit linear pcm mode active with slots 0 & 2
tdm_start UCC based TDM enabled
ucc_tdm_probe UCC based tdm module installed
UCC Ethernet Controller MII Bus: probed
ucc_geth: QE UCC Gigabit Ethernet Controller
ucc_geth: UCC2 at 0xe0103000 (irq = 20)
eth0: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1800,sk_buff=168)
ucc_geth: UCC3 at 0xe0102200 (irq = 34)
eth1: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1800,sk_buff=168)
SKB Handler initialized(max=64)
ICPlus IP175C: Registered new driver
hostap_plx: 0.4.4-kernel (Jouni Malinen <jkmaline@cc.hut.fi>)
hostap_pci: 0.4.4-kernel (Jouni Malinen <jkmaline@cc.hut.fi>)
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17)
winbond-840.c:v1.01-e (2.4 port) Sep-11-2006  Donald Becker
<becker@scyld.com>
  http://www.scyld.com/network/drivers.html
uli526x: ULi M5261/M5263 net driver, version 0.9.3 (2005-7-29)
MPC8323RDB Flash Bank 1 device: 2000000 at fe000000 Partition number 6
MPC8323RDB Flash Bank 1 Map Info: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Support for command set 0002 not present
gen_probe: No supported Vendor Command Set found
e01004c0.spi: MPC83xx SPI Controller driver at 0xc505c4c0 (irq = 21)
i2c /dev entries driver
Driver for 1-wire Dallas network protocol.
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
lec.c: Mar 25 2008 16:38:30 initialized
mpc.c: Mar 25 2008 16:38:27 initialized
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation
<jketreno@linux.intel.com>
Time: timebase clocksource has been installed.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(2,0)
Call Trace:
[C047BE60] [C00088AC] show_stack+0x50/0x190 (unreliable)
[C047BE90] [C0027014] panic+0x9c/0x188
[C047BF20] [C0351AD4] mount_block_root+0x198/0x238
[C047BF70] [C0351E88] prepare_namespace+0xc4/0x1b4
[C047BF90] [C0003B68] init+0x28c/0x2b0
[C047BFF0] [C00102EC] kernel_thread+0x44/0x60
 <0>Rebooting in 180 seconds..

I think there is problem whit device tree, but I don't know what is,
could someone help me?

Thanks
Best Regards

Dario
-- 
View this message in context: http://old.nabble.com/kernel-panic-on-MPC8323-custom-board-tp27059752p27059752.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel panic on MPC8323 custom board
  2010-01-07 13:11 kernel panic on MPC8323 custom board Dario Presti
@ 2010-01-07 17:57 ` Scott Wood
  2010-01-08  9:23   ` Dario Presti
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Wood @ 2010-01-07 17:57 UTC (permalink / raw)
  To: Dario Presti; +Cc: linuxppc-dev

Dario Presti wrote:
> Hello,
> I'm working on MPC8323_rdb board whit 1 new flash device S29GL512P instead
> of original flash devices.
> the bootloader is u-boot 1.1.6 (I know is too old and I'm going to upgrade
> it) and the kernel is 2.6.20.

2.6.20 is also too old. :-)

> I did this modification to the bootloader to support new flash:
> 
> 1)I modified the board/mpc8323rdb/config.mk file to set TEXT_BASE from
> 0xFE000000 TO  0xFC000000
> 2)I modified the file /include/configs/MPC8323RDB.h: 
> 
> #define CFG_FLASH_BASE		0xFC000000	/* FLASH base address */ 
> #define CFG_FLASH_SIZE		64	/* FLASH size is 64M */ 
> #define CFG_LBLAWBAR0_PRELIM	CFG_FLASH_BASE	/* Window base at flash base */
> #define CFG_LBLAWAR0_PRELIM	0x80000019	/* 64MB window size */ 
> #define CFG_OR0_PRELIM		0xfc006ff7	/* 64MB Flash size */ 
> #define CFG_MAX_FLASH_BANKS	1		/* number of banks */
> #define CFG_MAX_FLASH_SECT	512		/* sectors per device */ 
> 
> 3)I modify and recompiled .dts file 
> 
> flash@fc000000 {
> 		device_type = "jedec-flash";
> 		compatible = "direct-mapped";
> 		probe-type = "CFI";
> 		reg = <0xfc000000 0x1000000>;
> 		bank-width = <0x2>;
> 		partitions = <0x0 0x80001 0x80000 0x20000 0xa0000 0x180000 0x220000
> 0xde0000>;
> 		partition-names = "U-Boot", "dtb", "Kernel", "rootfs";
> 	};
> 
> but the kernel find the flash at 0xFE000000 and the boot stop because kernel
> panic. The log is:

Is the kernel even using that node, or some other means to determine the 
flash location?  The "MPC8323RDB Flash Bank 1" messages make me think 
you've got a custom flash map driver.

-Scott

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel panic on MPC8323 custom board
  2010-01-07 17:57 ` Scott Wood
@ 2010-01-08  9:23   ` Dario Presti
  2010-01-08 17:26     ` Scott Wood
  0 siblings, 1 reply; 7+ messages in thread
From: Dario Presti @ 2010-01-08  9:23 UTC (permalink / raw)
  To: linuxppc-dev



Scott Wood-2 wrote:
> 
> Dario Presti wrote:
>> Hello,
>> I'm working on MPC8323_rdb board whit 1 new flash device S29GL512P
>> instead
>> of original flash devices.
>> the bootloader is u-boot 1.1.6 (I know is too old and I'm going to
>> upgrade
>> it) and the kernel is 2.6.20.
> 
> 2.6.20 is also too old. :-)
> 
>> I did this modification to the bootloader to support new flash:
>> 
>> 1)I modified the board/mpc8323rdb/config.mk file to set TEXT_BASE from
>> 0xFE000000 TO  0xFC000000
>> 2)I modified the file /include/configs/MPC8323RDB.h: 
>> 
>> #define CFG_FLASH_BASE		0xFC000000	/* FLASH base address */ 
>> #define CFG_FLASH_SIZE		64	/* FLASH size is 64M */ 
>> #define CFG_LBLAWBAR0_PRELIM	CFG_FLASH_BASE	/* Window base at flash base
>> */
>> #define CFG_LBLAWAR0_PRELIM	0x80000019	/* 64MB window size */ 
>> #define CFG_OR0_PRELIM		0xfc006ff7	/* 64MB Flash size */ 
>> #define CFG_MAX_FLASH_BANKS	1		/* number of banks */
>> #define CFG_MAX_FLASH_SECT	512		/* sectors per device */ 
>> 
>> 3)I modify and recompiled .dts file 
>> 
>> flash@fc000000 {
>> 		device_type = "jedec-flash";
>> 		compatible = "direct-mapped";
>> 		probe-type = "CFI";
>> 		reg = <0xfc000000 0x1000000>;
>> 		bank-width = <0x2>;
>> 		partitions = <0x0 0x80001 0x80000 0x20000 0xa0000 0x180000 0x220000
>> 0xde0000>;
>> 		partition-names = "U-Boot", "dtb", "Kernel", "rootfs";
>> 	};
>> 
>> but the kernel find the flash at 0xFE000000 and the boot stop because
>> kernel
>> panic. The log is:
> 
> Is the kernel even using that node, or some other means to determine the 
> flash location?  The "MPC8323RDB Flash Bank 1" messages make me think 
> you've got a custom flash map driver.
> 
> -Scott
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
> 
> 

Thanks Scott, 
I did not find where the custom map flash driver is in the kernel source,
where it is?
How can I say to the kernel to use device tree instead of custom map of
flash?

Regards
Dario
-- 
View this message in context: http://old.nabble.com/kernel-panic-on-MPC8323-custom-board-tp27059752p27073289.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel panic on MPC8323 custom board
  2010-01-08  9:23   ` Dario Presti
@ 2010-01-08 17:26     ` Scott Wood
  2010-01-12 14:26       ` Dario Presti
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Wood @ 2010-01-08 17:26 UTC (permalink / raw)
  To: Dario Presti; +Cc: linuxppc-dev

Dario Presti wrote:
> Thanks Scott, 
> I did not find where the custom map flash driver is in the kernel source,
> where it is?

Grep your kernel tree for "MPC8323RDB Flash".

> How can I say to the kernel to use device tree instead of custom map of
> flash?

Turn off that mapping driver, and turn on CONFIG_MTD_PHYSMAP_OF.  This 
stuff was very new in 2.6.20, though, so there may be issues.  I'd 
upgrade if you can.

-Scott

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel panic on MPC8323 custom board
  2010-01-08 17:26     ` Scott Wood
@ 2010-01-12 14:26       ` Dario Presti
  2010-01-12 16:31         ` Dario Presti
  0 siblings, 1 reply; 7+ messages in thread
From: Dario Presti @ 2010-01-12 14:26 UTC (permalink / raw)
  To: linuxppc-dev




Scott Wood-2 wrote:
> 
> 
> Turn off that mapping driver, and turn on CONFIG_MTD_PHYSMAP_OF.  This 
> stuff was very new in 2.6.20, though, so there may be issues.  I'd 
> upgrade if you can.
> 

I rebuilded another kernel version 2.6.20.6 whit LTIB and u-boot 1.3.2 (I
don't have the corresponding source file of my images). 
I turned on CONFIG_MTD_PHYSMAP_OF, here there is part of config file:

# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_CONCAT=y
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=y
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_OTP is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PHYSMAP is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_PLATRAM is not set

But still hte mapping is not showed on boot, it seems to not read yet the
blob node. The boot-log is:

U-Boot 1.3.2 (Jan  8 2010 - 12:57:17) MPC83XX

Reset Status: Software Hard, External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8321E, Rev: 11 at 333.333 MHz, CSB:  133 MHz
Board: Freescale MPC8323ERDB
I2C:   ready
DRAM:  64 MB
FLASH: 64 MB
In:    serial
Out:   serial
Err:   serial
Net:   FSL UEC0, FSL UEC1
Hit any key to stop autoboot:  0
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1957     0x00a6     Processor               0x20
## Booting image at fc100000 ...
   Image Name:   Linux-2.6.20.6-rt8
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1495894 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using the fdt at 0xfc080000
   Loading Device Tree to 00785000, end 007ff11f ... OK
Using MPC832x RDB machine description
Linux version 2.6.20.6-rt8 (cubit@cubit-laptop) (gcc version 4.2.3 (Sourcery
G++ Lite 4.2-171)) #9 PREEMPT Tue Jan 12 14:53:56 CET 2010
setup_arch: bootmem
mpc832x_rdb_setup_arch()
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
arch: exit
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)

Using MPC832x RDB machine description
Linux version 2.6.20.6-rt8 (cubit@cubit-laptop) (gcc version 4.2.3 (Sourcery
G++ Lite 4.2-171)) #9 PREEMPT Tue Jan 12 14:53:56 CET 2010
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61200k/65536k available (2836k kernel code, 4268k reserved, 180k
data, 110k bss, 132k init)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
Generic PHY: Registered new driver
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 4, 65536 bytes)
TCP bind hash table entries: 1024 (order: 2, 28672 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NTFS driver 2.1.28 [Flags: R/O].
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
JFS: nTxBlock = 478, nTxLock = 3829
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
WDT driver for MPC83xx initialized. mode:reset timeout=65535 (32 seconds)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
ucc_tdm: Freescale QE UCC TDM Driver
config_tdm Delay for Legerity!
tdm_start 16-bit linear pcm mode active with slots 0 & 2
tdm_start UCC based TDM enabled
ucc_tdm_probe UCC based tdm module installed
UCC Ethernet Controller MII Bus: probed
ucc_geth: QE UCC Gigabit Ethernet Controller
ucc_geth: UCC2 at 0xe0103000 (irq = 20)
eth0: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1792,sk_buff=160)
ucc_geth: UCC3 at 0xe0102200 (irq = 34)
eth1: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1792,sk_buff=160)
SKB Handler initialized(max=64)
ICPlus IP175C: Registered new driver
block2mtd: version $Revision: 1.30 $
e01004c0.spi: MPC83xx SPI Controller driver at 0xc50aa4c0 (irq = 21)
usbmon: debugfs is not available
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
No filesystem could mount root, tried: <6>Time: timebase clocksource has
been installed.
 jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
Call Trace:
[C03B5E70] [C000819C]  (unreliable)
[C03B5EB0] [C0026AB0]
[C03B5F00] [C02A4B98]
[C03B5F50] [C02A4DEC]
[C03B5F70] [C0003B04]
[C03B5FF0] [C00102BC]
 <0>Rebooting in 180 seconds..

Do I miss to turn on something or kernel version do not support device tree?

Has u-boot 1.3.2 mtdparts command? When I try to use it an  'unknown
command' occur.

Thanks

Dario 
-- 
View this message in context: http://old.nabble.com/kernel-panic-on-MPC8323-custom-board-tp27059752p27128312.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel panic on MPC8323 custom board
  2010-01-12 14:26       ` Dario Presti
@ 2010-01-12 16:31         ` Dario Presti
  0 siblings, 0 replies; 7+ messages in thread
From: Dario Presti @ 2010-01-12 16:31 UTC (permalink / raw)
  To: linuxppc-dev




Dario Presti wrote:
> 
> 
> But still hte mapping is not showed on boot, it seems to not read yet the
> blob node. The boot-log is:
> 
> 

Ok now mapping woks fine. The error was in .dts file, changing

flash@fc000000 {
		device_type = "rom";
		compatible = "cfi-flash";

in 

flash@fc000000 { 		
		device_type = "rom";
		compatible = "direct-mapped";

The partitioning works fine, but there is still kernel panic.

The boot log is:

U-Boot 1.3.2 (Jan  8 2010 - 12:57:17) MPC83XX

Reset Status:

CPU:   e300c2, MPC8321E, Rev: 11 at 333.333 MHz, CSB:  133 MHz
Board: Freescale MPC8323ERDB
I2C:   ready
DRAM:  64 MB
FLASH: 64 MB
In:    serial
Out:   serial
Err:   serial
Net:   FSL UEC0, FSL UEC1
Hit any key to stop autoboot:  0
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1957     0x00a6     Processor               0x20
## Booting image at fc100000 ...
   Image Name:   Linux-2.6.20.6-rt8
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1507732 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using the fdt at 0xfc080000
   Loading Device Tree to 00785000, end 007ff11f ... OK
Using MPC832x RDB machine description
Linux version 2.6.20.6-rt8 (cubit@cubit-laptop) (gcc version 4.2.3 (Sourcery
G++ Lite 4.2-171)) #13 PREEMPT Tue Jan 12 16:47:14 CET 2010
setup_arch: bootmem
mpc832x_rdb_setup_arch()
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
arch: exit
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)

Using MPC832x RDB machine description
Linux version 2.6.20.6-rt8 (cubit@cubit-laptop) (gcc version 4.2.3 (Sourcery
G++ Lite 4.2-171)) #13 PREEMPT Tue Jan 12 16:47:14 CET 2010
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number:
0->0
pio-handle not available
Zone PFN ranges:
  DMA             0 ->    16384
  Normal      16384 ->    16384
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,
38400
WARNING: experimental RCU implementation.
IPIC (128 IRQ sources) at fdefb700
QEIC (64 IRQ sources) at fdefa080
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61176k/65536k available (2860k kernel code, 4292k reserved, 180k
data, 109k bss, 132k init)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
Generic PHY: Registered new driver
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 4, 65536 bytes)
TCP bind hash table entries: 1024 (order: 2, 28672 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NTFS driver 2.1.28 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
JFS: nTxBlock = 478, nTxLock = 3827
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
WDT driver for MPC83xx initialized. mode:reset timeout=65535 (32 seconds)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
ucc_tdm: Freescale QE UCC TDM Driver
config_tdm Delay for Legerity!
tdm_start 16-bit linear pcm mode active with slots 0 & 2
tdm_start UCC based TDM enabled
ucc_tdm_probe UCC based tdm module installed
UCC Ethernet Controller MII Bus: probed
ucc_geth: QE UCC Gigabit Ethernet Controller
ucc_geth: UCC2 at 0xe0103000 (irq = 20)
eth0: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1792,sk_buff=160)
ucc_geth: UCC3 at 0xe0102200 (irq = 34)
eth1: MTU=1500 (frame
size=1518,rx_buffer_size=1536,truesize=1792,sk_buff=160)
SKB Handler initialized(max=64)
ICPlus IP175C: Registered new driver
flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
physmap-flash flash: Using OF partition information
Creating 4 MTD partitions on "flash":
0x00000000-0x00080000 : "U-Boot"
0x00080000-0x00100000 : "dtb"
0x00100000-0x00300000 : "Kernel"
0x00300000-0x01000000 : "rootfs"
block2mtd: version $Revision: 1.30 $
e01004c0.spi: MPC83xx SPI Controller driver at 0xc50aa4c0 (irq = 21)
usbmon: debugfs is not available
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
No filesystem could mount root, tried: <6>Time: timebase clocksource has
been installed.
 jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
Call Trace:
[C03BBE70] [C000819C]  (unreliable)
[C03BBEB0] [C0026AB0]
[C03BBF00] [C02AAB98]
[C03BBF50] [C02AADEC]
[C03BBF70] [C0003B04]
[C03BBFF0] [C00102BC]
 <0>Rebooting in 180 seconds..

But still unable to mount root...any suggestion?

Thanks

Dario
-- 
View this message in context: http://old.nabble.com/kernel-panic-on-MPC8323-custom-board-tp27059752p27130293.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* kernel panic on MPC8323 custom board
@ 2010-08-05  2:57 Youngjin Na
  0 siblings, 0 replies; 7+ messages in thread
From: Youngjin Na @ 2010-08-05  2:57 UTC (permalink / raw)
  To: linux-mmc, linuxppc-dev, akpm

[-- Attachment #1: Type: text/plain, Size: 5519 bytes --]

Hi.. all

I'm porting the linux 2.6.27 kernel to the custom board with Freescale8270.
The base is the pq2fads board. The board is noproblem with linux-2.6.17.1
and linux-2.6.25.

When booting this machine, a crash takes place such as :



---------------------------------------------------------------------

Using FCC1 ETHERNET device
TFTP from server 192.168.0.12; our IP address is 192.168.0.161
Filename 'cuImage.pq2fads'.
Load address: 0x100000
Loading: #########################################################
done
Bytes transferred = 822097 (c8b51 hex)
[codec]$ bootm 100000
## Booting kernel from Legacy Image at 00100000 ...
   Image Name:   Linux-2.6.27
   Created:      2010-08-05   1:35:22 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    822033 Bytes = 802.8 kB
   Load Address: 00400000
   Entry Point:  00400ba0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using board info...
Memory <- <0x0 0x10000000> (256MB)
CPU clock-frequency <- 0x1ad27480 (450MHz)
CPU timebase-frequency <- 0x17d7840 (25MHz)
CPU bus-frequency <- 0x5f5e100 (100MHz)

zImage starting: loaded at 0x00400000 (sp: 0x0ff65ac8)
Allocating 0x1e4924 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x005da9f0)...done 0x1b3224 bytes

Linux/PowerPC load: root=/dev/nfs rw
nfsroot=192.168.0.12:/project/target/target_nadatel
ip=192.168.0.161:192.168.0.12:192.168.0.1::h264codec:eth0:off
Finalizing device tree... flat tree at 0x40c038
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
[    0.000000] Using Freescale PQ2FADS machine description
[    0.000000] Linux version 2.6.27 (vyna@aLinux) (gcc version 3.3.1
(MontaVista 3.3.1-3.0.10.0300532 2003-12-24)) #55 Thu Aug 5 10:35:18 KST
2010
[    0.000000] console [udbg0] enabled
setup_arch: bootmem
pq2fads_setup_arch()
pq2fads_setup_arch(), finish
arch: exit
[    0.000000] Top of RAM: 0x10000000, Total RAM: 0x10000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00010000
[    0.000000]   Normal   0x00010000 -> 0x00010000
[    0.000000]   HighMem  0x00010000 -> 0x00010000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00010000
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c01adb3c, node_mem_map
c01e7000
[    0.000000]   DMA zone: 65024 pages, LIFO batch:15
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total
pages: 65024
[    0.000000] Kernel command line: root=/dev/nfs rw
nfsroot=192.168.0.12:/project/target/target_nadatel
ip=192.168.0.161:192.168.0.12:192.168.0.1::h264codec:eth0:off
[    0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[    0.000000] time_init: decrementer frequency = 25.000000 MHz
[    0.000000] time_init: processor frequency   = 450.000000 MHz
[    0.000000] clocksource: timebase mult[a000000] shift[22] registered
[    0.038127] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[    0.060153] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.134314] High memory: 0k
[    0.141880] Memory: 257792k/262144k available (1648k kernel code, 4204k
reserved, 76k data, 194k bss, 124k init)
[    0.172857] Calibrating delay loop... 49.79 BogoMIPS (lpj=24896)
[    0.207709] Mount-cache hash table entries: 512
[    0.234059] Unable to handle kernel paging request for data at address
0x00000032
[    0.255641] Faulting instruction address: 0xc0183c50
[    0.270489] Oops: Kernel access of bad area, sig: 11 [#1]
[    0.286545] Freescale PQ2FADS
[    0.295392] Modules linked in:
[    0.304504] NIP: c0183c50 LR: c0183ef4 CTR: 00000000
[    0.319345] REGS: cf821db0 TRAP: 0300   Not tainted  (2.6.27)
[    0.336514] MSR: 00009032 <EE,ME,IR,DR>  CR: 82004024  XER: 00000000
[    0.355515] DAR: 00000032, DSISR: 20000000
[    0.367750] TASK = cf81f8a0[1] 'swapper' THREAD: cf820000
[    0.383362] GPR00: c0183ef4 cf821e60 cf81f8a0 00000000 c015e5e0 cf821ec0
00000024 0000013f
[    0.408348] GPR08: 3860ffda c01a0000 00000002 8124000c 24004024 ffffffff
0fffe000 11fc6000
[    0.433334] GPR16: fffffffb fcfdffff fffffeff ffffffff 00000000 0fff8c94
00000002 0ff65e80
[    0.458319] GPR24: 00000000 00000000 00000000 c01b0000 cf821ec0 c01b0000
c01b0000 cf821eb8
[    0.483863] NIP [c0183c50] find_section32+0x14/0xb8
[    0.498409] LR [c0183ef4] vdso_do_find_sections+0x28/0xc8
[    0.514537] Call Trace:
[    0.521839] [cf821e60] [c00f5ce8] kobject_uevent_env+0x2f4/0x318
(unreliable)
[    0.543176] [cf821e90] [c0183ef4] vdso_do_find_sections+0x28/0xc8
[    0.561394] [cf821eb0] [c01841b4] vdso_setup+0x2c/0xb8
[    0.576749] [cf821f10] [c0184308] vdso_init+0x64/0x1dc
[    0.592113] [cf821f30] [c0003904] do_one_initcall+0x54/0x184
[    0.609022] [cf821fb0] [c017d848] do_initcalls+0x34/0x58
[    0.624897] [cf821fd0] [c017d92c] kernel_init+0x40/0x94
[    0.640528] [cf821ff0] [c000f9f8] kernel_thread+0x44/0x60
[    0.656643] Instruction dump:
[    0.665493] 41a2000c 7c0803a6 4e800021 80010014 38210010 7c0803a6
4e800020 9421ffd0
[    0.688656] 7c0802a6 bf010010 90010034 7cbc2b78 <a1230032> 3b400001
7c7f1b78 81630020
[    0.712438] ---[ end trace 31fd0ba7d8756001 ]---
[    0.726196] Kernel panic - not syncing: Attempted to kill init!
[    0.743876] Rebooting in 180 seconds..
-------------------------------


I don't know what is could someone help me?

Thanks
Best Regards


Victor

[-- Attachment #2: Type: text/html, Size: 6920 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-05  2:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 13:11 kernel panic on MPC8323 custom board Dario Presti
2010-01-07 17:57 ` Scott Wood
2010-01-08  9:23   ` Dario Presti
2010-01-08 17:26     ` Scott Wood
2010-01-12 14:26       ` Dario Presti
2010-01-12 16:31         ` Dario Presti
  -- strict thread matches above, loose matches on Subject: below --
2010-08-05  2:57 Youngjin Na

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).