Zourva 发表于 2011-5-25 11:13:48

run u-boot on s3c6410

Hi all, I wanna run u-boot on s3c6410 simulated by skyeye. I use the following conf, start, and run.The command line shows
In start_all_thread, the thread 1 is set to running
In start_all_thread, the thread 2 is set to running
and then nothing happened, no uboot menu options printed.

The memory address partition scheme is digested from the user manual of s3c6410.Have I got something wrong about the conf file?

And , by the way, had anyone ever tried configuring scratchpad memory(or, say Tightly Coupled Memory) using skyeye? If any, would you share your methods?

Thanks very much and any suggestion will be appreciated.

Here's some info I think may be helpful.
/// info printed when type start command
Loaded RAM   ./u-boot.bin
1 core is initialized.
SKYEYE: use arm11jzf-s mmu ops
SKYEYE: use arm11jzf-s mmu ops
Can not get correct kernel filename!Maybe your skyeye.conf have something wrong!
In SIM_start, Set PC to the address 0x50000000

/// conf file
arch:arm
cpu: arm11
mach: s3c6410x

# physical memory
# 128M Booting Device Region by XOM settings
mem_bank: map=M, type=RW, addr=0x00000000, size=0x08000000
# 64M internal ROM
mem_bank: map=M, type=RW, addr=0x08000000, size=0x04000000
# 64M Boot Loader
mem_bank: map=M, type=RW, addr=0x0c000000, size=0x04000000, file=./u-boot.bin, boot=yes

# SROMC bank0-bank5
#mem_bank: map=M, type=RW, addr=0x10000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x18000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x20000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x28000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x30000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x38000000, size=0x08000000
# Reserved
#mem_bank: map=M, type=RW, addr=0x40000000, size=0x08000000
#mem_bank: map=M, type=RW, addr=0x48000000, size=0x10000000
# DRAM 512M
mem_bank: map=M, type=RW, addr=0x50000000, size=0x10000000
mem_bank: map=M, type=RW, addr=0x60000000, size=0x10000000

# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x70000000, size=0x10000000

mem_bank: map=I, type=RW, addr=0x80000000, size=0x10000000

uart:mod = term
load_addr:base=0x50000000, mask=0xFFFFFF
#-l0x50000000,0xffffff


[ 本帖最后由 Zourva 于 2011-5-25 17:35 编辑 ]

David_yu 发表于 2011-5-25 13:51:27

List your alloperations please, Include command line and uart infomations
You could upload your u-boot too

Zourva 发表于 2011-5-25 17:38:48

回复 2# David_yu 的帖子

Thanks David,
I just modify the skyeye.conf to contents give above, and issue these commands:
1. skyeye_main.py -c skyeye.conf
2. start
3. run

That's all~

David_yu 发表于 2011-5-26 09:41:07

Comand line has little case,
It should be: skyeye_main.py -e u-boot(it is elf file) -c skyeye.conf


Thanks

Zourva 发表于 2011-5-26 14:02:06

Yeah, I tried using -e u-boot, but seems doesn't help~
If waiting for a moment, the uart will print a 0, and I got this in the console:

In start_all_thread, the thread 1 is set to running
In start_all_thread, the thread 2 is set to running
(running) mmu_mcr wrote UNKNOWN - reg 15

David_yu 发表于 2011-5-26 15:33:19

OK, I try running your u-boot.bin, It is not have the problem!
But It can't run, no have any infomation,
I guess that uart address is not right.

David_yu 发表于 2011-5-26 21:21:39

First: you must be sure u-boot pc_start, if you load uboot on 0xc000000, pc_start should be 0xc000000, load: base = 0xc000000
Next: u-boot's first instruction may be not pc_start. you may be find entry addr.
Can you give me your elf_file of uboot?
页: [1]
查看完整版本: run u-boot on s3c6410