[OpenWrt-Devel] Mikrotik ar71xx -> ath79 port

Christopher Hill ch6574 at gmail.com
Tue Feb 18 22:41:34 EST 2020


On 2/17/20 2:30 PM, Adrian Schmutzler wrote:
>> -----Original Message-----
>> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org] On
>> Behalf Of Christopher Hill
>> Sent: Montag, 17. Februar 2020 16:03
>> To: openwrt-devel at lists.openwrt.org
>> Subject: [OpenWrt-Devel] Mikrotik ar71xx -> ath79 port
>>
>> Hi,
>>
>> New here, and am looking for some advice on porting an existing device
>> to ath79 - specifically a Mikrotik RB493G (which is NAND).
>>
>> The area I'm looking for guidance / tips on is getting the lzma-loader
>> to boot the new kernel. I have compiled a new image* and I can tftp boot
>> this and see on the serial console the lzma-loader running and
>> decompressing the kernel and then starting it... but then nothing
>> happens next.
> 
> Have a look at the annotations I put into your repo. It looks like you have mistaken size for partition endings in the DTS.
> I remember @rogerpueyo also had problems booting his device due to a wrong partition setup. Maybe fixing the partitions will be enough ...
> 
> Best
> 
> Adrian
> 

Thanks for pointing out the address vs. size confusion I had run into. I
fixed them up and re-built, but still nothing.

However after fiddling with the build options and turning on lzma
compression for the "ramdisk", output has now started to appear on the
serial console.

I wonder if this is something I should/could set in the Makefile?


[    0.000000] Linux version 4.19.101 (openwrt at home.lan) (gcc version
8.3.0 (OpenWrt GCC 8.3.0 r12212-39a49c2d6a)) #0 Wed Feb 19 02:56:24 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD RB493G
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd

<snip>

[    3.748527] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.755514] console [ttyS0] disabled
[    3.759186] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 10,
base_baud = 10625000) is a 16550A
[    3.767997] console [ttyS0] enabled
[    3.767997] console [ttyS0] enabled
[    3.774948] bootconsole [early0] disabled
[    3.774948] bootconsole [early0] disabled
[    3.789083] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[    3.795286] m25p80: probe of spi0.0 failed with error -2


Then it halts. However this is good progress!


Regards,
Chris

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list