Message ID | 20171007212049.11361-1-hauke@hauke-m.de |
---|---|
Headers | show |
Series | ar71xx: add support for kernel 4.9 | expand |
Citeren Hauke Mehrtens <hauke@hauke-m.de>: > This adds support for kernel 4.9. > Please test this, I am lacking especially NAND devices. > > The most recent version of these patches can be found here: > https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx > > Hauke Mehrtens (4): > ar71xx: Copy kernel 4.4 code for kernel 4.9 > ar71xx: make the target compile with kernel 4.9 > ar71xx: fix section mismatches > ar71xx: switch to kernel 4.9 by default I checked the above patches on a WNDR4300 (a NAND device). No issues when building, but the device entered a bootloop after flashing with sysupgrade. Since this is a production system, I didn't have time to dig into what is exactly causing this.
Arjen de Korte <arjen+lede@de-korte.org> wrote: > Citeren Hauke Mehrtens <hauke@hauke-m.de>: > > This adds support for kernel 4.9. > > Please test this, I am lacking especially NAND devices. > > > > The most recent version of these patches can be found here: > > https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx > > > > Hauke Mehrtens (4): > > ar71xx: Copy kernel 4.4 code for kernel 4.9 > > ar71xx: make the target compile with kernel 4.9 > > ar71xx: fix section mismatches > > ar71xx: switch to kernel 4.9 by default > I checked the above patches on a WNDR4300 (a NAND device). No issues > when building, but the device entered a bootloop after flashing with > sysupgrade. Since this is a production system, I didn't have time to > dig into what is exactly causing this. ar934x NAND driver missing cmd_ctrl() function - so NAND devices not work at all. [ 3.575549] nand: chip.cmd_ctrl() callback is not provided [ 3.581103] ar934x-nfc ar934x-nfc: nand_scan_ident failed, err:-22 [ 3.587515] ar934x-nfc: probe of ar934x-nfc failed with error -22
On 10/08/2017 01:31 PM, Andrey Jr. Melnikov wrote: > Arjen de Korte <arjen+lede@de-korte.org> wrote: >> Citeren Hauke Mehrtens <hauke@hauke-m.de>: > >>> This adds support for kernel 4.9. >>> Please test this, I am lacking especially NAND devices. >>> >>> The most recent version of these patches can be found here: >>> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx >>> >>> Hauke Mehrtens (4): >>> ar71xx: Copy kernel 4.4 code for kernel 4.9 >>> ar71xx: make the target compile with kernel 4.9 >>> ar71xx: fix section mismatches >>> ar71xx: switch to kernel 4.9 by default > >> I checked the above patches on a WNDR4300 (a NAND device). No issues >> when building, but the device entered a bootloop after flashing with >> sysupgrade. Since this is a production system, I didn't have time to >> dig into what is exactly causing this. > > ar934x NAND driver missing cmd_ctrl() function - so NAND devices not work at all. > > [ 3.575549] nand: chip.cmd_ctrl() callback is not provided > [ 3.581103] ar934x-nfc ar934x-nfc: nand_scan_ident failed, err:-22 > [ 3.587515] ar934x-nfc: probe of ar934x-nfc failed with error -22 Hi, Thanks for testing and reporting back. I tried to fix this problem, can you please try the most recent version from my git tree. This now has this additional change: https://git.lede-project.org/?p=lede/hauke/staging.git;a=commitdiff;h=42a49cbca96875be43913688da60d637cbdff604 Hauke
Citeren Hauke Mehrtens <hauke@hauke-m.de>: > On 10/08/2017 01:31 PM, Andrey Jr. Melnikov wrote: >> Arjen de Korte <arjen+lede@de-korte.org> wrote: >>> Citeren Hauke Mehrtens <hauke@hauke-m.de>: >> >>>> This adds support for kernel 4.9. >>>> Please test this, I am lacking especially NAND devices. >>>> >>>> The most recent version of these patches can be found here: >>>> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx >>>> >>>> Hauke Mehrtens (4): >>>> ar71xx: Copy kernel 4.4 code for kernel 4.9 >>>> ar71xx: make the target compile with kernel 4.9 >>>> ar71xx: fix section mismatches >>>> ar71xx: switch to kernel 4.9 by default >> >>> I checked the above patches on a WNDR4300 (a NAND device). No issues >>> when building, but the device entered a bootloop after flashing with >>> sysupgrade. Since this is a production system, I didn't have time to >>> dig into what is exactly causing this. >> >> ar934x NAND driver missing cmd_ctrl() function - so NAND devices >> not work at all. >> >> [ 3.575549] nand: chip.cmd_ctrl() callback is not provided >> [ 3.581103] ar934x-nfc ar934x-nfc: nand_scan_ident failed, err:-22 >> [ 3.587515] ar934x-nfc: probe of ar934x-nfc failed with error -22 > > Hi, > > Thanks for testing and reporting back. > > I tried to fix this problem, can you please try the most recent version > from my git tree. This now has this additional change: > https://git.lede-project.org/?p=lede/hauke/staging.git;a=commitdiff;h=42a49cbca96875be43913688da60d637cbdff604 Tested your staging tree on a WNDR4300, looking well. I'll keep an eye on it over the next few days. Regards, Arjen
Thanks. I compiled kernel 4.9 for my old WNDR3700v2 and WNDR3800. Both routers booted ok and seem to work ok at the first glance.
On 07/10/17 22:20, Hauke Mehrtens wrote: > This adds support for kernel 4.9. > Please test this, I am lacking especially NAND devices. > > The most recent version of these patches can be found here: > https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx Tried your latest rebase 42a49cb on Archer C7 v2 - looks good - nothing exploded so far (sadly not NAND based) :-) Kevin
Hauke Mehrtens <hauke@hauke-m.de> wrote: > On 10/08/2017 01:31 PM, Andrey Jr. Melnikov wrote: > > Arjen de Korte <arjen+lede@de-korte.org> wrote: > >> Citeren Hauke Mehrtens <hauke@hauke-m.de>: > > > >>> This adds support for kernel 4.9. > >>> Please test this, I am lacking especially NAND devices. > >>> > >>> The most recent version of these patches can be found here: > >>> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx > >>> > >>> Hauke Mehrtens (4): > >>> ar71xx: Copy kernel 4.4 code for kernel 4.9 > >>> ar71xx: make the target compile with kernel 4.9 > >>> ar71xx: fix section mismatches > >>> ar71xx: switch to kernel 4.9 by default > > > >> I checked the above patches on a WNDR4300 (a NAND device). No issues > >> when building, but the device entered a bootloop after flashing with > >> sysupgrade. Since this is a production system, I didn't have time to > >> dig into what is exactly causing this. > > > > ar934x NAND driver missing cmd_ctrl() function - so NAND devices not work at all. > > > > [ 3.575549] nand: chip.cmd_ctrl() callback is not provided > > [ 3.581103] ar934x-nfc ar934x-nfc: nand_scan_ident failed, err:-22 > > [ 3.587515] ar934x-nfc: probe of ar934x-nfc failed with error -22 > Hi, > Thanks for testing and reporting back. > I tried to fix this problem, can you please try the most recent version > from my git tree. This now has this additional change: > https://git.lede-project.org/?p=lede/hauke/staging.git;a=commitdiff;h=42a49cbca96875be43913688da60d637cbdff604 Tested on mikrotik rb2011 (2011r5) NAND working: [ 3.576007] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 [ 3.582617] nand: Unknown NAND 128MiB 3,3V 8-bit [ 3.587387] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 3.595261] Scanning device for bad blocks [ 3.645341] Bad eraseblock 889 at 0x000006f20000 [ 3.657026] Creating 3 MTD partitions on "ar934x-nfc": [ 3.662371] 0x000000000000-0x000000040000 : "booter" [ 3.669186] 0x000000040000-0x000000400000 : "kernel" [ 3.676383] 0x000000400000-0x000008000000 : "ubi" [ 3.687064] libphy: Fixed MDIO Bus: probed USB working, ethernet working, SFP not working.
On 10/09/2017 01:28 PM, Andrey Jr. Melnikov wrote: > Hauke Mehrtens <hauke@hauke-m.de> wrote: >> On 10/08/2017 01:31 PM, Andrey Jr. Melnikov wrote: >>> Arjen de Korte <arjen+lede@de-korte.org> wrote: >>>> Citeren Hauke Mehrtens <hauke@hauke-m.de>: >>> >>>>> This adds support for kernel 4.9. >>>>> Please test this, I am lacking especially NAND devices. >>>>> >>>>> The most recent version of these patches can be found here: >>>>> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/ar71xx >>>>> >>>>> Hauke Mehrtens (4): >>>>> ar71xx: Copy kernel 4.4 code for kernel 4.9 >>>>> ar71xx: make the target compile with kernel 4.9 >>>>> ar71xx: fix section mismatches >>>>> ar71xx: switch to kernel 4.9 by default >>> >>>> I checked the above patches on a WNDR4300 (a NAND device). No issues >>>> when building, but the device entered a bootloop after flashing with >>>> sysupgrade. Since this is a production system, I didn't have time to >>>> dig into what is exactly causing this. >>> >>> ar934x NAND driver missing cmd_ctrl() function - so NAND devices not work at all. >>> >>> [ 3.575549] nand: chip.cmd_ctrl() callback is not provided >>> [ 3.581103] ar934x-nfc ar934x-nfc: nand_scan_ident failed, err:-22 >>> [ 3.587515] ar934x-nfc: probe of ar934x-nfc failed with error -22 > >> Hi, > >> Thanks for testing and reporting back. > >> I tried to fix this problem, can you please try the most recent version >> from my git tree. This now has this additional change: >> https://git.lede-project.org/?p=lede/hauke/staging.git;a=commitdiff;h=42a49cbca96875be43913688da60d637cbdff604 > > Tested on mikrotik rb2011 (2011r5) > > NAND working: > > [ 3.576007] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 > [ 3.582617] nand: Unknown NAND 128MiB 3,3V 8-bit > [ 3.587387] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 > [ 3.595261] Scanning device for bad blocks > [ 3.645341] Bad eraseblock 889 at 0x000006f20000 > [ 3.657026] Creating 3 MTD partitions on "ar934x-nfc": > [ 3.662371] 0x000000000000-0x000000040000 : "booter" > [ 3.669186] 0x000000040000-0x000000400000 : "kernel" > [ 3.676383] 0x000000400000-0x000008000000 : "ubi" > [ 3.687064] libphy: Fixed MDIO Bus: probed > > USB working, ethernet working, SFP not working. Hi, Was SFP working before? If it was working with kernel 4.4, what does not work any more? Hauke
Hauke Mehrtens <hauke@hauke-m.de> wrote: > On 10/09/2017 01:28 PM, Andrey Jr. Melnikov wrote: > > Hauke Mehrtens <hauke@hauke-m.de> wrote: > >> On 10/08/2017 01:31 PM, Andrey Jr. Melnikov wrote: > >>> Arjen de Korte <arjen+lede@de-korte.org> wrote: > >>>> Citeren Hauke Mehrtens <hauke@hauke-m.de>: [....] > > USB working, ethernet working, SFP not working. > Hi, > Was SFP working before? Don't know. There is four hardware revision G/L/LS/US/R5. Each board contains SPI bus (with flash and optional TouchScreen and LCD device), I2C bus, GPIO controlled POE. > If it was working with kernel 4.4, what does not work any more? Maybe it work for other hardware revision, but not for R5. Still investigate.