On 2012-06-10 5:36 PM, Daniel Golle wrote:
> I recently found an AudioCodes MP-202 VoIP-router which is ubiquitously
> available over here. It contains an AudioCodes AC496 SoC, some NOR flash and
> some SDRAM as well as 2 SLICs for analog phones.
> The AudioCodes AC49x series SoC are MIPS24Kc very similar to Texas Instruments
> AR7 Titan series SoCs.
> However, the address-space layout is a bit different, therefore I forked the 
> ar7
> target and refactored stuff accordingly.
> Then some pruning was done to remove lots of non-Titan-specific code from the
> sources.
> As the bootloader (PSPBoot claiming to run on an TNETV1050) allows defining
> mtd-partitions in the boot environment, I wrote a mtd partition parser which
> detects the mtd partitions in Linux according to what is stored in the
> bootloader's environment.
If it's just minor differences, the huge amount of code duplication is
probably a very bad idea. I'd rather see things unified, otherwise it's
way too easy for fixes done to one of the two to be lost on the other one.

> Yet, there are two things I can't get going in the way I'd like them to go:
> 
>  - the lzma-loader always crashes, however, the flash is big enough that this
>    doesn't really matter (for now)
> 
>  - during boot, the kernel claims that 9192k are reserved, leaving only a tiny
>    bit of memory to the user. This seems to be too much, the original firmware
>    of the MP-202 (Linux version 2.4.21openrg-rmk1) only claims 3900k reserved
>    during boot. Did Linux itself grow that much since 2.4? Or is there 
> something
>    wrong here?
My guess is that the memory before the kernel image isn't marked as
free. The load address is higher, so it marks more memory as reserved.
AR7 could probably use a similar fix.

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

Reply via email to