VG3503J- can't get kernel image

Hello Lede Project Team and Forum Members.

OpenWrt to Lede on the VG3503J produced this on an snapshot after the 11th or 10Th of December.

[code]
VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)

CLOCK CPU 333M RAM 166M
DRAM: 32 MiB
Flash: 8 MiB
In: serial
Out: serial
Err: serial
Net: Internal phy(GE) firmware version: 0x8400
vr9 Switch
Using vr9 Switch device
ping failed; host 1.1.1.1 is not alive

Booting image at b0020000 ...

Wrong Image Format for bootm command
ERROR: can't get kernel image!

Hit any key to stop autoboot: 0

Checking CFG Image at b07c0000 ...

Check Primary System Image ...

Primary System Image Checksum Error !!

Check Secondary System Image ...

Secondary System Image Checksum Error !![/code]

Followed the rework instrustions..
source/commit/
17094e9e642ffca19c6b6681766d2bcbb8e6e565

Printenv if it helps?

[code]
VR9 # printenv
bootcmd=run flash_flash_1
bootdelay=3
baudrate=115200
bootfile="uImage"
mem=31M
phym=32M
netdev=eth0
console=ttyS0
baudrate=115200
tftppath=
loadaddr=0x80800000
rootpath=/mnt/full_fs
rootfsmtd=/dev/mtdblock1
nfsargs= setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):on
addmisc=setenv bootargs $(bootargs) console=$(console),$(baudrate) ethaddr=$(ethaddr) phym=$(phym) mem=$(mem) panic=1 mtdparts=$(mtdparts) )
flash_nfs=run nfsargs addip addmisc;bootm $(kernel_addr)
net_nfs=tftp $(loadaddr) $(tftppath)$(bootfile);run nfsargs addip addmisc;bootm
net_flash=tftp $(loadaddr) $(tftppath)$(bootfile); run flashargs addip addmisc; bootm
net_ram=tftp $(loadaddr) $(tftppath)$(bootfile); run ramargs addip addmisc; bootm
u-boot=u-boot.ifx
releaseimg=releaseImg.bin
btagent=ap_jffs2.img
flashargs1=setenv bootargs root=/dev/mtdblock8 ro rootfstype=squashfs
flashargs2=setenv bootargs root=/dev/mtdblock9 ro rootfstype=squashfs
commit_img_1=setenv bootargs $(bootargs) commit_img=1 LD_LIBRARY_PATH=/btagent/lib
commit_img_2=setenv bootargs $(bootargs) commit_img=2 LD_LIBRARY_PATH=/btagent/lib
flash_flash_1=run flashargs1 addip addmisc commit_img_1; bootm $(f_pri_kernel_addr)
flash_flash_2=run flashargs2 addip addmisc commit_img_2; bootm $(f_sec_kernel_addr)
update_uboot_only=tftpboot $(loadaddr) $(u-boot);prot off 0xb0000000 0xb001ffff;erase 0xb0000000 0xb001ffff;upgrade uboot $(loadaddr) $(fil0
update_uboot=tftpboot $(loadaddr) $(u-boot);prot off all;erase all;upgrade uboot $(loadaddr) $(filesize) 0
update_pri_img=tftpboot $(loadaddr) $(releaseimg);upgrade pri_img $(loadaddr) $(filesize) 0
update_sec_img=tftpboot $(loadaddr) $(releaseimg);upgrade sec_img $(loadaddr) $(filesize) 0
update_btagent=tftpboot $(loadaddr) $(btagent);upgrade btagent $(loadaddr) $(filesize) 0
boot_img_idx=0
reset_sys_config=prot off 0xB07E0000 0xB07EFFFF; erase 0xB07E0000 0xB07EFFFF
reset_bt_config=prot off 0xB07C0000 0xB07DFFFF; erase 0xB07C0000 0xB07DFFFF
reset_all_config=run reset_sys_config; run reset_bt_config
reset_uboot_config=prot off $(f_ubootconfig_addr) $(f_ubootconfig_end); erase $(f_ubootconfig_addr) $(f_ubootconfig_end)
reset_ddr_config=prot off $(f_ddrconfig_addr) $(f_ddrconfig_end); erase $(f_ddrconfig_addr) $(f_ddrconfig_end)
mtdparts=ifx_nor0:128k@0(uboot),3648k@128k(pri_image),3648k@3776k(sec_image),512k@7424k(btagent),64k@7936k(pri_bfocus_cfg),64k@8000k(sec_bf)
part0_begin=0xB0000000
part1_begin=0xB0020000
part2_begin=0xB03B0000
part3_begin=0xB0740000
part4_begin=0xB07C0000
part5_begin=0xB07D0000
part6_begin=0xB07E0000
part7_begin=0xB07F0000
total_part=8
flash_end=0xB07FFFFF
data_block0=uboot
data_block1=pri_img
data_block2=sec_img
data_block3=btagent
data_block4=pri_bfocus_cfg
data_block5=sec_bfocus_cfg
data_block6=sysconfig
data_block7=ubootconfig
data_block8=fwdiag
total_db=9
f_uboot_addr=0xB0000000
f_uboot_size=0x00020000
f_ubootconfig_addr=0xB07F0000
f_ubootconfig_size=0x0000F000
f_ubootconfig_end=0xB07FEFFF
f_pri_img_addr=0xB0020000
f_pri_img_size=0x390000
f_pri_img_end=0xB03AFFFF
f_pri_kernel_addr=0xB0020000
f_pri_kernel_size=0x100000
f_pri_kernel_end=0xB011FFFF
f_pri_rootfs_addr=0xB0120000
f_pri_rootfs_size=0x00290000
f_pri_rootfs_end=0xB03AFFFF
f_sec_img_addr=0xB03B0000
f_sec_img_size=0x390000
f_sec_img_end=0xB073FFFF
f_sec_kernel_addr=0xB03B0000
f_sec_kernel_size=0x00100000
f_sec_kernel_end=0xB04AFFFF
f_sec_rootfs_addr=0xB04B0000
f_sec_rootfs_size=0x00290000
f_sec_rootfs_end=0xB073FFFF
f_btagent_addr=0xB0740000
f_btagent_size=0x00080000
f_btagent_end=0xB07BFFFF
f_pri_bfocus_cfg_addr=0xB07C0000
f_pri_bfocus_cfg_size=0x00010000
f_pri_bfocus_cfg_end=0xB07CFFFF
f_sec_bfocus_cfg_addr=0xB07D0000
f_sec_bfocus_cfg_size=0x00010000
f_sec_bfocus_cfg_end=0xB07DFFFF
f_all_flash_addr=0xB0000000
f_all_flash_size=0x00800000
f_all_flash_end=0xB07FFFFF
f_sysconfig_addr=0xB07E0000
f_sysconfig_size=0x00010000
f_fwdiag_addr=0xB07FF000
f_fwdiag_size=0x400
f_calibration_addr= IFX_CFG_FLASH_CALIBRATION_START_ADDR
f_calibration_size=IFX_CFG_FLASH_CALIBRATION_CFG_SIZE
f_ddrconfig_addr=0xB07FF400
f_ddrconfig_size=0x100
f_ddrconfig_end=0xB07FF4FF
ethact=vr9 Switch
ethaddr= XX:XX:XX:XX:XX:XX ( Edited - Mac as found on base of unit.)
preboot=ping 1.1.1.1;bootm 0xb001f000
filesize=4000A7
fileaddr=81000000
ipaddr=192.168.2.1
serverip=192.168.2.100
stdin=serial
stdout=serial
stderr=serial

Environment size: 4631/61436 bytes[/code]

A Snapshot before the 10/12/16 build worked fine on a upgrade with a second test VG3503J unit.

Novice with Uboot any help help most welcome!

Thanks.

Ps: Is it possible to rework uboot for a CPU Clock at 500 instead of 333 ?

Have you done these steps to write the sysupgrade image to the flash?

VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin
VR9 # erase 0xb0020000 $(filesize)
VR9 # cp.b 0x81000000 0xb0020000 $(filesize)

Your u-boot env looks fine so far.

Hi mkresin

ROM VER: 1.
ROM VER: 1.0.5
CFG 01
DDR autotuning Rev 0.3c
DDR size from 0xa0000000 - 0xa3ffffff
DDR check ok... start booting...



VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)

CLOCK CPU 333M RAM 166M
DRAM:  32 MiB
Flash: 8 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Internal phy(GE) firmware version: 0x8400
vr9 Switch
Using vr9 Switch device

Abort
ping failed; host 1.1.1.1 is not alive

Hit any key to stop autoboot:  0 

VR9 # run reset_uboot_config
Un-Protected 1 sectors

. done
Erased 1 sectors

VR9 # reset
ROM VER: 1.0.5
CFG 01
DDR autotuning Rev 0.3c
DDR size from 0xa0000000 - 0xa3ffffff
DDR check ok... start booting...


VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)

CLOCK CPU 333M RAM 166M
DRAM:  32 MiB
Flash: 8 MiB
*** Warning - bad CRC, using default environment

Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
In:    serial
Out:   serial
Err:   serial
Net:   Internal phy(GE) firmware version: 0x8400
vr9 Switch

Hit any key to stop autoboot:  0 

VR9 # <INTERRUPT>

VR9 # setenv ethaddr XX:XX:XX:XX:XX:XX ( Same as on base)

VR9 # setenv preboot ping 1.1.1.1\;bootm 0xb001f000

VR9 # saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors

VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin
Using vr9 Switch device
TFTP from server 192.168.2.100; our IP address is 192.168.2.1
Filename 'lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin'.
Load address: 0x81000000
Loading: T T #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############################################
done
Bytes transferred = 4456614 (4400a6 hex)

VR9 # erase 0xb0020000 $(filesize)
erase - erase FLASH memory

Usage:
erase start end
    - erase FLASH from addr 'start' to addr 'end'
erase start +len
    - erase FLASH from addr 'start' to the end of sect w/addr 'start'+'len'-1
erase N:SF[-SL]
    - erase sectors SF-SL in FLASH bank # N
erase bank N
    - erase FLASH bank # N
erase all
    - erase all FLASH banks

VR9 # cp.b 0x81000000 0xb0020000 $(filesize)
Copy to Flash... Flash not Erased

VR9 # reset

VR9 # reset
ROM VER: 1.0.5
CFG 01
DDR autotuning Rev 0.3c
DDR size from 0xa0000000 - 0xa3ffffff
DDR check ok... start booting...



VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)

CLOCK CPU 333M RAM 166M
DRAM:  32 MiB
Flash: 8 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Internal phy(GE) firmware version: 0x8400
vr9 Switch
Using vr9 Switch device
ping failed; host 1.1.1.1 is not alive

## Booting image at b0020000 ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Hit any key to stop autoboot: 

Just tried again on a unit with openwrt already installed.

Syntax error in the erase command and the copy to flash fails because flash is not erased.

Would you please try:

VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin
VR9 # erase 0xb0020000 +$(filesize)
VR9 # cp.b 0x81000000 0xb0020000 $(filesize)

Thank you mkresin !

The +$ worked perfectly.

ROM VER: 1.0.5                          
CFG 01                                  
DDR autotuning Rev 0.3c                 
DDR size from 0xa0000000 - 0xa3ffffff   
DDR check ok... start booting...        
                                        
                                        
                                        
VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)

CLOCK CPU 333M RAM 166M
DRAM:  32 MiB
Flash: 8 MiB                                                                    
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   Internal phy(GE) firmware version: 0x8400                                
vr9 Switch                                                                      
Using vr9 Switch device                                                         
                                                                                
Abort                                                                           
ping failed; host 1.1.1.1 is not alive                                          
                                                                                
Hit any key to stop autoboot:  0                                                
                                                                                
VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin        
Using vr9 Switch device                                                         
TFTP from server 192.168.2.100; our IP address is 192.168.2.1                   
Filename 'lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin'.                  
Load address: 0x81000000                                                        
Loading:  #################################################################    
         #################################################################      
         #################################################################      
         #################################################################      
         ############################################                           
done                                                                            
Bytes transferred = 4456614 (4400a6 hex)                                        
                                                                                
VR9 # erase 0xb0020000 +$(filesize)                                             
                                                                                
..................................................................... done      
Erased 69 sectors                                                               
                                                                                
VR9 # cp.b 0x81000000 0xb0020000 $(filesize)                                    
Copy to Flash... done                                                           
                                                                                
VR9 # reset                                                                     
ROM VER: 1.0.5                                                                  
CFG 01                                                                          
DDR autotuning Rev 0.3c                                                         
DDR size from 0xa0000000 - 0xa3ffffff                                           
DDR check ok... start booting...                                                
                                                                                
                                                                                
                                                                                
VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)                     
                                                                                
CLOCK CPU 333M RAM 166M                                                         
DRAM:  32 MiB                                                                   
Flash: 8 MiB                                                                    
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   Internal phy(GE) firmware version: 0x8400                                
vr9 Switch                                                                      
Using vr9 Switch device                                                         
ping failed; host 1.1.1.1 is not alive                                          
                                                                                
## Booting image at b0020000 ...                                                
## Booting kernel from Legacy Image at b0020000 ...                             
   Image Name:   MIPS LEDE Linux-4.4.36                                         
   Created:      2016-12-09  16:16:43 UTC                                       
   Image Type:   MIPS Linux Kernel Image (lzma compressed)                      
   Data Size:    1674681 Bytes = 1.6 MiB                                        
   Load Address: 80002000                                                       
   Entry Point:  80002000                                                       
   Verifying Checksum ... OK                                                    
   Uncompressing Kernel Image ... OK        
(runs normal boot)


BusyBox v1.25.1 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (CURRENT, r2446-9791fb2)
    \________\/    -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
.........

Also
Thank you for your development work on with the phys/ switch/ vlans ect. Its been catching many people out since 2012.