about building RTAI 24.1.12 at Linux 2.4.25

2005-08-09 Thread 的EMAIL
Hi All,

I got some error while make RTAI, anybody know how to fix it please
tell me,thanks.


1.I used ELDK version is 

ELDK version 3.1
ppc_8xx: Build 2004-11-10

2.My Linux is 2.4.25 -D2005-06-24 has been patch with
patch-denx-linuxppc_2_4_devel-2005_06_23_1722

3.My hardware is MPC852T 32M SDRAM 8M Flash

4.I step by step build my RTAI by reading README.install, but stil
fail. 

[root at banana rtai-24.1.12]# make
mkdir -p modules
make -C  rtaidir CFLAGS=-I /root/rtai-24.1.12/include -I . -D__KERNEL__
-I/opt/eldk/usr/src/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-I/opt/eldk/usr/src/linuxppc_2_4_devel/arch/ppc -fsigned-char
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
-DMODULE -DMODULE MAKING_MODULES=1 modules
make[1]: Entering directory `/root/rtai-24.1.12/rtaidir'
/opt/eldk/usr/bin/ppc_8xx-gcc -I /root/rtai-24.1.12/include -I .
-D__KERNEL__ -I/opt/eldk/usr/src/linuxppc_2_4_devel/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -I/opt/eldk/usr/src/linuxppc_2_4_devel/arch/ppc
-fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized
-mmultiple -mstring -DMODULE -DMODULE -I.  -DEXPORT_SYMTAB -c
rtai-arch.c
/root/rtai-24.1.12/include/asm/rtai_srq.h: In function `rtai_srq':
/root/rtai-24.1.12/include/asm/rtai_srq.h:32: error: asm-specifier for
variable `__sc_3' conflicts with asm clobber list
/root/rtai-24.1.12/include/asm/rtai_srq.h:32: error: asm-specifier for
variable `__sc_4' conflicts with asm clobber list
/root/rtai-24.1.12/include/asm/rtai_srq.h:32: error: asm-specifier for
variable `__sc_0' conflicts with asm clobber list
/root/rtai-24.1.12/include/asm/rtai_srq.h:31: confused by earlier
errors, bailing out
make[1]: *** [rtai-arch.o] Error 1
make[1]: Leaving directory `/root/rtai-24.1.12/rtaidir'
make: *** [_mod_rtaidir] Error 2


Best Regards
Rober Hsu





about linux 2.4.25 on MPC852T

2005-08-04 Thread
Hello all,

 I'm porting Linux 2.4.25 at my MPC852T.My first used is 2.4.4, I assign my 
board info ptr to 0x3400 and pass it to linux 2.4.4.
It works fine. But 2.4.25's head.S changes much code  I don't know how to 
porting it. I need help.

My add code  like this

lir3, 0x3400
mr r11,r3 
(../arch/ppc/mbxboot/head.S)

to 2.4.4.

Another question is where can i find older kernel like 2.4.10, 
2.4.12,2.4.18 for PowerPC?I know DENX Linux kernel source tree
has the latest version, but i'm not sure there has above version that I want 
and I don't how to used cvs command to get it.If anyone
know where to download older kernel, please tell me,thanks.

Best Regards,
Rober Hsu
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050804/7c4e1d6c/attachment.htm
 


about linux 2.4.25 on MPC852T

2005-08-04 Thread
Hello all,

 I'm porting Linux 2.4.25 at my MPC852T.I can make uImag and ramdisk.tar.gz 
 now.
My question is how to combine these two file to linux.bin  let linux auto mount 
ramdisk.image.gz.
I think one file would be easy to maintain and download.

PS:I used 2.4.25 and u-boot 1.1.3.I want linux.bin = uImage+ramdisk.image.gz 
and let u-boot autorun linux.bin 
  at board start up. 


Best Regards,
Rober Hsu
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050804/165a3045/attachment.htm
 


Does any body have HYNIX or AMIC 32M SDRAM reference cdoe?

2005-06-17 Thread
Hi All:

   I used HY57641620 * 2 total all 16M SDRAM at my MPC852T board, now i 
want to 
used HY57V281620ET-H * 2 or AMIC A43L3616-6 * 2 total all  32M SDRAM, but i 
don't know
how to setting UPM to control it, i need help.If you used another 32M SDRAM 
solution,
please tell me, thanks.


#define _NOT_USED_  0x

const uint sdram_table[] =   /* for HY57641620 * 2 16M  SDRAM */
{
/* Single Read. (offset 0x0-0x4 in UPM RAM) */
/* Precharge and MRS(offset 0x5-0x7 in UPM RAM) */
0x1F07FC04, 0xEEAEFC04, 0x11ADFC04, 0xEFBBBC00,
0x1FF77C47, 0x1FF77C35, 0xEFEABC34, 0x1FB57C35,

/* Burst Read. (offset 0x8-0xf in UPM RAM) */
0x1F07FC04, 0xEEAEFC04, 0x10ADFC04, 0xF0AFFC00,
0xF0AFFC00, 0xF1AFFC00, 0xEFBBBC00, 0x1FF77C47,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,

/* Single Write. (offset 0x18-0x1F in UPM RAM) */
0x1F27FC04, 0xEEAEBC00, 0x01B93C04, 0x1FF77C47,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,

/* Burst Write. (offset 20-2F in UPM RAM) */
0x1F07FC04, 0xEEAEBC00, 0x10AD7C00, 0xF0AFFC00,
0xF0AFFC00, 0xE1BBBC04, 0x1FF77C47, _NOT_USED_,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,

/* Refresh timer expired (offset 30-3B in UPM RAM) */
0x1FF5FC84, 0xFC04, 0xFC04, 0xFC04,
0xFC84, 0xFC07, 0x, _NOT_USED_,
_NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,

/* Exception. (offset 3c-3f in UPM RAM) */
0x7C07, _NOT_USED_, _NOT_USED_, _NOT_USED_
};

long int initdram(int board_type)
{
 volatile immap_t *immap = (immap_t *)CFG_IMMR;
 volatile memctl8xx_t *memctl = immap-im_memctl;

 upmconfig(UPMA, (uint *)sdram_table, sizeof(sdram_table)/sizeof(uint));
  
 memctl-memc_mptpr = 0x0400;

 /*
  * Configure the refresh (mostly).  This needs to be
  * based upon processor clock speed and optimized to provide
  * the highest level of performance.  For multiple banks,
  * this time has to be divided by the number of banks.
  * Although it is not clear anywhere, it appears the
  * refresh steps through the chip selects for this UPM
  * on each refresh cycle.
  * We have to be careful changing
  * UPM registers after we ask it to run these commands.
  */

 memctl-memc_mamr = 0xD0904114;
 memctl-memc_mar = 0x0088;
 udelay(200);

 memctl-memc_mcr = 0x80004105; /* precharge */
 udelay(200);

 memctl-memc_mamr = 0xD0904114;
 memctl-memc_mcr = 0x80004830; /* refresh */
 udelay(200);

 memctl-memc_mamr = 0xD0904114;
 memctl-memc_mcr = 0x80004106; 
 udelay(200);

 memctl-memc_or2 = 0xFE000A00;
 memctl-memc_br2 = 0x0081;

 return (32 * 1024 *1024);
} /* end of initdram */

 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050617/52186aee/attachment.htm