记录一下目前为止有的板子

本文记录了作者在Rill的O_board上成功启动Linux的过程,并分享了使用picocom观察bootup信息的具体步骤。文章详细展示了从配置FPGA到加载内核vmlinux直至系统初始化的全过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天(2014-3-18),收到了Rill的O_board,还有OV7620摄像头模块。

还有的板子有:XMOS Startkit,Stellaris LM4F120,SJSUone ARM M3,ATMEL8952实验板,以及DE2-115.

今天按着RIll的O_board quick start已经可以成功Bootup linux了,之前在DE2-115上面还是有问题。



贴一下在O_board上面成功port vmlinux并用picocom观察bootup信息。照着Rill的教程来就行了。

=======================================
openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ jtag ./program_fpga.jtag
Connected to libftdi driver.
IR length: 10
Chain length: 1
Device Id: 00000010000011110011000011011101 (0x00000000020F30DD)
  Filename:     ./EP4CE22F17C6_pre.bsd
Warning svf: unimplemented mode 'ABSENT' for TRST
Parsing   5700/5704 ( 99%)
Scanned device output matched expected TDO values.
openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ 



=======================================
openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ /opt/or_debug_proxy/bin/or_debug_proxy -r 55555

Connecting to OR1k via USB debug cable

init_usb_jtag error 1
Connection via USB debug cable failed (err = 8).
Please ensure the device is attached and correctly installed

openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ /opt/or_debug_proxy/bin/or_debug_proxy -r 55555

Connecting to OR1k via USB debug cable

Initialising USB JTAG interface
JTAG ID = a188a928
Stalling OR1K CPU0
Read      npc = f000018c ppc = f0000188 r1 = 00000000
Waiting for gdb connection on localhost:55555
Press CTRL+c to exit.
Remote debugging from host 127.0.0.1


=======================================
openrisc@openrisc-VirtualBox:~/soc-design/linux$ or32-elf-gdb
Building automata... done, num uncovered: 0/216.
Parsing operands data... done.
GNU gdb (OpenRISC 32-bit toolchain for or32-elf (built 20111014)) 7.2-or32-1.0rc3
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=or32-elf".
For bug reporting instructions, please see:
<http://www.opencores.org/>.
(gdb) target remote :55555
Remote debugging using :55555
0xf000018c in ?? ()
(gdb) file ./vmlinux
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from /home/openrisc/soc-design/linux/vmlinux...done.
(gdb) load
Loading section .text, size 0x1fbcbc lma 0x0
Loading section .rodata, size 0x24eb0 lma 0x1fc000
Loading section __ksymtab, size 0x3b20 lma 0x220eb0
Loading section __ksymtab_gpl, size 0x1978 lma 0x2249d0
Loading section __ksymtab_strings, size 0xb40d lma 0x226348
Loading section __param, size 0x1b0 lma 0x231758
Loading section .data, size 0x14f60 lma 0x232000
Loading section __ex_table, size 0xa10 lma 0x246f60
Loading section .head.text, size 0x4000 lma 0x248000
Loading section .init.text, size 0x1150c lma 0x24c000
Loading section .init.data, size 0x14b07c lma 0x25d520
Start address 0xc0000000, load size 3830969
Transfer rate: 92 KB/sec, 4024 bytes/write.
(gdb) spr npc 0x100
SYS.NPC (SPR0_16) set to 256 (0x100), was: 3221225472 (0xc0000000)
(gdb) c
Continuing.


=======================================
openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ picocom --b 115200 --p n --d 8 --f xon /dev/ttyUSB2
picocom v1.4

port is        : /dev/ttyUSB2
flowcontrol    : xon/xoff
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : ascii_xfr -s -v -l10
receive_cmd is : rz -vv

Terminal ready
Compiled-in FDT at 0xc025f640
Linux version 3.1.0-rc6-00002-g0da8eb1-dirty (openrisc@openrisc-VirtualBox) (gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or32-linux (built 20111017)) ) #16 Wed Mar 19 00:49:08 CET 2014
CPU: OpenRISC-12 (revision 8) @50 MHz
-- dcache: 4096 bytes total, 16 bytes/line, 1 way(s)
-- icache: 8192 bytes total, 16 bytes/line, 1 way(s)
-- dmmu:   64 entries, 1 way(s)
-- immu:   64 entries, 1 way(s)
-- additional features:
-- debug unit
-- PIC
-- timer
setup_memory: Memory: 0x0-0x2000000
Reserved - 0x01ffda90-0x00002570
Setting up paging and PTEs.
map_ram: Memory: 0x0-0x2000000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat c0246200, node_mem_map c03c0000
  Normal zone: 16 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 4080 pages, LIFO batch:0
dtlb_miss_handler c0002000
itlb_miss_handler c0002108
OpenRISC Linux -- http://openrisc.net
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
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)
Memory: 28696k/32768k available (2031k kernel code, 4072k reserved, 300k data, 1416k init, 0k highmem)
mem_init_done ...........................................
NR_IRQS:32
100.00 BogoMIPS (lpj=500000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024
devtmpfs: initialized
NET: Registered protocol family 16
Switching to clocksource openrisc_timer
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 0, 8192 bytes)
TCP established hash table entries: 1024 (order: 0, 8192 bytes)
TCP bind hash table entries: 1024 (order: -1, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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.
Unpacking initramfs
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
90000000.serial: ttyS0 at MMIO 0x90000000 (irq = 2) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
ethoc-mdio: probed
NET: Registered protocol family 17
Freeing unused kernel memory: 1416k freed
init started: BusyBox v1.19.0.git (2011-02-16 08:10:12 CET)
Configuring loopback device

Please press Enter to activate this console. 
FATAL: term closed
term_exitfunc: reset failed for dev UNKNOWN: Input/output error
openrisc@openrisc-VirtualBox:~/fpga_dev_board/ordb2a-ep4ce22$ 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值