Stefan,

I copied the userspace from Jonas' repo and reran the make process. The 
resulting run of my original or1ksim is shown below (it errors out and can’t 
open ‘/‘). So then I reran the make process with the original userspace, 
downloaded and installed the git HEAD version of or1ksim, and reran the 
simulator, and this time it worked. Now if I want to use a more recent version 
of mor1kx for the HW build as you suggested, how can I do that using the 
orpsocv2 file set? Or do I have to start over with orpsocv3?

Thanks,
Daniel


>or32-elf-sim -f arch/openrisc/or1ksim.cfg vmlinux
Seeding random generator with value 0x01699a42
Insn MMU 0KB: 1 ways, 64 sets, entry size 1 bytes
Data MMU 0KB: 1 ways, 64 sets, entry size 1 bytes
Ethernet TAP type
Warning: ./arch/openrisc/or1ksim.cfg: Unrecognized parameter: sockif at line 
714; ignored.
Verbose on, simdebug off, interactive prompt off
Machine initialization...
Clock cycle: 10ns
No data cache.
No instruction cache.
BPB simulation off.
BTIC simulation off.
Or1ksim 2012-04-27
Building automata... done, num uncovered: 0/213.
Parsing operands data... done.
Warning: Failed to set TAP device tap0: Operation not permitted
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 = 28
Section: .text, vaddr: 0xc0000000, paddr: 0x0 offset: 0x00002000, size: 
0x0025b314
Section: .rodata, vaddr: 0xc025c000, paddr: 0x25c000 offset: 0x0025e000, size: 
0x000269d8
Section: __ksymtab, vaddr: 0xc02829d8, paddr: 0x2829d8 offset: 0x002849d8, 
size: 0x00004290
Section: __ksymtab_gpl, vaddr: 0xc0286c68, paddr: 0x286c68 offset: 0x00288c68, 
size: 0x00002910
Section: __ksymtab_strings, vaddr: 0xc0289578, paddr: 0x289578 offset: 
0x0028b578, size: 0x0000ea7e
Section: __param, vaddr: 0xc0297ff8, paddr: 0x297ff8 offset: 0x00299ff8, size: 
0x00000240
Section: .data, vaddr: 0xc029a000, paddr: 0x29a000 offset: 0x0029c000, size: 
0x0001c640
Section: __ex_table, vaddr: 0xc02b6640, paddr: 0x2b6640 offset: 0x002b8640, 
size: 0x00000a00
Section: .head.text, vaddr: 0xc02b8000, paddr: 0x2b8000 offset: 0x002ba000, 
size: 0x00004000
Section: .init.text, vaddr: 0xc02bc000, paddr: 0x2bc000 offset: 0x002be000, 
size: 0x00013cc4
Section: .init.data, vaddr: 0xc02cfce0, paddr: 0x2cfce0 offset: 0x002d1ce0, 
size: 0x0014b45c
WARNING: sim_init: Debug module not enabled, cannot start remote service to GDB
****************** counters reset ******************
cycles 107223, insn #85980
****************** counters reset ******************
Compiled-in FDT at c02d1cc0
Linux version 3.17.0-or1ksim-14036-g32505ca-dirty (daniel@ubuntugnome1404lts) 
(gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or32-linux (built 
20140929)) ) #1 Sat Nov 1 10:04:22 MDT 2014
CPU: OpenRISC-12 (revision 1) @20 MHz
-- dcache disabled
-- icache disabled
-- dmmu:   64 entries, 1 way(s)
-- immu:   64 entries, 1 way(s)
-- additional features:
-- power management
-- timer
setup_memory: Memory: 0x0-0x2000000
Reserved - 0x01fff270-0x00000d57
Setting up paging and PTEs.
map_ram: Memory: 0x0-0x2000000
itlb_miss_handler c0002160
dtlb_miss_handler c0002000
OpenRISC Linux -- http://openrisc.net
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4080
Kernel command line: console=uart,mmio,0x90000000,115200
Early serial console at MMIO 0x90000000 (options '115200')
bootconsole [uart0] enabled
PID hash table entries: 128 (order: -4, 512 bytes)
Dentry cache hash table entries: 4096 (order: 1, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 0, 8192 bytes)
Sorting __ex_table...
Memory: 28224K/32768K available (2412K kernel code, 116K rwdata, 248K rodata, 
1424K init, 82K bss, 4544K reserved)
mem_init_done ...........................................
NR_IRQS:32
40.00 BogoMIPS (lpj=200000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 0, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 0, 8192 bytes)
devtmpfs: initialized
NET: Registered protocol family 16
Switched to clocksource openrisc_timer
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 0, 8192 bytes)
TCP bind hash table entries: 2048 (order: 0, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 512 (order: 0, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 0, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -2, 3072 bytes)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
90000000.serial: ttyS0 at MMIO 0x90000000 (irq = 2, base_baud = 1250000) is a 
16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [uart0] disabled
bootconsole [uart0] disabled
libphy: ethoc-mdio: probed
NET: Registered protocol family 17
Freeing unused kernel memory: 1424K (c02b8000 - c041c000)
init: can't open '/': Function not implemented


On Nov 1, 2014, at 1:49 AM, Stefan Kristiansson 
<stefan.kristians...@saunalahti.fi> wrote:

> On Sat, Nov 1, 2014 at 1:01 AM, Daniel Herrington <dan...@iherr.com> wrote:
> Stefan,
> 
> I got the smp branch of your repo ("git clone --branch smp 
> git://git.openrisc.net/stefan/linux") and then ran the following steps:
> 1. Made sure I had added "CROSS_COMPILE=or32-elf-" and "export CROSS_COMPILE" 
> to my .bashrc.
> 2. Ran "make defconfig" to generate the or1ksim-compatible configs.
> 3. Ran "make" to get a vmlinux that should work with or1ksim.
> 4. Edited arch/openrisc/or1ksim.cfg, section uart:
>     a. Commented out channel = "tcp:10084"
>     b. Uncommented channel = "xterm:"
> 5. Ran "or32-elf-sim -f arch/openrisc/or1ksim.cfg vmlinux", but I got a 
> kernel panic (see below).
> 
> Oh, right sorry, this slipped my mind.
> The userspace (busybox) that comes with my smp branch makes use of the atomic 
> instructions, and I assume that your or1ksim is not built from git HEAD?
> Anyway, you can either update your or1ksim (and remember to use a recent 
> version of mor1kx that has support for these instructions when you try on the 
> actual HW),
> or just copy the userspace from e.g. Jonas repo (everything in 
> arch/openrisc/support/).
> 
> Stefan

_______________________________________________
Linux mailing list
Linux@lists.openrisc.net
http://lists.openrisc.net/listinfo/linux

Reply via email to