Closed
Description
@wedsonaf
(this Issue doesn't really belong here, but I can't open an Issue on wedson's fork)
- follow rust/kernel: remove config
#ifdef
in Error.rs file #346 (comment) - build for Raspberry Pi:
$ make bcm2835_rust_defconfig
then switch on binder indefconfig
- Boot kernel on Raspberry Pi Zero
./ping_server /dev/rust_binder &
works great!./ping_client /dev/rust_binder
oopses:
root@raspberrypi:/home/pi# ./ping_client /dev/rust_binder
[ 149.443939] ------------[ cut here ]------------
[ 149.446521] kernel BUG at rust/helpers.c:14!
[ 149.446812] Internal error: Oops - BUG: 0 [#1] ARM
[ 149.447165] Modules linked in:
[ 149.447946] CPU: 0 PID: 359 Comm: ping_client Tainted: G W 5.12.0-rc4+ #8
[ 149.448448] Hardware name: BCM2835
[ 149.448735] PC is at rust_helper_BUG+0x10/0x14
[ 149.449441] LR is at rust_begin_unwind+0x4/0x8
[ 149.449634] pc : [<c04631b0>] lr : [<c0462888>] psr: 00000013
[ 149.449919] sp : c404dcc8 ip : c0b80cec fp : c404dcc8
[ 149.450129] r10: c437c0c0 r9 : 00000000 r8 : 49034000
[ 149.450341] r7 : c30bed2c r6 : c30bed00 r5 : c404de58 r4 : c30bed08
[ 149.450542] r3 : 00000000 r2 : c404dcf8 r1 : c0b80cec r0 : c404dcd0
[ 149.450853] Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 149.451220] Control: 10c53c7d Table: 04308059 DAC: 00000051
[ 149.451421] Process ping_client (pid: 359, stack limit = 0x(ptrval))
[ 149.451793] Stack: (0xc404dcc8 to 0xc404e000)
[ 149.452278] dcc0: c404ddc0 c0462888 c0b20754 c0b22a98 c404dce0 c0b80cec
[ 149.452808] dce0: c404dcf8 00000001 00000000 00000000 c0b20754 00000000 c0b7fc00 00000021
[ 149.453659] dd00: 00000000 c30bed00 00000000 c404de58 c404dd90 c404ddb8 c437c0d0 c437c0c0
[ 149.454648] dd20: c404ddc0 c0749790 c07461ac c404de28 c404dd50 c0233b20 0000000c c404ddc4
[ 149.455561] dd40: c404ddd0 c404ddcc c404de84 c404de38 c404de30 c404de14 c404de04 c404de5c
[ 149.456404] dd60: c404de60 c404dd90 c404dda8 00000001 0000004c c437c0c0 bea503f8 00000000
[ 149.457521] dd80: bea503c8 00000030 0000004c 00000000 00000000 00000000 00021048 00000000
[ 149.458592] dda0: 00000800 00000000 00000000 00000000 bea503f8 00000000 00021050 00000044
[ 149.459703] ddc0: 00000024 c404de28 00000001 c073b3f8 c437cec0 c404de28 c401f960 00000000
[ 149.460790] dde0: 00000001 c073c1fc 00000000 c074b2e0 00000000 c30bed08 00000001 c074b2e0
[ 149.461852] de00: 00000002 c30bed00 c437cec0 00000001 00000001 c126662c c437cd80 00000001
[ 149.462407] de20: c437cd80 00000001 c437cec0 00000000 00000000 c0248394 c401f960 c401f960
[ 149.462842] de40: c401f960 c401f960 c16ee780 c401f840 c404de60 c02489a8 00000000 00000030
[ 149.463289] de60: 0000004c 00000000 00000000 00000000 00021048 00000000 00000800 00000000
[ 149.463822] de80: 00000000 00000000 bea503f8 00000000 c405bb40 00000000 f9cf40ab fffffff4
[ 149.464278] dea0: 00000000 c401f840 00000000 c404c000 c401f854 c405bb40 c21b3000 00000001
[ 149.464708] dec0: 00000071 00000001 ffffffea c0306201 00000001 c30bed00 c405bb40 c405bb40
[ 149.465170] dee0: c404dfa0 c0733f80 00000030 c30bed00 c404df24 00000030 c405bb40 c30bed00
[ 149.465742] df00: c404df10 c0306201 bea503c8 c0738104 c0306201 bea503c8 00000000 bea503c8
[ 149.466167] df20: 00000030 c405bb40 00000003 c16ee690 c404df60 c028d42c 00000006 00001000
[ 149.466691] df40: 00000001 c404df44 c404df44 00000000 f9cf40ab c405bb40 00000000 00000000
[ 149.467298] df60: 00000002 c0248668 c405bb40 b6fcc000 c404dfa0 c0248668 00000002 00000000
[ 149.467844] df80: f9cf40ab bea503f8 00000000 0001059d 00000036 c0100264 c404c000 00000036
[ 149.468396] dfa0: 00000000 c0100060 bea503f8 00000000 00000003 c0306201 bea503c8 bea503c8
[ 149.468864] dfc0: bea503f8 00000000 0001059d 00000036 00021048 00000000 b6fd0000 00000000
[ 149.469355] dfe0: b6ef6510 bea503b4 0001086b b6ef651c 60000010 00000003 00000000 00000000
[ 149.470240] [<c04631b0>] (rust_helper_BUG) from [<c0462888>] (rust_begin_unwind+0x4/0x8)
[ 149.470959] Code: e92d4800 e1a0b00d e92d4000 e8bd4000 (e7f001f2)
[ 149.471647] ---[ end trace faab23bf7569842d ]---