Welcome! Log In Create A New Profile

Advanced

armada 370 (88f6710) mainline uboot support

Posted by wacke 
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 03:03AM
And the boot log:
[    0.000000] Booting Linux on physical CPU 0x0                                                                                                                                       
[    0.000000] Linux version 4.20.6-mvebu-tld-1 (root@lam-mint19) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #2 SMP PREEMPT Tue Feb 5 16:14:01 PST 2019                 
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d                                                                                                         
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache                                                                                                         
[    0.000000] OF: fdt: Machine model: RTNAS V3                                                                                                                                        
[    0.000000] printk: bootconsole [earlycon0] enabled                                                                                                                                 
[    0.000000] Memory policy: Data cache writeback                                                                                                                                     
[    0.000000] On node 0 totalpages: 262144                                                                                                                                            
[    0.000000]   Normal zone: 1536 pages used for memmap                                                                                                                               
[    0.000000]   Normal zone: 0 pages reserved                                                                                                                                         
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63                                                                                                                              
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15                                                                                                                              
[    0.000000] CPU: All CPU(s) started in SVC mode.                                                                                                                                    
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0                                                                                           
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728                                                                                                      
[    0.000000] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096                                                                                                                    
[    0.000000] pcpu-alloc: [0] 0                                                                                                                                                       
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608                                                                                                           
[    0.000000] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial                                                                                
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)                                                                                                        
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)                                                                                                          
[    0.000000] Memory: 1017148K/1048576K available (9216K kernel code, 799K rwdata, 2356K rodata, 1024K init, 332K bss, 31428K reserved, 0K cma-reserved, 262144K highmem)             
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                                                                                                                       
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)                                                                                                                       
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)                                                                                                                       
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                                                                                                                       
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)                                                                                                                       
                     .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)                                                                                                                      
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)                                                                                                                       
                     .data : 0x(ptrval) - 0x(ptrval)   ( 800 kB)                                                                                                                       
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 333 kB)                                                                                                                       
[    0.000000] rcu: Preemptible hierarchical RCU implementation.                                                                                                                       
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.                                                                                                           
[    0.000000] 
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.                                                                                                  
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1                                                                                                            
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16                                                                                                                         
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB                                                                                                                         
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302                                                                                                                        
[    0.000000] Switching to timer-based delay loop, resolution 53ns                                                                                                                    
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns                                                                                              
[    0.007895] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns                                                           
[    0.019572] Console: colour dummy device 80x30                                                                                                                                      
[    0.024022] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)                                                                  
[    0.034367] pid_max: default: 32768 minimum: 301                                                                                                                                    
[    0.039156] LSM: Security Framework initializing                                                                                                                                    
[    0.043836] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                             
[    0.050441] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                        
[    0.058249] CPU: Testing write buffer coherency: ok                                                                                                                                 
[    0.063426] CPU0: thread -1, cpu 0, socket -1, mpidr 0                                                                                                                              
[    0.118920] Setting up static identity map for 0x100000 - 0x100060                                                                                                                  
[    0.125410] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1                                                                                                                              
[    0.130684] mvebu-pmsu: Initializing Power Management Service Unit                                                                                                                  
[    0.148859] rcu: Hierarchical SRCU implementation.                                                                                                                                  
[    0.188860] smp: Bringing up secondary CPUs ...                                                                                                                                     
[    0.193379] smp: Brought up 1 node, 1 CPU                                                                                                                                           
[    0.197371] SMP: Total of 1 processors activated (37.39 BogoMIPS).                                                                                                                  
[    0.203553] CPU: All CPU(s) started in SVC mode.                                                                                                                                    
[    0.209017] devtmpfs: initialized                                                                                                                                                   
[    0.219045] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6                                                                                                 
[    0.227187] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns                                                                        
[    0.237273] futex hash table entries: 256 (order: 2, 16384 bytes)                                                                                                                   
[    0.243642] prandom: seed boundary self test passed                                                                                                                                 
[    0.251321] prandom: 100 self tests passed                                                                                                                                          
[    0.255402] pinctrl core: initialized pinctrl subsystem                                                                                                                             
[    0.262365] NET: Registered protocol family 16                                                                                                                                      
[    0.267258] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                                                                          
[    0.275386] audit: initializing netlink subsys (disabled)                                                                                                                           
[    0.282509] cpuidle: using governor ladder                                                                                                                                          
[    0.286637] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1                                                                                                
[    0.295451] cpuidle: using governor menu                                                                                                                                            
[    0.299731] hw-breakpoint: debug architecture 0x4 unsupported.                                                                                                                      
[    0.399958] vgaarb: loaded                                                                                                                                                          
[    0.402970] SCSI subsystem initialized                                                                                                                                              
[    0.409262] libata version 3.00 loaded.                                                                                                                                             
[    0.409526] usbcore: registered new interface driver usbfs                                                                                                                          
[    0.415033] usbcore: registered new interface driver hub                                                                                                                            
[    0.421584] usbcore: registered new device driver usb                                                                                                                               
[    0.427532] media: Linux media interface: v0.10                                                                                                                                     
[    0.432797] videodev: Linux video capture interface: v2.00                                                                                                                          
[    0.439063] pps_core: LinuxPPS API ver. 1 registered                                                                                                                                
[    0.444008] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>                                                                                
[    0.453668] PTP clock support registered                                                                                                                                            
[    0.460182] clocksource: Switched to clocksource armada_370_xp_clocksource                                                                                                          
[    0.537535] VFS: Disk quotas dquot_6.6.0                                                                                                                                            
[    0.541569] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)                                                                                                         
[    0.572031] NET: Registered protocol family 2                                                                                                                                       
[    0.577584] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)                                                                                                 
[    0.585912] TCP established hash table entries: 8192 (order: 3, 32768 bytes)                                                                                                        
[    0.593288] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)                                                                                                               
[    0.599764] TCP: Hash tables configured (established 8192 bind 8192)                                                                                                                
[    0.606300] UDP hash table entries: 512 (order: 2, 16384 bytes)                                                                                                                     
[    0.612281] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)                                                                                                                
[    0.618806] NET: Registered protocol family 1                                                                                                                                       
[    0.653951] RPC: Registered named UNIX socket transport module.                                                                                                                     
[    0.659847] RPC: Registered udp transport module.                                                                                                                                   
[    0.664615] RPC: Registered tcp transport module.                                                                                                                                   
[    0.669298] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                                               
[    0.675733] PCI: CLS 0 bytes, default 64                                                                                                                                            
[    0.675948] Unpacking initramfs...                                                                                                                                                  
[    1.103418] Freeing initrd memory: 7828K                                                                                                                                            
[    1.107507] NetWinder Floating Point Emulator V0.97 (double precision)                                                                                                              
[    1.114426] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available                                                                                            
[    1.125381] Initialise system trusted keyrings                                                                                                                                      
[    1.129845] Key type blacklist registered                                                                                                                                           
[    1.135309] workingset: timestamp_bits=30 max_order=18 bucket_order=0                                                                                                               
[    1.142003] zbud: loaded                                                                                                                                                            
[    1.155546] NFS: Registering the id_resolver key type                                                                                                                               
[    1.160819] Key type id_resolver registered                                                                                                                                         
[    1.164985] Key type id_legacy registered                                                                                                                                           
[    1.168988] nfs4filelayout_init: NFSv4 File Layout Driver Registering...                                                                                                            
[    1.175758] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).                                                                                                                
[    1.182386] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.                                                                                      
[    1.190003] orangefs_debugfs_init: called with debug mask: :none: :0:                                                                                                               
[    1.196800] orangefs_init: module version upstream loaded                                                                                                                           
[    1.330708] Key type asymmetric registered                                                                                                                                          
[    1.334794] Asymmetric key parser 'x509' registered                                                                                                                                 
[    1.339714] bounce: pool size: 64 pages                                                                                                                                             
[    1.343896] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)                                                                                                    
[    1.351464] io scheduler noop registered                                                                                                                                            
[    1.355371] io scheduler deadline registered                                                                                                                                        
[    1.359661] io scheduler cfq registered (default)                                                                                                                                   
[    1.366830] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver                                                                                                         
[    1.381524] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00                                                                                                            
[    1.388208] pci_bus 0000:00: root bus resource [bus 00-ff]                                                                                                                          
[    1.394096] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]                                                                                                          
[    1.401259] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]                                                                                                                 
[    1.407503] pci_bus 0000:00: scanning bus                                                                                                                                           
[    1.407632] pci 0000:00:01.0: [11ab:6710] type 01 class 0x060400                                                                                                                    
[    1.407668] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]                                                                                                            
[    1.408130] pci 0000:00:02.0: [11ab:6710] type 01 class 0x060400                                                                                                                    
[    1.408159] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]                                                                                                            
[    1.409516] pci_bus 0000:00: fixups for bus                                                                                                                                         
[    1.409533] PCI: bus0: Fast back to back transfers disabled                                                                                                                         
[    1.415479] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0                                                                                                            
[    1.415489] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring                                                                                             
[    1.423538] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0                                                                                                            
[    1.423545] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring                                                                                             
[    1.431586] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1                                                                                                            
[    1.431834] pci_bus 0000:01: scanning bus                                                                                                                                           
[    1.431872] pci 0000:01:00.0: [168c:0030] type 00 class 0x028000                                                                                                                    
[    1.431919] pci 0000:01:00.0: reg 0x10: [mem 0x40000000-0x4001ffff 64bit]                                                                                                           
[    1.431961] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]                                                                                                            
[    1.432059] pci 0000:01:00.0: supports D1 D2                                                                                                                                        
[    1.432066] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold                                                                                                             
[    1.432076] pci 0000:01:00.0: PME# disabled                                                                                                                                         
[    1.461366] pci_bus 0000:01: fixups for bus                                                                                                                                         
[    1.461378] PCI: bus1: Fast back to back transfers enabled                                                                                                                          
[    1.466842] pci_bus 0000:01: bus scan returning with max=01                                                                                                                         
[    1.466853] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01                                                                                                             
[    1.466869] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1                                                                                                            
[    1.467126] pci_bus 0000:02: scanning bus                                                                                                                                           
[    1.467169] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000                                                                                                                    
[    1.467214] pci 0000:02:00.0: reg 0x10: [mem 0x42000000-0x421fffff 64bit]                                                                                                           
[    1.467256] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]                                                                                                            
[    1.467347] pci 0000:02:00.0: supports D1 D2                                                                                                                                        
[    1.467354] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold                                                                                                             
[    1.467363] pci 0000:02:00.0: PME# disabled                                                                                                                                         
[    1.521341] pci_bus 0000:02: fixups for bus                                                                                                                                         
[    1.521353] PCI: bus2: Fast back to back transfers enabled                                                                                                                          
[    1.526817] pci_bus 0000:02: bus scan returning with max=02                                                                                                                         
[    1.526828] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02                                                                                                             
[    1.526839] pci_bus 0000:00: bus scan returning with max=02                                                                                                                         
[    1.526909] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8000000-0xf81fffff]                                                                                                          
[    1.533789] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]                                                                                                          
[    1.540655] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8300000-0xf83fffff pref]                                                                                                     
[    1.547935] pci 0000:00:02.0: BAR 15: assigned [mem 0xf8400000-0xf84fffff pref]                                                                                                     
[    1.555230] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8500000-0xf85007ff pref]                                                                                                      
[    1.562439] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8600000-0xf86007ff pref]                                                                                                      
[    1.569636] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8200000-0xf821ffff 64bit]                                                                                                     
[    1.576941] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8300000-0xf830ffff pref]                                                                                                      
[    1.584149] pci 0000:00:01.0: PCI bridge to [bus 01]                                                                                                                                
[    1.589098] pci 0000:00:01.0:   bridge window [mem 0xf8200000-0xf82fffff]                                                                                                           
[    1.595874] pci 0000:00:01.0:   bridge window [mem 0xf8300000-0xf83fffff pref]                                                                                                      
[    1.603087] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8000000-0xf81fffff 64bit]                                                                                                     
[    1.610384] pci 0000:02:00.0: BAR 0: error updating (0xf8000004 != 0xffffffff)
[    1.617575] pci 0000:02:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)                                                                                                   
[    1.625043] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    1.632250] pci 0000:00:02.0: PCI bridge to [bus 02]                                                                                                                                
[    1.637196] pci 0000:00:02.0:   bridge window [mem 0xf8000000-0xf81fffff]                                                                                                           
[    1.643973] pci 0000:00:02.0:   bridge window [mem 0xf8400000-0xf84fffff pref]                                                                                                      
[    1.651269] pcieport 0000:00:01.0: assign IRQ: got 0                                                                                                                                
[    1.651286] pcieport 0000:00:01.0: enabling device (0140 -> 0142)                                                                                                                   
[    1.657608] pcieport 0000:00:02.0: assign IRQ: got 0                                                                                                                                
[    1.657623] pcieport 0000:00:02.0: enabling device (0140 -> 0142)                                                                                                                   
[    1.664863] mv_xor f1060800.xor: Marvell shared XOR driver                                                                                                                          
[    1.731263] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )                                                                                                     
[    1.738959] mv_xor f1060900.xor: Marvell shared XOR driver                                                                                                                          
[    1.801296] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )                                                                                                     
[    1.957209] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled                                                                                                                
[    1.967525] printk: console [ttyS0] disabled                                                                                                                                        
[    1.993249] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 18, base_baud = 12500000) is a 16550A                                                                                  
[    2.002417] printk: console [ttyS0] enabled                                                                                                                                         
[    2.010873] printk: bootconsole [earlycon0] disabled                                                                                                                                
[    2.023004] sata_mv f10a0000.sata: version 1.28                                                                                                                                     
[    2.023214] sata_mv f10a0000.sata: slots 32 ports 2                                                                                                                                 
[    2.041592] scsi host0: sata_mv                                                                                                                                                     
[    2.055665] scsi host1: sata_mv                                                                                                                                                     
[    2.059226] ata1: SATA max UDMA/133 irq 27                                                                                                                                          
[    2.063636] ata2: SATA max UDMA/133 irq 27                                                                                                                                          
[    2.069630] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68                                                                                                                
[    2.076151] nand: Micron MT29F32G08CBACAWP                                                                                                                                          
[    2.080704] nand: 4096 MiB, MLC, erase size: 1024 KiB, page size: 4096, OOB size: 224                                                                                               
[    2.088585] nand: WARNING: pxa3xx_nand-0: the ECC used on your system is too weak compared to the one required by the NAND chip
[    2.101436] Bad block table found at page 1048320, version 0x01                                                                                                                     
[    2.108159] Bad block table found at page 1048064, version 0x01                                                                                                                     
[    2.114591] nand_read_bbt: bad block at 0x000005a00000                                                                                                                              
[    2.119754] nand_read_bbt: bad block at 0x000005b00000                                                                                                                              
[    2.125249] 7 fixed-partitions partitions found on MTD device pxa3xx_nand-0                                                                                                         
[    2.132394] Creating 7 MTD partitions on "pxa3xx_nand-0":                                                                                                                           
[    2.137834] 0x000000000000-0x000000400000 : "u-boot"                                                                                                                                
[    2.144516] 0x000000400000-0x000000800000 : "uboot_env"                                                                                                                             
[    2.151771] 0x000000800000-0x000000c00000 : "vendor"                                                                                                                                
[    2.158618] 0x000000c00000-0x000001800000 : "unused"                                                                                                                                
[    2.165604] 0x000001800000-0x000001c00000 : "kernel"                                                                                                                                
[    2.172692] 0x000001c00000-0x000040000000 : "ubi"                                                                                                                                   
[    2.180754] 0x000040000000-0x0000fbc00000 : "syscfg"                                                                                                                                
[    2.194689] libphy: Fixed MDIO Bus: probed                                                                                                                                          
[    2.203090] libphy: orion_mdio_bus: probed                                                                                                                                          
[    2.212397] mvneta f1074000.ethernet eth0: Using random mac address 6a:36:83:ae:38:9c                                                                                               
[    2.222843] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                                                                              
[    2.229446] ehci-pci: EHCI PCI platform driver                                                                                                                                      
[    2.234535] ehci-orion: EHCI orion driver                                                                                                                                           
[    2.238761] orion-ehci f1050000.usb: EHCI Host Controller                                                                                                                           
[    2.244668] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1                                                                                                  
[    2.252591] orion-ehci f1050000.usb: irq 24, io mem 0xf1050000                                                                                                                      
[    2.280239] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00                                                                                                                     
[    2.286463] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20                                                                                          
[    2.294844] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                      
[    2.302170] usb usb1: Product: EHCI Host Controller                                                                                                                                 
[    2.307074] usb usb1: Manufacturer: Linux 4.20.6-mvebu-tld-1 ehci_hcd                                                                                                               
[    2.313586] usb usb1: SerialNumber: f1050000.usb                                                                                                                                    
[    2.319075] hub 1-0:1.0: USB hub found                                                                                                                                              
[    2.323152] hub 1-0:1.0: 1 port detected                                                                                                                                            
[    2.327940] orion-ehci f1051000.usb: EHCI Host Controller                                                                                                                           
[    2.333740] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2                                                                                                  
[    2.341602] orion-ehci f1051000.usb: irq 25, io mem 0xf1051000                                                                                                                      
[    2.370213] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00                                                                                                                     
[    2.376452] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20                                                                                          
[    2.384811] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                      
[    2.392115] ata1: SATA link down (SStatus 0 SControl F300)                                                                                                                          
[    2.397682] usb usb2: Product: EHCI Host Controller                                                                                                                                 
[    2.402623] usb usb2: Manufacturer: Linux 4.20.6-mvebu-tld-1 ehci_hcd                                                                                                               
[    2.409226] usb usb2: SerialNumber: f1051000.usb                                                                                                                                    
[    2.414671] hub 2-0:1.0: USB hub found                                                                                                                                              
[    2.418666] hub 2-0:1.0: 1 port detected                                                                                                                                            
[    2.424176] usbcore: registered new interface driver usblp                                                                                                                          
[    2.430762] usbcore: registered new interface driver usb-storage                                                                                                                    
[    2.437452] mousedev: PS/2 mouse device common for all mice                                                                                                                         
[    2.444636] i2c /dev entries driver                                                                                                                                                 
[    2.471600] orion_wdt: Initial timeout 229 sec                                                                                                                                      
[    2.528614] marvell-cesa f1090000.crypto: CESA device successfully registered                                                                                                       
[    2.536986] hidraw: raw HID events driver (C) Jiri Kosina                                                                                                                           
[    2.543601] usbcore: registered new interface driver usbhid                                                                                                                         
[    2.549205] usbhid: USB HID core driver                                                                                                                                             
[    2.554010] drop_monitor: Initializing network drop monitor service                                                                                                                 
[    2.561164] NET: Registered protocol family 10                                                                                                                                      
[    2.576745] Segment Routing with IPv6                                                                                                                                               
[    2.580716] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver                                                                                                                     
[    2.588504] NET: Registered protocol family 17                                                                                                                                      
[    2.604281] 8021q: 802.1Q VLAN Support v1.8                                                                                                                                         
[    2.608584] Key type dns_resolver registered                                                                                                                                        
[    2.613281] ThumbEE CPU extension supported.                                                                                                                                        
[    2.617599] Registering SWP/SWPB emulation handler                                                                                                                                  
[    2.624711] registered taskstats version 1                                                                                                                                          
[    2.628844] Loading compiled-in X.509 certificates                                                                                                                                  
[    2.634631] zswap: loaded using pool lzo/zbud                                                                                                                                       
[    2.684513] Key type big_key registered                                                                                                                                             
[    2.711242] Key type encrypted registered                                                                                                                                           
[    2.719308] input: gpio-keys as /devices/platform/gpio-keys/input/input0                                                                                                            
[    2.727877] hctosys: unable to open rtc device (rtc0)                                                                                                                               
[    2.910750] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)                                                                                                                 
[    2.919942] ata2.00: ATA-7: JMicron, 100415, max UDMA/133                                                                                                                           
[    2.925451] ata2.00: 7856128 sectors, multi 1: LBA48                                                                                                                                
[    2.933599] ata2.00: configured for UDMA/133                                                                                                                                        
[    2.949336] scsi 1:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5                                                                                            
[    2.959957] sd 1:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)                                                                                                   
[    2.969846] sd 1:0:0:0: [sda] Write Protect is off                                                                                                                                  
[    2.974826] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00                                                                                                                               
[    2.975130] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA                                                                                
[    2.988453]  sda: sda1 sda2                                                                                                                                                         
[    2.994917] sd 1:0:0:0: [sda] Attached SCSI disk                                                                                                                                    
[    3.001801] Freeing unused kernel memory: 1024K                                                                                                                                     
[    3.022478] Checked W+X mappings: passed, no W+X pages found                                                                                                                        
[    3.028185] Run /init as init process                                                                                                                                               
[    3.215410] random: systemd-udevd: uninitialized urandom read (16 bytes read)                                                                                                       
[    3.239988] random: udevadm: uninitialized urandom read (16 bytes read)                                                                                                             
[    3.248050] random: systemd-udevd: uninitialized urandom read (16 bytes read)                                                                                                       
[    4.400486] mv88e6085 f1072004.mdio-mii:00: switch 0x1710 detected: Marvell 88E6171, revision 2                                                                                     
[    4.472331] libphy: mdio: probed                                                                                                                                                    
[    5.065007] mv88e6085 f1072004.mdio-mii:00 lan0 (uninitialized): PHY [!soc!internal-regs!mdio@72004!switch@0!mdio:00] driver [Generic PHY]                                          
[    5.127569] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [!soc!internal-regs!mdio@72004!switch@0!mdio:01] driver [Generic PHY]                                          
[    5.186139] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [!soc!internal-regs!mdio@72004!switch@0!mdio:02] driver [Generic PHY]                                          
[    5.243604] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [!soc!internal-regs!mdio@72004!switch@0!mdio:03] driver [Generic PHY]                                          
[    5.301442] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [!soc!internal-regs!mdio@72004!switch@0!mdio:04] driver [Generic PHY]                                           
[    5.360025] DSA: tree 0 setup                                                                                                                                                       
[   17.402820] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem                                                                                                      
[   17.426615] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)                                                                                                 
[   17.520818] random: fast init done                                                                                                                                                  
[   21.510834] sd 1:0:0:0: Attached scsi generic sg0 type 0                                                                                                                            
[   22.088913] cfg80211: Loading compiled-in X.509 certificates for regulatory database                                                                                                
[   22.211103] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'                                                                                                              
[   22.218572] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   22.234851] cfg80211: failed to load regulatory.db                                                                                                                                  
[   22.554686] ath10k_pci 0000:02:00.0: of_irq_parse_pci: failed with rc=134
[   22.627494] ath10k_pci 0000:02:00.0: assign IRQ: got 0
[   22.640734] pcieport 0000:00:02.0: enabling bus mastering                                                                                                                           
[   22.648607] ath9k 0000:01:00.0: assign IRQ: got 68                                                                                                                                  
[   22.648641] pcieport 0000:00:01.0: enabling bus mastering                                                                                                                           
[   22.648660] ath9k 0000:01:00.0: enabling device (0000 -> 0002)                                                                                                                      
[   22.670354] ath10k_pci 0000:02:00.0: Refused to change power state, currently in D3                                                                                                 
[   22.769940] ath9k 0000:01:00.0: enabling bus mastering                                                                                                                              
[   22.991462] ath10k_pci 0000:02:00.0: failed to wake up device : -110
[   22.997921] ath10k_pci 0000:02:00.0: disabling bus mastering                                                                                                                        
[   23.070625] ath10k_pci: probe of 0000:02:00.0 failed with error -110
[   23.362709] ath: EEPROM regdomain: 0x64                                                                                                                                             
[   23.362720] ath: EEPROM indicates we should expect a direct regpair map                                                                                                             
[   23.362735] ath: Country alpha2 being used: 00                                                                                                                                      
[   23.362739] ath: Regpair used: 0x64                                                                                                                                                 
[   23.510743] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'                                                                                                           
[   23.512195] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xf1140000, irq=68                                                                                                             
[   25.329917] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0                                                                                                                           
[   26.589216] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro                                                                                                                     
[   30.727704] mvneta f1074000.ethernet eth0: configuring for fixed/rgmii-id link mode                                                                                                 
[   30.736225] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready                                                                                                                      
[   30.742414] mvneta f1074000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off                                                                                               
[   30.757921] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready                                                                                                                 
[   31.150493] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.                                    
[   31.270506] br0: port 1(lan0) entered blocking state                                                                                                                                
[   31.282053] br0: port 1(lan0) entered disabled state                                                                                                                                
[   31.307766] device lan0 entered promiscuous mode
[   31.321776] device eth0 entered promiscuous mode
[   31.350560] mv88e6085 f1072004.mdio-mii:00 lan0: configuring for phy/gmii link mode
[   31.397929] br0: port 2(lan1) entered blocking state
[   31.410423] br0: port 2(lan1) entered disabled state
[   31.421562] device lan1 entered promiscuous mode
[   31.444969] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii link mode
[   31.500471] br0: port 3(lan2) entered blocking state
[   31.510517] br0: port 3(lan2) entered disabled state
[   31.532365] device lan2 entered promiscuous mode
[   31.557377] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii link mode
[   31.605288] br0: port 4(lan3) entered blocking state
[   31.610532] br0: port 4(lan3) entered disabled state
[   31.618055] device lan3 entered promiscuous mode
[   31.631136] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii link mode
[   31.651282] IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
[  139.601023] random: crng init done
[  139.604462] random: 7 urandom warning(s) missed due to ratelimiting
[  139.621194] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  139.668151] mv88e6085 f1072004.mdio-mii:00 wan: configuring for phy/gmii link mode
[  139.676856] IPv6: ADDRCONF(NETDEV_UP): wan: link is not ready
[  143.873266] mv88e6085 f1072004.mdio-mii:00 wan: Link is Up - 1Gbps/Full - flow control rx/tx
[  143.881913] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 04:51PM
wacke,

> I've booted up my box with this dts:
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> /*
> * Device Tree file for Marvell Armada 370
> Reference Design board
> * (RD-88F6710-A1)

Why do you choose this DTS? is it closer to your box than one you used before?

> I'm confusing about the 6171 switch's base
> address, my box must set to 0x0, but in the kernel
> document , it said that the 6171 switch used 0x10
> base address.

Do you have GPL source for this box? it is indeed a little bit strange. The EA4500 use 0x10. So either the Ref Manual or GPL source would be good to see why. Let me see if I can get a look at the manual.

I think running a Reference Board DTS is OK. But it will not be complete until you can add things that specific to your box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 07:48PM
Hi bodhi,
Unfortunately, there was no GPL source for my box. The oem system was a customized openwrt(AA) that build from marvell sdk.
The bootlog see: https://forum.archive.openwrt.org/viewtopic.php?id=50173&p=17#p237049
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 09:37PM
wacke,

> The oem system was a customized openwrt(AA) that
> build from marvell sdk.
> The bootlog see:
> https://forum.archive.openwrt.org/viewtopic.php?id=50173&p=17#p237049


Can you search the current OpenWrt forum for this user's posts

In the archive link https://forum.archive.openwrt.org/viewtopic.php?id=50173&p=17#p237049

This post seems to tell that linuxpro was active in upgrading the RT NAS V3:

Quote

Post #423
linuxpro
21 Jun 2014, 18:15

I wonder if he/she has made anymore progress.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 10:46PM
Hi bodhi,
Acctully, I've contacted to his team member, and was told that there won't be any progress anymore, so I'm on my own now. The last info I got from him, was the openwrt cc system, I decompiled the dtb from that system (kernel image):

/dts-v1/;

/ {
	#address-cells = <0x1>;
	#size-cells = <0x1>;
	model = "RTNAS V3";
	compatible = "marvell,rtnas-v3","marvell,a370-rd", "marvell,armada370", "marvell,armada-370-xp";

	chosen {
		bootargs = "console=ttyS0,115200 earlyprintk";
	};

	aliases {
		eth0 = "/soc/internal-regs/ethernet@70000";
		eth1 = "/soc/internal-regs/ethernet@74000";
		gpio0 = "/soc/internal-regs/gpio@18100";
		gpio1 = "/soc/internal-regs/gpio@18140";
		gpio2 = "/soc/internal-regs/gpio@18180";
	};

	memory {
		device_type = "memory";
		reg = <0x0 0x20000000>;
	};

	cpus {
		#address-cells = <0x1>;
		#size-cells = <0x0>;

		cpu@0 {
			compatible = "marvell,sheeva-v7";
			device_type = "cpu";
			reg = <0x0>;
		};
	};

	soc {
		#address-cells = <0x2>;
		#size-cells = <0x1>;
		controller = <0x1>;
		interrupt-parent = <0x2>;
		pcie-mem-aperture = <0xf8000000 0x7e00000>;
		pcie-io-aperture = <0xffe00000 0x100000>;
		compatible = "marvell,armada370-mbus", "simple-bus";
		ranges = <0xf0010000 0x0 0xf1000000 0x100000 0x1e00000 0x0 0xfff00000 0x100000>;

		devbus-bootcs {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10400 0x8>;
			ranges = <0x0 0x12f0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs0 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10408 0x8>;
			ranges = <0x0 0x13e0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs1 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10410 0x8>;
			ranges = <0x0 0x13d0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs2 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10418 0x8>;
			ranges = <0x0 0x13b0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs3 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10420 0x8>;
			ranges = <0x0 0x1370000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		internal-regs {
			compatible = "simple-bus";
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			ranges = <0x0 0xf0010000 0x0 0x100000>;

			rtc@10300 {
				compatible = "marvell,orion-rtc";
				reg = <0x10300 0x20>;
				interrupts = <0x32>;
				status = "okay";
			};

			spi@10600 {
				compatible = "marvell,armada-370-spi", "marvell,orion-spi";
				reg = <0x10600 0x28>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				cell-index = <0x0>;
				interrupts = <0x1e>;
				clocks = <0x3 0x0>;
				status = "disabled";
			};

			spi@10680 {
				compatible = "marvell,armada-370-spi", "marvell,orion-spi";
				reg = <0x10680 0x28>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				cell-index = <0x1>;
				interrupts = <0x5c>;
				clocks = <0x3 0x0>;
				status = "disabled";
			};

			i2c@11000 {
				compatible = "marvell,mv64xxx-i2c";
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				interrupts = <0x1f>;
				timeout-ms = <0x3e8>;
				clocks = <0x3 0x0>;
				status = "disabled";
				reg = <0x11000 0x20>;
			};

			i2c@11100 {
				compatible = "marvell,mv64xxx-i2c";
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				interrupts = <0x20>;
				timeout-ms = <0x3e8>;
				clocks = <0x3 0x0>;
				status = "disabled";
				reg = <0x11100 0x20>;
			};

			serial@12000 {
				compatible = "snps,dw-apb-uart";
				reg = <0x12000 0x100>;
				reg-shift = <0x2>;
				interrupts = <0x29>;
				reg-io-width = <0x1>;
				clocks = <0x3 0x0>;
				status = "okay";
			};

			serial@12100 {
				compatible = "snps,dw-apb-uart";
				reg = <0x12100 0x100>;
				reg-shift = <0x2>;
				interrupts = <0x2a>;
				reg-io-width = <0x1>;
				clocks = <0x3 0x0>;
				status = "disabled";
			};

			pin-ctrl@18000 {
				reg = <0x18000 0x38>;
				compatible = "marvell,mv88f6710-pinctrl";

				sdio-pins1 {
					marvell,pins = "mpp9", "mpp11", "mpp12", "mpp13", "mpp14", "mpp15";
					marvell,function = "sd0";
				};

				sdio-pins2 {
					marvell,pins = "mpp47", "mpp48", "mpp49", "mpp50", "mpp51", "mpp52";
					marvell,function = "sd0";
				};

				sdio-pins3 {
					marvell,pins = "mpp48", "mpp49", "mpp50", "mpp51", "mpp52", "mpp53";
					marvell,function = "sd0";
				};

				i2c0-pins {
					marvell,pins = "mpp2", "mpp3";
					marvell,function = "i2c0";
				};

				i2s-pins1 {
					marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8", "mpp9", "mpp10", "mpp12", "mpp13";
					marvell,function = "audio";
				};

				i2s-pins2 {
					marvell,pins = "mpp49", "mpp47", "mpp50", "mpp59", "mpp57", "mpp61", "mpp62", "mpp60", "mpp58";
					marvell,function = "audio";
				};

				mdio-pins {
					marvell,pins = "mpp17", "mpp18";
					marvell,function = "ge";
				};

				ge0-rgmii-pins {
					marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8", "mpp9", "mpp10", "mpp11", "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
					marvell,function = "ge0";
				};

				ge1-rgmii-pins {
					marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22", "mpp23", "mpp24", "mpp25", "mpp26", "mpp27", "mpp28", "mpp29", "mpp30";
					marvell,function = "ge1";
					linux,phandle = <0x6>;
					phandle = <0x6>;
				};

				fan-pins {
					marvell,pins = "mpp10";
					marvell,function = "gpio";
					linux,phandle = <0x9>;
					phandle = <0x9>;
				};

				led-pins {
					marvell,pins = "mpp62";
					marvell,function = "gpio";
					linux,phandle = <0xa>;
					phandle = <0xa>;
				};
			};

			corediv-clock@18740 {
				compatible = "marvell,armada-370-corediv-clock";
				reg = <0x18740 0xc>;
				#clock-cells = <0x1>;
				clocks = <0x4>;
				clock-output-names = "nand";
				linux,phandle = <0x7>;
				phandle = <0x7>;
			};

			mbus-controller@20000 {
				compatible = "marvell,mbus-controller";
				reg = <0x20000 0x100 0x20180 0x20>;
				linux,phandle = <0x1>;
				phandle = <0x1>;
			};

			interrupt-controller@20000 {
				compatible = "marvell,mpic";
				#interrupt-cells = <0x1>;
				#size-cells = <0x1>;
				interrupt-controller;
				msi-controller;
				reg = <0x20a00 0x1d0 0x21870 0x58>;
				linux,phandle = <0x2>;
				phandle = <0x2>;
			};

			coherency-fabric@20200 {
				compatible = "marvell,coherency-fabric";
				reg = <0x20200 0xb0 0x21010 0x1c>;
			};

			timer@20300 {
				reg = <0x20300 0x30 0x21040 0x30>;
				interrupts = <0x25 0x26 0x27 0x28 0x5 0x6>;
				compatible = "marvell,armada-370-timer";
				clocks = <0x3 0x2>;
			};

			watchdog@20300 {
				reg = <0x20300 0x34 0x20704 0x4>;
				compatible = "marvell,armada-370-wdt";
				clocks = <0x3 0x2>;
			};

			pmsu@22000 {
				compatible = "marvell,armada-370-pmsu";
				reg = <0x22000 0x1000>;
			};

			usb@50000 {
				compatible = "marvell,orion-ehci";
				reg = <0x50000 0x500>;
				interrupts = <0x2d>;
				status = "okay";
				clocks = <0x3 0x0>;
			};

			usb@51000 {
				compatible = "marvell,orion-ehci";
				reg = <0x51000 0x500>;
				interrupts = <0x2e>;
				status = "okay";
				clocks = <0x3 0x0>;
			};

			ethernet@70000 {
				reg = <0x70000 0x4000>;
				interrupts = <0x8>;
				clocks = <0x5 0x4>;
				status = "disabled";
				compatible = "marvell,armada-370-neta";
			};

			mdio {
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				compatible = "marvell,orion-mdio";
				reg = <0x72004 0x4>;
				clocks = <0x5 0x4>;
				linux,phandle = <0xc>;
				phandle = <0xc>;
			};

			ethernet@74000 {
				reg = <0x74000 0x4000>;
				interrupts = <0xa>;
				clocks = <0x5 0x3>;
				status = "okay";
				compatible = "marvell,armada-370-neta";
				pinctrl-0 = <0x6>;
				pinctrl-names = "default";
				phy-mode = "rgmii-id";

				fixed-link {
					speed = <0x3e8>;
					full-duplex;
				};
			};

			sata@a0000 {
				compatible = "marvell,armada-370-sata";
				reg = <0xa0000 0x5000>;
				interrupts = <0x37>;
				clocks = <0x5 0xf 0x5 0x1e>;
				clock-names = <0x30003100>;
				status = "okay";
				nr-ports = <0x2>;
			};

			nand@d0000 {
				compatible = "marvell,armada370-nand";
				reg = <0xd0000 0x54>;
				#address-cells = <0x1>;
				#size-cells = <0x1>;
				interrupts = <0x71>;
				clocks = <0x7 0x0>;
				status = "okay";
				num-cs = <0x2>;
				marvell,nand-keep-config;
				marvell,nand-enable-arbiter;
				nand-on-flash-bbt;
				nand-ecc-strength = <0x4>;
				nand-ecc-step-size = <0x200>;

				partition@0 {
					label = "u-boot";
					reg = <0x0 0x400000>;
				};

				partition@400000 {
					label = "uboot_env";
					reg = <0x400000 0x400000>;
				};

				partition@800000 {
					label = "vendor";
					reg = <0x800000 0x400000>;
				};

				partition@c00000 {
					label = "unused";
					reg = <0xc00000 0xc00000>;
				};

				partition@1800000 {
					label = "kernel";
					reg = <0x1800000 0x400000>;
				};

				partition@1c00000 {
					label = "ubi";
					reg = <0x1c00000 0x3e400000>;
				};

				partition@40000000 {
					label = "syscfg";
					reg = <0x40000000 0xbbc00000>;
				};
			};

			mvsdio@d4000 {
				compatible = "marvell,orion-sdio";
				reg = <0xd4000 0x200>;
				interrupts = <0x36>;
				clocks = <0x5 0x11>;
				bus-width = <0x4>;
				cap-sdio-irq;
				cap-sd-highspeed;
				cap-mmc-highspeed;
				status = "disabled";
			};

			l2-cache {
				compatible = "marvell,aurora-outer-cache";
				reg = <0x8000 0x1000>;
				cache-id-part = <0x100>;
				cache-unified;
				wt-override;
			};

			gpio@18100 {
				compatible = "marvell,orion-gpio";
				reg = <0x18100 0x40 0x181c0 0x8>;
				reg-names = "gpio", "pwm";
				ngpios = <0x20>;
				gpio-controller;
				#gpio-cells = <0x2>;
				#pwm-cells = <0x2>;
				interrupt-controller;
				#interrupt-cells = <0x2>;
				interrupts = <0x52 0x53 0x54 0x55>;
				clocks = <0x3 0x0>;
				linux,phandle = <0x8>;
				phandle = <0x8>;
			};

			gpio@18140 {
				compatible = "marvell,orion-gpio";
				reg = <0x18140 0x40 0x181c8 0x8>;
				reg-names = "gpio", "pwm";
				ngpios = <0x20>;
				gpio-controller;
				#gpio-cells = <0x2>;
				#pwm-cells = <0x2>;
				interrupt-controller;
				#interrupt-cells = <0x2>;
				interrupts = <0x57 0x58 0x59 0x5a>;
				clocks = <0x3 0x0>;
				linux,phandle = <0xb>;
				phandle = <0xb>;
			};

			gpio@18180 {
				compatible = "marvell,orion-gpio";
				reg = <0x18180 0x40>;
				ngpios = <0x2>;
				gpio-controller;
				#gpio-cells = <0x2>;
				interrupt-controller;
				#interrupt-cells = <0x2>;
				interrupts = <0x5b>;
			};

			system-controller@18200 {
				compatible = "marvell,armada-370-xp-system-controller";
				reg = <0x18200 0x100>;
			};

			clock-gating-control@18220 {
				compatible = "marvell,armada-370-gating-clock";
				reg = <0x18220 0x4>;
				clocks = <0x3 0x0>;
				#clock-cells = <0x1>;
				linux,phandle = <0x5>;
				phandle = <0x5>;
			};

			mvebu-sar@18230 {
				compatible = "marvell,armada-370-core-clock";
				reg = <0x18230 0x8>;
				#clock-cells = <0x1>;
				linux,phandle = <0x3>;
				phandle = <0x3>;
			};

			thermal@18300 {
				compatible = "marvell,armada370-thermal";
				reg = <0x18300 0x4 0x18304 0x4>;
				status = "okay";
			};

			sscg@18330 {
				reg = <0x18330 0x4>;
			};

			cpurst@20800 {
				compatible = "marvell,armada-370-cpu-reset";
				reg = <0x20800 0x8>;
			};

			audio-controller@30000 {
				compatible = "marvell,armada370-audio";
				reg = <0x30000 0x4000>;
				interrupts = <0x5d>;
				clocks = <0x5 0x0>;
				clock-names = "internal";
				status = "disabled";
			};

			xor@60800 {
				compatible = "marvell,orion-xor";
				reg = <0x60800 0x100 0x60a00 0x100>;
				status = "okay";

				xor00 {
					interrupts = <0x33>;
					dmacap,memcpy;
					dmacap,xor;
				};

				xor01 {
					interrupts = <0x34>;
					dmacap,memcpy;
					dmacap,xor;
					dmacap,memset;
				};
			};

			xor@60900 {
				compatible = "marvell,orion-xor";
				reg = <0x60900 0x100 0x60b00 0x100>;
				status = "okay";

				xor10 {
					interrupts = <0x5e>;
					dmacap,memcpy;
					dmacap,xor;
				};

				xor11 {
					interrupts = <0x5f>;
					dmacap,memcpy;
					dmacap,xor;
					dmacap,memset;
				};
			};

			gpio-keys {
				compatible = "gpio-keys";
				#address-cells = <0x1>;
				#size-cells = <0x0>;

				button@1 {
					label = "Software Button";
					linux,code = <0x74>;
					gpios = <0x8 0x6 0x1>;
				};
			};

			gpio-fan {
				compatible = "gpio-fan";
				gpios = <0x8 0x8 0x0>;
				gpio-fan,speed-map = <0x0 0x0 0xbb8 0x1>;
				pinctrl-0 = <0x9>;
				pinctrl-names = "default";
			};

			gpio_leds {
				compatible = "gpio-leds";
				pinctrl-names = "default";
				pinctrl-0 = <0xa>;

				sw_led {
					label = "370rd:green:sw";
					gpios = <0xb 0x0 0x1>;
					default-state = "keep";
				};
			};
		};

		bootrom {
			compatible = "marvell,bootrom";
			reg = <0x1e00000 0x0 0x100000>;
		};

		pcie-controller {
			compatible = "marvell,armada-370-pcie";
			status = "okay";
			device_type = "pci";
			#address-cells = <0x3>;
			#size-cells = <0x2>;
			msi-parent = <0x2>;
			bus-range = <0x0 0xff>;
			ranges = <0x82000000 0x0 0x40000 0xf0010000 0x40000 0x0 0x2000 0x82000000 0x0 0x80000 0xf0010000 0x80000 0x0 0x2000 0x82000000 0x1 0x0 0x4e80000 0x0 0x1 0x0 0x81000000 0x1 0x0 0x4e00000 0x0 0x1 0x0 0x82000000 0x2 0x0 0x8e80000 0x0 0x1 0x0 0x81000000 0x2 0x0 0x8e00000 0x0 0x1 0x0>;

			pcie@1,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x40000 0x0 0x2000>;
				reg = <0x800 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x1 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x1 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x3a>;
				marvell,pcie-port = <0x0>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x5>;
				status = "okay";
			};

			pcie@2,0 {
				device_type = "pci";
				assigned-addresses = <0x82002800 0x0 0x80000 0x0 0x2000>;
				reg = <0x1000 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x2 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x2 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x3e>;
				marvell,pcie-port = <0x1>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x9>;
				status = "okay";
			};
		};
	};

	clocks {
		mainpll {
			compatible = "fixed-clock";
			#clock-cells = <0x0>;
			clock-frequency = <0x77359400>;
			linux,phandle = <0x4>;
			phandle = <0x4>;
		};
	};

	mvsw61xx {
		compatible = "marvell,mv88e6085";
		status = "okay";
		reg = <0x10>;
		mii-bus = <0xc>;
		cpu-port-0 = <0x5>;
		cpu-port-1 = <0x6>;
		is-indirect;
	};
};
Re: armada 370 (88f6710) mainline uboot support
March 23, 2019 11:31PM
wacke,

I see. This does not help. linuxpro's version is the old approach that does not fully activate the DSA switch the way we want it.

mvsw61xx {
		compatible = "marvell,mv88e6085";
		status = "okay";
		reg = <0x10>;
		mii-bus = <0xc>;
		cpu-port-0 = <0x5>;
		cpu-port-1 = <0x6>;
		is-indirect;
	};


The OpenWrt Linksys EA4500 switch definition in DTS is what we want. I am using that version and the switch works well (the changes I made was cosmetic only).

What you are using from the Reference Board is also good (basically the same as EA4500).

Quote

* Copied from arch/arm/boot/dts/armada-370-db.dts
*
* Copyright (C) 2013 Florian Fainelli <florian@openwrt.org>


So I am not sure what we can do here for the RT NAS V3. It looks like something is slowing it down, but it should not. My benchmark for EA4500 proved that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 08, 2021 10:44PM
Hi Bodhi,

Manay thanks to @whitepawn and his job, I just downloaded the uboot source from his dropbox, with some modify, now I can run the self-built uboot and detected the MLC NAND chip successfully, but there still a lot of things to do:

1. The uboot my built can only recognize 512M RAM while my box actually have 1024M RAM.
2. SATA Port and USB Port seems not work.
3. My box have an 88E6171R Switch, and I can see the 8861xx driver in the uboot source, then how to build that driver into uboot image.

HOME-Server:/NAS/Software/kwboot # ./kwboot -p -t /dev/ttyUSB0 -b u-boot-a370-2.0-nand-rd-uart.bin 
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 37 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 51 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 81 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 85 % [......................................................................]
 86 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 89 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [.........................................]
[Type Ctrl-\ + c to quit]

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2011.12 (Jan 09 2021 - 12:25:56) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 ReadyNAS-102 V2.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB
Port0: phyAddr=0x0, Not Marvell PHY id1 ffff id2 ffff
PHY error - shutdown port0

Map:   Code:            0x1feef000:0x1ff9f79c
       BSS:             0x1ffefca0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0x682c)      4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000005a00000
nand_read_bbt: Bad block at 0x000005b00000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0.0(0): Detected No Link.
PEX 0.1(1): Detected No Link.
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       AUDIO
Modules/Interfaces Detected:
       TDM Module
       SDIO
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA1 (Lane 3)
       SGMII0 Phy module (Lane 2)
Net:   , egiga1 [PRIME]
Error reading the ISL12057.
Error writing the ISL12057.
Error reading the ISL12057.
Power On!

Error writing the i2c chip : G76x(Fan controller).
Error reading the i2c chip : G76x(Fan controller).
Error writing the i2c chip : G76x(Fan controller).
Loading FDT from NAND 0xEC000 to 0x1000000 failed!
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x200000, size 0x400000
 4194304 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x400000
 4194304 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Marvell>> 
Marvell>> nand info

Device 0: nand0, sector size 1024 KiB
  Page size      4096 b
  OOB size        224 b
  Erase size  1048576 b
Marvell>> 
Marvell>> usb reset
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> usb reset
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Re: armada 370 (88f6710) mainline uboot support
January 09, 2021 12:24AM
Hi wacke,

This Marvell u-boot is quite old comparing to the mainline u-boot.

U-Boot 2011.12 (Jan 09 2021 - 12:25:56) Marvell version: v2011.12 2014_T2.0p1

The software architecture in this u-boot is quite far removed from mainline u-boot. Each time I deal with a flavor for a box such as Thecus N2350 or Zyxel NAS326, I have to actually read the code again, and try to find where the patch for that box is!

I cannot really point you to where to look for certain things without looking for it myself.

A good starting point is the main function mv_main.c (in some folder name with *mvebu*).

> 1. The uboot my built can only recognize 512M RAM
> while my box actually have 1024M RAM.

In general, this u-boot uses a bin_header that is pre-compiled for certain box, and concat this header to u-boot binary to form a u-boot image. This approach is different from a mainline u-boot such as the Kirwood u-boot, and the mainline Armada 37x/38x/XP u-boot.

u-boot-a370-2.0-nand-rd-uart.bin is the u-boot uImage built for booting with UART. The header of this image contains the bin_header.

This is where the RAM definition is likely coded in.

> 2. SATA Port and USB Port seems not work.

Each box has different GPIOs definition that trigger USB and SATA power. These GPIOs are different for each box, even if they have the same SoC (e.g. Armada 370).

So the specific GPIOs must be found from the GPL source (if it is available) for the your RT NAS V3. Without the GPL source, you must brute force testing at u-boot console, by poking the each bit in the GPIO mapped memory (GPIO0 and GPIO1 banks, each is 32 bit long).


> 3. My box have an 88E6171R Switch, and I can see
> the 8861xx driver in the uboot source, then how to
> build that driver into uboot image.

I don't know where in this u-boot source that driver should be added (I have not looked for the DSA switch driver in this source before).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/09/2021 12:32AM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
January 09, 2021 04:56AM
Hi Bodhi,
Trying to build the switch driver into uboot, but I getting these errors, is there anyway to solve this?
And the source file is attached.

/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthSwitchRegWrite':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:385: multiple definition of `mvEthSwitchRegWrite'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:385: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthSwitchRegRead':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:409: multiple definition of `mvEthSwitchRegRead'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:409: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthE6131SwitchBasicInit':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:151: multiple definition of `mvEthE6131SwitchBasicInit'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:151: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthE6063SwitchBasicInit':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:128: multiple definition of `mvEthE6063SwitchBasicInit'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:128: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthE6065_61SwitchBasicInit':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:104: multiple definition of `mvEthE6065_61SwitchBasicInit'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:104: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthE6171SwitchBasicInit':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:273: multiple definition of `mvEthE6171SwitchBasicInit'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:273: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthE6161SwitchBasicInit':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:199: multiple definition of `mvEthE6161SwitchBasicInit'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:199: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthSwitchPhyRegWrite':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:437: multiple definition of `mvEthSwitchPhyRegWrite'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:437: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthSwitchPhyRegRead':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:470: multiple definition of `mvEthSwitchPhyRegRead'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:470: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o: In function `mvEthSwitchPhyCheckLink':
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:519: multiple definition of `mvEthSwitchPhyCheckLink'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.c:519: first defined here
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:(.data+0x0): multiple definition of `switchMultiChipMode'
/NAS/Software/uboot/u-boot-2011.12-armada370/board/mv_ebu/common/USP/ethSwitch/mvSwitch.o:(.data+0x0): first defined here
Attachments:
open | download - mvSwitch.c (17.3 KB)
Re: armada 370 (88f6710) mainline uboot support
January 09, 2021 04:00PM
wacke,

When you have multiple definition and cannot see where the extra definition in the group of files related to this function, then do a grep on the entire source tree to find where the symbol was defined.

For example, look for all c hand h files that have the function mvEthSwitchRegWrite defined or used:
find /NAS/Software/uboot/u-boot-2011.12-armada370 -name '*.[ch]' | xargs grep -i mvEthSwitchRegWrite

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/09/2021 04:01PM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
January 11, 2021 08:23AM
Hi bodhi,
Good news: uboot can recognize 1G RAM now.
Bad news: the uboot i built cant boot linux, it's stuck at starting linux.

HOME-Server:/NAS/Software/kwboot # ./kwboot -p -t /dev/ttyUSB0 -b u-boot-a370-1.0-nand-rd-uart.bin 
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 18 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 37 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 44 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 66 % [......................................................................]
 67 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 81 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 89 % [......................................................................]
 90 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................]
[Type Ctrl-\ + c to quit]

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2011.12 (Jan 11 2021 - 22:12:51) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 RTNAS V3.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  1 GiB
Port0: phyAddr=0x0, Not Marvell PHY id1 ffff id2 ffff
PHY error - shutdown port0

Map:   Code:            0x3fef1000:0x3ff9ee08
       BSS:             0x3ffef0a0
       Stack:           0x3f9f0ef8
       Heap:            0x3f9f1000:0x3fef1000

NAND:  (ID 0x682c)      4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000001680000
nand_read_bbt: Bad block at 0x0000016c0000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0.0(0): Detected No Link.
PEX 0.1(1): Detected No Link.
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       AUDIO
Modules/Interfaces Detected:
       TDM Module
       SDIO
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA1 (Lane 3)
       SGMII0 Phy module (Lane 2)
Net:   , egiga1 [PRIME]
Error reading the ISL12057.
Power On!

Hit any key to stop autoboot:  0 
RTNAS>> <INTERRUPT>
RTNAS>> <INTERRUPT>
RTNAS>> 
RTNAS>> run bootcmd

NAND read: device 0 offset 0x1800000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.2.40
   Created:      2014-08-01  13:12:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2099536 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Re: armada 370 (88f6710) mainline uboot support
January 11, 2021 04:45PM
wacke,

After kwboot. At the prompt RTNAS>>

printenv

And describe where is the kernel and rootfs are, is it on HDD or USB?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 11, 2021 06:02PM
Hi Bodhi,

The kernel and rootfs are only on NAND for now, because the USB and SATA port not working.


The original uboot env:

Marvell>> pri
CASset=min
MALLOC_len=5
OpenWrtLinux=Yes
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0x2000000 0x1800000 0x400000 ; $console $mtdparts ;  bootm $loadaddr
bootdelay=4
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=no
enaWrAllo=no
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.254
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:4m(boot),4m(uboot_env),4m(kernel),64m(rootfs),-(rootfs_data)
mvNetConfig=mv_net_config1=2,(00:50:43:11:11:11,0:1:2:3)(00:50:43:11:11:12,4),mtu=1500
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.100
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no

Environment size: 1570/524284 bytes

And the env of my built:

AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=Marvell
NANDboot=nand read.e 0x2000000 0x200000 0x400000;nand read.e 0x1000000  0x7e00000 0x20000;nand read.e  0x3000000 0x800000 0x400000;bootz 0x2000000 0x3000000 0x1000000
Product=RTNASV3
Startup=Normal
USBboot=fatload usb 0:1 0x2000000 /zImage-recovery;fatload usb 0:1 0x1000000 /RN102-recovery.dtb;fatload usb 0:1 0x3000000 /initrd-recovery.gz;bootz 0x2000000 0x3000000 0x1000000
Version=V1.0
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x1800000 0x400000 ; $console $mtdparts ;  bootm $loadaddr
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
check_usb=usb start; fatload usb 0:1 0x2000000 /NTGR_USBBOOT_INFO.txt
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaWrAllo=no
envver=3
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_high=0xFFFFFFFF
initrd_name=uInitrd
ipaddr=192.168.1.200
loadaddr=0x02000000
loads_echo=0
mainlineLinux=yes
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:4m(boot),4m(uboot_env),4m(kernel),64m(rootfs),-(rootfs_data)
mvNetConfig=switch_config=none
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.2
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 2615/131068 bytes
Re: armada 370 (88f6710) mainline uboot support
January 13, 2021 06:09PM
Hi Bodhi,
I've got the usb and one of sata working on my self-built uboot, then i tried the 5.9.3-mvebu-370xp-tld-4 kernel:

With stock uboot, it just hangs on starting kernel ...
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2011.12 (Jun 15 2014 - 11:04:40) RTNAS V3 2013_Q2.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  1 GiB

Map:   Code:            0x3ff0f000:0x3ffa11f4
       BSS:             0x3ffef340
       Stack:           0x3fa0eef8
       Heap:            0x3fa0f000:0x3ff0f000

NAND:  4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000005a00000
nand_read_bbt: Bad block at 0x000005b00000
*** Warning - bad CRC, using default environment

PEX 0.0(0): Detected No Link.
PEX 0.1(1): Detected No Link.
start OpenWrtLinux..........
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Not Marvell PHY id1 ffff id2 ffff
Net:   egiga1 [PRIME]
Press Ctrl+C to abort autoboot in 3 second
DDNAS: Recovery Button pressed: 0
Please input uboot password:
Please input uboot password:
Please input uboot password:************
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> setenv bootcmd4 'ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000'
Marvell>> pri
CASset=min
MALLOC_len=5
OpenWrtLinux=Yes
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0x2000000 0x1800000 0x400000 ; $console $mtdparts ;  bootm $loadaddr
bootcmd4=ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000
bootdelay=4
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=no
enaWrAllo=no
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.254
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:4m(boot),4m(uboot_env),4m(kernel),64m(rootfs),-(rootfs_data)
mvNetConfig=mv_net_config1=2,(00:50:43:11:11:11,0:1:2:3)(00:50:43:11:11:12,4),mtu=1500
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.100
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no

Environment size: 1786/524284 bytes
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
5356320 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
9489358 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.3-mvebu-370xp-tld-4
   Created:      2021-01-13  14:38:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5356256 Bytes = 5.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.9.3-mvebu-tld-4
   Created:      2021-01-13  14:38:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9489294 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

With my self-built uboot, got a kernel panic:
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2011.12 (Jan 13 2021 - 23:23:38) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 RTNAS V3.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  1 GiB
Port0: phyAddr=0x0, Not Marvell PHY id1 ffff id2 ffff
PHY error - shutdown port0

Map:   Code:            0x3ff0b000:0x3ffa1f44
       BSS:             0x3ffefc80
       Stack:           0x3fa0aef8
       Heap:            0x3fa0b000:0x3ff0b000

NAND:  (ID 0x682c)      4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000001680000
nand_read_bbt: Bad block at 0x0000016c0000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0.0(0): Detected No Link.
PEX 0.1(1): Detected No Link.
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       AUDIO
Modules/Interfaces Detected:
       TDM Module
       SDIO
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> pri
AC_Power_fail_detect=open
CASset=min
MALLOC_len=5
Manufacturer=Marvell
NANDboot=nand read.e 0x2000000 0x200000 0x400000;nand read.e 0x1000000  0x7e00000 0x20000;nand read.e  0x3000000 0x800000 0x400000;bootz 0x2000000 0x3000000 0x1000000
Product=RTNASV3
Startup=Normal
USBboot=fatload usb 0:1 0x2000000 /zImage-recovery;fatload usb 0:1 0x1000000 /RN102-recovery.dtb;fatload usb 0:1 0x3000000 /initrd-recovery.gz;bootz 0x2000000 0x3000000 0x1000000
Version=V1.0
autoload=no
baudrate=115200
bootargs=rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x1800000 0x400000 ; $console $mtdparts ;  bootm $loadaddr
bootcmd2=ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000
bootcmd3=ide reset; ext2load ide 1:1 0x00800000 /boot/uImage.orig; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000
bootcmd4=ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
check_usb=usb start; fatload usb 0:1 0x2000000 /NTGR_USBBOOT_INFO.txt
console=console=ttyS1,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaWrAllo=no
envver=3
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
filesize=51BB20
image_name=uImage
initrd_high=0xFFFFFFFF
initrd_name=uInitrd
ipaddr=192.168.1.200
loadaddr=0x02000000
loads_echo=0
mainlineLinux=yes
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:4m(boot),4m(uboot_env),4m(kernel),64m(rootfs),-(rootfs_data)
mvNetConfig=switch_config=none
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.2
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no

Environment size: 3180/131068 bytes
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
5356320 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
9489358 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.3-mvebu-370xp-tld-4
   Created:      2021-01-13  14:38:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5356256 Bytes = 5.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.9.3-mvebu-tld-4
   Created:      2021-01-13  14:38:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9489294 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.9.3-mvebu-370xp-tld-4 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #4.0 PREEMPT Fri Dec 4 20:53:28 PST 2020
[    0.000000][    T0] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: RTNAS V3
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Forcing write-allocate cache policy for Armada 370
[    0.000000][    T0] Support IO Coherency
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1013428K/1048576K available (10240K kernel code, 1056K rwdata, 3060K rodata, 1024K init, 346K bss, 35148K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x2ec/0x770 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] 8<--- cut here ---
[    0.000000][    T0] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0800a00
[    0.000000][    T0] pgd = (ptrval)
[    0.000000][    T0] [f0800a00] *pgd=2f020811, *pte=f1020653, *ppte=f1020453
[    0.000000][    T0] Internal error: : 1008 [#1] PREEMPT ARM
[    0.000000][    T0] Modules linked in:
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.9.3-mvebu-370xp-tld-4 #4.0
[    0.000000][    T0] Hardware name: Marvell Armada 370/XP (Device Tree)
[    0.000000][    T0] PC is at armada_370_xp_mpic_of_init+0x104/0x328
[    0.000000][    T0] LR is at ioremap_page_range+0xec/0x140
[    0.000000][    T0] pc : [<c0f21188>]    lr : [<c025be98>]    psr: a00000d3
[    0.000000][    T0] sp : c1001ed8  ip : ef003ac8  fp : c10f7be0
[    0.000000][    T0] r10: c0d6d46c  r9 : c10f7bf2  r8 : c1004248
[    0.000000][    T0] r7 : c1148e04  r6 : 00000000  r5 : ef7f12b4  r4 : c1148e04
[    0.000000][    T0] r3 : f0800a00  r2 : 00000000  r1 : f1021e13  r0 : f0802870
[    0.000000][    T0] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.000000][    T0] Control: 10c5387d  Table: 00004019  DAC: 00000051
[    0.000000][    T0] Process swapper (pid: 0, stack limit = 0x(ptrval))
[    0.000000][    T0] Stack: (0xc1001ed8 to 0xc1002000)
[    0.000000][    T0] 1ec0:                                                       00000000 00000000
[    0.000000][    T0] 1ee0: 0000006d f1020a00 f1020bcf ef7f130c 00000200 00000000 00000000 00000000
[    0.000000][    T0] 1f00: 00000000 f1021870 f10218c7 ef7f130c 00000200 00000000 00000000 00000000
[    0.000000][    T0] 1f20: 00000000 00000000 c0f53540 ef001a00 00000000 c1001f5c c1001f64 c1001f5c
[    0.000000][    T0] 1f40: c10f7bf2 c0f31718 0000000f 00000000 0000003f c1004248 00000000 c1001f5c
[    0.000000][    T0] 1f60: c1001f5c c1001f64 c1001f64 00000000 ef01f000 c0f3cf24 c1136a4c 00000000
[    0.000000][    T0] 1f80: c1004248 c1004240 c0f3c000 efffce00 c0f3cf34 c0f088e0 c0f3cf24 c0f02f10
[    0.000000][    T0] 1fa0: c1109000 c0f0107c ffffffff ffffffff 00000000 c0f006cc 00000000 efffcd80
[    0.000000][    T0] 1fc0: c0f3cf34 00000000 00000000 00000000 00000000 c0f00330 00000051 10c03c7d
[    0.000000][    T0] 1fe0: 00000bde 01620aa0 561f5811 10c53c7d 00000000 00000000 00000000 00000000
[    0.000000][    T0] [<c0f21188>] (armada_370_xp_mpic_of_init) from [<c0f31718>] (of_irq_init+0x1fc/0x318)
[    0.000000][    T0] [<c0f31718>] (of_irq_init) from [<c0f088e0>] (mvebu_init_irq+0x8/0x60)
[    0.000000][    T0] [<c0f088e0>] (mvebu_init_irq) from [<c0f02f10>] (init_IRQ+0x70/0x80)
[    0.000000][    T0] [<c0f02f10>] (init_IRQ) from [<c0f0107c>] (start_kernel+0x550/0x7e0)
[    0.000000][    T0] [<c0f0107c>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Code: 1a000001 e7f001f2 eaffffcb e597300c (e5939000) 
[    0.000000][    T0] ---[ end trace 7c274a1c59fae664 ]---
[    0.000000][    T0] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000][    T0] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
Re: armada 370 (88f6710) mainline uboot support
January 13, 2021 09:43PM
wacke,

You should not use 5.9.3-mvebu-370xp-tld-4 kernel. This kernel should only be installed on Armada 370 boxes that have the old u-boot (Mirabox, Netgear RN102/104).

Your box has a newer u-boot. So you should use the standard MVEBU kernel linux-5.9.3-mvebu-tld-1.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 13, 2021 10:39PM
Hi Bodhi,
Tried the Linux-5.9.3-mvebu-tld-1, also hangs on starting kernel, since the uboot built by my self is based on Netgear RN102, so what is the defiernce (kernel config) between the new uboot and old uboot?

Marvell>> run bootcmd4 

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
5469032 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
9518982 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.3-mvebu-tld-1
   Created:      1970-01-01   0:04:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5468968 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.9.3-mvebu-tld-1
   Created:      1970-01-01   0:05:09 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9518918 Bytes = 9.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Re: armada 370 (88f6710) mainline uboot support
January 13, 2021 11:02PM
wacke,

See explanation here:

https://forum.doozan.com/read.php?2,32146,106944#msg-106944

The RT NAS V3 DTS use the new memory address

soc {
                ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
                          MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
                          MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000      /* CESA0: PHYS=0xf1100000

So the combination of all 3 must be consistent to work correctly. If all 3 use old address then it will work. Or all 3 use new address.

u-boot + kernel + DTS

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/13/2021 11:06PM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
January 18, 2021 06:36PM
Hi Bodhi,
I can read the gpio data from uboot that mapped to ram, but then how to use these data?
Marvell>> md 0xf1018100
f1018100: 00000d60 fffff29f 00000000 80000000    `...............
f1018110: ffffff7f ffffff7f 00000000 00000000    ................
f1018120: 00000000 00000000 00000000 00000000    ................
f1018130: 00000000 00000000 00000000 00000000    ................
f1018140: 00000000 effaffff 00000000 00000000    ................
f1018150: d7bbffff d7bbffff 00000000 00000000    ................
f1018160: 00000000 00000000 00000000 00000000    ................
f1018170: 00000000 00000000 00000000 00000000    ................
f1018180: 00000001 00000003 00000000 00000000    ................
f1018190: 00000003 00000003 00000000 00000000    ................
f10181a0: 00000000 00000000 00000000 00000000    ................
f10181b0: 00000000 00000000 00000000 00000000    ................
f10181c0: 01000000 01000000 01000000 01000000    ................
f10181d0: 00000000 00000000 00000000 00000000    ................
f10181e0: 00000000 00000000 00000000 00000000    ................
f10181f0: 00000000 00000000 00000000 00000000    ................


In the uboot source the gpio is defined like this:

#define RD_88F6710_GPP_OUT_ENA_LOW	(~(BIT5 | BIT8))
#define RD_88F6710_GPP_OUT_ENA_MID	(~(BIT0 | BIT15 | BIT31))
#define RD_88F6710_GPP_OUT_ENA_HIGH	(~(BIT0 | BIT1))

#define RD_88F6710_GPP_OUT_VAL_LOW	(BIT5 | BIT8)
#define RD_88F6710_GPP_OUT_VAL_MID	0x0
#define RD_88F6710_GPP_OUT_VAL_HIGH	0x0


#define RD_88F6710_GPP_POL_LOW		BIT31
#define RD_88F6710_GPP_POL_MID		0x0
#define RD_88F6710_GPP_POL_HIGH		0x0

And from armada 370 datasheet:
RegisterName							Offset
GPIO_<32*n>_<32*n+31>_DataOut Register (n=0?1)			GPIO_Num0: 0x00018100,GPIO_Num1: 0x00018140
GPIO_<32*n>_<32*n+31>_Data Out Enable Control Register (n=0?1)	GPIO_Num0: 0x00018104,GPIO_Num1: 0x00018144
GPIO_<32*n>_<32*n+31>_Blink Enable Register (n=0?1)		GPIO_Num0: 0x00018108,GPIO_Num1: 0x00018148
GPIO_<32*n>_<32*n+31>_Data In Polarity Register (n=0?1)		GPIO_Num0: 0x0001810C,GPIO_Num1: 0x0001814C
GPIO_<32*n>_<32*n+31>_Data In Register (n=0?1)			GPIO_Num0: 0x00018110,GPIO_Num1: 0x00018150
GPIO_<32*n>_<32*n+31>_Interrupt Cause Register (n=0?1)		GPIO_Num0: 0x00018114,GPIO_Num1: 0x00018154
GPIO_<32*n>_<32*n+31>_Interrupt Mask Register (n=0?1)		GPIO_Num0: 0x00018118,GPIO_Num1: 0x00018158
GPIO_<32*n>_<32*n+31>_Interrupt Level Mask Register (n=0?1)	GPIO_Num0: 0x0001811C,GPIO_Num1: 0x0001815C
GPIO_<32*n>_<32*n+31>_Blink_Counter_Select Register (n=0?1)	GPIO_Num0: 0x00018120,GPIO_Num1: 0x00018160
GPIO_64_65_DataOut Register					0x00018180
GPIO_64_65_Data Out Enable Control Register			0x00018184
GPIO_64_65_Blink Enable Register				0x00018188
GPIO_64_65_Data In Polarity Register				0x0001818C
GPIO_64_65_Data In Register					0x00018190
GPIO_64_65_Interrupt Cause Register				0x00018194
GPIO_64_65_Interrupt Mask Register				0x00018198
GPIO_64_65_Interrupt Level Mask Register			0x0001819C
GPIO_64_65_Blink_Counter_Select Register			0x000181A0
GPIO Blink counter A is ON duration Register			0x000181C0
GPIO Blink counter A is OFF duration Register			0x000181C4
GPIO Blink counter B is ON duration Register			0x000181C8
GPIO Blink counter B is OFF duration Register			0x000181CC

Re: armada 370 (88f6710) mainline uboot support
January 19, 2021 04:13AM
wacke,

GPIOs are memory mapped. Mavell boards use GPIOs to control peripherals (eg. power off, turn on LED, power up HDDs and USBs..). And also MPPs (multiplexing pins). A pin could be configured for one of multiple functions. See Reference Manual Marvell_FS_88F6180_9x_6281_OpenSource.pdf.

See this post and a few after that about peeking/poking the GPIO memory mask in serial console:

https://forum.doozan.com/read.php?2,76314,112684#msg-112684

That is the brute force method to turn on/off a GPIO bit in the 32-bit mask of each GPIO bank (bank 0 and bank 1).

Basically, you would brute force testing like that, when you don't know which GPIO is used for what pupose. And when you are looking for a GPIO to control certain thing (e.g. HDD power, USB power, watchdog, restart,....etc).

In the GPL source you posted above, bit 5 and 8 are turned on. So you know these 2 bits are needed.
#define RD_88F6710_GPP_OUT_VAL_LOW	(BIT5 | BIT8)

But oftenly, they (NAS manufacturer) don't document what these bits are for! Most of the time, they contracted out (i.e. outsource) the FW development to a small shop somewhere for a low cost. And that shop will not do more than just make something works, documentation is the least of their concern. Sometime job security also played a role in how poorly the kernel/u-boot patch source code were documented. I am familiar with some of those shops in my exploring the outsource market.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 03/05/2023 06:31PM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
January 19, 2021 05:06AM
Hi Bodhi,
I mean that I read the GPIO data from orignal uboot, and then how can I transform these data to GPL source?
Re: armada 370 (88f6710) mainline uboot support
January 22, 2021 03:36AM
wacke,

I'm not really sure I understood your question.

To add these GPIO number to u-boot source, then it depends on which u-boot version you are addin to. The old u-boot (circa 2012 or earlier), Marvell Armada u-boot, or mainline u-boot. They have different software architecture.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 22, 2021 05:27PM
Hi Bodhi,
I just got the uboot source of my box, so many years later, fainally got this, i just rebuilt the uboot with added ext4 filesystem support. Many tanks.
Re: armada 370 (88f6710) mainline uboot support
January 24, 2021 07:19AM
Hi Bodhi,
Now I'm trying to build the mainline uboot for my box, thanks the uboot patch of this site:

https://sites.google.com/site/shihsung/88fxxxx-soc

Using some source of my box and with some modify, now got some success (previous build it just hangs):
HOME-Server:/NAS/Software/kwboot # ./kwboot -p -t /dev/ttyUSB0 -b u-boot-spl.kwb
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 23 % [...........................................
U-Boot SPL 2021.01-00707-ge716c90229-dirty (Jan 24 2021 - 21:05:38 +0800)
DDR3 Training Sequence - Ver 5.7.4
DDR3 Training Sequence - Ended Successfully
...........................]
 25 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 38 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 55 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [..........................................]
[Type Ctrl-\ + c to quit]


U-Boot 2021.01-00707-ge716c90229-dirty (Jan 24 2021 - 21:05:38 +0800)

SoC:   MV88F6710-A1 at 1200 MHz
I2C:   ready
DRAM:  512 MiB (600 MHz, ECC not enabled)
Loading Environment from SPIFlash... jedec_spi_nor spi-flash@0: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Model: Marvell Armada 375 Development Board
Board: Marvell RD-88F6710
Net:   No ethernet found.
=> pri
baudrate=115200
bootdelay=3
fdtcontroladdr=1fb7cb90
stderr=serial@12000
stdin=serial@12000
stdout=serial@12000

Environment size: 112/65532 bytes
tme
Re: armada 370 (88f6710) mainline uboot support
January 24, 2021 10:04AM
Hi wacke,

Very interesting!

Can you make a patch with all the differences between mainline U-Boot 2021.01 and 2021.01-00707-ge716c90229-dirty? I would be happy to test if the DDR training works on Netgear ReadyNAS RN102 as well.

Regards,
Trond Melen
Re: armada 370 (88f6710) mainline uboot support
January 24, 2021 03:31PM
wacke,

> Using some source of my box and with some modify,
> now got some success (previous build it just
> hangs):

> Loading Environment from SPIFlash... jedec_spi_nor
> spi-flash@0: unrecognized JEDEC id bytes: ff, ff,
> ff
> *** Warning - spi_flash_probe_bus_cs() failed,
> using default environment

So you need to configure SPI in this u-boot.

> Net: No ethernet found.

And configure Ethernet too.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 24, 2021 08:54PM
tme Wrote:
-------------------------------------------------------
> Hi wacke,
>
> Very interesting!
>
> Can you make a patch with all the differences
> between mainline U-Boot 2021.01 and
> 2021.01-00707-ge716c90229-dirty? I would be happy
> to test if the DDR training works on Netgear
> ReadyNAS RN102 as well.
>
> Regards,
> Trond Melen

Hi Bodhi,
Actually the uboot patch from that site can working with the mainline uboot, I applied that patch(2016.05) to mainline uboot (master branch) with some modify, and the DDR training do working, but it will hang without the mpp and gpp source of my box.
Re: armada 370 (88f6710) mainline uboot support
January 25, 2021 04:15PM
wacke,

As I described above,

Quote
https://forum.doozan.com/read.php?3,43214,114559#msg-114559
In the GPL source you posted above, bit 5 and 8 are turned on. So you know these 2 bits are needed.
#define RD_88F6710_GPP_OUT_VAL_LOW (BIT5 | BIT8)

So now I understood, this GPL source GPIOs as coded above are not for your box. So bit 5 and bit 8 could have messed it up and caused the hang.

Now you need to incorporate the GPIOs that you know are working (from the DTS). Sorry, it seems I forgot to include your DTS in this kernel. Could you post it again! I'll add it in the next release.

I'll explain how you would retrofit that info to this u-boot after you post the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 25, 2021 06:21PM
Hi Bodhi,
The DTS of my box:
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Device Tree file for Marvell RTNAS V3
 * (RD-88F6710-A1)
 *
 *  Copied from arch/arm/boot/dts/armada-370-db.dts
 *
 *  Copyright (C) 2021 Wacke <cao88yu@gmail.com>
 *
 * Note: this Device Tree assumes that the bootloader has remapped the
 * internal registers to 0xf1000000 (instead of the default
 * 0xd0000000). The 0xf1000000 is the default used by the recent,
 * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
 * boards were delivered with an older version of the bootloader that
 * left internal registers mapped at 0xd0000000. If you are in this
 * situation, you should either update your bootloader (preferred
 * solution) or the below Device Tree should be adjusted.
 */

/dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "armada-370.dtsi"

/ {
	model = "RTNAS V3";
	compatible = "marvell,armada-370-rtnasv3", "marvell,armada370", "marvell,armada-370-xp";

	aliases {
		led-boot = &led_power;
		led-failsafe = &led_power;
		led-running = &led_power;
		led-upgrade = &led_power;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@0 {
		device_type = "memory";
		reg = <0x00000000 0x40000000>; /* 1024 MB */
	};

	soc {
		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
				  MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
				  MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;

		internal-regs {
			serial@12000 {
				status = "okay";
			};

			sata@a0000 {
				nr-ports = <2>;
				status = "okay";
			};

			mvsdio@d4000 {
				pinctrl-0 = <&sdio_pins1>;
				pinctrl-names = "default";
				status = "disabled";
				/* No CD or WP GPIOs */
				broken-cd;
			};

			usb@50000 {
				status = "okay";
			};

			usb@51000 {
				status = "okay";
			};

			gpio-keys {
				compatible = "gpio-keys";
				pinctrl-0 = <&reset_button_pin &pwr_button_pin>;
				pinctrl-names = "default";

				reset_button {
					label = "Reset Button";
					linux,code = <KEY_RESTART>;
					gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
				};

				wps_button {
					label = "Software Button";
					linux,code = <KEY_POWER>;
					gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
				};
			};

			gpio-leds {
				compatible = "gpio-leds";
				pinctrl-names = "default";
				pinctrl-0 = <&pwr_led_pin &wps_led_pins>;

				led_power: blue_pwr_led {
					label = "rtnasv3:blue:pwr";
					gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
					default-state = "on";
				};

				blue_wps_led {
					label = "rtnasv3:blue:wps";
					gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
					default-state = "off";
				};
			};
		};
	};
};

&pciec {
	status = "okay";

	/* Internal mini-PCIe connector */
	pcie@1,0 {
		/* Port 0, Lane 0 */
		status = "okay";
	};

	/* Internal mini-PCIe connector */
	pcie@2,0 {
		/* Port 1, Lane 0 */
		status = "okay";
	};
};


&pinctrl {
	compatible = "marvell,mv88f6710-pinctrl";

	pwr_button_pin: pwr-button-pin {
		marvell,pins = "mpp52";
		marvell,function = "gpio";
	};

	reset_button_pin: reset-button-pin {
		marvell,pins = "mpp62";
		marvell,function = "gpio";
	};

	pwr_led_pin: pwr-led-pin {
		marvell,pins = "mpp6";
		marvell,function = "gpio";
	};

	wps_led_pins: wps-led-pins {
		marvell,pins = "mpp50";
		marvell,function = "gpio";
	};
};

&nand_controller {
	status = "okay";

	nand@0 {
		reg = <0>;
		label = "pxa3xx_nand-0";
		nand-rb = <0>;
		marvell,nand-keep-config;
		nand-on-flash-bbt;
		num-cs = <2>;
		nand-ecc-strength = <4>;
		nand-ecc-step-size = <512>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

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

			partition@800000 {
				label = "vendor";
				reg = <0x800000 0x400000>;
			};

			partition@c00000 {
				label = "rescue";
				reg = <0xc00000 0x2000000>;
			};

			partition@0x8c00000 {
				label = "kernel";
				reg = <0x2c00000 0x800000>;
			};

			partition@0x3400000 {
				label = "ubi";
				reg = <0x3400000 0x40000000>;
			};

			partition@0x43400000 {
				label = "rootfs_data";
				reg = <0x43400000 0xbcc00000>;
			};
		};
	};
};

&mdio {
	pinctrl-0 = <&mdio_pins>;
	pinctrl-names = "default";
	status = "okay";

	switch: switch0@0 {
		compatible = "marvell,mv88e6085";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0>;
		interrupt-controller;
		#interrupt-cells = <2>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
			       reg = <0>;
			       label = "lan1";
			};

			port@1 {
			       reg = <1>;
			       label = "lan2";
			};

			port@2 {
			       reg = <2>;
			       label = "lan3";
			};

			port@3 {
			       reg = <3>;
			       label = "lan4";
			};

			port@4 {
			       reg = <4>;
			       label = "wan";
			};

			port@5 {
				reg = <5>;
				label = "cpu";
				ethernet = <&eth1>;
				phy-mode = "rgmii-id";

				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
		};

		mdio {
			#address-cells = <1>;
			#size-cells = <0>;

			switchphy0: switchphy@0 {
				reg = <0>;
				interrupt-parent = <&switch>;
				interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy1: switchphy@1 {
				reg = <1>;
				interrupt-parent = <&switch>;
				interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy2: switchphy@2 {
				reg = <2>;
				interrupt-parent = <&switch>;
				interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy3: switchphy@3 {
				reg = <3>;
				interrupt-parent = <&switch>;
				interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy4: switchphy@4 {
				reg = <4>;
				interrupt-parent = <&switch>;
				interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
			};
		};
	};
};

&coherencyfab {
	broken-idle;
};

&eth0 {
	status = "disabled";
};

/* eth1 is connected to a Marvell 88E6171 switch, without a PHY. So set
 * fixed speed and duplex.
 */
&eth1 {
	status = "okay";
	phy-mode = "rgmii-id";
	pinctrl-0 = <&ge1_rgmii_pins>;
	local-mac-address = [00 11 32 21 46 bf];
	fixed-link {
		   speed = <1000>;
		   full-duplex;
	};
};

&rtc {
	status = "disabled";
};


Quote
I'll explain how you would retrofit that info to this u-boot after you post the DTS.

As I've got the u-boot source of my box (Marvell 2011.12), there is no need to retrofit to that u-boot(from seagate, Marvell 2011.12), but for mainline uboot, there still a lot of things to do:

U-Boot 2021.01-00707-ge716c90229-dirty (Jan 25 2021 - 19:59:48 +0800)

SoC:   MV88F6710-A1 at 1200 MHz
I2C:   ready
DRAM:  512 MiB (600 MHz, ECC not enabled)
NAND:  (NULL udevice *): Wait timeout!!!
(NULL udevice *): Ready timeout!!!
(NULL udevice *): There is no chip on cs 0!
(NULL udevice *): failed to scan nand at cs 0
0 MiB
Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Model: Marvell RTNAS V3
Board: Marvell RD-88F6710
Net:   No ethernet found.


RAM: Only recognize 512M, but my box have 1G,
NAND: Not work,
Ethernet: Not work,
SATA: Not work,
Switch Chip: Not work.
Re: armada 370 (88f6710) mainline uboot support
January 25, 2021 09:55PM
wacke,


Quote

As I've got the u-boot source of my box (Marvell 2011.12), there is no need to retrofit to that u-boot(from seagate, Marvell 2011.12), but for mainline uboot, there still a lot of things to do.

I see.

Sorry, my policy has been not to discuss how to roll mainline u-boot or kernel for a new box in this forum. It will take too much of my limited free time if I'm open to that discussion. However, if you run into some road block while trying, I might be able give you some pointers to get over the hurdle.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: armada 370 (88f6710) mainline uboot support
January 27, 2021 02:17AM
Hi Bodhi,
Please use this dts (readded the uboot_env partition) :
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Device Tree file for Marvell RTNAS V3
 * (RD-88F6710-A1)
 *
 *  Copied from arch/arm/boot/dts/armada-370-db.dts
 *
 *  Copyright (C) 2021 Wacke <cao88yu@gmail.com>
 *
 * Note: this Device Tree assumes that the bootloader has remapped the
 * internal registers to 0xf1000000 (instead of the default
 * 0xd0000000). The 0xf1000000 is the default used by the recent,
 * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
 * boards were delivered with an older version of the bootloader that
 * left internal registers mapped at 0xd0000000. If you are in this
 * situation, you should either update your bootloader (preferred
 * solution) or the below Device Tree should be adjusted.
 */

/dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "armada-370.dtsi"

/ {
	model = "RTNAS V3";
	compatible = "marvell,armada-370-rtnasv3", "marvell,armada370", "marvell,armada-370-xp";

	aliases {
		led-boot = &led_power;
		led-failsafe = &led_power;
		led-running = &led_power;
		led-upgrade = &led_power;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@0 {
		device_type = "memory";
		reg = <0x00000000 0x40000000>; /* 1024 MB */
	};

	soc {
		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
				  MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
				  MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;

		internal-regs {
			serial@12000 {
				status = "okay";
			};

			sata@a0000 {
				nr-ports = <2>;
				status = "okay";
			};

			mvsdio@d4000 {
				pinctrl-0 = <&sdio_pins1>;
				pinctrl-names = "default";
				status = "disabled";
				/* No CD or WP GPIOs */
				broken-cd;
			};

			usb@50000 {
				status = "okay";
			};

			usb@51000 {
				status = "okay";
			};

			gpio-keys {
				compatible = "gpio-keys";
				pinctrl-0 = <&reset_button_pin &pwr_button_pin>;
				pinctrl-names = "default";

				reset_button {
					label = "Reset Button";
					linux,code = <KEY_RESTART>;
					gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
				};

				wps_button {
					label = "Software Button";
					linux,code = <KEY_POWER>;
					gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
				};
			};

			gpio-leds {
				compatible = "gpio-leds";
				pinctrl-names = "default";
				pinctrl-0 = <&pwr_led_pin &wps_led_pins>;

				led_power: blue_pwr_led {
					label = "rtnasv3:blue:pwr";
					gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
					default-state = "on";
				};

				blue_wps_led {
					label = "rtnasv3:blue:wps";
					gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
					default-state = "off";
				};
			};
		};
	};
};

&pciec {
	status = "okay";

	/* Internal mini-PCIe connector */
	pcie@1,0 {
		/* Port 0, Lane 0 */
		status = "okay";
	};

	/* Internal mini-PCIe connector */
	pcie@2,0 {
		/* Port 1, Lane 0 */
		status = "okay";
	};
};


&pinctrl {
	compatible = "marvell,mv88f6710-pinctrl";

	pwr_button_pin: pwr-button-pin {
		marvell,pins = "mpp52";
		marvell,function = "gpio";
	};

	reset_button_pin: reset-button-pin {
		marvell,pins = "mpp62";
		marvell,function = "gpio";
	};

	pwr_led_pin: pwr-led-pin {
		marvell,pins = "mpp6";
		marvell,function = "gpio";
	};

	wps_led_pins: wps-led-pins {
		marvell,pins = "mpp50";
		marvell,function = "gpio";
	};
};

&nand_controller {
	status = "okay";

	nand@0 {
		reg = <0>;
		label = "pxa3xx_nand-0";
		nand-rb = <0>;
		marvell,nand-keep-config;
		nand-on-flash-bbt;
		num-cs = <2>;
		nand-ecc-strength = <4>;
		nand-ecc-step-size = <512>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

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

			partition@400000 {
				label = "uboot_env";
				reg = <0x400000 0x400000>;
			};

			partition@800000 {
				label = "vendor";
				reg = <0x800000 0x400000>;
			};

			partition@c00000 {
				label = "rescue";
				reg = <0xc00000 0x2000000>;
			};

			partition@0x8c00000 {
				label = "kernel";
				reg = <0x2c00000 0x800000>;
			};

			partition@0x3400000 {
				label = "ubi";
				reg = <0x3400000 0x40000000>;
			};

			partition@0x43400000 {
				label = "rootfs_data";
				reg = <0x43400000 0xbcc00000>;
			};
		};
	};
};

&mdio {
	pinctrl-0 = <&mdio_pins>;
	pinctrl-names = "default";
	status = "okay";

	switch: switch0@0 {
		compatible = "marvell,mv88e6085";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0>;
		interrupt-controller;
		#interrupt-cells = <2>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
			       reg = <0>;
			       label = "lan1";
			};

			port@1 {
			       reg = <1>;
			       label = "lan2";
			};

			port@2 {
			       reg = <2>;
			       label = "lan3";
			};

			port@3 {
			       reg = <3>;
			       label = "lan4";
			};

			port@4 {
			       reg = <4>;
			       label = "wan";
			};

			port@5 {
				reg = <5>;
				label = "cpu";
				ethernet = <&eth1>;
				phy-mode = "rgmii-id";

				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
		};

		mdio {
			#address-cells = <1>;
			#size-cells = <0>;

			switchphy0: switchphy@0 {
				reg = <0>;
				interrupt-parent = <&switch>;
				interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy1: switchphy@1 {
				reg = <1>;
				interrupt-parent = <&switch>;
				interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy2: switchphy@2 {
				reg = <2>;
				interrupt-parent = <&switch>;
				interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy3: switchphy@3 {
				reg = <3>;
				interrupt-parent = <&switch>;
				interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
			};

			switchphy4: switchphy@4 {
				reg = <4>;
				interrupt-parent = <&switch>;
				interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
			};
		};
	};
};

&coherencyfab {
	broken-idle;
};

&eth0 {
	status = "disabled";
};

/* eth1 is connected to a Marvell 88E6171 switch, without a PHY. So set
 * fixed speed and duplex.
 */
&eth1 {
	status = "okay";
	phy-mode = "rgmii-id";
	pinctrl-0 = <&ge1_rgmii_pins>;
	local-mac-address = [00 11 32 21 46 bf];
	fixed-link {
		   speed = <1000>;
		   full-duplex;
	};
};

&rtc {
	status = "disabled";
};


And I'm now trying to configure the uboot envtools, but it show error:
root@debian:/etc# fw_printenv      
Unsupported flash type 8 on /dev/mtd1
CASset=min
MALLOC_len=5
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x2c00000 0x800000; bootm $loadaddr
bootcmd2=ide reset; ext4load ide 0:1 0x00800000 /boot/uImage; ext4load ide 0:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=no
enaWrAllo=no
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.200
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=nand_mtd:8m(uboot),4m(vendor),32m(rescue),8m(kernel),1024m(ubi),-(rootfs_data)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rescueboot=nand read 0x2000000 0xc00000 0x2000000; bootm 0x2000000
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.2
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no
root@debian:/etc# fw_setenv test test
Unsupported flash type 8 on /dev/mtd1
root@debian:/etc# fw_printenv 
Unsupported flash type 8 on /dev/mtd1
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: