Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2900 - ath79 nand trunk bootloop #8137

Closed
openwrt-bot opened this issue Mar 12, 2020 · 8 comments
Closed

FS#2900 - ath79 nand trunk bootloop #8137

openwrt-bot opened this issue Mar 12, 2020 · 8 comments
Labels

Comments

@openwrt-bot
Copy link

Cutepally:

  1. WNDR3700v4 (likely wndr4300v1 too)
  2. trunk build, compiles fine for 4.19 and 5.4
  3. build, try to boot, will bootloop on 4.19 or 5.4 testing kernel

commit: [[https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=53ab9865c2b91bc6a239b2adee800dc52875b6bc|ath79: add support for kernel 5.4]]
this commit edits: target/linux/ath79/nand/config-default [[https://git.openwrt.org/?p=openwrt/openwrt.git;a=blobdiff;f=target/linux/ath79/nand/config-default;h=50bc55079432b2ac6b90a815f9c7df9f999d89d3;hp=b03f977a07f63c90374a17159d75363d50b14d38;hb=53ab9865c2b91bc6a239b2adee800dc52875b6bc;hpb=e1e6ff6648f5a0819a5b9429e787c1b6aacfec59|diff]]
this is causing the bootloop to happen. however, if:

CONFIG_MTD_NAND=y CONFIG_MTD_NAND_AR934X=y CONFIG_MTD_NAND_ECC=y

is readded, the bootloop won't happen and the build will load.
i don't know if all three of these are needed or just CONFIG_MTD_NAND
i also tested with this on 5.4 but i still have the bootloop however, that's probably expected i know it's currently a work in progress.
so, this change will only fix 4.19

after i patched this locally: //OpenWrt SNAPSHOT r12586+5-3b45a3b388//
also i should note, as of this version exFAT (specifically, kmod-fs-exfat0) won't compile at 4.19 but that's another issue that i'm sure will be resolved in no time.

@openwrt-bot
Copy link
Author

Cutepally:

reference to github mirror: [[https://github.com/openwrt/openwrt/commit/53ab9865c2b91bc6a239b2adee800dc52875b6bc#commitcomment-37788979|here]]

@openwrt-bot
Copy link
Author

Cutepally:

Will do, should I also attempt 5.4? I started a 4.19 build right now. Will report back shortly.

@openwrt-bot
Copy link
Author

blocktrron:

Kernel 5.4 still has major bugs for ath79, but if you would like to do it, go ahead!

@openwrt-bot
Copy link
Author

Cutepally:

Okay, the build just loaded and works with that commit as well (on 4.19). OpenWrt SNAPSHOT r12618

//edit: building a 5.4, why not? :)//

@openwrt-bot
Copy link
Author

Cutepally:

Okay, kernel 5.4 test didn't build now (expected still, of course) this is the error i collected during the attempt. I don't expect this to be fixed soon or anything, the issue from this ticket is resolved. Thanks for your time. :)

@openwrt-bot
Copy link
Author

realmicu:

Please use latest master, David Bauer recently provided a patch that adapts ar934x-nand driver to 5.4. Also please use GCC 9.3.0, default version 8.4.0 may produce unbootable kernel ("Kernel panic - not syncing: Unexpected DSP exception") for certain ath79 devices (confirmed for routers based on Atheros 9344). See FS#2928.

@openwrt-bot
Copy link
Author

Cutepally:

i tested 5.4 with gcc 9.3.0 however the device still wouldn't boot, i tried the sysupgrade first then tftp the img file however both didn't work so i remade it with 4.19 and that one took (still using gcc9): Linux version 4.19.108 (kodewdle@github) (gcc version 9.3.0 (OpenWrt GCC 9.3.0 r12846-258f070d1a)) #0 Sat Mar 28 16:14:15 2020 so, unless i did something wrong using a higher gcc didn't help for my device :( thanks for mentioning it however, willing to test more just let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant