Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all articles
Browse latest Browse all 902

OpenWRT 2nd stage u-boot problems on Pogoplug-E02 (8 replies)

$
0
0
As per the instructions at "https://wiki.openwrt.org/toh/cloudengines/pogoplug" I flashed the OpenWRT 2nd stage u-boot onto my Pogoplug-E02 to be chainloaded by the stock Cloud Engines u-boot.

After flashing and doing the "reset" the Pogoplug did indeed chainload the OpenWRT u-boot but it then hangs at the following point:

USB 0: host mode                                                                
PEX 0: interface detected no Link.                                              
Net:   egiga0 [PRIME], egiga1                                                   
Hit any key to stop autoboot:  0                                                
                                                                                
NAND read: device 0 offset 0x100000, size 0x200000                              
                                                                                
Reading data from 0x2ff800 -- 100% complete.                                    
 2097152 bytes read: OK                                                         
## Booting image at 00800000 ...                                                
   Image Name:   OpenWrt Das U-Boot uImage                                      
   Created:      2016-01-02   1:38:50 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    454856 Bytes = 444.2 kB                                        
   Load Address: 00600000                                                       
   Entry Point:  00600000                                                       
   Verifying Checksum ... OK

I've posted a question about this on the OpenWRT formus but thought I'd also post here as well. I'm wondering if there's an issue with the current environment variable settings.

The OpenWRT u-boot version appears to be 2014.10 (based on doing a "strings" on the binary.

Here's the output of my flashing the 2nd stage OpenWRT u-boot from the stock u-boot (including a list of environment variables) and then output after rebooting. Note: I have obscured IPs and MAC address in this output:

CE>> setenv ipaddr 100.2.3.3
CE>> setenv serverip 100.2.3.5
CE>> setenv netmask 255.255.255.0
CE>> printenv                                                                   
baudrate=115200                                               
loads_echo=0                                                                    
rootpath=/mnt/ARM_FS/                                                           
run_diag=yes                                                                    
console=console=ttyS0,115200                                                    
CASset=min                                                                      
MALLOC_len=1                                                                    
ethprime=egiga0                                                                 
bootargs_root=root=/dev/mtdblock2 ro                                            
ethmtu=1500                                                                     
usb0Mode=host                                                                   
nandEcc=1bit                                                                    
ethact=egiga0                                                                   
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro
ethaddr=00:01:02:03:04:05
cesvcid=ABCDEFGHIJKLMNOPQRS
ceboardver=PPV2                                                                 
bootcmd=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bo0
stdin=serial                                                                    
stdout=serial                                                                   
stderr=serial                                                                   
mainlineLinux=no                                                                
enaMonExt=no                                                                    
enaCpuStream=no                                                                 
enaWrAllo=no                                                                    
pexMode=RC                                                                      
disL2Cache=no                                                                   
setL2CacheWT=yes                                                                
disL2Prefetch=yes                                                               
enaICPref=yes                                                                   
enaDCPref=yes                                                                   
sata_dma_mode=yes                                                               
netbsd_en=no                                                                    
vxworks_en=no                                                                   
bootdelay=3
disaMvPnp=no                                                                    
serverip=100.2.3.5                           
netmask=255.255.255.0                                                           
ipaddr=100.2.3.3

Environment size: 799/131068 bytes                                              
CE>> mw 0x800000 0xffff 0x80000                                                 
CE>> tftpboot 0x800000 openwrt-kirkwood-pogo_e02_second_stage-u-boot.img        
Using egiga0 device                                                             
TFTP from server 100.2.3.5; our IP address is 100.2.3.3
Filename 'openwrt-kirkwood-pogo_e02_second_stage-u-boot.img'.                   
Load address: 0x800000                                                          
Loading: #################################################################      
         ########################                                               
done                                                                            
Bytes transferred = 454920 (6f108 hex)                                          
CE>> nand erase 0x100000 0x80000                                                
                                                                                
NAND erase: device 0 offset 0x100000, size 0x80000                              
Erasing at 0x160000 -- 100% complete.                                           
OK                                                                              
CE>> nand write.e 0x800000 0x100000 0x80000                                     
                                                                                
NAND write: device 0 offset 0x100000, size 0x80000                              
                                                                                
Writing data at 0x17f800 -- 100% complete.                                      
 524288 bytes written: OK                                                       
                                                                                
Environment size: 830/131068 bytes                                              
CE>> reset                                                                      
                                                                                
                                                                                
U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16)               
                                                                                
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60                             
                                                                                
Soc: 88F6281 A0 (DDR2)                                                          
CPU running @ 1200Mhz L2 running @ 400Mhz                                       
SysClock = 400Mhz , TClock = 200Mhz                                             
                                                                                
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6                                   
DRAM CS[0] base 0x00000000   size 256MB                                         
DRAM Total size 256MB  16bit width                                              
Flash:  0 kB                                                                    
Addresses 8M - 0M are saved for the U-Boot usage.                               
Mem malloc Initialization (8M - 7M): Done                                       
NAND:128 MB

CPU : Marvell Feroceon (Rev 1)                                                  
CLOUD ENGINES BOARD: PPV2                                                       
                                                                                
Streaming disabled                                                              
Write allocate disabled                                                         
                                                                                
                                                                                
USB 0: host mode                                                                
PEX 0: interface detected no Link.                                              
Net:   egiga0 [PRIME], egiga1                                                   
Hit any key to stop autoboot:  0                                                
                                                                                
NAND read: device 0 offset 0x100000, size 0x200000                              
                                                                                
Reading data from 0x2ff800 -- 100% complete.                                    
 2097152 bytes read: OK                                                         
## Booting image at 00800000 ...                                                
   Image Name:   OpenWrt Das U-Boot uImage                                      
   Created:      2016-01-02   1:38:50 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    454856 Bytes = 444.2 kB                                        
   Load Address: 00600000
   Entry Point:  00600000                                                       
   Verifying Checksum ... OK

Any help would be most welcome.

Viewing all articles
Browse latest Browse all 902

Trending Articles