[LEDE-DEV] MikroTik RouterBoard ar71xx changes

Mathias Kresin dev at kresin.me
Wed Jan 11 01:19:02 PST 2017


11.01.2017 09:32, Felix Fietkau:
> On 2017-01-11 09:17, Cezary Jackiewicz wrote:
>> Dnia 2017-01-08, o godz. 14:54:33
>> Felix Fietkau <nbd at nbd.name> napisał(a):
>>
>>> Hi all,
>>>
>>> I've just pushed the code for converting ar71xx routerboard support to
>>> UBI + sysupgrade to my staging tree at:
>>> https://git.lede-project.org/?p=lede/nbd/staging.git;a=summary
>>>
>>> So far I've only managed to test it on RB 912UAG-5HPnD, other devices
>>> are still untested. If you have any affected hardware, please test the
>>> new code with a fresh build from that tree (make sure you reset your
>>> config) and let me know if it works.
>>>
>>> Installation is now done only over sysupgrade (from the initramfs
>>> image), the old wget2nand script and rootfs tarballs are gone.
>>
>> Boot from initramfs:
>>
>> RouterBoard 411U
>>
>> CPU frequency: 300 MHz
>>   Memory size:  32 MiB
>>     NAND size: 128 MiB
>>
>> Press any key within 2 seconds to enter setup
>> trying bootp protocol... OK
>> Got IP address: 192.168.1.134
>> resolved mac address E8:11:32:99:3D:A0
>> Gateway: 192.168.1.10
>> transfer started ................................................ transfer ok, time=2.79s
>> setting up elf image... OK
>> jumping to kernel code
>> [    0.000000] Linux version 4.4.40 (cezary at eko.one.pl) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2900-e5aeb4a) ) #0 Tue Jan 10 17:18:04 2017
>> [    0.000000] bootconsole [early0] enabled
>> ....
>> [    0.000000] Kernel command line: parts=1 boot_part_size=4194304 gpio=1855 HZ=150000000 mem=32M kmac=4C:5E:0C:31:B3:F5 board=411U hw_opt=00000000 boot=0 mlc=8 rootfstype=squashfs noinitrd
>> ....
>>
>> [    7.784959] m25p80 spi0.0: pm25lv512 (64 Kbytes)
>> [    7.840380] Creating 4 MTD partitions on "spi0.0":
>> [    7.897848] 0x000000000000-0x00000000b000 : "routerboot"
>> [    7.966111] 0x00000000b000-0x00000000c000 : "hard_config"
>> [    8.033665] 0x00000000d000-0x00000000f000 : "bios"
>> [    8.093852] 0x00000000f000-0x000000010000 : "soft_config"
>> [    8.161543] NAND flash driver for RouterBoard 4xx series version 0.2.0
>> [    8.239896] rb4xx_nand: write cmd failed, err=-22
>> [    8.296268] rb4xx_nand: write cmd failed, err=-22
>> [    8.352640] rb4xx_nand: write cmd failed, err=-22
>> [    8.409041] rb4xx_nand: write cmd failed, err=-22
>> [    8.465399] rb4xx_nand: write cmd failed, err=-22
>> [    8.521847] nand: second ID read did not match ec,f1 against 41,ec
>> [    8.595962] nand: No NAND device found
>> [    8.655044] libphy: ag71xx_mdio: probed
> This does not look like it something caused by changes in my staging
> tree, it may already be present in LEDE master. Could you please verify
> that and if it's the case, use git bisect to track down the issue to an
> individual commit?

Hey Felix, Hey Cezary,

this bug is already reported in 
https://bugs.lede-project.org/index.php?do=details&task_id=376.

The reporter was able to track down the breakage to 
https://git.lede-project.org/af79fdbe4af32a287798b579141204bda056b8aa 
("ar71xx: remove a non-upstream spi core patch") committed by felix.

Mathias



More information about the Lede-dev mailing list