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).
Are there other things I should've configured differently first using "make menuconfig" before running or1ksim? Should I have skipped running "make defconfig" and just run "make menuconfig" instead? (I wasn't sure about all the options.) Thanks, Daniel Output from or32-elf-sim: --------------------------------- >or32-elf-sim -f arch/openrisc/or1ksim.cfg vmlinux Seeding random generator with value 0x5feea4d1 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 713; 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-07 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: 0x0025b2e4 Section: .rodata, vaddr: 0xc025c000, paddr: 0x25c000 offset: 0x0025e000, size: 0x000269b0 Section: __ksymtab, vaddr: 0xc02829b0, paddr: 0x2829b0 offset: 0x002849b0, size: 0x00004290 Section: __ksymtab_gpl, vaddr: 0xc0286c40, paddr: 0x286c40 offset: 0x00288c40, size: 0x00002910 Section: __ksymtab_strings, vaddr: 0xc0289550, paddr: 0x289550 offset: 0x0028b550, size: 0x0000ea7e Section: __param, vaddr: 0xc0297fd0, paddr: 0x297fd0 offset: 0x00299fd0, 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: 0x00184e5c 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 (daniel@daniel-VirtualBox) (gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or32-elf (built 20140930)) ) #1 Fri Oct 31 16:34:34 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: 27992K/32768K available (2412K kernel code, 116K rwdata, 248K rodata, 1656K init, 82K bss, 4776K 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: 1656K (c02b8000 - c0456000) Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 -------Original Message------- From: Stefan Kristiansson <stefan.kristians...@saunalahti.fi> To: Daniel Herrington <dan...@iherr.com> Cc: 김찬 <c...@etri.re.kr>, linux@lists.openrisc.net <linux@lists.openrisc.net> Subject: Re: [ORLinux] enable framebuffer console in linux for atlys Sent: Oct 31 '14 8:28am On Fri, Oct 31, 2014 at 4:05 PM, Daniel Herrington <[LINK: compose.php?to=dan...@iherr.com] dan...@iherr.com> wrote: > Again, please let me know what repo I should be starting from. I even tried > downloading the linux-3.17.2 tar ball directly from kernel.org and using > that, but it just seemed to open up even more questions. > You can try the smp branch from my repo, I know that the framebuffer works with that at least [LINK: http://git.openrisc.net/cgit.cgi/stefan/linux/tree/arch?h=smp] http://git.openrisc.net/cgit.cgi/stefan/linux/tree/arch?h=smp It's currently based on linux-3.17. > > fb0: ocfb@97000000 { > compatible = "opencores,ocfb-rtlsvn64"; > reg = ; > }; > This is not what I pasted earlier, it should be compatible = "opencores,ocfb"; to find out the correct compatible strings, you can search the drivers/ directory for them .� Stefan
_______________________________________________ Linux mailing list Linux@lists.openrisc.net http://lists.openrisc.net/listinfo/linux