iwlwifi drivers not loading for ax200 in MX linux - linux-kernel

Kernel is 5.8, wifi driver is the intel iwlwifi version for ax200 requiring a kernel of at least 5.1 and the wifi card appears in lspci -k but nothing I've tried is working as I can't find any documentation from intel surrounding this or any other thread someone has asked, so any help or suggestions would be appreciated.
sudo dmesg | grep wifi outputs:
[ 8.389266] iwlwifi 0000:01:00.0: firmware: failed to load iwlwifi-cc-a0-56.ucode (-2)
[ 8.389279] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[ 8.588769] iwlwifi 0000:01:00.0: firmware: direct-loading firmware iwlwifi-cc-a0-55.ucode
[ 8.588779] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver
[ 8.588789] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
[ 8.588792] iwlwifi 0000:01:00.0: Found debug destination: EXTERNAL_DRAM
[ 8.588793] iwlwifi 0000:01:00.0: Found debug configuration: 0
[ 8.589074] iwlwifi 0000:01:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm
[ 8.589099] iwlwifi 0000:01:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[ 9.044347] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[ 9.220725] iwlwifi 0000:01:00.0: base HW address: a8:7e:ea:ed:72:a9
[ 28.267523] iwlwifi 0000:01:00.0: SecBoot CPU1 Status: 0x5b22, CPU2 Status: 0x3
[ 28.267561] iwlwifi 0000:01:00.0: UMAC PC: 0x80480218
[ 28.267585] iwlwifi 0000:01:00.0: LMAC PC: 0x104
[ 28.267603] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 28.267680] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 28.267736] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 6
[ 28.267794] iwlwifi 0000:01:00.0: Loaded firmware version: 55.d9698065.0 cc-a0-55.ucode
[ 28.267856] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 28.267903] iwlwifi 0000:01:00.0: 0x002022F0 | trm_hw_status0
[ 28.267922] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 28.267942] iwlwifi 0000:01:00.0: 0x004FA34A | branchlink2
[ 28.267961] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink1
[ 28.267979] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink2
[ 28.267999] iwlwifi 0000:01:00.0: 0x004F3F8A | data1
[ 28.268016] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 28.268033] iwlwifi 0000:01:00.0: 0x00000000 | data3
[ 28.268049] iwlwifi 0000:01:00.0: 0x00000000 | beacon time
[ 28.268068] iwlwifi 0000:01:00.0: 0x00007F4D | tsf low
[ 28.268085] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi
[ 28.268102] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 28.268120] iwlwifi 0000:01:00.0: 0x0000DB62 | time gp2
[ 28.268138] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 28.268159] iwlwifi 0000:01:00.0: 0x00000037 | uCode version major
[ 28.268179] iwlwifi 0000:01:00.0: 0xD9698065 | uCode version minor
[ 28.268214] iwlwifi 0000:01:00.0: 0x00000340 | hw version
[ 28.268250] iwlwifi 0000:01:00.0: 0x18C89000 | board version
[ 28.268288] iwlwifi 0000:01:00.0: 0x8001FF03 | hcmd
[ 28.268322] iwlwifi 0000:01:00.0: 0x00020000 | isr0
[ 28.268355] iwlwifi 0000:01:00.0: 0x00000000 | isr1
[ 28.268388] iwlwifi 0000:01:00.0: 0x08F00002 | isr2
[ 28.268421] iwlwifi 0000:01:00.0: 0x00C0000C | isr3
[ 28.268454] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 28.268506] iwlwifi 0000:01:00.0: 0x00000000 | last cmd Id
[ 28.268548] iwlwifi 0000:01:00.0: 0x004F3F8A | wait_event
[ 28.268585] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control
[ 28.268622] iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
[ 28.268659] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 28.268689] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match
[ 28.268708] iwlwifi 0000:01:00.0: 0x00000009 | lmpm_pmg_sel
[ 28.268727] iwlwifi 0000:01:00.0: 0x00000000 | timestamp
[ 28.268745] iwlwifi 0000:01:00.0: 0x0000F81C | flow_handler
[ 28.268806] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 28.268843] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 7
[ 28.268882] iwlwifi 0000:01:00.0: 0x201000A3 | ADVANCED_SYSASSERT
[ 28.268922] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 28.268961] iwlwifi 0000:01:00.0: 0x80465826 | umac branchlink2
[ 28.269000] iwlwifi 0000:01:00.0: 0xC0086AC0 | umac interruptlink1
[ 28.269041] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2
[ 28.269082] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data1
[ 28.269834] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data2
[ 28.270616] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 28.271341] iwlwifi 0000:01:00.0: 0x00000037 | umac major
[ 28.272018] iwlwifi 0000:01:00.0: 0xD9698065 | umac minor
[ 28.272767] iwlwifi 0000:01:00.0: 0x0000DB54 | frame pointer
[ 28.273448] iwlwifi 0000:01:00.0: 0xC0886BF8 | stack pointer
[ 28.274127] iwlwifi 0000:01:00.0: 0x00000000 | last host cmd
[ 28.274851] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 28.275533] iwlwifi 0000:01:00.0: Fseq Registers:
[ 28.276229] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 28.276911] iwlwifi 0000:01:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 28.277605] iwlwifi 0000:01:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 28.278302] iwlwifi 0000:01:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 28.279032] iwlwifi 0000:01:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 28.279752] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 28.280471] iwlwifi 0000:01:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 28.281195] iwlwifi 0000:01:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 28.281932] iwlwifi 0000:01:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 28.282671] iwlwifi 0000:01:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 28.283399] iwlwifi 0000:01:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 28.284153] iwlwifi 0000:01:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 28.285008] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 4 fired.
[ 28.285019] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 28.285809] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 28.620871] iwlwifi 0000:01:00.0: WRT: Failed to dump region: id=4, type=5
[ 28.620879] iwlwifi 0000:01:00.0: WRT: Failed to dump region: id=6, type=5
[ 29.995542] iwlwifi 0000:01:00.0: SecBoot CPU1 Status: 0x5b00, CPU2 Status: 0x3
[ 29.995555] iwlwifi 0000:01:00.0: UMAC PC: 0x80480218
[ 29.995564] iwlwifi 0000:01:00.0: LMAC PC: 0x104
[ 29.995568] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 29.995635] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 29.995638] iwlwifi 0000:01:00.0: Status: 0x00000010, count: 6
[ 29.995640] iwlwifi 0000:01:00.0: Loaded firmware version: 55.d9698065.0 cc-a0-55.ucode
[ 29.995642] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 29.995644] iwlwifi 0000:01:00.0: 0x002022F0 | trm_hw_status0
[ 29.995646] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 29.995648] iwlwifi 0000:01:00.0: 0x004FA34A | branchlink2
[ 29.995650] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink1
[ 29.995652] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink2
[ 29.995654] iwlwifi 0000:01:00.0: 0x004F3F8A | data1
[ 29.995656] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 29.995658] iwlwifi 0000:01:00.0: 0x00000000 | data3
[ 29.995659] iwlwifi 0000:01:00.0: 0x00000000 | beacon time
[ 29.995661] iwlwifi 0000:01:00.0: 0x00007EB4 | tsf low
[ 29.995663] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi
[ 29.995665] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 29.995667] iwlwifi 0000:01:00.0: 0x0000DAA8 | time gp2
[ 29.995669] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 29.995671] iwlwifi 0000:01:00.0: 0x00000037 | uCode version major
[ 29.995673] iwlwifi 0000:01:00.0: 0xD9698065 | uCode version minor
[ 29.995674] iwlwifi 0000:01:00.0: 0x00000340 | hw version
[ 29.995676] iwlwifi 0000:01:00.0: 0x18C89000 | board version
[ 29.995678] iwlwifi 0000:01:00.0: 0x8001FF03 | hcmd
[ 29.995680] iwlwifi 0000:01:00.0: 0x00020000 | isr0
[ 29.995682] iwlwifi 0000:01:00.0: 0x00000000 | isr1
[ 29.995684] iwlwifi 0000:01:00.0: 0x08F00002 | isr2
[ 29.995686] iwlwifi 0000:01:00.0: 0x00C0000C | isr3
[ 29.995687] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 29.995689] iwlwifi 0000:01:00.0: 0x00000000 | last cmd Id
[ 29.995691] iwlwifi 0000:01:00.0: 0x004F3F8A | wait_event
[ 29.995693] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control
[ 29.995695] iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
[ 29.995697] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 29.995698] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match
[ 29.995700] iwlwifi 0000:01:00.0: 0x00000009 | lmpm_pmg_sel
[ 29.995702] iwlwifi 0000:01:00.0: 0x00000000 | timestamp
[ 29.995704] iwlwifi 0000:01:00.0: 0x0000F81C | flow_handler
[ 29.995728] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 29.995730] iwlwifi 0000:01:00.0: Status: 0x00000010, count: 7
[ 29.995732] iwlwifi 0000:01:00.0: 0x201000A3 | ADVANCED_SYSASSERT
[ 29.995734] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 29.995736] iwlwifi 0000:01:00.0: 0x80465826 | umac branchlink2
[ 29.995738] iwlwifi 0000:01:00.0: 0xC0086AC0 | umac interruptlink1
[ 29.995740] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2
[ 29.995742] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data1
[ 29.995744] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data2
[ 29.995746] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 29.995747] iwlwifi 0000:01:00.0: 0x00000037 | umac major
[ 29.995749] iwlwifi 0000:01:00.0: 0xD9698065 | umac minor
[ 29.995751] iwlwifi 0000:01:00.0: 0x0000DA9A | frame pointer
[ 29.995753] iwlwifi 0000:01:00.0: 0xC0886BF8 | stack pointer
[ 29.995755] iwlwifi 0000:01:00.0: 0x00000000 | last host cmd
[ 29.995757] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 29.995763] iwlwifi 0000:01:00.0: Fseq Registers:
[ 29.995766] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 29.995770] iwlwifi 0000:01:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 29.995774] iwlwifi 0000:01:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 29.995778] iwlwifi 0000:01:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 29.995782] iwlwifi 0000:01:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 29.995785] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 29.995789] iwlwifi 0000:01:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 29.995793] iwlwifi 0000:01:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 29.995796] iwlwifi 0000:01:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 29.995802] iwlwifi 0000:01:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 29.995808] iwlwifi 0000:01:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 29.995814] iwlwifi 0000:01:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 29.995819] iwlwifi 0000:01:00.0: Firmware error during reconfiguration - reprobe!
[ 29.995822] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 29.995824] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 30.407259] iwlwifi 0000:01:00.0: firmware: failed to load iwlwifi-cc-a0-56.ucode (-2)
[ 30.407263] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[ 30.407771] iwlwifi 0000:01:00.0: firmware: direct-loading firmware iwlwifi-cc-a0-55.ucode
[ 30.407780] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver
[ 30.407790] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
[ 30.407792] iwlwifi 0000:01:00.0: Found debug destination: EXTERNAL_DRAM
[ 30.407793] iwlwifi 0000:01:00.0: Found debug configuration: 0
[ 30.408135] iwlwifi 0000:01:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm
[ 30.408155] iwlwifi 0000:01:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[ 30.408172] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[ 30.585969] iwlwifi 0000:01:00.0: base HW address: a8:7e:ea:ed:72:a9
[ 32.107530] iwlwifi 0000:01:00.0: SecBoot CPU1 Status: 0x5b0c, CPU2 Status: 0x3
[ 32.107544] iwlwifi 0000:01:00.0: UMAC PC: 0x80480218
[ 32.107555] iwlwifi 0000:01:00.0: LMAC PC: 0x104
[ 32.107563] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 32.107643] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 32.107646] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 6
[ 32.107648] iwlwifi 0000:01:00.0: Loaded firmware version: 55.d9698065.0 cc-a0-55.ucode
[ 32.107661] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 32.107663] iwlwifi 0000:01:00.0: 0x002022F0 | trm_hw_status0
[ 32.107665] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 32.107667] iwlwifi 0000:01:00.0: 0x004FA34A | branchlink2
[ 32.107669] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink1
[ 32.107671] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink2
[ 32.107673] iwlwifi 0000:01:00.0: 0x004F3F8A | data1
[ 32.107675] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 32.107677] iwlwifi 0000:01:00.0: 0x00000000 | data3
[ 32.107678] iwlwifi 0000:01:00.0: 0x00000000 | beacon time
[ 32.107680] iwlwifi 0000:01:00.0: 0x0000B52A | tsf low
[ 32.107682] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi
[ 32.107684] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 32.107686] iwlwifi 0000:01:00.0: 0x0001112D | time gp2
[ 32.107688] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 32.107690] iwlwifi 0000:01:00.0: 0x00000037 | uCode version major
[ 32.107692] iwlwifi 0000:01:00.0: 0xD9698065 | uCode version minor
[ 32.107694] iwlwifi 0000:01:00.0: 0x00000340 | hw version
[ 32.107696] iwlwifi 0000:01:00.0: 0x18C89000 | board version
[ 32.107698] iwlwifi 0000:01:00.0: 0x8001FF03 | hcmd
[ 32.107699] iwlwifi 0000:01:00.0: 0x00020000 | isr0
[ 32.107701] iwlwifi 0000:01:00.0: 0x00000000 | isr1
[ 32.107703] iwlwifi 0000:01:00.0: 0x08F00002 | isr2
[ 32.107705] iwlwifi 0000:01:00.0: 0x00C0000C | isr3
[ 32.107707] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 32.107709] iwlwifi 0000:01:00.0: 0x00000000 | last cmd Id
[ 32.107710] iwlwifi 0000:01:00.0: 0x004F3F8A | wait_event
[ 32.107712] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control
[ 32.107714] iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
[ 32.107716] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 32.107718] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match
[ 32.107720] iwlwifi 0000:01:00.0: 0x00000009 | lmpm_pmg_sel
[ 32.107722] iwlwifi 0000:01:00.0: 0x00000000 | timestamp
[ 32.107724] iwlwifi 0000:01:00.0: 0x0000F81C | flow_handler
[ 32.107748] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 32.107750] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 7
[ 32.107752] iwlwifi 0000:01:00.0: 0x20100222 | ADVANCED_SYSASSERT
[ 32.107754] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 32.107756] iwlwifi 0000:01:00.0: 0x80465826 | umac branchlink2
[ 32.107758] iwlwifi 0000:01:00.0: 0xC0086AC0 | umac interruptlink1
[ 32.107760] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2
[ 32.107762] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data1
[ 32.107764] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data2
[ 32.107766] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 32.107767] iwlwifi 0000:01:00.0: 0x00000037 | umac major
[ 32.107769] iwlwifi 0000:01:00.0: 0xD9698065 | umac minor
[ 32.107771] iwlwifi 0000:01:00.0: 0x0001111F | frame pointer
[ 32.107773] iwlwifi 0000:01:00.0: 0xC0886ADC | stack pointer
[ 32.107775] iwlwifi 0000:01:00.0: 0x00000000 | last host cmd
[ 32.107777] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 32.107783] iwlwifi 0000:01:00.0: Fseq Registers:
[ 32.107787] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 32.107790] iwlwifi 0000:01:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 32.107795] iwlwifi 0000:01:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 32.107801] iwlwifi 0000:01:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 32.107806] iwlwifi 0000:01:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 32.107811] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 32.107826] iwlwifi 0000:01:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 32.107831] iwlwifi 0000:01:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 32.107837] iwlwifi 0000:01:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 32.107844] iwlwifi 0000:01:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 32.107851] iwlwifi 0000:01:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 32.107856] iwlwifi 0000:01:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 32.107956] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 4 fired.
[ 32.107963] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 32.107966] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 32.442932] iwlwifi 0000:01:00.0: WRT: Failed to dump region: id=4, type=5
[ 32.442938] iwlwifi 0000:01:00.0: WRT: Failed to dump region: id=6, type=5
[ 33.835557] iwlwifi 0000:01:00.0: SecBoot CPU1 Status: 0x5a7f, CPU2 Status: 0x3
[ 33.835574] iwlwifi 0000:01:00.0: UMAC PC: 0x80480218
[ 33.835584] iwlwifi 0000:01:00.0: LMAC PC: 0x104
[ 33.835593] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 33.835669] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 33.835672] iwlwifi 0000:01:00.0: Status: 0x00000010, count: 6
[ 33.835676] iwlwifi 0000:01:00.0: Loaded firmware version: 55.d9698065.0 cc-a0-55.ucode
[ 33.835680] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 33.835684] iwlwifi 0000:01:00.0: 0x002022F0 | trm_hw_status0
[ 33.835687] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 33.835690] iwlwifi 0000:01:00.0: 0x004FA34A | branchlink2
[ 33.835693] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink1
[ 33.835696] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink2
[ 33.835699] iwlwifi 0000:01:00.0: 0x004F3F8A | data1
[ 33.835702] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 33.835705] iwlwifi 0000:01:00.0: 0x00000000 | data3
[ 33.835707] iwlwifi 0000:01:00.0: 0x00000000 | beacon time
[ 33.835709] iwlwifi 0000:01:00.0: 0x0000B090 | tsf low
[ 33.835711] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi
[ 33.835713] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 33.835715] iwlwifi 0000:01:00.0: 0x00010C02 | time gp2
[ 33.835717] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 33.835719] iwlwifi 0000:01:00.0: 0x00000037 | uCode version major
[ 33.835721] iwlwifi 0000:01:00.0: 0xD9698065 | uCode version minor
[ 33.835723] iwlwifi 0000:01:00.0: 0x00000340 | hw version
[ 33.835724] iwlwifi 0000:01:00.0: 0x18C89000 | board version
[ 33.835726] iwlwifi 0000:01:00.0: 0x8001FF03 | hcmd
[ 33.835728] iwlwifi 0000:01:00.0: 0x00020000 | isr0
[ 33.835730] iwlwifi 0000:01:00.0: 0x00000000 | isr1
[ 33.835732] iwlwifi 0000:01:00.0: 0x08F00002 | isr2
[ 33.835733] iwlwifi 0000:01:00.0: 0x00C0000C | isr3
[ 33.835735] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 33.835737] iwlwifi 0000:01:00.0: 0x00000000 | last cmd Id
[ 33.835739] iwlwifi 0000:01:00.0: 0x004F3F8A | wait_event
[ 33.835741] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control
[ 33.835743] iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
[ 33.835745] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 33.835747] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match
[ 33.835748] iwlwifi 0000:01:00.0: 0x00000009 | lmpm_pmg_sel
[ 33.835750] iwlwifi 0000:01:00.0: 0x00000000 | timestamp
[ 33.835752] iwlwifi 0000:01:00.0: 0x0000F81C | flow_handler
[ 33.835777] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 33.835780] iwlwifi 0000:01:00.0: Status: 0x00000010, count: 7
[ 33.835782] iwlwifi 0000:01:00.0: 0x20100222 | ADVANCED_SYSASSERT
[ 33.835784] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 33.835786] iwlwifi 0000:01:00.0: 0x80465826 | umac branchlink2
[ 33.835788] iwlwifi 0000:01:00.0: 0xC0086AC0 | umac interruptlink1
[ 33.835791] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2
[ 33.835792] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data1
[ 33.835794] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data2
[ 33.835796] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 33.835798] iwlwifi 0000:01:00.0: 0x00000037 | umac major
[ 33.835800] iwlwifi 0000:01:00.0: 0xD9698065 | umac minor
[ 33.835802] iwlwifi 0000:01:00.0: 0x00010BF4 | frame pointer
[ 33.835804] iwlwifi 0000:01:00.0: 0xC0886ADC | stack pointer
[ 33.835806] iwlwifi 0000:01:00.0: 0x00000000 | last host cmd
[ 33.835807] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 33.835814] iwlwifi 0000:01:00.0: Fseq Registers:
[ 33.835818] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 33.835822] iwlwifi 0000:01:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 33.835826] iwlwifi 0000:01:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 33.835830] iwlwifi 0000:01:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 33.835834] iwlwifi 0000:01:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 33.835838] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 33.835842] iwlwifi 0000:01:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 33.835847] iwlwifi 0000:01:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 33.835851] iwlwifi 0000:01:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 33.835857] iwlwifi 0000:01:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 33.835865] iwlwifi 0000:01:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 33.835871] iwlwifi 0000:01:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 33.835877] iwlwifi 0000:01:00.0: Firmware error during reconfiguration - reprobe!
[ 33.835882] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 33.835885] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 34.258401] iwlwifi 0000:01:00.0: firmware: failed to load iwlwifi-cc-a0-56.ucode (-2)
[ 34.258404] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[ 34.258835] iwlwifi 0000:01:00.0: firmware: direct-loading firmware iwlwifi-cc-a0-55.ucode
[ 34.258845] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver
[ 34.258854] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
[ 34.258857] iwlwifi 0000:01:00.0: Found debug destination: EXTERNAL_DRAM
[ 34.258858] iwlwifi 0000:01:00.0: Found debug configuration: 0
[ 34.259194] iwlwifi 0000:01:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm
[ 34.259203] iwlwifi 0000:01:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[ 34.259222] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[ 35.307544] iwlwifi 0000:01:00.0: SecBoot CPU1 Status: 0x5b48, CPU2 Status: 0x3
[ 35.307556] iwlwifi 0000:01:00.0: UMAC PC: 0x80480218
[ 35.307565] iwlwifi 0000:01:00.0: LMAC PC: 0x104
[ 35.307570] iwlwifi 0000:01:00.0: WRT: Collecting data: ini trigger 13 fired.
[ 35.307637] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 35.307639] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 6
[ 35.307641] iwlwifi 0000:01:00.0: Loaded firmware version: 55.d9698065.0 cc-a0-55.ucode
[ 35.307644] iwlwifi 0000:01:00.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[ 35.307646] iwlwifi 0000:01:00.0: 0x002022F0 | trm_hw_status0
[ 35.307648] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 35.307650] iwlwifi 0000:01:00.0: 0x004FA34A | branchlink2
[ 35.307652] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink1
[ 35.307654] iwlwifi 0000:01:00.0: 0x004E4BBC | interruptlink2
[ 35.307656] iwlwifi 0000:01:00.0: 0x004F3F8A | data1
[ 35.307657] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 35.307659] iwlwifi 0000:01:00.0: 0x00000000 | data3
[ 35.307661] iwlwifi 0000:01:00.0: 0x00000000 | beacon time
[ 35.307663] iwlwifi 0000:01:00.0: 0x0000B0C0 | tsf low
[ 35.307665] iwlwifi 0000:01:00.0: 0x00000000 | tsf hi
[ 35.307667] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 35.307669] iwlwifi 0000:01:00.0: 0x00010CFB | time gp2
[ 35.307670] iwlwifi 0000:01:00.0: 0x00000001 | uCode revision type
[ 35.307672] iwlwifi 0000:01:00.0: 0x00000037 | uCode version major
[ 35.307674] iwlwifi 0000:01:00.0: 0xD9698065 | uCode version minor
[ 35.307676] iwlwifi 0000:01:00.0: 0x00000340 | hw version
[ 35.307678] iwlwifi 0000:01:00.0: 0x18C89000 | board version
[ 35.307680] iwlwifi 0000:01:00.0: 0x8001FF03 | hcmd
[ 35.307682] iwlwifi 0000:01:00.0: 0x00020000 | isr0
[ 35.307684] iwlwifi 0000:01:00.0: 0x00000000 | isr1
[ 35.307686] iwlwifi 0000:01:00.0: 0x08F00002 | isr2
[ 35.307687] iwlwifi 0000:01:00.0: 0x00C0000C | isr3
[ 35.307689] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 35.307691] iwlwifi 0000:01:00.0: 0x00000000 | last cmd Id
[ 35.307693] iwlwifi 0000:01:00.0: 0x004F3F8A | wait_event
[ 35.307695] iwlwifi 0000:01:00.0: 0x00000000 | l2p_control
[ 35.307697] iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
[ 35.307698] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 35.307700] iwlwifi 0000:01:00.0: 0x00000000 | l2p_addr_match
[ 35.307702] iwlwifi 0000:01:00.0: 0x00000009 | lmpm_pmg_sel
[ 35.307704] iwlwifi 0000:01:00.0: 0x00000000 | timestamp
[ 35.307706] iwlwifi 0000:01:00.0: 0x0000F81C | flow_handler
[ 35.307730] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 35.307732] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 7
[ 35.307734] iwlwifi 0000:01:00.0: 0x20100222 | ADVANCED_SYSASSERT
[ 35.307736] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 35.307738] iwlwifi 0000:01:00.0: 0x80465826 | umac branchlink2
[ 35.307740] iwlwifi 0000:01:00.0: 0xC0086AC0 | umac interruptlink1
[ 35.307742] iwlwifi 0000:01:00.0: 0x00000000 | umac interruptlink2
[ 35.307744] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data1
[ 35.307745] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data2
[ 35.307747] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 35.307749] iwlwifi 0000:01:00.0: 0x00000037 | umac major
[ 35.307751] iwlwifi 0000:01:00.0: 0xD9698065 | umac minor
[ 35.307753] iwlwifi 0000:01:00.0: 0x00010CED | frame pointer
[ 35.307755] iwlwifi 0000:01:00.0: 0xC0886ADC | stack pointer
[ 35.307757] iwlwifi 0000:01:00.0: 0x00000000 | last host cmd
[ 35.307758] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 35.307764] iwlwifi 0000:01:00.0: Fseq Registers:
[ 35.307768] iwlwifi 0000:01:00.0: 0x60000000 | FSEQ_ERROR_CODE
[ 35.307772] iwlwifi 0000:01:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[ 35.307776] iwlwifi 0000:01:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[ 35.307780] iwlwifi 0000:01:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[ 35.307784] iwlwifi 0000:01:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[ 35.307787] iwlwifi 0000:01:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[ 35.307791] iwlwifi 0000:01:00.0: 0x00100530 | FSEQ_CNVI_ID
[ 35.307795] iwlwifi 0000:01:00.0: 0x00000532 | FSEQ_CNVR_ID
[ 35.307799] iwlwifi 0000:01:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[ 35.307804] iwlwifi 0000:01:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[ 35.307810] iwlwifi 0000:01:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[ 35.307816] iwlwifi 0000:01:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[ 35.307821] iwlwifi 0000:01:00.0: Failed to start RT ucode: -110
[ 35.663630] iwlwifi 0000:01:00.0: Failed to run INIT ucode: -110

The kernel you are using is 5.8 and the MAX microcode version supported in that kernel is iwlwifi-cc-a0-48.ucode
So you either you kernel to 5.11 or greater to support iwlwifi-cc-a0-56.ucode
or use iwlwifi-cc-a0-48.ucode or lower.
You can download find firmware from this link.
https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/refs/
just download from the above link and extract it and copy the iwlwifi-cc-a0-48.ucode to /lib/firmware and reboot.

Related

UBI failed to attach mtd3

I'm trying to create an operating system that works with UBIFS on SPI Nor flash. I used buildroot. Buildroot created rootfs.ubi and rootfs.ubifs therefore I didn't create any ubifs.img(I thought don't need it). I didn't take any error when compile buildroot.
Buildroot output files:
rootfs.ubi
rootfs.ubifs
sun5i-a13.dtb
u-boot.bin
u-boot-sunxi-with-spl.bin
uImage
Write output file to SPI Nor Flash:
#!/bin/bash
DIR="/home/ubuntu/buildroot-spi-nor/output/images"
sudo sunxi-fel -v -p \
spiflash-write 0x0 ${DIR}/u-boot-sunxi-with-spl.bin \
spiflash-write 0xE0000 ${DIR}/sun5i-a13.dtb \
spiflash-write 0x100000 ${DIR}/uImage \
spiflash-write 0x600000 ${DIR}/rootfs.ubi \
uboot ${DIR}/u-boot-sunxi-with-spl.bin
U-boot configs:
BOOTARGS = ubi.mtd=3 rootfstype=ubifs rw rootwait rootfs=/dev/mtdblock3 loglevel=9
BOOTCOMMAND = run distro_bootcmd;sspi;sf probe;sf read 0x43000000 0xE0000 0x4000;sf read 0x42000000 0x100000 0x2F0000;bootm 0x42000000 - 0x43000000;
MTDIDS_DEFAULT = nor0=spi0.0
MTDPARTS_DEFAULT = mtdparts=spi0.0:0x000E0000(boot),0x00020000(dtb),0x00400000(kernel),0x00a00000(rootfs)
Part of SPI flash of .dts file:
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>, <&spi0_cs0_pins_a>;
status = "okay";
flash#0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
spi-max-frequency = <1000000>;
reg = <0>;
mode = <0>;
partition#0 {
label = "bootloader";
reg = <0x0 0xE0000>;
// read-only;
};
partition#E0000 {
label = "dtb";
reg = <0xE0000 0x20000>;
// read-only;
};
partition#100000 {
label = "kernel";
reg = <0x100000 0x500000>;
};
partition#600000 {
label = "rootfs";
reg = <0x600000 0xA00000>;
};
};
};
I have 4 mdt partition and I strive mount ubifs to rootfs partition.
After writing rootfs.ubifs to 0x400000 adress of SPI Nor Flash Dmesg output
[ 0.045841] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.046046] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.046096] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.046200] pinctrl core: initialized pinctrl subsystem
[ 0.047135] NET: Registered protocol family 16
[ 0.047738] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.048490] thermal_sys: Registered thermal governor 'step_wise'
[ 0.048852] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.063346] vgaarb: loaded
[ 0.063718] SCSI subsystem initialized
[ 0.063873] usbcore: registered new interface driver usbfs
[ 0.063938] usbcore: registered new interface driver hub
[ 0.064001] usbcore: registered new device driver usb
[ 0.065175] clocksource: Switched to clocksource timer
[ 0.065959] simple-framebuffer 5fe89000.framebuffer: framebuffer at 0x5fe89000, 0x177000 bytes, mapped to 0x(ptrval)
[ 0.066018] simple-framebuffer 5fe89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 0.071954] Console: switching to colour frame buffer device 100x30
[ 0.080800] simple-framebuffer 5fe89000.framebuffer: fb0: simplefb registered!
[ 0.090750] PCI: CLS 0 bytes, default 64
[ 0.095320] Initialise system trusted keyrings
[ 0.098848] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.106227] Key type asymmetric registered
[ 0.109588] Asymmetric key parser 'x509' registered
[ 0.112865] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.116197] io scheduler mq-deadline registered
[ 0.119426] io scheduler kyber registered
[ 0.126048] sun5i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.177235] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.182159] sun5i-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[ 0.206521] 1c28400.serial: ttyS0 at MMIO 0x1c28400 (irq = 33, base_baud = 1500000) is a U6_16550A
[ 0.669462] printk: console [ttyS0] enabled
[ 0.684378] loop: module loaded
[ 0.691437] sun5i-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[ 0.704102] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[ 0.712595] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.722225] Creating 4 MTD partitions on "spi0.0":
[ 0.730299] 0x000000000000-0x0000000e0000 : "bootloader"
[ 0.740017] 0x0000000e0000-0x000000100000 : "dtb"
[ 0.749058] 0x000000100000-0x000000600000 : "kernel"
[ 0.758323] 0x000000500000-0x000000f00000 : "rootfs"
[ 0.768061] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.777963] ehci-pci: EHCI PCI platform driver
[ 0.785658] ehci-platform: EHCI generic platform driver
[ 0.794364] ehci-platform 1c14000.usb: EHCI Host Controller
[ 0.803083] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[ 0.814054] ehci-platform 1c14000.usb: irq 23, io mem 0x01c14000
[ 0.845204] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[ 0.854424] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 0.865765] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.876007] usb usb1: Product: EHCI Host Controller
[ 0.883853] usb usb1: Manufacturer: Linux 5.12.0-rc3 ehci_hcd
[ 0.892601] usb usb1: SerialNumber: 1c14000.usb
[ 0.900637] hub 1-0:1.0: USB hub found
[ 0.907371] hub 1-0:1.0: 1 port detected
[ 0.914828] usbcore: registered new interface driver usb-storage
[ 0.924210] usb_phy_generic usb_phy_generic.0.auto: supply vcc not found, using dummy regulator
[ 0.936722] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.945503] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[ 0.956512] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 0.967679] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.977779] usb usb2: Product: MUSB HDRC host driver
[ 0.985617] usb usb2: Manufacturer: Linux 5.12.0-rc3 musb-hcd
[ 0.994187] usb usb2: SerialNumber: musb-hdrc.1.auto
[ 1.002466] hub 2-0:1.0: USB hub found
[ 1.009019] hub 2-0:1.0: 1 port detected
[ 1.017193] dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005
[ 1.027371] dummy_hcd dummy_hcd.0: Dummy host controller
[ 1.035441] dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 3
[ 1.045868] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 1.057120] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.067275] usb usb3: Product: Dummy host controller
[ 1.075111] usb usb3: Manufacturer: Linux 5.12.0-rc3 dummy_hcd
[ 1.083871] usb usb3: SerialNumber: dummy_hcd.0
[ 1.091833] hub 3-0:1.0: USB hub found
[ 1.098560] hub 3-0:1.0: 1 port detected
[ 1.106573] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.119058] sun4i-ss 1c15000.crypto-engine: Die ID 1
[ 1.127422] sun5i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[ 1.139675] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.148837] usbcore: registered new interface driver usbhid
[ 1.157506] usbhid: USB HID core driver
[ 1.165056] Loading compiled-in X.509 certificates
[ 1.181214] ubi0: attaching mtd3
[ 1.188137] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.208030] random: fast init done
[ 1.354154] ubi0: scanning is finished
[ 1.360876] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 1.371165] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 1.381210] UBI error: cannot attach mtd3
[ 1.389077] Waiting for root device ...
[ 31.845194] vcc3v0: disabling
[ 31.851016] vcc3v3: disabling
[ 31.856753] vcc5v0: disabling
[ 196.405220] random: crng init done
After writing rootfs.ubi to 0x600000 adress of SPI Nor Flash Dmesg output
[ 0.714492] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[ 0.722995] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.732653] Creating 4 MTD partitions on "spi0.0":
[ 0.740754] 0x000000000000-0x0000000e0000 : "bootloader"
[ 0.750508] 0x0000000e0000-0x000000100000 : "dtb"
[ 0.759608] 0x000000100000-0x000000600000 : "kernel"
[ 0.768897] 0x000000500000-0x000000f00000 : "rootfs"
[ 0.778640] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.788514] ehci-pci: EHCI PCI platform driver
[ 0.796182] ehci-platform: EHCI generic platform driver
[ 0.804863] ehci-platform 1c14000.usb: EHCI Host Controller
[ 0.813581] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[ 0.824528] ehci-platform 1c14000.usb: irq 23, io mem 0x01c14000
[ 0.855269] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[ 0.864542] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 0.875891] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.886138] usb usb1: Product: EHCI Host Controller
[ 0.893979] usb usb1: Manufacturer: Linux 5.12.0-rc3 ehci_hcd
[ 0.902719] usb usb1: SerialNumber: 1c14000.usb
[ 0.910764] hub 1-0:1.0: USB hub found
[ 0.917459] hub 1-0:1.0: 1 port detected
[ 0.924897] usbcore: registered new interface driver usb-storage
[ 0.934270] usb_phy_generic usb_phy_generic.0.auto: supply vcc not found, using dummy regulator
[ 0.946772] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.955538] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[ 0.966547] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 0.977706] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.987801] usb usb2: Product: MUSB HDRC host driver
[ 0.995636] usb usb2: Manufacturer: Linux 5.12.0-rc3 musb-hcd
[ 1.004203] usb usb2: SerialNumber: musb-hdrc.1.auto
[ 1.012477] hub 2-0:1.0: USB hub found
[ 1.019014] hub 2-0:1.0: 1 port detected
[ 1.026691] musb_handle_intr_disconnect 983: unhandled DISCONNECT transition (a_idle)
[ 1.038345] dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005
[ 1.048618] dummy_hcd dummy_hcd.0: Dummy host controller
[ 1.056812] dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 3
[ 1.067365] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[ 1.078654] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.088859] usb usb3: Product: Dummy host controller
[ 1.096802] usb usb3: Manufacturer: Linux 5.12.0-rc3 dummy_hcd
[ 1.105650] usb usb3: SerialNumber: dummy_hcd.0
[ 1.113672] hub 3-0:1.0: USB hub found
[ 1.120483] hub 3-0:1.0: 1 port detected
[ 1.128629] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.141063] sun4i-ss 1c15000.crypto-engine: Die ID 1
[ 1.149452] sun5i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[ 1.161773] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.170983] usbcore: registered new interface driver usbhid
[ 1.179725] usbhid: USB HID core driver
[ 1.187351] Loading compiled-in X.509 certificates
[ 1.203610] ubi0: attaching mtd3
[ 1.210562] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.221794] ubi0 error: validate_ec_hdr: bad VID header offset 512, expected 64
[ 1.232292] ubi0 error: validate_ec_hdr: bad EC header
[ 1.240488] Erase counter header dump:
[ 1.247177] magic 0x55424923
[ 1.253797] version 1
[ 1.259563] ec 0
[ 1.265285] vid_hdr_offset 512
[ 1.271135] data_offset 2048
[ 1.277052] image_seq 1557467774
[ 1.283518] hdr_crc 0xfc6f20a5
[ 1.289894] erase counter header hexdump:
[ 1.296464] 00000000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 08 00 5c d5 12 7e 00 00 00 00 UBI#....................\..~....
[ 1.315406] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc 6f 20 a5 .............................o .
[ 1.334481] CPU: 0 PID: 1 Comm: swapper Not tainted 5.12.0-rc3 #2
[ 1.343368] Hardware name: Allwinner sun4i/sun5i Families
[ 1.351584] [<c010b088>] (unwind_backtrace) from [<c01088f4>] (show_stack+0x10/0x14)
[ 1.362271] [<c01088f4>] (show_stack) from [<c042daec>] (validate_ec_hdr+0x70/0xcc)
[ 1.372919] [<c042daec>] (validate_ec_hdr) from [<c042e53c>] (ubi_io_read_ec_hdr+0x188/0x1d0)
[ 1.384549] [<c042e53c>] (ubi_io_read_ec_hdr) from [<c0432a28>] (ubi_attach+0x2d8/0x1094)
[ 1.395818] [<c0432a28>] (ubi_attach) from [<c0429448>] (ubi_attach_mtd_dev+0x57c/0x9ac)
[ 1.406991] [<c0429448>] (ubi_attach_mtd_dev) from [<c081d018>] (ubi_init+0x1a8/0x214)
[ 1.417956] [<c081d018>] (ubi_init) from [<c01015f4>] (do_one_initcall+0x70/0x194)
[ 1.428550] [<c01015f4>] (do_one_initcall) from [<c0800f94>] (kernel_init_freeable+0x164/0x1b0)
[ 1.440343] [<c0800f94>] (kernel_init_freeable) from [<c052ccc0>] (kernel_init+0x8/0x114)
[ 1.451636] [<c052ccc0>] (kernel_init) from [<c0100150>] (ret_from_fork+0x14/0x24)
[ 1.462347] Exception stack(0xc0c4bfb0 to 0xc0c4bff8)
[ 1.470542] bfa0: 00000000 00000000 00000000 00000000
[ 1.481944] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.493296] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.503033] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
[ 1.512812] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 1.523275] UBI error: cannot attach mtd3
[ 1.531472] Waiting for root device ...
[ 2.435240] random: fast init done
[ 31.845256] vcc3v0: disabling
[ 31.851464] vcc3v3: disabling
[ 31.857643] vcc5v0: disabling
Buildroot version: 2020.02.11
U-boot version: U-Boot 2021.04-rc3
Kernel version: 5.12.0-rc3
It will be a very general question, but how can I mount and mount rootfs and ubifs and run the system?
Thanks.
Try modifying command sunxi-fel
sudo sunxi-fel -v -p \
spiflash-write 0x0 ${DIR}/u-boot-sunxi-with-spl.bin \
spiflash-write 0xE0000 ${DIR}/sun5i-a13.dtb \
spiflash-write 0x100000 ${DIR}/uImage \
spiflash-write 0x600000 ${DIR}/rootfs.ubi \
uboot ${DIR}/u-boot-sunxi-with-spl.bin
And dts file
partition#600000 {
label = "rootfs";
reg = <0x600000 0xA00000>;
};

AWS EC2 : Connection Timed Out - SSH

Unable to connect via SSH to my Amazon Linux AMI, However I am able to connect to other instance with same VPC, security group and key.
These are the system logs, appreciate any help on this.
> [ 0.000000] Linux version 4.14.101-75.76.amzn1.x86_64 (mockbuild#gobi-build-60003) (gcc version 7.2.1 20170915 (Red Hat
> 7.2.1-2) (GCC)) #1 SMP Tue Feb 19 18:14:51 UTC 2019
> [ 0.000000] Command line: root=LABEL=/ console=tty1 console=ttyS0 selinux=0 nvme_core.io_timeout=4294967295
> LANG=en_US.UTF-8 KEYTABLE=us
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
> [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
> [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
> [ 0.000000] e820: BIOS-provided physical RAM map:
> [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable
> [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
> [ 0.000000] BIOS-e820: [mem 0x00000000fc000000-0x00000000ffffffff] reserved
> [ 0.000000] NX (Execute Disable) protection: active
> [ 0.000000] SMBIOS 2.7 present.
> [ 0.000000] DMI: Xen HVM domU, BIOS 4.2.amazon 08/24/2006
> [ 0.000000] Hypervisor detected: Xen HVM
> [ 0.000000] Xen version 4.2.
> [ 0.000000] Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs.
> [ 0.000000] Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks.
> [ 0.000000] You might have to change the root device
> [ 0.000000] from /dev/hd[a-d] to /dev/xvd[a-d]
> [ 0.000000] in your root= kernel command line option
> [ 0.000000] tsc: Fast TSC calibration using PIT
> [ 0.000000] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000
> [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
> [ 0.000000] found SMP MP-table at [mem 0x000fbc50-0x000fbc5f] mapped at [ffffffffff240c50]
> [ 0.000000] RAMDISK: [mem 0x37088000-0x37feffff]
> [ 0.000000] ACPI: Early table checksum verification disabled
> [ 0.000000] ACPI: RSDP 0x00000000000EA020 000024 (v02 Xen )
> [ 0.000000] ACPI: XSDT 0x00000000FC00E2A0 000054 (v01 Xen HVM 00000000 HVML 00000000)
> [ 0.000000] ACPI: FACP 0x00000000FC00DF60 0000F4 (v04 Xen HVM 00000000 HVML 00000000)
> [ 0.000000] ACPI: DSDT 0x00000000FC0021C0 00BD19 (v02 Xen HVM 00000000 INTL 20090123)
> [ 0.000000] ACPI: FACS 0x00000000FC002180 000040
> [ 0.000000] ACPI: FACS 0x00000000FC002180 000040
> [ 0.000000] ACPI: APIC 0x00000000FC00E060 0000D8 (v02 Xen HVM 00000000 HVML 00000000)
> [ 0.000000] ACPI: HPET 0x00000000FC00E1B0 000038 (v01 Xen HVM 00000000 HVML 00000000)
> [ 0.000000] ACPI: WAET 0x00000000FC00E1F0 000028 (v01 Xen HVM 00000000 HVML 00000000)
> [ 0.000000] ACPI: SSDT 0x00000000FC00E220 000031 (v02 Xen HVM 00000000 INTL 20090123)
> [ 0.000000] ACPI: SSDT 0x00000000FC00E260 000033 (v02 Xen HVM 00000000 INTL 20090123)
> [ 0.000000] No NUMA configuration found
> [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000003fffffff]
> [ 0.000000] NODE_DATA(0) allocated [mem 0x3ffde000-0x3fffffff]
> [ 0.000000] Zone ranges:
> [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
> [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003fffffff]
> [ 0.000000] Normal empty
> [ 0.000000] Movable zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009dfff]
> [ 0.000000] node 0: [mem 0x0000000000100000-0x000000003fffffff]
> [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
> [ 0.000000] ACPI: PM-Timer IO Port: 0xb008
> [ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
> [ 0.000000] Using ACPI (MADT) for SMP configuration information
> [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
> [ 0.000000] smpboot: Allowing 15 CPUs, 14 hotplug CPUs
> [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
> [ 0.000000] e820: [mem 0x40000000-0xfbffffff] available for PCI devices
> [ 0.000000] Booting paravirtualized kernel on Xen HVM
> [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
> [ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:15 nr_cpu_ids:15 nr_node_ids:1
> [ 0.000000] percpu: Embedded 44 pages/cpu #ffff88803e200000 s140120 r8192 d31912 u262144
> [ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
> [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 257928
> [ 0.000000] Policy zone: DMA32
> [ 0.000000] Kernel command line: root=LABEL=/ console=tty1 console=ttyS0 selinux=0 nvme_core.io_timeout=4294967295
> LANG=en_US.UTF-8 KEYTABLE=us
> [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [ 0.000000] Memory: 988264K/1048180K available (8204K kernel code, 1920K rwdata, 2768K rodata, 2044K init, 3876K bss, 59916K
> reserved, 0K cma-reserved)
> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
> [ 0.000000] Kernel/User page tables isolation: enabled
> [ 0.000000] ftrace: allocating 25766 entries in 101 pages
> [ 0.004000] Hierarchical RCU implementation.
> [ 0.004000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=15.
> [ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=15
> [ 0.004000] NR_IRQS: 524544, nr_irqs: 952, preallocated irqs: 16
> [ 0.004000] xen:events: Using 2-level ABI
> [ 0.004000] xen:events: Xen HVM callback vector for event delivery is enabled
> [ 0.004000] Console: colour VGA+ 80x25
> [ 0.004000] console [tty1] enabled
> [ 0.004000] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22!
> [ 0.004000] console [ttyS0] enabled
> [ 0.004000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30580167144 ns
> [ 0.008000] tsc: Fast TSC calibration using PIT
> [ 0.024004] tsc: Detected 2400.059 MHz processor
> [ 0.028010] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.15 BogoMIPS (lpj=9600312)
> [ 0.040005] pid_max: default: 32768 minimum: 301
> [ 0.044020] ACPI: Core revision 20170728
> [ 0.059670] ACPI: 3 ACPI AML tables successfully acquired and loaded
> [ 0.068038] Security Framework initialized
> [ 0.076206] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
> [ 0.092100] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
> [ 0.112022] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
> [ 0.116007] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
> [ 0.120233] mce: CPU supports 2 MCE banks
> [ 0.124030] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024
> [ 0.132003] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4
> [ 0.148005] Spectre V2 : Mitigation: Full generic retpoline
> [ 0.152004] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
> [ 0.160004] Speculative Store Bypass: Vulnerable
> [ 0.173851] smpboot: Max logical packages: 15
> [ 0.176833] x2apic: IRQ remapping doesn't support X2APIC mode
> [ 0.184004] Switched APIC routing to physical flat.
> [ 0.190772] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
> [ 0.238435] clocksource: xen: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
> [ 0.244018] installing Xen timer for CPU 0
> [ 0.248079] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2676 v3 # 2.40GHz (family: 0x6, model: 0x3f, stepping: 0x2)
> [ 0.252050] cpu 0 spinlock event irq 53
> [ 0.256035] Performance Events: unsupported p6 CPU model 63 no PMU driver, software events only.
> [ 0.260056] Hierarchical SRCU implementation.
> [ 0.264304] NMI watchdog: Perf event create on CPU 0 failed with -2
> [ 0.268008] NMI watchdog: Perf NMI watchdog permanently disabled
> [ 0.272202] smp: Bringing up secondary CPUs ...
> [ 0.275796] smp: Brought up 1 node, 1 CPU
> [ 0.276011] smpboot: Total of 1 processors activated (4800.15 BogoMIPS)
> [ 0.280482] devtmpfs: initialized
> [ 0.283941] x86/mm: Memory block size: 128MB
> [ 0.284230] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
> [ 0.288031] futex hash table entries: 4096 (order: 6, 262144 bytes)
> [ 0.292282] NET: Registered protocol family 16
> [ 0.296242] cpuidle: using governor ladder
> [ 0.300010] cpuidle: using governor menu
> [ 0.304044] ACPI: bus type PCI registered
> [ 0.308007] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> [ 0.312456] PCI: Using configuration type 1 for base access
> [ 0.318787] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
> [ 0.320217] ACPI: Added _OSI(Module Device)
> [ 0.324021] ACPI: Added _OSI(Processor Device)
> [ 0.328007] ACPI: Added _OSI(3.0 _SCP Extensions)
> [ 0.332006] ACPI: Added _OSI(Processor Aggregator Device)
> [ 0.339182] ACPI: Interpreter enabled
> [ 0.340021] ACPI: (supports S0 S4 S5)
> [ 0.343460] ACPI: Using IOAPIC for interrupt routing
> [ 0.344043] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> [ 0.348445] ACPI: Enabled 2 GPEs in block 00 to 0F
> [ 0.412557] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> [ 0.416018] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
> [ 0.420033] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
> [ 0.424030] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
> [ 0.429218] acpiphp: Slot [0] registered
> [ 0.433312] acpiphp: Slot [3] registered
> [ 0.436509] acpiphp: Slot [4] registered
> [ 0.440524] acpiphp: Slot [5] registered
> [ 0.444541] acpiphp: Slot [6] registered
> [ 0.448541] acpiphp: Slot [7] registered
> [ 0.452544] acpiphp: Slot [8] registered
> [ 0.458516] acpiphp: Slot [9] registered
> [ 0.460544] acpiphp: Slot [10] registered
> [ 0.464527] acpiphp: Slot [11] registered
> [ 0.468568] acpiphp: Slot [12] registered
> [ 0.472652] acpiphp: Slot [13] registered
> [ 0.476608] acpiphp: Slot [14] registered
> [ 0.480511] acpiphp: Slot [15] registered
> [ 0.484590] acpiphp: Slot [16] registered
> [ 0.489551] acpiphp: Slot [17] registered
> [ 0.492548] acpiphp: Slot [18] registered
> [ 0.496621] acpiphp: Slot [19] registered
> [ 0.500593] acpiphp: Slot [20] registered
> [ 0.504608] acpiphp: Slot [21] registered
> [ 0.508563] acpiphp: Slot [22] registered
> [ 0.512509] acpiphp: Slot [23] registered
> [ 0.516537] acpiphp: Slot [24] registered
> [ 0.520580] acpiphp: Slot [25] registered
> [ 0.524589] acpiphp: Slot [26] registered
> [ 0.528546] acpiphp: Slot [27] registered
> [ 0.532617] acpiphp: Slot [28] registered
> [ 0.536625] acpiphp: Slot [29] registered
> [ 0.540551] acpiphp: Slot [30] registered
> [ 0.544492] acpiphp: Slot [31] registered
> [ 0.548403] PCI host bridge to bus 0000:00
> [ 0.552006] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
> [ 0.556005] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
> [ 0.560005] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
> [ 0.564009] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff window]
> [ 0.568008] pci_bus 0000:00: root bus resource [bus 00-ff]
> [ 0.580994] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
> [ 0.584013] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
> [ 0.588009] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
> [ 0.592013] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
> [ 0.597469] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
> [ 0.597469] * this clock source is slow. Consider trying other clock sources
> [ 0.601963] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
> [ 0.617879] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
> [ 0.620484] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> [ 0.624308] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> [ 0.628273] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
> [ 0.659090] xen:balloon: Initialising balloon driver
> [ 0.672470] pci 0000:00:02.0: vgaarb: setting as boot VGA device
> [ 0.676000] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
> [ 0.676028] pci 0000:00:02.0: vgaarb: bridge control possible
> [ 0.680005] vgaarb: loaded
> [ 0.684298] EDAC MC: Ver: 3.0.0
> [ 0.688228] PCI: Using ACPI for IRQ routing
> [ 0.692903] NetLabel: Initializing
> [ 0.696007] NetLabel: domain hash size = 128
> [ 0.700005] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
> [ 0.704026] NetLabel: unlabeled traffic allowed by default
> [ 0.708043] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
> [ 0.712018] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
> [ 0.716006] hpet0: 3 comparators, 64-bit 62.500000 MHz counter
> [ 0.722208] clocksource: Switched to clocksource xen
> [ 0.732257] VFS: Disk quotas dquot_6.6.0
> [ 0.735847] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [ 0.741239] pnp: PnP ACPI init
> [ 0.743942] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
> [ 0.749560] system 00:01: [io 0x08a0-0x08a3] has been reserved
> [ 0.755099] system 00:01: [io 0x0cc0-0x0ccf] has been reserved
> [ 0.759542] system 00:01: [io 0x04d0-0x04d1] has been reserved
> [ 0.765628] system 00:07: [io 0x10c0-0x1141] has been reserved
> [ 0.769988] system 00:07: [io 0xb044-0xb047] has been reserved
> [ 0.774201] random: fast init done
> [ 0.802572] pnp: PnP ACPI: found 8 devices
> [ 0.815571] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
> [ 0.823851] NET: Registered protocol family 2
> [ 0.828295] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
> [ 0.836223] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
> [ 0.842471] TCP: Hash tables configured (established 8192 bind 8192)
> [ 0.848377] UDP hash table entries: 512 (order: 2, 16384 bytes)
> [ 0.854312] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
> [ 0.865357] NET: Registered protocol family 1
> [ 0.870057] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> [ 0.874521] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> [ 0.880434] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> [ 0.886961] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
> [ 0.900418] Unpacking initramfs...
> [ 1.140068] Freeing initrd memory: 15776K
> [ 1.144270] audit: initializing netlink subsys (disabled)
> [ 1.149487] Initialise system trusted keyrings
> [ 1.153120] random: get_random_bytes called from key_alloc+0x209/0x430 with crng_init=1
> [ 1.159656] Key type blacklist registered
> [ 1.164319] audit: type=2000 audit(1621604183.240:1): state=initialized audit_enabled=0 res=1
> [ 1.173559] workingset: timestamp_bits=36 max_order=18 bucket_order=0
> [ 1.181126] zbud: loaded
> [ 1.462923] Key type asymmetric registered
> [ 1.466712] Asymmetric key parser 'x509' registered
> [ 1.471526] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
> [ 1.478219] io scheduler noop registered (default)
> [ 1.482503] xen:grant_table: Grant tables using version 1 layout
> [ 1.488560] Grant table initialized
> [ 1.492864] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22!
> [ 1.498136] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> [ 1.532534] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
> [ 1.539067] xen_netfront: Initialising Xen virtual ethernet driver
> [ 1.546587] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
> [ 1.557894] serio: i8042 KBD port at 0x60,0x64 irq 1
> [ 1.563616] serio: i8042 AUX port at 0x60,0x64 irq 12
> [ 1.569522] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
> [ 1.578461] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [ 1.584470] rtc_cmos 00:02: alarms up to one day, 114 bytes nvram, hpet irqs
> [ 1.591556] hidraw: raw HID events driver (C) Jiri Kosina
> [ 1.597392] NET: Registered protocol family 17
> [ 1.602551] sched_clock: Marking stable (1602191383, 0)->(2508005586, -905814203)
> [ 1.608985] registered taskstats version 1
> [ 1.613380] Loading compiled-in X.509 certificates
> [ 1.617465] zswap: loaded using pool lzo/zbud
> [ 1.724098] xenbus_probe_frontend: Device with no driver: device/vbd/768
> [ 1.733164] rtc_cmos 00:02: setting system clock to 2021-05-21 13:36:24 UTC (1621604184)
> [ 1.740878] Freeing unused kernel memory: 2044K
> [ 1.752090] Write protecting the kernel read-only data: 14336k
> [ 1.759007] Freeing unused kernel memory: 2016K
> [ 1.766675] Freeing unused kernel memory: 1328K
> [ 1.788444] device-mapper: uevent: version 1.0.3
> [ 1.794113] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel#redhat.com
> [ 1.808846] udevd[853]: starting version 173
> [ 1.859269] SCSI subsystem initialized
> [ 1.951311] scsi host0: ata_piix
> [ 1.964023] Invalid max_queues (4), will use default max: 1.
> [ 1.970827] scsi host1: ata_piix
> [ 1.973941] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14
> [ 1.979650] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15
> [ 2.011829] blkfront: xvda: barrier or flush: disabled; persistent grants: disabled; indirect descriptors: enabled;
> [ 2.026784] xvda: xvda1
> [ 2.144087] tsc: Refined TSC clocksource calibration: 2399.999 MHz
> [ 2.148782] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2298364cab5, max_idle_ns: 440795214892 ns
> growroot: NOCHANGE: disk=/dev/xvda partition=1: size=16773086, it cannot be grown
> [ 2.214915] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null)
> [ 2.224557] dracut: Remounting /dev/disk/by-label/\x2f with -o noatime,nofail,ro
> [ 2.232584] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null)
> [ 2.240125] dracut: Mounted root filesystem /dev/xvda1
> [ 2.273312] dracut: Switching root
> [ 2.321659] random: init: uninitialized urandom read (12 bytes read)
> image_name="amzn-ami-hvm"
> image_version="2018.03"
> image_arch="x86_64"
> image_file="amzn-ami-hvm-2018.03.0.20180811-x86_64.ext4.gpt"
> image_stamp="cc81-f2f3"
> image_date="20180811012746"
> recipe_name="amzn ami"
> recipe_id="5b283820-dc60-a7ea-d436-39fa-439f-02ea-5c802dbd"
> Welcome to Amazon Linux AMI
> Starting udev: [ 2.454862] udevd[1570]: starting version 173
> [ 2.518886] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
> [ 2.543884] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
> [ 2.611788] ACPI: Power Button [PWRF]
> [ 2.615632] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input5
> [ 2.669689] ACPI: Sleep Button [SLPF]
> [ 2.678057] mousedev: PS/2 mouse device common for all mice
> [ OK ]
>
>
Setting hostname localhost.localdomain: [ OK ]
Setting up Logical Volume Management: [ 3.718097] random: lvm: uninitialized urandom read (4 bytes read)
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
[ OK ]
Checking filesystems
Checking all file systems.
[ OK ]
Remounting root filesystem in read-write mode: [ 3.759745] EXT4-fs (xvda1): re-mounted. Opts: (null)
[ OK ]
Mounting local filesystems: [ OK ]
Enabling local filesystem quotas: [ OK ]
[ 3.791456] random: dd: uninitialized urandom read (4096 bytes read)
Enabling /etc/fstab swaps: [ OK ]
Entering non-interactive startup
Starting LVM metadata daemon: [ OK ]
Starting LVM poll daemon: [ OK ]
[ 3.924597] random: vgs: uninitialized urandom read (4 bytes read)
[ 4.010580] NET: Registered protocol family 10
[ 4.018195] Segment Routing with IPv6
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
Determining IPv6 information for eth0... done.
[ OK ]
Starting auditd: [ OK ]
Starting system logger: [ OK ]
Starting irqbalance: [ OK ]
Starting rngd: [ 5.871299] urandom_read: 1 callbacks suppressed
[ 5.871300] random: rngd: uninitialized urandom read (16 bytes read)
Unable to open file: /dev/hwrng
[ OK ]
[ 5.910283] random: crng init done
Starting rpcbind: [ OK ]
Starting NFS statd: [ OK ]
Starting system message bus: [ OK ]
Mounting filesystems: [ OK ]
Starting acpi daemon: [ OK ]
Retrigger failed udev events--type=failed is deprecated and will be removed from a future udev release.
[ OK ]
Starting cloud-init: Cloud-init v. 0.7.6 running 'init-local' at Fri, 21 May 2021 13:36:29 +0000. Up 6.53 seconds.
Starting cloud-init: Cloud-init v. 0.7.6 running 'init' at Fri, 21 May 2021 13:36:29 +0000. Up 6.73 seconds.
ci-info: +++++++++++++++++++++++Net device info++++++++++++++++++++++++
ci-info: Device Up Address Mask Hw-Address
ci-info: lo True 127.0.0.1 255.0.0.0 .
ci-info: eth0 True 172.31.10.11 255.255.240.0 0a:3b:55:e4:8b:7e
ci-info: ++++++++++++++++++++++++++++++Route info+++++++++++++++++++++++++++++++
ci-info: Route Destination Gateway Genmask Interface Flags
ci-info: 0 0.0.0.0 172.31.0.1 0.0.0.0 eth0 UG
ci-info: 1 169.254.169.254 0.0.0.0 255.255.255.255 eth0 UH
ci-info: 2 172.31.0.0 0.0.0.0 255.255.240.0 eth0 U
May 21 13:36:29 cloud-init[2433]: __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'sudo yum install -y
http...'
Starting cloud-init: Cloud-init v. 0.7.6 running 'modules:config' at Fri, 21 May 2021 13:36:30 +0000. Up 7.43 seconds.
Starting sshd: [ OK ]
Starting ntpd: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
Starting httpd: [ OK ]
Starting mongod: [ OK ]
My issue was resolved. Please follow below post to check procedure that was followed. Hope it helps someone else as well.
https://stackoverflow.com/a/67648386/3224357

PCI Express AER Driver issues on Linux

I'm debugging a PCIe hardware issue on Linux and I want to enable PCIe AER driver on linux to catch any AER errors reported by my hardware device. I'm following this wiki:
https://www.kernel.org/doc/Documentation/PCI/pcieaer-howto.txt
My syslog shows AER is enabled
0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-108-generic root=UUID=a9f6d189-c13d-485c-a504-ba0aa0127e2e ro quiet splash aerdriver.forceload=y crashkernel=512M-:192M vt.handoff=1
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-108-generic root=UUID=a9f6d189-c13d-485c-a504-ba0aa0127e2e ro quiet splash aerdriver.forceload=y crashkernel=512M-:192M vt.handoff=1
[ 0.640130] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 0.661638] acpi PNP0A08:01: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 0.678143] acpi PNP0A08:02: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 0.694863] acpi PNP0A08:03: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 4.747041] acpi PNP0A08:04: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 4.751760] acpi PNP0A08:05: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 4.758480] acpi PNP0A08:06: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 4.763990] acpi PNP0A08:07: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 5.463432] pcieport 0000:00:01.1: AER enabled with IRQ 34
[ 5.463450] pcieport 0000:00:07.1: AER enabled with IRQ 35
[ 5.463472] pcieport 0000:00:08.1: AER enabled with IRQ 37
[ 5.463517] pcieport 0000:10:01.1: AER enabled with IRQ 38
[ 5.463547] pcieport 0000:10:07.1: AER enabled with IRQ 39
[ 5.463575] pcieport 0000:10:08.1: AER enabled with IRQ 41
[ 5.463604] pcieport 0000:20:03.1: AER enabled with IRQ 42
[ 5.463635] pcieport 0000:20:07.1: AER enabled with IRQ 44
[ 5.463663] pcieport 0000:20:08.1: AER enabled with IRQ 46
[ 5.463782] pcieport 0000:30:03.1: AER enabled with IRQ 47
[ 5.463811] pcieport 0000:30:07.1: AER enabled with IRQ 49
[ 5.463843] pcieport 0000:30:08.1: AER enabled with IRQ 51
[ 5.463872] pcieport 0000:40:07.1: AER enabled with IRQ 62
[ 5.463895] pcieport 0000:40:08.1: AER enabled with IRQ 64
[ 5.463930] pcieport 0000:50:07.1: AER enabled with IRQ 66
[ 5.463965] pcieport 0000:50:08.1: AER enabled with IRQ 68
[ 5.464000] pcieport 0000:60:07.1: AER enabled with IRQ 70
[ 5.464044] pcieport 0000:60:08.1: AER enabled with IRQ 72
[ 5.464071] pcieport 0000:70:07.1: AER enabled with IRQ 74
[ 5.464099] pcieport 0000:70:08.1: AER enabled with IRQ 76
The hardware device is a Samsung SSD connected to the Root Complex by a PCIe switch
PCIe Topology : Root Complex - <PLDA PCIe switch + FPGA> - Samsung EVO SSD
Unfortunately, I'm seeing a lot of NVMe related errors but no AER errors are outputted.
Jun 26 12:13:54 ndra-Diesel kernel: [ 1080.672606] nvme1n1: p1 p2
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542592] nvme nvme1: I/O 832 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542617] nvme nvme1: I/O 833 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542627] nvme nvme1: I/O 834 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542636] nvme nvme1: I/O 835 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542645] nvme nvme1: I/O 872 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542654] nvme nvme1: I/O 873 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542662] nvme nvme1: I/O 874 QID 5 timeout, aborting
Jun 26 12:14:27 ndra-Diesel kernel: [ 1113.542670] nvme nvme1: I/O 875 QID 5 timeout, aborting
Jun 26 12:14:58 ndra-Diesel kernel: [ 1144.262425] nvme nvme1: I/O 832 QID 5 timeout, reset controller
Jun 26 12:15:29 ndra-Diesel kernel: [ 1174.982243] nvme nvme1: I/O 16 QID 0 timeout, reset controller
Jun 26 12:15:40 ndra-Diesel gnome-software[6474]: no app for changed ubuntu-dock#ubuntu.com
I have custom compiled my kernel with following options:
cat /boot/config-4.15.0-108-generic | grep -i PCIE
CONFIG_ACPI_APEI_PCIEAER=y
CONFIG_PCIEAER=y
CONFIG_PCIEAER_INJECT=y
CONFIG_PCIEPORTBUS=y
The lspci output for my Samsung NVMe shows that it has AER Capability:
37:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981 (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd Device a801
Flags: bus master, fast devsel, latency 0, IRQ 54, NUMA node 3
Memory at b6500000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable+ Count=33 Masked-
Capabilities: [100] Advanced Error Reporting <----------------------------- SEE THIS
Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [158] Power Budgeting <?>
Capabilities: [168] #19
Capabilities: [188] Latency Tolerance Reporting
Capabilities: [190] L1 PM Substates
Kernel driver in use: nvme
Kernel modules: nvme
But the lscpi for PLDA switch doesn't show it has AER Capability
3:00.0 PCI bridge: PLDA XpressSwitch (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 53, NUMA node 3
Bus: primary=33, secondary=34, subordinate=3b, sec-latency=0
Memory behind bridge: b6400000-b65fffff
Capabilities: [80] Express Upstream Port, MSI 00
Capabilities: [e0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [f8] Power Management version 3
Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
Capabilities: [300] #19
Kernel driver in use: pcieport
Kernel modules: shpchp
I have two Questions :
The Samsung NVMe is behind the PLDA switch in the topology and the switch doesn't have AER capability. Can this be the reason I'm not seeing AER errors from the NVMe ?
Do I need to do anything else to enable AER on linux ?
Try adding this to the end of your config file:
pcie_ports=native

Booting Debian Wheezy on a BeagleCore ? (Kernel panic - not syncing: Attempted to kill init!)

I'm trying to boot a Debian Wheezy Image, Ker 3.8 on my BeagleCore (a smaller version of BeagleBone) with TI AM335x Cortex-A8 processor.
I took the Debian Image from beagleboard site.
When I try to boot, on a serial interface for debug, I get this messages:
U-Boot SPL 2016.01-00001-g4eb802e (Jan 13 2016 - 11:14:31)
Trying to boot from MMC
bad magic
U-Boot 2016.01-00001-g4eb802e (Jan 13 2016 - 11:14:31 -0600), Build: jenkins-github_Bootloader-Builder-313
Watchdog enabled
I2C: ready
DRAM: 512 MiB
Reset Source: Power-on reset has occurred.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
2181 bytes read in 16 ms (132.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-3.8.13-bone79 ...
5644336 bytes read in 333 ms (16.2 MiB/s)
loading /boot/dtbs/3.8.13-bone79/am335x-boneblack.dtb ...
26118 bytes read in 24 ms (1 MiB/s)
loading /boot/initrd.img-3.8.13-bone79 ...
2905600 bytes read in 179 ms (15.5 MiB/s)
debug: [console=ttyO0,115200n8 capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4,BB-UART5 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN root=UUID=4d8c9d4c-a16d-47ac-a32c-43d0155df072 ro rootfstype=ext4 rootwait coherent_pool=1M quiet init=/lib/systemd/systemd cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:2c5600 0x88000000] ...
Kernel image # 0x82000000 [ 0x000000 - 0x562030 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8fd3a000, end 8ffff600 ... OK
Loading Device Tree to 8fd30000, end 8fd39605 ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.384810] omap2_mbox_probe: platform not supported
[ 0.540541] tps65217-bl tps65217-bl: no platform data provided
[ 0.604330] bone-capemgr bone_capemgr.9: slot #0: No cape found
[ 0.641437] bone-capemgr bone_capemgr.9: slot #1: No cape found
[ 0.678546] bone-capemgr bone_capemgr.9: slot #2: No cape found
[ 0.715656] bone-capemgr bone_capemgr.9: slot #3: No cape found
[ 0.741854] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[ 0.803809] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[ 0.815463] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[ 0.822748] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
[ 0.893233] Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0858c20
[ 0.901225] Internal error: : 1008 [#1] SMP THUMB2
[ 0.906217] Modules linked in:
[ 0.909405] CPU: 0 Not tainted (3.8.13-bone79 #1)
[ 0.914691] PC is at cpts_fifo_read.constprop.1+0x18/0xc4
[ 0.920317] LR is at cpts_systim_read+0x11/0x7c
[ 0.925040] pc : [<c0326468>] lr : [<c0326761>] psr: 000001b3
[ 0.925040] sp : df071db8 ip : 00000000 fp : de231664
[ 0.936993] r10: de231000 r9 : de231758 r8 : c084e0c0
[ 0.942440] r7 : 00000001 r6 : ffffffff r5 : 00000010 r4 : de231670
[ 0.949241] r3 : e0858c00 r2 : 00000001 r1 : de2316d0 r0 : de231670
[ 0.956039] Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA Thumb Segment kernel
[ 0.963925] Control: 50c5387d Table: 80004019 DAC: 00000015
[ 0.969907] Process swapper/0 (pid: 1, stack limit = 0xdf070240)
[ 0.976163] Stack: (0xdf071db8 to 0xdf072000)
[ 0.980699] 1da0: e0858c00 de2316d0
[ 0.989219] 1dc0: de2316bc 35318bf5 00000000 0000001d c052e7a8 c0326761 de2316e8 de2316bc
[ 0.997740] 1de0: 35318bf5 c00611f1 de231670 20000113 de2316e8 c0326927 35318bf5 00000000
[ 1.006259] 1e00: 00000000 00000004 df0d5410 de231000 df0d5400 c0325bab df0d8ac0 de231540
[ 1.014775] 1e20: c0893bb8 0000002b de231540 df0d5400 df0d5410 00000005 00000000 df0d5410
[ 1.023298] 1e40: e0858800 e0858a00 e0858a20 e0858a40 e0858a60 e08588c0 e08588e0 00000008
[ 1.031813] 1e60: 00000001 0000003c 4a102000 4a102000 00002000 00000010 00000001 de231298
[ 1.040338] 1e80: e0858d00 0000000a 00000400 00000002 00000020 00000008 df0d5410 c094362c
[ 1.048868] 1ea0: df0d5410 c08b2c40 00000000 c0829039 00000102 c0846d70 00000000 c02c82b1
[ 1.057381] 1ec0: c02c82a1 c02c7753 00000000 df0d5410 c08b2c40 df0d5444 00000000 c02c78b3
[ 1.065896] 1ee0: c08b2c40 c02c7869 00000000 c02c6887 df049478 df0c6180 c08b2c40 c08a8090
[ 1.074421] 1f00: de23d140 c02c7247 c0753554 c08b2c40 c08b2c40 df070000 c08d4180 00000000
[ 1.082937] 1f20: c0829039 c02c7bb5 00000000 c0833968 df070000 c08d4180 00000000 c0829039
[ 1.091461] 1f40: 00000102 c000867f 00000007 00000007 c088bc98 c0833964 c0833968 00000007
[ 1.099978] 1f60: c0833948 c08d4180 c080d1c9 c0846d70 00000000 c080d6a3 00000007 00000007
[ 1.108503] 1f80: c080d1c9 c0d60fc0 00000000 c04ccfb1 00000000 00000000 00000000 00000000
[ 1.117013] 1fa0: 00000000 c04ccfb7 00000000 c000c8fd 00000000 00000000 00000000 00000000
[ 1.125537] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.134055] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 1.142587] [<c0326468>] (cpts_fifo_read.constprop.1+0x18/0xc4) from [<c0326761>] (cpts_systim_read+0x11/0x7c)
[ 1.153018] [<c0326761>] (cpts_systim_read+0x11/0x7c) from [<c00611f1>] (timecounter_init+0x11/0x1c)
[ 1.162545] [<c00611f1>] (timecounter_init+0x11/0x1c) from [<c0326927>] (cpts_register+0xf3/0x1b8)
[ 1.171894] [<c0326927>] (cpts_register+0xf3/0x1b8) from [<c0325bab>] (cpsw_probe+0x823/0x960)
[ 1.180877] [<c0325bab>] (cpsw_probe+0x823/0x960) from [<c02c82b1>] (platform_drv_probe+0x11/0x14)
[ 1.190222] [<c02c82b1>] (platform_drv_probe+0x11/0x14) from [<c02c7753>] (driver_probe_device+0x53/0x168)
[ 1.200282] [<c02c7753>] (driver_probe_device+0x53/0x168) from [<c02c78b3>] (__driver_attach+0x4b/0x4c)
[ 1.210093] [<c02c78b3>] (__driver_attach+0x4b/0x4c) from [<c02c6887>] (bus_for_each_dev+0x27/0x48)
[ 1.219521] [<c02c6887>] (bus_for_each_dev+0x27/0x48) from [<c02c7247>] (bus_add_driver+0xe3/0x168)
[ 1.228949] [<c02c7247>] (bus_add_driver+0xe3/0x168) from [<c02c7bb5>] (driver_register+0x3d/0xc4)
[ 1.238289] [<c02c7bb5>] (driver_register+0x3d/0xc4) from [<c000867f>] (do_one_initcall+0x1f/0xf4)
[ 1.247630] [<c000867f>] (do_one_initcall+0x1f/0xf4) from [<c080d6a3>] (kernel_init_freeable+0xc3/0x158)
[ 1.257516] [<c080d6a3>] (kernel_init_freeable+0xc3/0x158) from [<c04ccfb7>] (kernel_init+0x7/0x98)
[ 1.266951] [<c04ccfb7>] (kernel_init+0x7/0x98) from [<c000c8fd>] (ret_from_fork+0x11/0x34)
[ 1.275659] Code: 2701 f100 09e8 6823 (6a1a) 07d3
[ 1.280655] ---[ end trace b2036333b4d03ad2 ]---
[ 1.285687] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
With a Debian Jessie image, Ker 4.4, board is booting normally.
Any idea how to solve this, is kindly appreciated.
Thank you.
As per my knowledge there was some issue with CTPS driver in kernel V3.13 (forget the exact kernel version). So it was an open issue. May be with newer kernel version they have fixed it. If you have the source code then try by disabling the CTPS driver CONFIG_TI_CPTS=n.

Where can I load a GPIO module at the earliest?

I wrote a kernel module which works as expected. But I want that to be loaded at the beginning of the boot process. So I moved this code to
OpenWRT/build_dir/target-i386_geode_eglibc-2.19/linux-x86_alix2/linux-3.10.49/arch/x86/platform
and my code is here:
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/cs5535.h>
MODULE_AUTHOR("Ramana");
MODULE_DESCRIPTION("POWER LED DRIVER");
#ifdef MODULE_LICENSE
MODULE_LICENSE("Dual BSD/GPL");
#endif
#define HW_VERSION_GPIO 15
#define LATCH_GPIO 6
#define DATA_GPIO 25
#define CLOCK_GPIO 27
#define HIGH 1
#define LOW 0
static void set_power_led(void)
{
uint8_t i = 0;
/*
* Configure Pins Q8 Q7 Q6....Q0 in shift register
* Set 0 to glow LED
*
* shift_reg:
* indices 0, 1 and 2 are for LED3
* 0 1 1 -> Blue_ON, GREEN_OFF, RED_OFF
*
* indices 3, 4 and 5 are for LED1
*
* indices 6, 7 and 8 are for LED2
* 0 1 1 -> Blue_ON, GREEN_OFF, RED_OFF
*
* The pins Q9 Q10 and Q11 are don't care, so we are not using here
*/
uint8_t shift_reg[9] = {0, 1, 1, 1, 1, 1, 1, 1, 1};
/*
* Clear register before set
*/
for (i = 0; i < 9 ; i ++) {
gpio_set_value(CLOCK_GPIO, LOW);
if (shift_reg[i] == 0) {
gpio_set_value(DATA_GPIO, HIGH);
} else {
gpio_set_value(DATA_GPIO, LOW);
}
gpio_set_value(CLOCK_GPIO, HIGH);
}
gpio_set_value(LATCH_GPIO, HIGH);
msleep(1);
gpio_set_value(LATCH_GPIO, LOW);
}
static int __init power_led_init(void)
{
/*
* If GPIO 15 is high, it is old hardware
*/
printk(KERN_INFO "LED INIT\n");
if (!gpio_is_valid(LATCH_GPIO)) {
printk(KERN_INFO "LEDs: Latch gpio is not valid\n");
return -ENODEV;
}
if (!gpio_is_valid(DATA_GPIO)) {
printk(KERN_INFO "LEDs: Data gpio is not valid\n");
return -ENODEV;
}
if (!gpio_is_valid(CLOCK_GPIO)) {
printk(KERN_INFO "LEDs: Clock gpio is not valid\n");
return -ENODEV;
}
gpio_request(LATCH_GPIO, "sysfs");
gpio_request(DATA_GPIO, "sysfs");
gpio_request(CLOCK_GPIO, "sysfs");
gpio_direction_output(LATCH_GPIO, LOW);
gpio_direction_output(DATA_GPIO, LOW);
gpio_direction_output(CLOCK_GPIO, LOW);
set_power_led();
printk(KERN_INFO "Power LED: registered\n");
return 0;
}
static void __exit power_led_exit(void)
{
uint8_t i;
for (i = 0; i < 9 ; i++) {
gpio_set_value(CLOCK_GPIO, LOW);
gpio_set_value(DATA_GPIO, LOW);
gpio_set_value(CLOCK_GPIO, HIGH);
}
gpio_set_value(LATCH_GPIO, HIGH);
msleep(1);
gpio_set_value(LATCH_GPIO, LOW);
}
module_init(power_led_init);
module_exit(power_led_exit);
With this there is a kernel panic:
[ 0.104709] LED INIT
[ 0.105306] BUG: unable to handle kernel NULL pointer dereference at 0000004c
[ 0.106284] IP: [<c115acc2>] __gpio_set_value+0x12/0x80
[ 0.106284] *pde = 00000000
[ 0.106284] Oops: 0000 [#1]
[ 0.106284] Modules linked in:
[ 0.106284] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.49 #33
[ 0.106284] task: cf834000 ti: cf840000 task.ti: cf840000
[ 0.106284] EIP: 0060:[<c115acc2>] EFLAGS: 00010286 CPU: 0
[ 0.106284] EIP is at __gpio_set_value+0x12/0x80
[ 0.106284] EAX: c13a1624 EBX: c13a1624 ECX: ffffffea EDX: 00000000
[ 0.106284] ESI: 00000000 EDI: 00000000 EBP: cf841f80 ESP: cf841f24
[ 0.106284] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
[ 0.106284] CR0: 8005003b CR2: 0000004c CR3: 01371000 CR4: 00000090
[ 0.106284] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 0.106284] DR6: ffff0ff0 DR7: 00000400
[ 0.106284] Stack:
[ 0.106284] cf841f3b cf841f44 0000003e c133b05e c12b0d03 006e6967 01010101 01010101
[ 0.106284] 00000000 c133afbb c1000172 cfdff401 00060006 c13019c0 c12ced19 cfdff460
[ 0.106284] 00000000 cfdff460 00000200 c114956a c136c480 00000006 0000003e cf840000
[ 0.106284] Call Trace:
[ 0.106284] [<c133b05e>] ? power_led_init+0xa3/0x112
[ 0.106284] [<c133afbb>] ? alix_init+0xf6/0xf6
[ 0.106284] [<c1000172>] ? do_one_initcall+0xb2/0x150
[ 0.106284] [<c114956a>] ? strcpy+0xa/0x20
[ 0.106284] [<c132da22>] ? kernel_init_freeable+0xd1/0x173
[ 0.106284] [<c132d4aa>] ? do_early_param+0x77/0x77
[ 0.106284] [<c124ad68>] ? kernel_init+0x8/0x170
[ 0.106284] [<c1251322>] ? ret_from_kernel_thread+0x6/0x28
[ 0.106284] [<c1251337>] ? ret_from_kernel_thread+0x1b/0x28
[ 0.106284] [<c124ad60>] ? rest_init+0x60/0x60
[ 0.106284] Code: d6 ab aa aa aa ff d1 5b 5e 5f c3 8d b4 26 00 00 00 00 8d bc 27 00 00 00 00 57 f
[ 0.106284] EIP: [<c115acc2>] __gpio_set_value+0x12/0x80 SS:ESP 0068:cf841f24
[ 0.106284] CR2: 000000000000004c
[ 0.106284] ---[ end trace 23021a4cac17faa2 ]---
[ 0.107751] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 0.107751]
Why this is crashing here and where can I add this to make this module loaded at the earliest.
Full minicom log
PC Engines ALIX.3 v0.99h
640 KB Base Memory
153603174448128645128089697280113664130048146432162816179200195584211968228352244736261120 KB Extended Memory
01F0 Master 045A InnoDisk Corp. - iCF4000 8GB
Phys C/H/S 16000/16/63 Log C/H/S 1003/255/63 LBA
GRUB loading....
Booting `OpenWrt'
[ 0.000000] Linux version 3.10.49 (savari#Ramana) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #40 Tue Nov 8 13:11:49 IST 2016
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000000fffffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000fff00000-0x00000000ffffffff] reserved
[ 0.000000] Notice: NX (Execute Disable) protection missing in CPU!
[ 0.000000] DMI not present or invalid.
[ 0.000000] e820: last_pfn = 0x10000 max_arch_pfn = 0x100000
[ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[ 0.000000] init_memory_mapping: [mem 0x0fc00000-0x0fffffff]
[ 0.000000] init_memory_mapping: [mem 0x08000000-0x0fbfffff]
[ 0.000000] init_memory_mapping: [mem 0x00100000-0x07ffffff]
[ 0.000000] 256MB LOWMEM available.
[ 0.000000] mapped low ram: 0 - 10000000
[ 0.000000] low ram: 0 - 10000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00001000-0x00ffffff]
[ 0.000000] Normal [mem 0x01000000-0x0fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00001000-0x0009ffff]
[ 0.000000] node 0: [mem 0x00100000-0x0fffffff]
[ 0.000000] Using APIC driver default
[ 0.000000] No local APIC present or hardware disabled
[ 0.000000] APIC: disable apic facility
[ 0.000000] APIC: switched to apic NOOP
[ 0.000000] e820: [mem 0x10000000-0xffefffff] available for PCI devices
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64927
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz block2mtd.block2mtd=/dev/hda2,131072,rootfs,5 root=/dev/mtdblock0 rootfstype=jffs2 rootwait console=tty0 console=ttyS0,38400n8 noinitrd
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Initializing CPU#0
[ 0.000000] Memory: 255600k/262144k available (2377k kernel code, 6156k reserved, 873k data, 260k init, 0k highmem)
[ 0.000000] virtual kernel memory layout:
[ 0.000000] fixmap : 0xfffa3000 - 0xfffff000 ( 368 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xfffa1000 ( 759 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] .init : 0xc132d000 - 0xc136e000 ( 260 kB)
[ 0.000000] .data : 0xc1252630 - 0xc132cd00 ( 873 kB)
[ 0.000000] .text : 0xc1000000 - 0xc1252630 (2377 kB)
[ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:2304 nr_irqs:256 16
[ 0.000000] console [ttyS0] enabled
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 498.062 MHz processor
[ 0.003005] Calibrating delay loop (skipped), value calculated using timer frequency.. 996.12 BogoMIPS (lpj=498062)
[ 0.005013] pid_max: default: 32768 minimum: 301
[ 0.007653] Mount-cache hash table entries: 512
[ 0.011056] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.011056] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.011056] tlb_flushall_shift: -1
[ 0.012009] CPU: Geode(TM) Integrated Processor by AMD PCS (fam: 05, model: 0a, stepping: 02)
[ 0.018327] Performance Events: no PMU driver, software events only.
[ 0.026472] NET: Registered protocol family 16
[ 0.030862] PCI: PCI BIOS revision 2.10 entry at 0xfced9, last bus=0
[ 0.031012] PCI: Using configuration type 1 for base access
[ 0.051103] bio: create slab <bio-0> at 0
[ 0.057403] SCSI subsystem initialized
[ 0.060534] PCI: Probing PCI hardware
[ 0.062281] PCI host bridge to bus 0000:00
[ 0.063030] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.064033] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[ 0.065020] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.078410] Switching to clocksource pit
[ 0.086307] NET: Registered protocol family 2
[ 0.088599] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.089847] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.090949] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.092136] TCP: reno registered
[ 0.093867] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.095398] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.096873] NET: Registered protocol family 1
[ 0.100630] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.104665] alix: system is recognized as "PC Engines ALIX.3 v0.99h"
[ 0.106619] LED INIT
[ 0.107229] BUG: unable to handle kernel NULL pointer dereference at 0000004c
[ 0.108207] IP: [<c115acc2>] __gpio_set_value+0x12/0x80
[ 0.108207] *pde = 00000000
[ 0.108207] Oops: 0000 [#1]
[ 0.108207] Modules linked in:
[ 0.108207] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.49 #40
[ 0.108207] task: cf834000 ti: cf840000 task.ti: cf840000
[ 0.108207] EIP: 0060:[<c115acc2>] EFLAGS: 00010286 CPU: 0
[ 0.108207] EIP is at __gpio_set_value+0x12/0x80
[ 0.108207] EAX: c13a1624 EBX: c13a1624 ECX: ffffffea EDX: 00000000
[ 0.108207] ESI: 00000000 EDI: 00000000 EBP: cf841f80 ESP: cf841f24
[ 0.108207] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
[ 0.108207] CR0: 8005003b CR2: 0000004c CR3: 01371000 CR4: 00000090
[ 0.108207] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 0.108207] DR6: ffff0ff0 DR7: 00000400
[ 0.108207] Stack:
[ 0.108207] cf841f3b cf841f44 0000003e c133b031 c12b0deb 006e6967 01010101 01010101
[ 0.108207] 00000000 c133afbb c1000172 00000001 00060006 c1301bf0 c12ceeb1 cfdff460
[ 0.108207] 00000000 cfdff460 00000200 00000000 c136c480 00000006 0000003e cf840000
[ 0.108207] Call Trace:
[ 0.108207] [<c133b031>] ? power_led_init+0x76/0xe5
[ 0.108207] [<c133afbb>] ? alix_init+0xf6/0xf6
[ 0.108207] [<c1000172>] ? do_one_initcall+0xb2/0x150
[ 0.108207] [<c132da22>] ? kernel_init_freeable+0xd1/0x173
[ 0.108207] [<c132d4aa>] ? do_early_param+0x77/0x77
[ 0.108207] [<c124b058>] ? kernel_init+0x8/0x170
[ 0.108207] [<c1251622>] ? ret_from_kernel_thread+0x6/0x28
[ 0.108207] [<c1251637>] ? ret_from_kernel_thread+0x1b/0x28
[ 0.108207] [<c124b050>] ? rest_init+0x60/0x60
[ 0.108207] Code: d6 ab aa aa aa ff d1 5b 5e 5f c3 8d b4 26 00 00 00 00 8d bc 27 00 00 00 00 57 89 d7 56 53 e8 46 f4 ff ff 85 c0 89 c3 74 5d 8b 30 <f6> 46 4c 01 74 10 ba 8a 07 00 00 b8 5c da 2c c1 e8 b9 bb ec ff
[ 0.108207] EIP: [<c115acc2>] __gpio_set_value+0x12/0x80 SS:ESP 0068:cf841f24
[ 0.108207] CR2: 000000000000004c
[ 0.108207] ---[ end trace 7b3836317c1bee78 ]---
[ 0.108879] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 0.108879]
I think you have put this in kernel source directory. You should place this in drivers/gpio/ in kernel source. Then add the entries in Kconfig and Makefile of drivers/gpio/ directory. In Kconfig, you can specify the dependency. Selecting it with make menuconfig, you will be able to compile this module as a part of kernel, and it will be loaded at boot-time when kernel is loaded. You can decrease the time further in this case using early_initcall() instead of module_init().
If you are not putting this at kernel source (i.e. not building the driver as part of kernel), then you should call this using "insmod my_module.ko" in a shell script, and put it in init.d and call it at your desired runlevel.

Resources