Hi everybody,

this box' brother is described here. The source code of the original firmware can be found at Arcadyan's web site (Backfire derivative, some parts are missing, alas).

Via infos from this thread,  I managed to get ssh and console access to this box and replace u-boot by a version without password check.

Now the next step is to get a real open OpenWrt running on this little jewel. So I experimented with Barrier Braker. Now I understand that my current main obstacle is creating an appropriate device tree source in target/linux/lantiq/dts/, which describes hardware specifics of this box.

Using .dts files from other Lantiq XRX200 boxes with NAND flash as template, I am already stuck at the point of getting flash access. I find the learning curve for understanding these device tree descriptions quite steep and would appreciate a lot if anyone could help (blogic?).

Following is my current .dts file which showed some positive results, and the console output produced when booting.

Please feel free to request specific details from me.

Cheers,
Arnold



/dts-v1/;

/include/ "vr9.dtsi"

/ {
    //model = "EasyBox904xDSL";
    //model = "FRITZ3370 - Fritz!Box WLAN 3370";

    chosen {
        bootargs = "console=ttyLTQ0,115200 root=/dev/mtdblock12 rootfstype=squashfs init=/bin/sh panic=1 ARNYTEST=9";
    };

    memory@0 {
        reg = <0x0 0x8000000>;
    };


    fpi@10000000 {
        localbus@0 {

            ranges = <0 0 0x4000000 0x3ffffff>;            // from EASY80920.dtsi / EASY80920NAND.dts

            nand-parts@0 {
                compatible = "gen_nand", "lantiq,nand-xway";
                bank-width = <2>;
                reg = <0 0x0 0x2000000>;
                #address-cells = <1>;
                #size-cells = <1>;
                lantiq,cs = <1>;                // from EASY80920.dtsi / EASY80920NAND.dts

                partition@0 {
                    label = "uboot";
                    reg = <0x0 0x40000>;
                };

                partition@40000 {
                    label = "rootfs1";
                    reg = <0x40000 0x3C00000>;
                };

                partition@3C40000 {
                    label = "kernel1";
                    reg = <0x3C40000 0x500000>;
                };

                partition@4140000 {
                    label = "tmp1";
                    reg = <0x4140000 0x100000>;
                };

                partition@4240000 {
                    label = "tmp2";
                    reg = <0x4240000 0x200000>;
                };

                partition@4440000 {
                    label = "sysconfig";
                    reg = <0x4440000 0x100000>;
                };

                partition@4540000 {
                    label = "ubootconfig";
                    reg = <0x4540000 0x100000>;
                };

                partition@4640000 {
                    label = "fwdiag";
                    reg = <0x4640000 0xC0000>;
                };

                partition@4700000 {
                    label = "lcdimage";
                    reg = <0x4700000 0x300000>;
                };

                partition@4A00000 {
                    label = "mfgconfig";
                    reg = <0x4A00000 0x100000>;
                };

                partition@4B00000 {
                    label = "sipdata";
                    reg = <0x4B00000 0x100000>;
                };

                partition@4C00000 {
                    label = "voice";
                    reg = <0x4C00000 0x4000000>;
                };

                partition@8C00000 {
                    label = "misc";
                    reg = <0x8C00000 0x13200000>;
                };

                partition@1BE00000 {
                    label = "rootfs2";
                    reg = <0x1BE00000 0x3c00000>;
                };

                partition@1FA00000 {
                    label = "kernel2";
                    reg = <0x1FA00000 0x500000>;
                };
            };
        };


//    Tried different things here in order to get flash running, but of no avail...
//        gpio: pinmux@E100B10 {
//            ...
//        };

    };
};


VR9 # tftp uImage
Using vr9 Switch device
TFTP from server 192.168.2.100; our IP address is 192.168.2.1
Filename 'uImage'.
Load address: 0x80800000
Loading: *#################################################################
 ##################################
done
Bytes transferred = 1446419 (161213 hex)
VR9 #
VR9 # bootm
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Created:      2015-05-23  13:14:41 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1446355 Bytes = 1.4 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.49 (arny@e6420) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r45620) ) #16 Fri May 22 22:09:38 CEST 2015
[    0.000000] SoC: VR9 rev 1.2 [    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019556 (MIPS 34Kc)
[    0.000000] Determined physical RAM map: 
[    0.000000]  memory: 08000000 @ 00000000 (usable) 
[    0.000000] Initrd not found or empty - disabling initrd 
[    0.000000] Zone ranges: 
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff] 
[    0.000000] Movable zone start for each node 
[    0.000000] Early memory node ranges 
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff] 
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. 
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512 
[    0.000000] Kernel command line: console=ttyLTQ0,115200 root=/dev/mtdblock12 rootfstype=squashfs init=/bin/sh panic=1 ARNYTEST=9 
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) 
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) 
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) 
[    0.000000] Writing ErrCtl register=0000d187 
[    0.000000] Readback ErrCtl register=0000d187 
[    0.000000] Memory: 125376k/131072k available (3044k kernel code, 5696k reserved, 1032k data, 200k init, 0k highmem) 
[    0.000000] NR_IRQS:256 [    0.000000] Setting up vectored interrupts 
[    0.000000] CPU Clock: 500MHz 
[    0.000000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088) 
[    0.032000] pid_max: default: 32768 minimum: 301 
[    0.036000] Mount-cache hash table entries: 512 
[    0.040000] pinctrl core: initialized pinctrl subsystem 
[    0.044000] NET: Registered protocol family 16 
[    0.056000] pinctrl-xway 1e100b10.pinmux: Init done 
[    0.060000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28 
[    0.064000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV 
[    0.068000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185] 
[    0.180000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193] 
[    0.280000] ifx_pcie_wait_phy_link_up timeout 
[    0.284000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185] 
[    0.396000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193] 
[    0.496000] ifx_pcie_wait_phy_link_up timeout 
[    0.500000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185] 
[    0.612000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193] 
[    0.712000] ifx_pcie_wait_phy_link_up timeout 
[    0.716000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185] 
[    0.828000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193] 
[    0.928000] ifx_pcie_wait_phy_link_up timeout 
[    0.932000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185] 
[    1.044000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193] 
[    1.144000] ifx_pcie_wait_phy_link_up timeout 
[    1.148000] pcie_rc_initialize link up failed!!!!! 
[    1.164000] bio: create slab <bio-0> at 0 
[    1.168000] usbcore: registered new interface driver usbfs 
[    1.172000] usbcore: registered new interface driver hub 
[    1.176000] usbcore: registered new device driver usb 
[    1.180000] Switching to clocksource MIPS 
[    1.188000] NET: Registered protocol family 2 
[    1.192000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) 
[    1.200000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) 
[    1.204000] TCP: Hash tables configured (established 1024 bind 1024) 
[    1.212000] TCP: reno registered 
[    1.216000] UDP hash table entries: 256 (order: 0, 4096 bytes) 
[    1.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) 
[    1.228000] NET: Registered protocol family 1 
[    1.232000] gptu: totally 6 16-bit timers/counters 
[    1.236000] gptu: misc_register on minor 63 
[    1.240000] gptu: succeeded to request irq 126 
[    1.244000] gptu: succeeded to request irq 127 
[    1.248000] gptu: succeeded to request irq 128 
[    1.256000] gptu: succeeded to request irq 129 
[    1.260000] gptu: succeeded to request irq 130 
[    1.264000] gptu: succeeded to request irq 131 
[    1.272000] Wired TLB entries for Linux read_c0_wired() = 0 
[    1.276000] config3 0x2424 MT 1 
[    1.276000] MVPControl 0x2, STLB 0 VPC 1 EVP 0 
[    1.276000] mvpconf0 0xb8008403, PVPE 1 PTC 3 M 1 
[    1.296000] squashfs: version 4.0 (2009/01/31) Phillip Lougher 
[    1.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. 
[    1.308000] msgmni has been set to 244 [    1.316000] io scheduler noop registered 
[    1.320000] io scheduler deadline registered (default) 
[    1.324000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a lantiq,asc 
[    1.332000] console [ttyLTQ0] enabled, bootconsole disabled
[    1.332000] console [ttyLTQ0] enabled, bootconsole disabled 
[    1.348000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    1.356000] Scanning device for bad blocks
[    1.396000] Bad eraseblock 528 at 0x000004200000
[    1.532000] Bad eraseblock 2582 at 0x0000142c0000
[    1.632000] 15 ofpart partitions found on MTD device 14000000.nand-parts
[    1.640000] Creating 15 MTD partitions on "14000000.nand-parts":
[    1.644000] 0x000000000000-0x000000040000 : "uboot"
[    1.652000] 0x000000040000-0x000003c40000 : "rootfs1"
[    1.656000] 0x000003c40000-0x000004140000 : "kernel1"
[    1.664000] 0x000004140000-0x000004240000 : "tmp1"
[    1.668000] 0x000004240000-0x000004440000 : "tmp2"
[    1.672000] 0x000004440000-0x000004540000 : "sysconfig"
[    1.680000] 0x000004540000-0x000004640000 : "ubootconfig"
[    1.684000] 0x000004640000-0x000004700000 : "fwdiag"
[    1.688000] 0x000004700000-0x000004a00000 : "lcdimage"
[    1.696000] 0x000004a00000-0x000004b00000 : "mfgconfig"
[    1.700000] 0x000004b00000-0x000004c00000 : "sipdata"
[    1.708000] 0x000004c00000-0x000008c00000 : "voice"
[    1.712000] 0x000008c00000-0x00001be00000 : "misc"
[    1.716000] 0x00001be00000-0x00001fa00000 : "rootfs2"
[    1.724000] 0x00001fa00000-0x00001ff00000 : "kernel2"
[    1.736000] wdt 1f8803f0.watchdog: Init done
[    1.740000] TCP: cubic registered
[    1.740000] NET: Registered protocol family 17
[    1.748000] 8021q: 802.1Q VLAN Support v1.8
[    1.756000] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[    1.760000] __nand_correct_data: uncorrectable ECC error
[    1.760000] __nand_correct_data: uncorrectable ECC error[    1.772000] end_request: I/O error, dev mtdblock12, sector 0
[    1.776000] SQUASHFS error: squashfs_read_data failed to read block 0x0
[    1.784000] SQUASHFS error: unable to read squashfs_super_block
[    1.788000] VFS: Cannot open root device "mtdblock12" or unknown-block(31,12): error -5
[    1.796000] Please append a correct "root=" boot option; here are the available partitions:
[    1.804000] 1f00             256 mtdblock0  (driver?)
[    1.812000] 1f01           61440 mtdblock1  (driver?)
[    1.816000] 1f02            5120 mtdblock2  (driver?)
[    1.820000] 1f03            1024 mtdblock3  (driver?)
[    1.828000] 1f04            2048 mtdblock4  (driver?)
[    1.832000] 1f05            1024 mtdblock5  (driver?)
[    1.836000] 1f06            1024 mtdblock6  (driver?)
[    1.840000] 1f07             768 mtdblock7  (driver?)
[    1.848000] 1f08            3072 mtdblock8  (driver?)
[    1.852000] 1f09            1024 mtdblock9  (driver?)
[    1.856000] 1f0a            1024 mtdblock10  (driver?)
[    1.860000] 1f0b           65536 mtdblock11  (driver?)
[    1.868000] 1f0c          313344 mtdblock12  (driver?)
[    1.872000] 1f0d           61440 mtdblock13  (driver?)
[    1.876000] 1f0e            5120 mtdblock14  (driver?)
[    1.884000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,12)