kernel2.6.30 can not boot on my mpc8260 board using u-boot2009.06
Hi all:
My board is a custom MPC8260 board, with 4MB flash,128MB SDRAM.
I modified pq2fads.dts and pq2fads_defconfig,they are in the mail's accessory, then compile the kernel.The kernel halt after displaying "Booting using OF flat tree.". [u-boot]: bootm 1000000 2000000 3000000
## Current stack ends at 0x07f9bd58
* kernel: cmdline image address = 0x01000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.30 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1510119 Bytes = 1.4 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
kernel data at 0x01000040, len = 0x00170ae7 (1510119)
* ramdisk: cmdline image address = 0x02000000 ## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name: Simple Embedded Linux Framework Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1730966 Bytes = 1.7 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
ramdisk start = 0x02000040, ramdisk end = 0x021a69d6
* fdt: cmdline image address = 0x03000000
## Checking for 'FDT'/'FDT Image' at 03000000
* fdt: raw FDT blob
## Flattened Device Tree blob at 03000000
Booting using the fdt blob at 0x3000000
of_flat_tree at 0x03000000 size 0x00003000 Uncompressing Kernel Image ... OK
kernel loaded at 0x00000000, end = 0x0030cc68
## initrd_high = 0xffffffff, copy_to_ram = 1
Loading Ramdisk to 07df4000, end 07f9a996 ... OK ramdisk load start = 0x07df4000, ramdisk load end = 0x07f9a996
## device tree at 0x03000000 ... 0x03002FFF (len=24576=0x6000)
Loading Device Tree to 007fa000, end 007fffff ... OK
Updating property 'current-speed' = 00 00 25 80 Updating property 'clock-frequency' = 01 79 a7 b0 Updating property 'bus-frequency' = 03 ef 14 80 Updating property 'timebase-frequency' = 00 00 00 00 Updating property 'clock-frequency' = 11 b3 dc 40 Updating property 'clock-frequency' = 03 ef 14 80 Updating property 'bus-frequency' = 03 ef 14 80
## Transferring control to Linux (at address 00000000) ...
Booting using OF flat tree.
BDI2000 console:
MPC8260|:=>halt
Target CPU : MPC82xx (G2H4)
Target state : debug mode
Debug entry cause : COP halt
Current PC : 0xc000c5f0
Current CR : 0x42022088
Current MSR : 0x00001032
Current LR : 0xc001cfa80xc000c5f0: in hardwareinterrupt vector table.
Does anyone have an idea about what is going wrong?
Is the error in my u-boot, device tree blob or linux kernel side? what i should look at?
Best regards.
Dewen
/*
* (C) Copyright 2001
* Stuart Hughes <[email protected]>
* This file is based on similar values for other boards found in other
* U-Boot config files, and some that I found in the mpc8260ads manual. *
* Note: my board is a PILOT rev.
* Note: the mpc8260ads doesn't come with a proper Ethernet MAC address. *
* (C) Copyright 2003-2004 Arabella Software Ltd.
* Yuli Barcohen <[email protected]>
* Added support for SDRAM DIMMs SPD EEPROM, MII, JFFS2.
* Ported to PQ2FADS-ZU and PQ2FADS-VR boards.
* Ported to MPC8272ADS board.
*
* Copyright (c) 2005 MontaVista Software, Inc.
* Vitaly Bordug <[email protected]>
* Added support for PCI bridge on MPC8272ADS
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
/* 修改历史 2009 作者:赵德文
* 2009年2月19日 电路板标志CONFIG_8260B, 选择FCC1为网络使用,FCC1时钟选择修改CMXFCR
* IMMR HRCW ,Flash 相关选项 Memory相关寄存器BRx,ORx,DS2155define,
* CONFIG_BAUDRATE,增加打印 u-boot image 的制作时间,修改BOOTCOMMAND
*
*/
#ifndef __CONFIG_H
#define __CONFIG_H
/*
* High Level Configuration Options
* (easy to change)
*/
/********************** board config******************************/
#define CONFIG_VERSION_VARIABLE 1.0 /*U-Boot Version--2.20*/
#define serial# 8260TDM_to_EtherNeT
/*#define CONFIG_MPC8260ADS 1 *Motorola PQ2 ADS family board */
#define CONFIG_8260B 1 /* My Motorola PQ8260 board --2.19*/
#define CONFIG_CPM2 1 /* Has a CPM2 */
/*
* Figure out if we are booting low via flash HRCW or high via the BCSR. */
#if (TEXT_BASE != 0xFFF00000) /* Boot low (flash HRCW) */
# define CONFIG_SYS_LOWBOOT 1
#endif
#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
#define BOOTFLAG_WARM 0x02 /* Software reboot */
/* ADS flavours */
#define CONFIG_SYS_8260ADS 1 /* MPC8260ADS */
#define CONFIG_SYS_8266ADS 2 /* MPC8266ADS */
#define CONFIG_SYS_PQ2FADS 3 /* PQ2FADS-ZU or PQ2FADS-VR */
#define CONFIG_SYS_8272ADS 4 /* MPC8272ADS */
#ifndef CONFIG_ADSTYPE
#define CONFIG_ADSTYPE CONFIG_SYS_8260ADS
#endif /* CONFIG_ADSTYPE */
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
#define CONFIG_MPC8272 1
#else
#define CONFIG_MPC8260 1
#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
/*CLOCK*/
#ifndef CONFIG_8260_CLKIN
#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
#define CONFIG_8260_CLKIN 100000000 /* in Hz */
#else
#define CONFIG_8260_CLKIN 66000000 /* in Hz */
#endif
#endif
#define CONFIG_CLOCKS_IN_MHZ 297
/* this is stuff came out of the Motorola docs */
#ifndef CONFIG_SYS_LOWBOOT
#define CONFIG_SYS_DEFAULT_IMMR 0xF0000000
#endif
#define CONFIG_SYS_IMMR 0xF0000000 /*--2.19*/
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
#define CONFIG_SYS_PCI_INT 0xF8200000
#endif
#define CONFIG_SYS_CACHELINE_SIZE 32 /* For MPC8260 CPU */
/* 8260B flash HRCW =0E228287 */
/* CS10 Pin config BCTL1
* MODCK_H = 0111 MODCK[1-3]=110 ,CLKIN=66MHz, CPM =200MHz, Core = 300MHz
* CPM Multiplication Factor = 3 ,Core Multiplication Factor = 4.5 */
#define CONFIG_SYS_HRCW_MASTER ( ( HRCW_BPS11 | HRCW_CIP ) |\ ( HRCW_L2CPC00 | HRCW_DPPC10 | HRCW_ISB100 ) |\ ( HRCW_BMS | HRCW_MMR00 | HRCW_LBPC00 | HRCW_APPC10 ) |\ ( HRCW_CS10PC10 | HRCW_MODCK_H0111 ) \ )
/* no slaves */
#define CONFIG_SYS_HRCW_SLAVE1 0
#define CONFIG_SYS_HRCW_SLAVE2 0
#define CONFIG_SYS_HRCW_SLAVE3 0
#define CONFIG_SYS_HRCW_SLAVE4 0
#define CONFIG_SYS_HRCW_SLAVE5 0
#define CONFIG_SYS_HRCW_SLAVE6 0
#define CONFIG_SYS_HRCW_SLAVE7 0
#define DEBUG
/***************************Register*****************************************************/
#define CONFIG_SYS_TBSCR /*Time Base Status and Control (11-26)*/
#define CONFIG_SYS_PLPRCR /*PLL, Low-Power, and Reset Control Register (15-30)*/
#define CONFIG_SYS_OR_TIMING_SDRAM /*SDRAM timing*/
#define CONFIG_SYS_MAMR_PTA /*periodic timer for refresh*/
#define CONFIG_SYS_SYPCR 0xFFFFFF80
#define CONFIG_SYS_BCR 0x100C0000
#define CONFIG_SYS_SIUMCR 0x8825C000
#define CONFIG_SYS_SCCR SCCR_DFBRG01
#define CONFIG_SYS_RMR RMR_CSRE
#define CONFIG_SYS_TMCNTSC (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
#define CONFIG_SYS_PISCR (PISCR_PS|PISCR_PTF|PISCR_PTE)
#define CONFIG_SYS_RCCR 0
/*************************************************UART*******************
* select serial console configuration
*
* if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then
* CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4
* for SCC).
*
* if CONFIG_CONS_NONE is defined, then the serial console routines must
* defined elsewhere (for example, on the cogent platform, there are serial
* ports on the motherboard which are used for the serial console - see
* cogent/cma101/serial.[ch]).
*/
#undef CONFIG_CONS_ON_SMC /* define if console on SMC */
#define CONFIG_CONS_ON_SCC /* define if console on SCC */
#undef CONFIG_CONS_NONE /* define if console on something else */
#define CONFIG_CONS_INDEX 1 /* which serial channel for console */
#define CONFIG_BAUDRATE 9600 /*--2.19*/
/******************************FLASH*********************************************************/
#define CONFIG_SYS_FLASH_BASE TEXT_BASE /*--2.19*/
#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */
#define CONFIG_SYS_MAX_FLASH_SECT 39 /* max num of sects on one chip */
#define CONFIG_SYS_FLASH_SIZE 0x400000 /*4M--2.19*/
#define CONFIG_SYS_FLASH_ERASE_TOUT 800000000000 /* Timeout for Flash Erase (in ms) */
#define CONFIG_SYS_FLASH_WRITE_TOUT 9000000000000 /* Timeout for Flash Write (in ms) */
#define CONFIG_SYS_FLASH_LOCK_TOUT 500000000000 /* Timeout for Flash Set Lock Bit (in ms) */
#define CONFIG_SYS_FLASH_UNLOCK_TOUT 100000000 /* Timeout for Flash Clear Lock Bits (in ms) */
#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */
/*#define CONFIG_SYS_DIRECT_FLASH_TFTP*//*--2.20*/
/*BR0 OR0*/
#define CONFIG_SYS_BR0_PRELIM (CONFIG_SYS_FLASH_BASE | 0x00001801)
#define CONFIG_SYS_OR0_PRELIM 0xFFC01C54
/*Physical start address of boot monitor code (set by
make config files to be same as the text base address (TEXT_BASE) used when linking) - same as CONFIG_SYS_FLASH_BASE when booting from flash.*/
#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
/****************************************SDRAM***********************************************/
/** SDRAM_SIZE define in 8260B.c*/
#define CONFIG_SYS_SDRAM_BASE 0x00000000 /*Physical start address of SDRAM. _Must_ be 0 here.*/
#define CONFIG_SYS_BR1_PRELIM 0x00000041 /*SDRAM ON BR1 */
#define CONFIG_SYS_OR1_PRELIM 0xF8002B00
#define CONFIG_SYS_OR1 0xF8002B00
#define CONFIG_SYS_PSDMR 0xC32EB452
#define CONFIG_SYS_PSRT 0x000e
#define CONFIG_SYS_LSDMR 0x0086A522
#define CONFIG_SYS_LSRT 0x21
#define CONFIG_SYS_MPTPR 0x4000
#ifndef CONFIG_SDRAM_PBI
#define CONFIG_SDRAM_PBI 0 /* By default, use bank-based interleaving */
#endif
/*Size of memory reserved for monitor code, used to
determine _at_compile_time_ (!) if the environment is embedded within the U-Boot image, or in a separate flash sector.*/
#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
/*Size of DRAM reserved for malloc() use*/
#ifdef CONFIG_BZIP2
#define CONFIG_SYS_MALLOC_LEN (4096 << 10) /* Reserve 4 MB for malloc() */
#else
#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 KB for malloc() */
#endif /* CONFIG_BZIP2 */
/******************************INIT RAM*********************************************************/
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR /*--2009.5.13*/
#define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/********************************************net**********************************************
* select ethernet configuration
*
* if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then
* CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3
* for FCC)
*
* if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be
* defined elsewhere (as for the console), or CONFIG_CMD_NET must be unset.
*/
#undef CONFIG_ETHER_ON_SCC /* define if ether on SCC */
#define CONFIG_ETHER_ON_FCC /* define if ether on FCC */
#undef CONFIG_ETHER_NONE /* define if ether on something else */
#ifdef CONFIG_ETHER_ON_FCC
#define CONFIG_ETHER_INDEX 1 /* which SCC/FCC channel for ethernet --2.19*/
#if CONFIG_ETHER_INDEX == 1
# define CONFIG_SYS_PHY_ADDR 0 /*# define CONFIG_SYS_CMXFCR_VALUE (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK10)*/ # define CONFIG_SYS_CMXFCR_VALUE (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12) /*--2.19*/ # define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
#elif CONFIG_ETHER_INDEX == 2
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS /* RxCLK is CLK15, TxCLK is CLK16 */
# define CONFIG_SYS_PHY_ADDR 3 # define CONFIG_SYS_CMXFCR_VALUE (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK16) #else /* RxCLK is CLK13, TxCLK is CLK14 */ # define CONFIG_SYS_PHY_ADDR 0 # define CONFIG_SYS_CMXFCR_VALUE (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14) #endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
# define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
#endif /* CONFIG_ETHER_INDEX */
#define CONFIG_SYS_CPMFCR_RAMTYPE 0 /* BDs and buffers on 60x bus */
#define CONFIG_SYS_FCC_PSMR (FCC_PSMR_FDE | FCC_PSMR_LPB) /* Full duplex */
#define CONFIG_MII /* MII PHY management */
#define CONFIG_BITBANGMII /* bit-bang MII PHY management */
/*
* GPIO pins used for bit-banged MII communications */
#define MDIO_PORT 2 /* Port C */
#define CONFIG_SYS_MDIO_PIN 0x00400000 /* PC9 */
#define CONFIG_SYS_MDC_PIN 0x00200000 /* PC10 */
#define MDIO_ACTIVE (iop->pdir |= CONFIG_SYS_MDIO_PIN)
#define MDIO_TRISTATE (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
#define MDIO_READ ((iop->pdat & CONFIG_SYS_MDIO_PIN) != 0)
#define MDIO(bit) if(bit) iop->pdat |= CONFIG_SYS_MDIO_PIN; \ else iop->pdat &= ~CONFIG_SYS_MDIO_PIN
#define MDC(bit) if(bit) iop->pdat |= CONFIG_SYS_MDC_PIN; \ else iop->pdat &= ~CONFIG_SYS_MDC_PIN
#define MIIDELAY udelay(1)
#endif /* CONFIG_ETHER_ON_FCC */
#define CONFIG_ETHADDR 00:10:EC:D0:30:88
/************************************environment***************************************************/ /** "embedded" in the text segment with the U-Boot code --6.4 由于U-Boot代码通常达到100KB左右,且必须从地址0处开始,按照这样的分配方式,我们将不得不为env分配一块64KB的sector, 而实际中使用到的可能只是其中的几百字节!U-Boot还会为env在RAM中保持一块同样大小的空间,这就造成ROM和RAM空间不必要的浪费。
为了尽可能地减少资源浪费,同时保证系统的健壮性,我们可以把env放置在Flash中容量最小的sector里。
这样,env嵌入(embed)到U-Boot的代码段。在common/environment.h中会比较env和monitor的范围,如果确定env位于monitor内, 则定义ENV_IS_EMBEDDED。
************ define as follow in common/environment.h***********************
# if (CFG_ENV_ADDR >= CFG_MONITOR_BASE) && \
(CFG_ENV_ADDR+CFG_ENV_SIZE) <= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
# define ENV_IS_EMBEDDED 1
# endif
******************************************************************************************************************************************************************//* allow serial and ethaddr to be overwritten */
/*#define CONFIG_ENV_OVERWRITE*/
/* ENV embedded in the text segment and IN flash*/
# define CONFIG_ENV_IS_IN_FLASH 1 # define CONFIG_ENV_SECT_SIZE 0x400 /*--6.4 sector in 0x20010000-0x20014000*/ # define CONFIG_ENV_ADDR 0x20010000 /*-- 6.4 address in flash */
/*
* Command line configuration.
*/
#include <config_cmd_default.h>
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_CDP
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_DIAG
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IMMAP
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
#define CONFIG_CMD_MII
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
#define CONFIG_CMD_PORTIO
#define CONFIG_CMD_REGINFO
#define CONFIG_CMD_SAVES
#define CONFIG_CMD_SDRAM
#define CONFIG_CMD_ELF /* ELF (VxWorks) load/boot cmd */
/*CMD undef*/
#undef CONFIG_CMD_XIMG
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
#undef CONFIG_CMD_SDRAM
#undef CONFIG_CMD_I2C
#elif CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
#undef CONFIG_CMD_SDRAM
#undef CONFIG_CMD_I2C
#undef CONFIG_CMD_PCI
#else
#undef CONFIG_CMD_PCI
#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
#define CONFIG_BOOTDELAY 8 /* autoboot after 5 seconds */
/*#define CONFIG_BOOTCOMMAND "bootm 0x20040000 0x20200000" * autoboot command */
#define CONFIG_BOOTFILE uImage
/*#define CONFIG_BOOTARGS "root=/dev/mtdblock2"
/*"bootretry" environment variable define in doc/README.autoboot --2.20*/
/*#define CONFIG_BOOT_RETRY_TIME 20*/
#define CONFIG_BOOTARGS "console=ttyCPM0,9600 root=/dev/ram0"
#define CONFIG_BOOT_RETRY_MIN 20
#define CONFIG_AUTOBOOT_PROMPT "autoboot in %d seconds \n",bootdelay
#define CONFIG_RTC_MPC8xx
/*
#define CONFIG_CMD_DATE
#define CONFIG_CONSOLE_TIME
*/
#if defined(CONFIG_CMD_KGDB)
#undef CONFIG_KGDB_ON_SMC /* define if kgdb on SMC */
#define CONFIG_KGDB_ON_SCC /* define if kgdb on SCC */
#undef CONFIG_KGDB_NONE /* define if kgdb on something else */
#define CONFIG_KGDB_INDEX 2 /* which serial channel for kgdb */
#define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port at */
#endif
#define CONFIG_BZIP2 /* include support for bzip2 compressed images */
#undef CONFIG_WATCHDOG /* disable platform specific watchdog */
#if defined(CONFIG_CMD_KGDB)
# define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif
/*
* Miscellaneous configurable options
*/
#define CONFIG_SYS_HUSH_PARSER
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
#define CONFIG_SYS_LONGHELP /* long help messages included undef to save memory*/
#define CONFIG_SYS_PROMPT "[u-boot]: " /* Monitor Command Prompt */
#if defined(CONFIG_CMD_KGDB)
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
#else
#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
#endif
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
/*#define CONFIG_SYS_LOAD_ADDR 0x400000 /* default load address */
#define CONFIG_SYS_LOAD_ADDR 0x800000 /*--6.4*/
#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
/*
* BOOTP options
*/
#define CONFIG_BOOTP_BOOTFILESIZE
#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME
/*#define CONFIG_SYS_RESET_ADDRESS 0x04400000*/
#define CONFIG_SYS_RESET_ADDRESS 0x20000100 /*--2009.6.2*/
/*IPaddress */
#define CONFIG_IPADDR 12.13.45.160
#define CONFIG_SERVERIP 12.13.45.158
/* #define CONFIG_PHY_ADDR The address of PHY on MII bus */
/*Intel LXT971A need extra delay after reset,300 is minimum */
#define CONFIG_PHY_RESET_DELAY 300
/* #define CONFIG_PHY_GIGE support for speed/duplex detection of gigabit PHY is included.*/
/*#define CONFIG_STATUS_LED *display the current status using a LED.*/
/*show the system's boot progress on some display calling a user-provided function "show_boot_progress(int)*/
#define CONFIG_SHOW_BOOT_PROGRESS
/***********************************vxWorks*******************************************/ /*author define as follow --2.25*/
/*define vxWorks boot parameters:- */
/*Note: If a "bootargs" environment is defined, it will overwride
the defaults discussed just above.*/
/*#define boot_vxWorks*/
#ifdef boot_vxWorks
#define CONFIG_SYS_VXWORKS_BOOT_DEVICE vxWorks_rom.bin /* The vxworks device name */
#define CONFIG_SYS_VXWORKS_MAC_PTR Ethernet /* 6 byte MA -address */ #define CONFIG_SYS_VXWORKS_SERVERNAME /* Name of the server */
#define CONFIG_SYS_VXWORKS_BOOT_ADDR 0x20040000 /* Address of boot parameters*/
#define CONFIG_SYS_VXWORKS_ADD_PARAMS "motfcc(0,0) Powerpc5: e=12.13.45.160 h=12.13.45.158 u=admin pw=admin o=motfcc"
#endif
/***************************************other*****************************************/
#define CONFIG_OF_LIBFDT 1
#define CONFIG_OF_BOARD_SETUP 1
#define CONFIG_OF_STDOUT_VIA_ALIAS 1
#if defined(CONFIG_OF_LIBFDT)
#define OF_CPU "cpu"
#define OF_TBCLK (bd->bi_busfreq / 4)
#define OF_SOC soc@f0000000 /*- The proper name of the soc node.*/
#define OF_TBCLK 0 /*- The timebase frequency.*/
#define OF_STDOUT_PATH "/soc/cpm/serial@11a00" /*- The path to the console device*/
#define CONFIG_OF_BOOT_CPU "cpu@0"
#endif
#define CONFIG_SYS_HID0_INIT 0
#define CONFIG_SYS_HID0_FINAL (HID0_ICE | HID0_IFEM | HID0_ABE )
#define CONFIG_SYS_HID2 0
#define RS232EN_1 0x02000002
#define RS232EN_2 0x01000001
#define FETHIEN1 0x08000008
#define FETH1_RST 0x04000004
#define FETHIEN2 0x10000000
#define FETH2_RST 0x08000000
#define BCSR_PCI_MODE 0x01000000
/*************************************************DS2155**************************************************/
#undef INCLUDE_MCC_E1_DS2155
/*#define INCLUDE_MCC_E1_DS2155*/
#ifdef INCLUDE_MCC_E1_DS2155
#define CONFIG_SYS_BR2_PRELIM 0x30000801
#define CONFIG_SYS_OR2_PRELIM 0xFFFF8834
#define DS2155_ADRS 0x10000000
#define DS2155_SIZE 0x10000
#define Ds2155_Addr_Offset 0x100
#endif /*DS2155 define*/
/************************************************************************************************************************************************************************ ************************************************* end 8260 config *************************************** *************************************************************************************************************************************************************************/
/* I2C */
#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
#undef CONFIG_SPD_EEPROM /* On new boards, SDRAM is soldered */
#else
#define CONFIG_HARD_I2C 1 /* To enable I2C support */
#define CONFIG_SYS_I2C_SPEED 100000 /* I2C speed and slave address */
#define CONFIG_SYS_I2C_SLAVE 0x7F
#if defined(CONFIG_SPD_EEPROM) && !defined(CONFIG_SPD_ADDR)
#define CONFIG_SPD_ADDR 0x50
#endif
#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
/*PCI*/
#ifdef CONFIG_MPC8272
#define CONFIG_PCI
#define CONFIG_PCI_PNP
#define CONFIG_PCI_BOOTDELAY 0
#define CONFIG_PCI_SCAN_SHOW
#endif
/*
* JFFS2 partitions
*
* Note: fake mtd_id used, no linux mtd map file
*/
#define MTDIDS_DEFAULT "nor0=mpc8260ads-0"
#define MTDPARTS_DEFAULT "mtdparts=mpc8260ads-0:-@1m(jffs2)"
#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
/**********************************************MPC8272*********************************************/ /*We need to configure chip select to use CPLD PCI IC on MPC8272ADS*
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
#define CONFIG_SYS_BR3_PRELIM (CONFIG_SYS_PCI_INT | 0x1801) /* PCI interrupt controller *
#define CONFIG_SYS_OR3_PRELIM 0xFFFF8010
#endif
*/
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
/* PCI Memory map (if different from default map */
#define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE /* Local base */
#define CONFIG_SYS_PCI_SLV_MEM_BUS 0x00000000 /* PCI base */
#define CONFIG_SYS_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
PICMR_PREFETCH_EN)
/*
* These are the windows that allow the CPU to access PCI address space.
* All three PCI master windows, which allow the CPU to access PCI
* prefetch, non prefetch, and IO space (see below), must all fit within
* these windows.
*/
/*
* Master window that allows the CPU to access PCI Memory (prefetch).
* This window will be setup with the second set of Outbound ATU registers
* in the bridge.
*/
#define CONFIG_SYS_PCI_MSTR_MEM_LOCAL 0x80000000 /* Local base */
#define CONFIG_SYS_PCI_MSTR_MEM_BUS 0x80000000 /* PCI base */
#define CONFIG_SYS_CPU_PCI_MEM_START PCI_MSTR_MEM_LOCAL
#define CONFIG_SYS_PCI_MSTR_MEM_SIZE 0x20000000 /* 512MB */
#define CONFIG_SYS_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
/*
* Master window that allows the CPU to access PCI Memory (non-prefetch).
* This window will be setup with the second set of Outbound ATU registers
* in the bridge.
*/
#define CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL 0xA0000000 /* Local base */ #define CONFIG_SYS_PCI_MSTR_MEMIO_BUS 0xA0000000 /* PCI base */ #define CONFIG_SYS_CPU_PCI_MEMIO_START PCI_MSTR_MEMIO_LOCAL #define CONFIG_SYS_PCI_MSTR_MEMIO_SIZE 0x20000000 /* 512MB */ #define CONFIG_SYS_POCMR1_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE)
/*
* Master window that allows the CPU to access PCI IO space.
* This window will be setup with the first set of Outbound ATU registers
* in the bridge.
*/
#define CONFIG_SYS_PCI_MSTR_IO_LOCAL 0xF6000000 /* Local base */ #define CONFIG_SYS_PCI_MSTR_IO_BUS 0x00000000 /* PCI base */ #define CONFIG_SYS_CPU_PCI_IO_START PCI_MSTR_IO_LOCAL #define CONFIG_SYS_PCI_MSTR_IO_SIZE 0x02000000 /* 64MB */ #define CONFIG_SYS_POCMR2_MASK_ATTRIB (POCMR_MASK_32MB | POCMR_ENABLE | POCMR_PCI_IO)
/* PCIBR0 - for PCI IO*/
#define CONFIG_SYS_PCI_MSTR0_LOCAL CONFIG_SYS_PCI_MSTR_IO_LOCAL /* Local base */
#define CONFIG_SYS_PCIMSK0_MASK ~(CONFIG_SYS_PCI_MSTR_IO_SIZE - 1U) /* Size of window */
/* PCIBR1 - prefetch and non-prefetch regions joined together */
#define CONFIG_SYS_PCI_MSTR1_LOCAL CONFIG_SYS_PCI_MSTR_MEM_LOCAL
#define CONFIG_SYS_PCIMSK1_MASK ~(CONFIG_SYS_PCI_MSTR_MEM_SIZE + CONFIG_SYS_PCI_MSTR_MEMIO_SIZE - 1U)
#endif /* CONFIG_ADSTYPE == CONFIG_8272ADS*/
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
#define CONFIG_HAS_ETH1
#endif
#endif /* __CONFIG_H */
Quoted 4 lines · jerry_dw
Updating property 'current-speed' = 00 00 25 80 Updating property 'clock-frequency' = 01 79 a7 b0 Updating property 'bus-frequency' = 03 ef 14 80 Updating property 'timebase-frequency' = 00 00 00 00
That timebase-frequency doesn't look right...
Quoted 11 lines
BDI2000 console:
MPC8260|:=>haltTarget CPU : MPC82xx (G2H4) Target state : debug mode Debug entry cause : COP halt Current PC : 0xc000c5f0 Current CR : 0x42022088 Current MSR : 0x00001032 Current LR : 0xc001cfa8
0xc000c5f0: in hardwareinterrupt vector table.
Which vector (that address looks a little high to be in the exception vectors)? Is there anything in the log buffer?
-Scott