`./target/release/rvemu-cli -k bin/linux/bbl.bin -f bin/linux/busybear.bin` doesn't boot successfully
tommythorn opened this issue · 0 comments
tommythorn commented
The example in the README doesn't seem to work and I wondered if this was known:
$ git clone -q https://github.com/d0iasm/rvemu.git && (cd rvemu;make rvemu-cli && ./target/release/rvemu-cli -k bin/linux/bbl.bin -f bin/linux/busybear.bin)
...
[ 8.008000] This architecture does not have kernel memory protection.
[ 8.068000] Run /sbin/init as init process
[ 8.476000] rcS[30]: unhandled signal 4 code 0x1 at 0x000000200001e164
[ 8.536000] CPU: 0 PID: 30 Comm: rcS Not tainted 4.19.0-rc3 #181
[ 8.592000] sepc: 000000200001e164 ra : 0000000000018c04 sp : 0000003fff816e00
[ 8.652000] gp : 0000000000135f58 tp : 0000002000212720 t0 : 000000200001f198
[ 8.712000] t1 : 000000000001790c t2 : 0000000000000000 s0 : 0000000000018bd0
[ 8.768000] s1 : 0000003fffd6ba70 a0 : 0000000000019850 a1 : 0000000000000002
[ 8.828000] a2 : 0000003fff816e08 a3 : 0000000000104c9c a4 : 0000000000104d2c
[ 8.888000] a5 : 000000200000d210 a6 : 0000003fff816e00 a7 : 004c5b4a002f475c
[ 8.948000] s2 : 0000003fffd6ba10 s3 : 0000000000137260 s4 : 0000000000000001
[ 9.004000] s5 : 0000000000000000 s6 : 0000000000000001 s7 : 0000000000113000
[ 9.064000] s8 : 0000000000136140 s9 : 0000000000000000 s10: 0000000000000000
[ 9.124000] s11: 0000000000000000 t3 : 000000200001e160 t4 : 000000200001d048
[ 9.184000] t5 : 0000000000000001 t6 : 0000000000000040
[ 9.240000] sstatus: 0000000000006020 sbadaddr: 0000000000000000 scause: 0000000000000002
[ 9.312000] init[1]: unhandled signal 4 code 0x1 at 0x000000200001e164
[ 9.372000] CPU: 0 PID: 1 Comm: init Not tainted 4.19.0-rc3 #181
[ 9.432000] sepc: 000000200001e164 ra : 000000000010329c sp : 0000003fffd6b960
[ 9.488000] gp : 0000000000135f58 tp : 0000002000212720 t0 : 00000020000cdd58
[ 9.548000] t1 : 000000000001786c t2 : 00000000001353d0 s0 : 0000000000124000
[ 9.608000] s1 : 0000000000000008 a0 : 0000000000123e20 a1 : 0000000000000006
[ 9.668000] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000
[ 9.724000] a5 : fffffffffffff000 a6 : 0000000000000007 a7 : 0000000000000104
[ 9.784000] s2 : 0000000000000000 s3 : 0000000000000000 s4 : 0000000000000000
[ 9.844000] s5 : 000000000000001e s6 : 0000000000000003 s7 : 0000000000000000
[ 9.904000] s8 : 0000000000136140 s9 : 0000000000000000 s10: 0000000000000000
[ 9.964000] s11: 0000000000000000 t3 : 000000200001e160 t4 : 0000000000000000
[ 10.020000] t5 : 0000000000000005 t6 : 0000000000000000
[ 10.080000] sstatus: 0000000000006020 sbadaddr: 0000000000000000 scause: 0000000000000002
Using v0.0.11 fails an another way:
...
[ 6.808000] irq 1: nobody cared (try booting with the "irqpoll" option)
[ 6.808000] irq 1: nobody cared (try booting with the "irqpoll" option)
[ 6.808000] CPU: 0 PID: 6 Comm: kworker/0:0H Not tainted 4.19.0-rc3 #181
[ 6.808000] CPU: 0 PID: 6 Comm: kworker/0:0H Not tainted 4.19.0-rc3 #181
[ 6.808000] Workqueue: kblockd blk_mq_run_work_fn
[ 6.808000] Workqueue: kblockd blk_mq_run_work_fn
[ 6.808000] Call Trace:
[ 6.808000] Call Trace:
[ 6.808000] [<ffffffe0000271b4>] walk_stackframe+0x0/0xa6
[ 6.808000] [<ffffffe0000271b4>] walk_stackframe+0x0/0xa6
[ 6.808000] [<ffffffe00002731a>] show_stack+0x2a/0x34
[ 6.808000] [<ffffffe00002731a>] show_stack+0x2a/0x34
[ 6.808000] [<ffffffe000332df8>] dump_stack+0x66/0x82
[ 6.808000] [<ffffffe000332df8>] dump_stack+0x66/0x82
[ 6.808000] [<ffffffe00006391a>] __report_bad_irq+0x42/0xba
[ 6.808000] [<ffffffe00006391a>] __report_bad_irq+0x42/0xba
[ 6.808000] [<ffffffe000063876>] note_interrupt+0x1bc/0x1fa
[ 6.808000] [<ffffffe000063876>] note_interrupt+0x1bc/0x1fa
[ 6.808000] [<ffffffe0000617ce>] handle_irq_event_percpu+0x4a/0x58
[ 6.808000] [<ffffffe0000617ce>] handle_irq_event_percpu+0x4a/0x58
[ 6.808000] [<ffffffe00006180a>] handle_irq_event+0x2e/0x5a
[ 6.808000] [<ffffffe00006180a>] handle_irq_event+0x2e/0x5a
[ 6.808000] [<ffffffe000063dc8>] handle_simple_irq+0x80/0xaa
[ 6.808000] [<ffffffe000063dc8>] handle_simple_irq+0x80/0xaa
[ 6.808000] [<ffffffe000060b20>] generic_handle_irq+0x24/0x32
[ 6.808000] [<ffffffe000060b20>] generic_handle_irq+0x24/0x32
[ 6.808000] [<ffffffe0001daef6>] plic_handle_irq+0xae/0x12c
[ 6.808000] [<ffffffe0001daef6>] plic_handle_irq+0xae/0x12c
[ 6.808000] [<ffffffe000346fb0>] do_IRQ+0x60/0xb4
[ 6.808000] [<ffffffe000346fb0>] do_IRQ+0x60/0xb4
[ 6.808000] [<ffffffe000026252>] ret_from_exception+0x0/0xc
[ 6.808000] [<ffffffe000026252>] ret_from_exception+0x0/0xc
[ 6.808000] handlers:
[ 6.808000] handlers:
[ 6.808000] [<(____ptrval____)>] vm_interrupt
[ 6.808000] [<(____ptrval____)>] vm_interrupt
[ 6.808000] Disabling IRQ #1
[ 6.808000] Disabling IRQ #1