Hi, Sébastien

On 2009/11/10, at 4:42, Sébastien Bourdeauducq wrote:
That could well be a source of the problem, since the Linux kernel is loaded at 0x40000000 (start of SDRAM) which is outside the memory region you defined.
In this case, GDB's error message should be more explicit.

I know,
but the kernel accessed address 0~ in memcpy().
This is result I tried.

(gdb) file ./vmlinux
Reading symbols from /home/tmatsuya/milkymist-linux/linux/ vmlinux...done.
(gdb) target sim --memory-region=0x0,0x44000000
Connected to the simulator.
(gdb) sim memory-region 0x80000000,0x8000
(gdb) load
Loading section .text.head, size 0xa4 lma 0x40000000
Loading section .init, size 0x15f58 lma 0x400000a8
Loading section .text, size 0x130b70 lma 0x40016000
Loading section .text.unlikely, size 0x250 lma 0x40146b70
Loading section .rodata, size 0x40c64 lma 0x40147000
Loading section __ksymtab, size 0x3070 lma 0x40187c64
Loading section __ksymtab_gpl, size 0xba0 lma 0x4018acd4
Loading section __ksymtab_strings, size 0x86f4 lma 0x4018b874
Loading section __param, size 0x1cc lma 0x40193f68
Loading section .data, size 0xebc4 lma 0x40198000
Loading section .sbss, size 0x98 lma 0x401a6bc4
Start address 0x40000000
Transfer rate: 13720160 bits in <1 sec.
(gdb) run
Starting program: /home/tmatsuya/milkymist-linux/linux/vmlinux
^C
Program received signal SIGINT, Interrupt.
calibrate_delay () at init/calibrate.c:139
139                             while (ticks == jiffies)
(gdb)

---------
Takeshi

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to