From: seantywork Date: Thu, 19 Jun 2025 06:26:51 +0000 (+0100) Subject: test X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=18e47ff7724dc04e2cf76463a04c8dd2ded137e7;p=linuxyz.git test --- diff --git a/README.md b/README.md index e16d891..f5aa283 100644 --- a/README.md +++ b/README.md @@ -470,9 +470,37 @@ journalctl -xe journalctl -k journalctl -b dmesg +dmest -wH efibootmgr ``` +# LINUX KERNEL PANIC KDUMP + +```shell + +# should be enabled +# /boot/config + +CONFIG_RELOCATABLE=y +CONFIG_KEXEC=y +CONFIG_CRASH_DUMP=y +CONFIG_DEBUG_INFO=y + + +sudo apt update + +sudo apt install kdump-tools crash kexec-tools makedumpfile linux-image-$(uname -r)-dbg + +# yes + +# reboot + +sudo grep USE_KDUMP /etc/default/kdump-tools + +grep LOAD_KEXEC /etc/default/kexec + +``` + # GCC G++ CLANG COMPILE ```shell diff --git a/kgpio-irqsock/kgpio_irqsk.c b/kgpio-irqsock/kgpio_irqsk.c index 0def1b0..2f303f1 100644 --- a/kgpio-irqsock/kgpio_irqsk.c +++ b/kgpio-irqsock/kgpio_irqsk.c @@ -66,6 +66,17 @@ void geth_napi_interrupt(int irq, void *dev_id, struct pt_regs *regs){ //spin_unlock(&q_lock); + printk("value: %02x%02x%02x%02x...%02x%02x%02x%02x\n", + i_value[0], + i_value[1], + i_value[2], + i_value[3], + i_value[MAX_PKTLEN-4], + i_value[MAX_PKTLEN-3], + i_value[MAX_PKTLEN-2], + i_value[MAX_PKTLEN-1] + ); + napi_schedule(&priv->napi); printk(KERN_INFO "napi interrupt end\n"); @@ -439,6 +450,7 @@ irqreturn_t gpio_data_irq_handler(int irq, void *dev_id) { return IRQ_HANDLED; } else { if(gpio_ctl_i != 0 && gpio_ctl_o != 0){ + geth_interrupt(0, geth_devs, NULL); }else { printk("value: %02x%02x%02x%02x...%02x%02x%02x%02x\n",