1/1

|
or1ksim can't run linux3.1.4 kernel
by godspeed1989 on Dec 9, 2011 |
godspeed1989
Posts: 12 Joined: Sep 6, 2011 Last seen: Oct 3, 2012 |
||
|
I use cross tools binutils-2.20.1-or32-svn + gcc-4.5.1-or32-1.0rc1 + newlib-1.18.0-or32-1.0rc1
to compile the newest linux3.1.4 kernel. use "make or1ksim_defconfig" to generate .config file. Everything is ok during the compiling. but when i use or1ksim-0.5.0rc2 to simulate: or32-elf-sim -f sim.cfg vmlinux There is no output in xterm. Output in console this and stopped: Verbose on, simdebug on, interactive prompt off Machine initialization... Clock cycle: 20us No data cache. No instruction cache. BPB simulation off. BTIC simulation off. Or1ksim 0.5.0rc2 Building automata... done, num uncovered: 0/213. Parsing operands data... done. UART at 0x90000000 Resetting Tick Timer. Resetting Power Management. Resetting PIC. Starting at 0x00000000 loadcode: filename vmlinux startaddr=00000000 virtphy_transl=00000000 Not COFF file format ELF type: 0x0002 ELF machine: 0x005c ELF version: 0x00000001 ELF sec = 21 Section: .text, vaddr: 0xc0000000, paddr: 0x0 offset: 0x00002000, size: 0x00218250 Section: .rodata, vaddr: 0xc021a000, paddr: 0x21a000 offset: 0x0021c000, size: 0x00024ce0 Section: __ksymtab, vaddr: 0xc023ece0, paddr: 0x23ece0 offset: 0x00240ce0, size: 0x00003b30 Section: __ksymtab_gpl, vaddr: 0xc0242810, paddr: 0x242810 offset: 0x00244810, size: 0x00001980 Section: __ksymtab_strings, vaddr: 0xc0244190, paddr: 0x244190 offset: 0x00246190, size: 0x0000b44a Section: __param, vaddr: 0xc024f5dc, paddr: 0x24f5dc offset: 0x002515dc, size: 0x000001b0 Section: .data, vaddr: 0xc0250000, paddr: 0x250000 offset: 0x00252000, size: 0x000142e0 Section: __ex_table, vaddr: 0xc02642e0, paddr: 0x2642e0 offset: 0x002662e0, size: 0x000009f0 Section: .head.text, vaddr: 0xc0266000, paddr: 0x266000 offset: 0x00268000, size: 0x00004000 Section: .init.text, vaddr: 0xc026a000, paddr: 0x26a000 offset: 0x0026c000, size: 0x00013198 Section: .init.data, vaddr: 0xc027d1a0, paddr: 0x27d1a0 offset: 0x0027f1a0, size: 0x00002a7c WARNING: sim_init: dependstats stats must be enabled to do history analysis ****************** counters reset ****************** cycles 74050, insn #59441 ****************** counters reset ****************** I think cross tools and or1ksim is ok, because i use them to compile and run orpmon perfectly. Can anybody to help?
config.tar.gz (7 kb)
|
|||
|
RE: or1ksim can't run linux3.1.4 kernel
by jeremybennett on Dec 12, 2011 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi godspeed1989 I don't think you are using the correct simulator configuration file. There should be one in arch/openrisc inside Linux. There should be two versions, one for use with Ethernet, one without, although recent reports suggest the version without Ethernet is not there. If you do use Ethernet, you'll need to set up a TUN/TAP bridge. Look at the Or1ksim manual for guidance on this. There are also some scripts in the Or1ksim distribution that can help with this. HTH Jeremy
-- |
|||
|
RE: or1ksim can't run linux3.1.4 kernel
by godspeed1989 on Dec 13, 2011 |
godspeed1989
Posts: 12 Joined: Sep 6, 2011 Last seen: Oct 3, 2012 |
||
|
Sorry, I can't find or1ksim configuration files in linux-3.1.4 sources tree.
From here: http://lxr.linux.no/#linux+v3.1.5/arch/openrisc/ |
|||
|
RE: or1ksim can't run linux3.1.4 kernel
by olof on Dec 13, 2011 |
olof
Posts: 218 Joined: Feb 10, 2010 Last seen: Dec 17, 2018 |
||
|
Hmm... I just checked git.kernel.org and you are right. There is no or1ksim configuration file in the kernel tree. I believe you can use this one in the meantime http://git.openrisc.net/cgit.cgi/jonas/linux/plain/arch/openrisc/or1ksim.cfg
-- Olof Kindgren ______________________________________________ ORSoC Website: www.orsoc.se Email: olof.kindgren@orsoc.se ______________________________________________ FPGA, ASIC, DSP - embedded SoC design |
|||
1/1

