Fedora IoT on KUNBUS Compact: Kernel OOPs
Posted: 18 Mar 2021, 13:33
We are trying to port Fedora-IoT 34 in Kunbus Compact. I started by flashing the KUNBUS compact with Fedora IoT 34 and added the custom .dts files from KUNBUS. right now, I want to access DIO’s using Fedora with a custom kernel(5.11). Since Fedora doesn't have PiControl natively, I read the below given article:
https://revolution.kunbus.com/tutorials ... rect=en_US
I found-out that Fedora doesn't have dac082s085 driver and therefore I didn't find iio:device corresponding to the DAC. I set up a host machine with Kernel 5.11 (Since Fedora-Iot 34 has 5.11.0 kernel) and compiled the RevPi kernel (from Git) for armv7hl. After solving couple of issues regarding vermagic and stuff, I am able to load kernel module. Initially, I got the below error:
[14586.398801] ti_dac082s085: Unknown symbol __stack_chk_guard (err -2)
[14586.399281] ti_dac082s085: Unknown symbol __stack_chk_fail (err -2)
After disabling STACK PROTECTOR in the kernel. Now I am getting the following error:
[ 712.552076] Unable to handle kernel paging request at virtual address 7e7b9f64
[ 712.552681] pgd = 8f6c4b5b
[ 712.552893] [7e7b9f64] *pgd=00000000
I also updated memory@0 in dtb file from:
reg = <0x00 0x00> to reg = <0x00 0x40000000>
But I am still getting the same error.
Below is the stripped "modinfo" output of the ti_dac082s085.ko module:
depends: industrialio
intree: Y
name: ti_dac082s085
vermagic: 5.11.0-156.fc34.armv7hl SMP mod_unload ARMv7 p2v8
Kunbus (with Fedora-IoT 34) "uname -a":
Linux fedora 5.11.0-156.fc34.armv7hl #1 SMP Wed Feb 17 09:24:49 UTC 2021 armv7l armv7l armv7l GNU/Linux
I am not sure if the above errors are related to any Kernel configuration or something related to Kunbus. How can I solve this?
P.S: industrialio driver (which is the dependency of ti_dac082s085.ko module is already loaded).
[root@fedora ~]# lsmod | grep industrialio
industrialio 77824 2 mcp320x,iio_mux
https://revolution.kunbus.com/tutorials ... rect=en_US
I found-out that Fedora doesn't have dac082s085 driver and therefore I didn't find iio:device corresponding to the DAC. I set up a host machine with Kernel 5.11 (Since Fedora-Iot 34 has 5.11.0 kernel) and compiled the RevPi kernel (from Git) for armv7hl. After solving couple of issues regarding vermagic and stuff, I am able to load kernel module. Initially, I got the below error:
[14586.398801] ti_dac082s085: Unknown symbol __stack_chk_guard (err -2)
[14586.399281] ti_dac082s085: Unknown symbol __stack_chk_fail (err -2)
After disabling STACK PROTECTOR in the kernel. Now I am getting the following error:
[ 712.552076] Unable to handle kernel paging request at virtual address 7e7b9f64
[ 712.552681] pgd = 8f6c4b5b
[ 712.552893] [7e7b9f64] *pgd=00000000
I also updated memory@0 in dtb file from:
reg = <0x00 0x00> to reg = <0x00 0x40000000>
But I am still getting the same error.
Below is the stripped "modinfo" output of the ti_dac082s085.ko module:
depends: industrialio
intree: Y
name: ti_dac082s085
vermagic: 5.11.0-156.fc34.armv7hl SMP mod_unload ARMv7 p2v8
Kunbus (with Fedora-IoT 34) "uname -a":
Linux fedora 5.11.0-156.fc34.armv7hl #1 SMP Wed Feb 17 09:24:49 UTC 2021 armv7l armv7l armv7l GNU/Linux
I am not sure if the above errors are related to any Kernel configuration or something related to Kunbus. How can I solve this?
P.S: industrialio driver (which is the dependency of ti_dac082s085.ko module is already loaded).
[root@fedora ~]# lsmod | grep industrialio
industrialio 77824 2 mcp320x,iio_mux