Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Valued Contributor III
869 Views

Kernel Panic programing fpga from Linux

Hello Community, 

 

I receive the following error when I want to program the fpga from Linux: 

 

fpga_manager fpga0: writing fpga.rbf to Altera SOCFPGA FPGA Manager Unable to handle kernel NULL pointer dereference at virtual address 00000008  

 

The full kernel log is in attachment: kernel-log.txt 

The device tree is in attachment: device-tree.txt 

The kernel defconfig is in attachment: kernel-deconfig.txt 

Device-tree overlay file is in attachment: dtso.txt 

 

I hope u can help me. Thanks in advance. 

 

I use buildroot 2018.05 to build the device-tree, the kernel and all the rest for a Linux Embedded device. 

 

I tried the following kernel versions: rel_socfpga-4.9.78-ltsi_18.07.01_pr and rel_socfpga-4.16_18.06.02_pr from https://github.com/altera-opensource/linux-socfpga but both have the same error.
0 Kudos
1 Reply
Highlighted
Valued Contributor III
42 Views

I think I found a workaround. 

 

This error is caused by 

 

dtc -O dtb -o /tmp/dtbo -@ "$DTSO_FILE" cat /tmp/dtbo > /sys/kernel/config/device-tree/overlays/default/dtbo 

 

Piping the content of the dtbo seems not to work anymore. 

 

The solution is to pipe the name of the dtbo file to the path argument of device-tree overlay. 

 

dtc -O dtb -o /lib/firmware/dtbo -@ "$DTSO_FILE" echo dtbo > /sys/kernel/config/device-tree/overlays/default/path
0 Kudos