Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use gpio in inmate? #1

Open
alongL opened this issue Mar 31, 2021 · 1 comment
Open

how to use gpio in inmate? #1

alongL opened this issue Mar 31, 2021 · 1 comment

Comments

@alongL
Copy link

alongL commented Mar 31, 2021

How to put gpio io port into none-root cell?
to controll device by gpio.

@jianglin-code
Copy link

I'm running jailhouse and I'm having the following problem.

[ 372.422714] Bad mode in Synchronous Abort handler detected on CPU2, code 0x5a000000 -- HVC (AArch64)
[ 372.422715] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G OE 5.10.104 #26
[ 372.422719] Hardware name: /, BIOS 1.0-d7fb19b 08/10/2022
[ 372.422720] pstate: 60400089 (nZCv daIf +PAN -UAO -TCO BTYPE=--)
[ 372.422721] pc : 0xffff80003000404c
[ 372.422721] lr : enter_hypervisor+0xac/0xc8 [jailhouse]
[ 372.422722] sp : ffff800010013e70
[ 372.422723] x29: ffff800010013e70 x28: ffff1e2c80174600
[ 372.422724] x27: 0000000000000000 x26: ffff800010014000
[ 372.422726] x25: ffff800010010000 x24: 0000000000000001
[ 372.422727] x23: 0000000000000000 x22: ffff800030000000
[ 372.422729] x21: 0000000000000002 x20: ffff800030004000
[ 372.422730] x19: ffffdc9dc1f39000 x18: 0000000000000001
[ 372.422732] x17: ffffdc9dc1f32764 x16: 0000000000000002
[ 372.422733] x15: 0000ffffc0000000 x14: 0000000000000000
[ 372.422734] x13: 0000ffffc0200000 x12: 000000017c000000
[ 372.422736] x11: ffff0001bbe00000 x10: ffff1e2ce7cffb80
[ 372.422737] x9 : ffff800010013e70 x8 : 6e6967656220726f
[ 372.422739] x7 : 7369767265707968 x6 : 0000000000000003
[ 372.422740] x5 : 0000000000000000 x4 : 0000000000000000
[ 372.422742] x3 : 0000000000000100 x2 : 0000000000008000
[ 372.422743] x1 : 0000000000000000 x0 : 000000017c004800
[ 372.422745] Kernel panic - not syncing: bad mode
[ 372.422745] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G OE 5.10.104 #26
[ 372.422746] Hardware name: /, BIOS 1.0-d7fb19b 08/10/2022
[ 372.422747] Call trace:
[ 372.422747] dump_backtrace+0x0/0x1c8
[ 372.422748] show_stack+0x30/0x40
[ 372.422749] dump_stack+0xd8/0x138
[ 372.422750] panic+0x17c/0x384
[ 372.422750] bad_el0_sync+0x0/0x60
[ 372.422751] el1_inv+0x38/0x58
[ 372.422752] el1_sync_handler+0x50/0xb0
[ 372.422752] el1_sync+0x8c/0x140
[ 372.422753] 0xffff80003000404c
[ 372.422754] flush_smp_call_function_queue+0xd4/0x258
[ 372.422755] generic_smp_call_function_single_interrupt+0x1c/0x28
[ 372.422755] ipi_handler+0x1dc/0x388
[ 372.422756] handle_percpu_devid_fasteoi_ipi+0x8c/0x1d8
[ 372.422757] generic_handle_irq+0x40/0x58
[ 372.422758] __handle_domain_irq+0x70/0xc8
[ 372.422759] gic_handle_irq+0x68/0x134
[ 372.422760] el1_irq+0xd0/0x180
[ 372.422761] cpuidle_enter_state+0xbc/0x410
[ 372.422763] cpuidle_enter+0x40/0x58
[ 372.422763] call_cpuidle+0x44/0x78
[ 372.422764] do_idle+0x208/0x270
[ 372.422765] cpu_startup_entry+0x2c/0x70
[ 372.422768] secondary_start_kernel+0x14c/0x170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants