Steward
分享是一種喜悅、更是一種幸福
微處理器 - RISC-V - https://github.com/cnlohr/mini-rv32ima
參考資訊:
https://github.com/cnlohr/mini-rv32ima
$ cd
$ git clone https://github.com/cnlohr/mini-rv32ima
$ cd mini-rv32ima
$ make testdlimage
[ 0.000000] Linux version 6.1.14 (cnlohr@cnlohr-1520) (riscv32-buildroot-linux-uclibc-gcc.br_real (Buildroot 2023.02-145-gf6c5488ad2) 12.2.0, GNU ld (GNU Binutils) 2.38) #4 Sat Mar 25 09:20:08 EDT 2023
[ 0.000000] Machine model: riscv-minimal-nommu,qemu
[ 0.000000] earlycon: uart8250 at MMIO 0x10000000 (options '1000000')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x0000000083ffefff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x0000000083ffefff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000083ffefff]
[ 0.000000] riscv: base ISA extensions aim
[ 0.000000] riscv: ELF capabilities aim
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16255
[ 0.000000] Kernel command line: earlycon=uart8250,mmio,0x10000000,1000000 console=ttyS0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] Sorting __ex_table...
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 61384K/65532K available (1487K kernel code, 281K rwdata, 157K rodata, 1464K init, 145K bss, 4148K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 32 local interrupts mapped
[ 0.000000] clint: clint@11000000: timer running at 1000000 Hz
[ 0.000000] clocksource: clint_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000000] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.014862] Console: colour dummy device 80x25
[ 0.023559] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.034240] pid_max: default: 4096 minimum: 301
[ 0.045349] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.056488] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.103210] devtmpfs: initialized
[ 0.135833] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.149292] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[ 0.251770] clocksource: Switched to clocksource clint_clocksource
[ 0.490997] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 1.805267] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 1.831390] printk: console [ttyS0] disabled
[ 1.839325] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 0, base_baud = 1048576) is a XR16850
[ 1.849182] printk: console [ttyS0] enabled
[ 1.849182] printk: console [ttyS0] enabled
[ 1.859039] printk: bootconsole [uart8250] disabled
[ 1.859039] printk: bootconsole [uart8250] disabled
[ 1.933166] Freeing unused kernel image (initmem) memory: 1464K
[ 1.940918] This architecture does not have kernel memory protection.
[ 1.945404] Run /init as init process
Welcome to Buildroot
buildroot login: root
Jan 1 00:00:05 login[28]: root login on 'console'
~ #