problems ..to boot linux 2.4.4 on fads mpc860 please help!!!!!!!!

2002-11-06 Thread Leonardo Pereira Santos

Hi there! I hope this helps...
First of all, a coleague managed to make a 850FADS board work properly, so the
credit is his. We're using PPCBoot 1.2 and kernel-2.4.20pre1. The first thing
is to make sure that the ppcboot environment variable clocks_in_mhz IS NOT
DEFINED. It would NOT exist, not be defined as 0 or 1. It changes the clock
dividers in the processor that is not good. This should make the kernel boot
at least with a ramdisk.
If you have trouble to make the ethernet interface work, as we did, you should
edit the include/asm-ppc/commproc.h and arch/ppc/platforms/fads.h files. In
the first file, you should add the following:

/***  FADS  /

#ifdef CONFIG_FADS
/* This ENET stuff is for the MPC850SAR with ethernet on SCC2.  Some of
 * this may be unique to the FADS850SAR configuration.
 * Note TENA is on Port B.
 */
#define PA_ENET_RXD ((ushort)0x0004)/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)/* PA 12 */
#define PA_ENET_RCLK((ushort)0x0200)/* PA 6 */
#define PA_ENET_TCLK((ushort)0x0800)/* PA 4 */
#define PB_ENET_TENA((uint)0x2000)  /* PB 18 */
#define PC_ENET_CLSN((ushort)0x0040)/* PC 9 */
#define PC_ENET_RENA((ushort)0x0080)/* PC 8 */

#define SICR_ENET_MASK  ((uint)0xff00)
#define SICR_ENET_CLKRT ((uint)0x2f00)  /* RCLK-CLK2, TCLK-CLK4 */
#endif  /* CONFIG_FADS */

It should be put together with the other boards' definitions.
The fads.h file shoud be edited in these definitions:

 /***  defines taken from PPCBoot 1.2   ***/
 #define BCSR_ADDR   ((uint) 0x0210)
 #define BCSR_SIZE   ((uint)(64 * 1024))
 #define BCSR0   ((uint) (BCSR_ADDR + 00))
 #define BCSR1   ((uint) (BCSR_ADDR + 0x04))
 #define BCSR2   ((uint) (BCSR_ADDR + 0x08))
 #define BCSR3   ((uint) (BCSR_ADDR + 0x0c))
 #define BCSR4   ((uint) (BCSR_ADDR + 0x10))
 /***  ***/

That should do the trick. Again, we are using a FADS850SAR board, which is not
the same you have, but the spirit of the whole thing is to take the info from
a working ppcboot to the kernel. Hope it helps.

--
All things are ready, if our minds be so
The Life Of King Henry V - William Sharespeare

Leonardo Pereira Santos
Engenheiro de Projetos
PD3 Tecnologia
av. Par? 330/202
(51) 3337 1237

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





problems ..to boot linux 2.4.4 on fads mpc860 please help!!!!!!!!

2002-10-21 Thread rekha gvv

Hello,
I had read this from the readme file

CFG_IMMR: Physical address of the Internal Memory

  Mapped Register; DO NOT CHANGE! (11-4)
[MPC8xx systems only]
and found that in file

/ppcboot /include/ config_FADS860T.h
#define CFG_IMMR0xFF00
#define CFG_IMMR_SIZE   ((uint)(64 * 1024))

and linux-kernel/include/asm-ppc/fads.h
#define IMAP_ADDR   ((uint)0xff00)
#define IMAP_SIZE   ((uint)(64 * 1024))

Are the values 0xff00 okay for fads board..
I am sure the above #defines satisfies the rule

Just make sure your machine specific header file (for
instance
include/asm-ppc/tqm8xx.h) includes the same definition
of the Board
Information structure as we define in
include/ppcboot.h, and make
sure that your definition of IMAP_ADDR uses the same
value as your
PPCBoot configuration in CFG_IMMR.

MY main problem is that the fadsboard is not booting
up
it hangs after Uncompressing Kernel Image OK
I have checked the faq at the denx site ..and have
done those changes also but of no use...I have
attatched the config file after doing menuconfig ..if
there is any errors possibly please let me know..
also after the kernel compiles i opened the vmlinux
file and saw somwhere in the middle i found these
warnings..
**
*/usr/src/linux-2.4.4-2002-03-21/include/linux/mount.h.../usr/src/linux-2.4.4-2002-03-21/include
.init=...Kernel command line: %s
2initrd overwritten (0x%08lx  0x%08lx) -
disabling it.
..POSIX conformance testing by UNIFIX
linuxrc./dev/console/linuxrc/initrd.3Change
root to /initrd: error %d
Warning: unable to open an initial console.
/sbin/init../etc/init.../bin/init.../bin/sh.No
init found.  Try passing init= option to kernel
..kernel BUG at %s:%d!
.../usr/src/linux-2.4.4-2002-03-21/include/linux/mount.h.../usr/src/linux-2.4.4-2002-03-21/includ

there is a warning unable to open initial console...
could u strees on that warning ..and tell me if i
shoul create any /dev/console device in the
kernel...before compiling..
these are the problems so hopefully expecting some
hints .
thankyou!
bye
config
file
#
# Automatically generated make config: don't edit
#
# CONFIG_UID16 is not set
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y

#
# Platform support
#
CONFIG_PPC=y
# CONFIG_6xx is not set
# CONFIG_8240 is not set
# CONFIG_4xx is not set
# CONFIG_POWER3 is not set
# CONFIG_POWER4 is not set
CONFIG_8xx=y
# CONFIG_CU824 is not set
CONFIG_SERIAL_CONSOLE=y
# CONFIG_AMX860 is not set
# CONFIG_BSEIP is not set
# CONFIG_C2MON is not set
# CONFIG_CCM is not set
# CONFIG_ETX094 is not set
CONFIG_FADS860=y
# CONFIG_FPS850L is not set
# CONFIG_HERMES is not set
# CONFIG_HERMES_SH is not set
# CONFIG_ICU862 is not set
# CONFIG_IP860 is not set
# CONFIG_IVML24 is not set
# CONFIG_IVMS8 is not set
# CONFIG_LANTEC is not set
# CONFIG_LWMON is not set
# CONFIG_MBX is not set
# CONFIG_PCU_E is not set
# CONFIG_RPXCLASSIC is not set
# CONFIG_RPXLITE is not set
# CONFIG_SM850 is not set
# CONFIG_SPD823TS is not set
# CONFIG_TQM823L is not set
# CONFIG_TQM850L is not set
# CONFIG_TQM855L is not set
# CONFIG_TQM860 is not set
# CONFIG_TQM860L is not set
# CONFIG_TQM823L is not set
# CONFIG_WINCEPT is not set
# CONFIG_PPC601_SYNC_FIX is not set
# CONFIG_ALL_PPC is not set
# CONFIG_SMP is not set
CONFIG_MACH_SPECIFIC=y
CONFIG_MATH_EMULATION=y
# CONFIG_SASH is not set

#
# General setup
#
# CONFIG_HIGHMEM is not set
# CONFIG_ISA is not set
# CONFIG_EISA is not set
# CONFIG_SBUS is not set
# CONFIG_MCA is not set
# CONFIG_PCI_QSPAN is not set
# CONFIG_PCI is not set
CONFIG_NET=y
CONFIG_SYSCTL=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_BINFMT_MISC=y
# CONFIG_HOTPLUG is not set
# CONFIG_PCMCIA is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Plug and Play configuration
#
# CONFIG_PNP is not set
# CONFIG_ISAPNP is not set

#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_BLK_DEV_LVM is not set