QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1315|回复: 3

pxa250_io_write_byte()

[复制链接]
发表于 2005-10-13 00:58:57 | 显示全部楼层 |阅读模式
Sorry for posting in english. There's some problem so I can't type chinese now.

I got a "SKYEYE: pxa250_io_read_write error" error message, then traced the code. I found that pxa250_io_read_byte() and pxa250_io_write_byte() are not implemented.
I wonder why they are not implemented?

I comment the exit code out, and add
pxa250_io_write_word (state, addr);
in the pxa250_io_write_byte() function.
Also, I replace the exit() with
pxa250_io_read_word (state, addr);

But it does not work.
My program still can not get the input from the console.
Actually, what I typed appears on the console but I can't send enter.
发表于 2005-10-17 16:22:57 | 显示全部楼层
tell me your skyeye version and more detailed error information
回复

使用道具 举报

 楼主| 发表于 2005-10-18 02:08:57 | 显示全部楼层
I use skyeye-1.0.0.
The error message is very simple.
"SKYEYE: pxa250_io_read_byte error"
This is caused by skyeye-1.0.0/arch/arm/mach/skyeye_mach_pxa250.c
about line 366

ARMword
pxa250_io_read_byte (ARMul_State * state, ARMword addr)
{
  printf ("SKYEYE: pxa250_io_read_byte error\n");
  exit (-1);
}

The program print the error message and exit.

pxa250_io_read_halfword(), pxa250_io_write_byte(), and pxa250_io_write_halfword() all have the same implementation

My skyeye.conf is showned below:

cpu: pxa25x
mach: pxa_lubbock
mem_bank: map=M, type=RW, addr=0x00000000, size=0x01000000, file=iboot.img,boot=yes
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa0000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0xa0200000, size=0x00100000
mem_bank: map=M, type=RW, addr=0xa0300000, size=0x00d00000
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xa2000000, size=0x02000000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00096000

Where iboot.img comes from
http://download.intrinsyc.com/supported/tools/i-boot-lite/i-boot-lite-1.8/images/i-boot-cerf-board-pxa25x_1.8-lite.img

Boot the image until the following messages apears.
Error: No OS image found.
IBoot>

When I try to type something, the program exit with the "SKYEYE: pxa250_io_read_byte error" error message.
回复

使用道具 举报

发表于 2005-10-18 15:20:18 | 显示全部楼层
The byte and halfword read and write is not supported by arm. Maybe you missed your kernel image
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 08:55 , Processed in 0.075438 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表