[OpenWrt-Devel] [PATCH] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

Oswald Buddenhagen oswald.buddenhagen at gmx.de
Wed May 18 17:00:09 EDT 2016

On Wed, May 18, 2016 at 01:19:59PM +0200, Mathias Kresin wrote:
> But I need to identify the boot_sel pins first. I have looked at it
> only briefly and was only able to identify one of the boot_sel pins:
> R77. Unfortunately this pin alone doesn't switch the SoC to UART mode.
> Did you found already the other pins?
no, i didn't bother with analyzing the hardware beyond soft-probing the
gpios to find some led and button pins. the dts is a copy&paste job from
the wiki (which in turn is "derived" from another dts), with a lot of
studying and trial and error to get the bogus parts out of it, and some
polishing and adjustments to recent changes.

you probably noticed that the bootloader is able to dump the dram
registers, which sounds like a nice perk.

> > +                                       partition at 20000 {
> > +                                               label = "stuff";
> > +                                               reg = <0x20000 0x70000>;
> > +                                       };
> Please add the real layout here and use proper names for the partitions!
well, i can do that, but the partitions are entirely meaningless in the
used setup.

> > +
> > +                                       partition at 90000 {
> > +                                               label = "rootfs_data";
> > +                                               reg = <0x90000 0x3B0000>;
> > +                                       };
> > +
> > +                                       partition at 440000 {
> > +                                               label = "firmware";
> > +                                               reg = <0x440000 0x3B0000>;
> > +                                       };
> Assuming you're using the brnboot recovery to flash the firmware, this
> wont work. brnboot recovery writes alternating to both partitions and
> stores the current active one in the Primary Setting partition
> (0x80000).
yes. i always first entered the bootloader console, set the active
partition to 0 (so it would overwrite 1), and only then booted the
recovery firmware.

i also had to disable the partition splitter which would use the few
kilobytes behind the image to create rootfs_data.

not a particularly smart setup in retrospect, but that's what the wiki
page maneuvered me into, and i didn't want to invest yet more time in
figuring out alternatives.

> My patch to use the current active partition as firmware partition
> was merged lately to OpenWrt.
i know, that's what i mentioned in the other patch.

> Have a look at the VGV7510KW22BRN.dts for reference.
i'll do that if you don't beat me to it (which you can easily do if you
plan to seriously work on this - beyond email, this is a limited weekend
project for me).

i think i also know why rfkill doesn't work: i forgot to change the
keycode when i decided to switch the key's usage from wps to rfkill.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list