mpc850 question

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
1. I using memset like below.(u-boot)

memset((char *)&TodCmdRxData, 0x00,sizeof(TODCMD_RXDATA));

but I see in console : ### ERROR ### Please RESET the board ###

in application memset using is normal, but in u-boot have error..

2. I using mpc850 board. flash size : 2M, dram size : 16M
kernel as nfs is normal but kernel as ram is error like below.

setenv bootargs root=/dev/ram

RAMDISK: Compressed image found at block 0
Oops: kernel access of bad area, sig: 11
NIP: C0036614 XER: C0000A7F LR: C003C3D8 SP: C017D3E0 REGS: c017d330 TRAP: 0300
MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 2C1F0031, DSISR: 0000000B
TASK = c017c000[1] 'swapper' Last syscall: 120
last math 00000000 last altivec 00000000
GPR00: 408202AC C017D3E0 C017C000 00000100 00000F40 00000400 00000000 000003FF
GPR08: C0100000 00000800 C0F96000 2C1F002D 00127000 00040000 00000000 00000400
GPR16: 00000000 00000000 00008000 00000100 00002000 C0FF0000 00000F40 C0100000
GPR24: 00000000 00000000 00000400 000003FF 00000100 00000400 00000F40 00000001
Call backtrace:
00000111 C003C3D8 C00FDCE0 C0068E80 C00698CC C0069A14 C0069AA0
C0069FB8 C00FDE48 C00FD7D8 C00FDBB8 C00FCC14 C00F881C C00F88BC
C00023A8 C0004E80
Kernel panic: Attempted to kill init!

c00360b4 T init_buffer
c00360c8 t end_buffer_io_async
c00362d4 T set_buffer_async_io
c00362e4 T fsync_inode_buffers
c003647c T osync_inode_buffers
c0036538 T invalidate_inode_buffers
c0036594 T getblk
c0036704 T balance_dirty_state
c00367a0 T balance_dirty

3. I'd like to send tx data per 2second as scc3 in u-boot.
Would you give me a tip how I use function?

Re: mpc850 question (LEE MYUNG SUK) writes:

Quoted text here. Click to load it

Your definitions of TodCmdRxData and/or TODCMD_RXDATA are invalid.

Quoted text here. Click to load it

In U-Boot  you  must  understand  what  you  are  doing  before  even
attempting to do it.

Quoted text here. Click to load it

What does "kernel as nfs" and "kernel as ram" mean?

Quoted text here. Click to load it

How do you want to use SCC3? As UART? Ethernet? IrDA? HDLC? ???

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88   Web:
We've slightly trimmed the long signature. Click to see the full one.
Re: mpc850 question
Quoted text here. Click to load it

=> I made and used a fuction like below.

void my_memset(void)
        char    *src;
        int     i;

        src = (char *)&TodCmdRxData;

        for(i=0; i<sizeof(TODCMD_RXDATA); i++,src++)
            *src = 0x00;

Quoted text here. Click to load it

=> bootargs root=/dev/nfs is working well.
   but if this kernel is using root=/dev/ram isn't working.
   I try to debug source. so I knew a problem at inflate.
   but I don't know the reaseon.

## Loading RAMDisk Image at 00200000 ...
   Verifying Checksum ... OK
   Loading Ramdisk to 00d92000, end 00f940ff ... OK
fp->f_pos = c0d921fc
buf = c0ffc000
nblocks = 0
id_done nblocks = 0
gunzip start...gunzip come..

Quoted text here. Click to load it

=> I want to use scc3 as uart.

Site Timeline