I have a Lantiq Xway Danube Hub based on the 50712 SoC. It is unique in 
that it is the only board, afaik, with NOR (512k) and NAND (32MB) on the
 ebu. The NOR contains u-boot and configs, the NAND holds the image file.

Having spent several days attempting to adapt
 other 50702 devicetree files from Trunk, I need some assistance to move
 forward. The NAND is correctly picked up, but erase block checking 
fails completely. NOR probing just fails, on kernel 3.3.8 it is picked up by 
the JEDEC probe.

I would greatly appreciate your help/advise and will report my results.

TIA, Dermot.

Below my devicetree file and after that the bootlog.

Devicetree file:
/dts-v1/;

/include/ "danube.dtsi"

/ {
    model = "BTHH2B - BT Home Hub 2B";        /* SoC: Lantiq Danube-S PSB 50712 
@ 333MHz
 V1.3/1.5 */

    chosen {
        bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
    };

    memory@0 {                    /* RAM: Samsung K4H511638F 64MB */
        reg = <0x0 0x4000000>;
    };

    fpi@10000000 {
        #address-cells = <1>;
        #size-cells = <1>;
        localbus@0 {
            #address-cells = <2>;
            #size-cells = <1>;
            ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
   
             1 0 0x4000000 0x4000010>; /* addsel1 */
            compatible = "lantiq,localbus", "simple-bus";

            nor-boot@0 {                /* NOR Flash: Spansion S29AL004D 512KB 
*/
                compatible = "lantiq,nor";    /* "AMD AM29LV400BB" compatible 
on 3.3.8 */
                lantiq,cs = <0>;
                bank-width = <2>;
                reg = <0 0x0 0x80000>;
               
 #address-cells = <1>;
                #size-cells = <1>;

                partition@0 {
                    label = "uboot";
                    reg = <0x00000 0x40000>; /* 256KB */
                };

                partition@40000 {
                    label = "uboot_env";
                    reg = <0x40000 0x10000>; /* 64KB */
       
         };

                partition@50000 {
                    label = "rg_conf_1";
                    reg = <0x50000 0x10000>;
                };

                partition@60000 {
                    label = "rg_conf_2";
                    reg = <0x60000 0x10000>;
                };

           
     partition@70000 {
                    label = "rg_conf_factory";
                    reg = <0x70000 0x10000>;
                };
            };

            nand-parts@0 {                /* NAND Flash: Samsung 
K9F5608U0D-JIB0 32MB */
                compatible = "gen_nand", "lantiq,nand-xway";
                lantiq,cs = <1>;
                bank-width =
 <2>;
                reg = <1 0x0 0x2000000 >;
                #address-cells = <1>;
                #size-cells = <1>;

                partition@0 {
                    label = "art";         /* Atheros 9160 wifi b/g/n radio 
EEPROM */
                    reg = <0x00000 0x4000>;
                };

                partition@4000 {
   
                 label = "linux";
                    reg = <0x4000 0x2000000>;
                };
            };
        };

        gpio: pinmux@E100B10 {
            compatible = "lantiq,pinctrl-xway";
            pinctrl-names = "default";
            pinctrl-0 = <&state_default>;

            #gpio-cells = <2>;
            gpio-controller;
   
         reg = <0xE100B10 0xA0>;

            state_default: pinmux {
                stp {
                    lantiq,groups = "stp";
                    lantiq,function = "stp";
                };
                exin {
                    lantiq,groups = "exin1";
                    lantiq,function = "exin";
           
     };
                pci {
                    lantiq,groups = "gnt1";
                    lantiq,function = "pci";
                };
                conf_out {
                    lantiq,pins = "io4", "io5", "io6"; /* stp */
                    lantiq,open-drain;
                    lantiq,pull = <0>;
           
     };
            };
        };

        etop@E180000 {
            compatible = "lantiq,etop-xway";
            reg = <0xE180000 0x40000>;
            interrupt-parent = <&icu0>;
            interrupts = <73 78>;
            phy-mode = "mii";        /* DmcD 4feb13 changed rmii to mii */
            mac-address = [ 00 11 22 33 44 55 ];
        };

        stp0: stp@E100BB0 {
       
     #gpio-cells = <2>;
            compatible = "lantiq,gpio-stp-xway";
            gpio-controller;
            reg = <0xE100BB0 0x40>;

            lantiq,shadow = <0xfff>;
            lantiq,groups = <0x3>;
        };

        pci@E105400 {
            lantiq,bus-clock = <33333333>;
            interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
            interrupt-map =
 <
                                0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
            >;
            gpios-reset = <&gpio 21 0>;
            req-mask = <0x1>;        /* GNT1 */
        };

    };
};


Bootlog:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.02.04 01:58:06 =~=~=~=~=~=~=~=~=~=~=~=

 
Porta-Danube # tftpboot 81000000 x.image 

TFTP from server 192.168.1.10; our IP address is 192.168.1.11

Filename 'x.image'.

Load address: 0x81000000

Loading:
 *#################################################################

 #################################################################

 #################################################################

 #################################################################

 ##########################

done

Bytes transferred = 4194308 (400004 hex)

Porta-Danube # nand write 0x81000000 0x004000 0xe50000 

 
NAND write: device 0 offset 0x4000, size 0xe50000

 15007744 bytes written: OK

Porta-Danube # bootm 81000000 

## Booting image at 81000000 ...

   Image Name:   MIPS OpenWrt Linux-3.7.5

   Created:      2013-02-04   2:18:42 UTC

   Image Type:   MIPS Linux Kernel Image (unknown compression)

   Data Size:    1180079 Bytes =  1.1 MB

  
 Load Address: 80002000

   Entry Point:  80002000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

 
Starting kernel ...

 
[    0.000000] Linux version 3.7.5 (mac@home) (gcc version 
4.6.4 20121106 (prerelease) (Linaro GCC 4.6-2012.11) ) #58 Mon Feb 4 
02:18:31 GMT 2013 

[    0.000000] SoC: Danube rev 1.5 

[    0.000000] bootconsole [early0] enabled 

[    0.000000] CPU revision is: 00019641 (MIPS 24KEc) 

[    0.000000] Board: BTHH2B - BT Home Hub 2B 

[    0.000000] Determined physical RAM map: 

[    0.000000]  memory: 02000000 @ 00000000 (usable) 

[    0.000000] Initrd not found or empty - disabling initrd 

[    0.000000] Zone ranges: 


[    0.000000]   Normal   [mem 0x00000000-0x01ffffff] 

[    0.000000] Movable zone start for each node 

[    0.000000] Early memory node ranges 

[    0.000000]   node   0: [mem 0x00000000-0x01ffffff] 

[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes. 

[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 
bytes 

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 8128 

[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit 

[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes) 

[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 


[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

[    0.000000] __ex_table already sorted, skipping sort 

[    0.000000] Writing ErrCtl register=00057768 

[    0.000000] Readback ErrCtl register=00057768 

[    0.000000] Memory: 28780k/32768k available (2505k kernel code, 3988k 
reserved, 757k data, 184k init, 0k highmem) 

[    0.000000] NR_IRQS:256 

[    0.000000] CPU Clock: 333MHz 

[    0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368) 

[    0.036000] pid_max: default: 32768 minimum: 301 

[    0.040000] Mount-cache hash table entries: 512 

[    0.044000] pinctrl core: initialized pinctrl subsystem 

[    0.048000] NET: Registered
 protocol family 16 

[    0.068000] pinctrl-xway 1e100b10.pinmux: Init done 

[    0.072000] dma-xway 1e104100.dma: Init done - hw rev: 3, ports: 5, 
channels: 20 

[    0.100000] bio: create slab <bio-0> at 0 

[    0.108000] usbcore: registered new interface driver usbfs 

[    0.112000] usbcore: registered new interface driver hub 

[    0.116000] usbcore: registered new device driver usb 

[    0.120000] Switching to clocksource MIPS 

[    0.128000] NET: Registered protocol family 2 

[    0.136000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) 

[    0.140000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) 

[    0.148000] TCP: Hash tables configured (established
 1024 bind 1024) 

[    0.156000] TCP: reno registered 

[    0.156000] UDP hash table entries: 256 (order: 0, 4096 bytes) 

[    0.164000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) 

[    0.172000] NET: Registered protocol family 1 

[    0.176000] gptu: totally 6 16-bit timers/counters 

[    0.180000] gptu: misc_register on minor 63 

[    0.184000] gptu: succeeded to request irq 126 

[    0.188000] gptu: succeeded to request irq 127 

[    0.192000] gptu: succeeded to request irq 128 

[    0.200000] gptu: succeeded to request irq 129 

[    0.204000] gptu: succeeded to request irq 130 

[    0.208000] gptu: succeeded to request irq 131 


[    0.220000] squashfs: version 4.0 (2009/01/31) Phillip Lougher 

[    0.224000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. 

[    0.236000] msgmni has been set to 56 

[    0.240000] io scheduler noop registered 

[    0.244000] io scheduler deadline registered (default) 

[    0.248000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a 
lantiq,asc 

[    0.256000] console [ttyLTQ0] enabled, bootconsole disabled

[    0.256000] console [ttyLTQ0] enabled, bootconsole disabled 

[    0.272000] ltq-nor 10000000.nor-boot: probing failed

[    0.276000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 
32MiB 3,3V 8-bit), page size: 512, OOB size: 16


[    0.288000] Scanning device for bad blocks

[    0.292000] Bad eraseblock 0 at 0x000000000000

 
...... /* many bad eraseblocks  */

 
[    1.328000] Bad eraseblock 234 at 0x0000003a8000


[    1.580000] libphy: ltq_mii: probed

[    1.584000] eth0: ADM6996M model PHY found.

[    1.592000] eth0: attached PHY [Infineon ADM6996] 
(phy_addr=1e180000.etop-ff:00, irq=-1)

[    1.600000] PPP generic driver version 2.4.2

[    1.604000] wdt 1f8803f0.watchdog: Init done

[    1.608000] TCP: cubic registered

[    1.612000] NET: Registered protocol family 17

[    1.616000] 8021q: 802.1Q VLAN Support v1.8

[    1.624000] VFS: Cannot open root device "(null)" or unknown-block(0,0): 
error -6

[   
 1.628000] Please append a correct "root=" boot option; here are the available 
partitions:

[    1.636000] 1f00              16 mtdblock0  (driver?)

[    1.640000] 1f01           32752 mtdblock1  (driver?)

[    1.648000] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)                                     
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to