Skip to content
Permalink
Browse files
add uboot binary for flash and ram
  • Loading branch information
dpeddi committed Jul 14, 2014
1 parent d0f540c commit 76fdd8e638f81e324ffe77856481bd147398f6e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 0 deletions.
BIN +251 KB flash/u-boot.bin
Binary file not shown.
BIN +251 KB ram/u-boot.bin
Binary file not shown.

108 comments on commit 76fdd8e

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see u are using minicom, for me working send file with

ctrl+a to enter menu, then press y to send asc file.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

Thanks for your message, I tried but still no luck.

could you send me the u-boot.asc maybe? or give me a Dropbox link or any another share solution? because it seems that I don't have a correct u--boot.asc image file. I received one from The-Lizard, but that one does not work unfortunately.

So if you can give me a link with a working u-boot.asc image file? That would be really appreciated. :)

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not having asc for vgv7519, i installed uboot from jtag on this.
Asc file installed with minicom y command succesfully on a p2812hnu-f1.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes u can, and u can easy build one using internet pictures. U can use an unbuffered dlc5.
As software , openocd with instructions and files putted here openocd-lantiq.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put 500 there

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, now this seems to startup. But still I get several errors.

Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: vrx200.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors

Can this be because one of the Wires not not making good contact?
Also does the router have to be powered on or not? I"m not providing power to the board externally. Just the 5 Jtag wires which are ground and signal wires.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

U need put the trst pin to 3.3vcc, to enable jtag.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Router need powered on.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so I need both? turn on the router and put 3,3v on the trst pin?

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok great, The board is detected and it is listening for commands.
Actually this is my first time JTAG as I told. Is there some tutorial I can follow? because I don't exactly know how to load the image in RAM.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look in config folder for instructions, no tutorial for this.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename uboot for ram file in u-boot.bin
open another window in terminal and run

telnet localhost 4444

then

vgv7519_uboot_ram

after image loaded u will have vgv7519 prompt, then can use wiki tutorial further.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that ends(stops) with the message:

VRX200: MC init finish.
Is that correct?

and then nothing. Also the TTL-Serial console does not show something.

Maybe I'm inpatient, I leave it running for some time.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try swap endianes of u-boot ram file
then load again

dd if=u-boot.bin of=u-boot-swab.bin conv=swab

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently using windows. thats the only working machine I have with a physical LPT port.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

off. wait little to boot linux machine

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw what ram file u used with openocd?

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah it is still busy doing something. Its downloading the Uboot.
I get a message mini_program did not return to start. maybe I have to lower the Adapter Freq?
I'm using a old Compaq laptop with a 400Mhz P2 processor. Haha don't laugh. :)

Its running at 0.318KiB/s so its kinda slow.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, if my current fails I'll try yours :)

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I changed the adapter freq to a higher rate. had 50 now 500, forgot a 0 :)

But both the U-boot images are not working, Yours and the one here from Github.
At least they don't seem to work.
When the command is finisht it just boots the stock Arcadyan firmware?

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let us talk in team viewer, and let me look at config, if u are ok

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah no problem. Hope my p2 laptop is fast enough for teamviewer.
One sec I'll download the tools

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is your email so I can send u the ID and password details?

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go on skype, my id is rodycor-Romania

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok great, Thanks for all the help 👍 . I'll add you : )

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've send you a message? did you get it?

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nop, leave me u id

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I know, thats why I've not posted it here.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try asc files from this link, they are bassed on p2812hnu-f1, since ddr_settings are same, and cpu also.
first try uboot-ram.asc, if not try the nor one.

https://www.dropbox.com/sh/ezsjqgtg2df6eb3/AADSPnTXWYv61-3GyacjI3LDa?dl=0

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok great. Thanks! I'll post the results when I'm awake tomorrow.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested both files. But still no u-boot. It just shows the UART promt again.
I don't know what is wrong with my unit.

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm stuck with the following status: Phy not found. Using version vgv7519: tryfix issue on external phy v1.5 and version vgv7519: gphy compressed firmware. With the other versions the sytem keep in a reboot loop with the original loader. The phy is printed with V1.5

How can I continue to get open wrt on this experia box V8.

U-Boot 2013.04-rc1-g9d05354-dirty (Mar 04 2014 - 11:33:44) VGV7519

Board: Arcadyan VGV7519 VRX288 Board
SoC: Lantiq VRX288 v1.2
CPU: 500 MHz
IO: 250 MHz
BUS: 250 MHz
BOOT: NOR
DRAM: 64 MiB
Flash: 16 MiB
Using default environment

In: serial
Out: serial
Err: serial
Net: Phy not found
PHY reset timed out
ltq-eth
VGV7519 #

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your quick reply! No, I didn't try it and I have no build chain. Do you know if a binary is available?

@TimelessNL
Copy link

@TimelessNL TimelessNL commented on 76fdd8e Aug 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenWRT has been forked to LEDE. Which has support for the VGV7519 since: https://git.lede-project.org/?p=source.git;a=commit;h=b0a202ebdc4e523c66d593c9933beda69ce274c6

Most of the hardware is working, with the exception of the external PHY LEDs on the R01 unit. But this is hardware related.

@BertHav
Copy link

@BertHav BertHav commented on 76fdd8e Aug 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pointer to the OpenWRT branch. The LED's don't bother me. First worry is to grab a suited u-boot and how to create a RAM and flash version.

@cornelus1978
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, i use this and worked.
uboot.zip

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Cornelus1978. Sorry this one don't work. The board keeps booting. I'll try to setup a tool chain.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you missed my point. the VGV7519 uboot has been integrated in LEDE and can can be selected before compiling the source code. Select the bootloader in either binary and/or asc format and load it to the platform the way you like it.

For example you can put the device in UART mode and upload the compiled .asc file. From there you can flash the binary file. Most people find this easier that flashing though JTaG.

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TimelessNL I missed your point completely. The environment is now building. Thanks for pointing. To be continued...

@BertHav
Copy link

@BertHav BertHav commented on 76fdd8e Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version of u-boot in the LEDE tool chain falls back to a 2013.10 version when creating a firmware. The results with this version are the same:

Net: Phy not found
PHY reset timed out
ltq-eth
VGV7519 #

Alternatively, I would try to make a u -boot version with the ELDK toolchain .
Can anyone advise me what target architecture of the ELDK repository is best to use with Ubuntu 14.04 on intel?
Or is there a more recommended method?

@TimelessNL
Copy link

@TimelessNL TimelessNL commented on 76fdd8e Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have both the R01 and R02 and I'm sure I tested them individually before the commit to LEDE was done. I'll verify it after todays work.

Since you said to have v1.5 for the external phy's I assume you have R02. Could you verify that it is on your PCB? Maybe you have another reversion which we do not yet know.

For now you can also use loadx to load LEDE via serial:
https://wiki.openwrt.org/toh/astoria/arv752dpw22?s[]=sx#run_u-boot_noninvasive_via_serial_port and replace uboot.bin with a LEDE image.

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh... it seems to be a R01 unit. And I noticed that the R01/R02 information on the OpenWRT Wiki is reversed.

I compiled a U-boot from the LEDE repository. And flashed it on my R01 unit. And don't see any problems at all:


U-Boot 2013.10-openwrt4 (Aug 17 2016 - 16:20:36) VGV7519

Board: Arcadyan VGV7519
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  64 MiB
Flash: 16 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  0 
VGV7519 #

@BertHav
Copy link

@BertHav BertHav commented on 76fdd8e Aug 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you for all your effort and support.
Let me explain what I've done. Maybe it is my ignorance.
The first attempt was a download from https://github.com/lede-project/source.
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make

My selections are:
Target system: Lantiq
Subtarget: XRX200
Target profile: Experiabox 8 VGV7519
Boot Loaders: uboot_lantiq_vgv7519_ram and the nor version.
The ram version is used for an upload by the jtag to address 0x80100000.

Yesterday I made an attempt with a snapshot pull from https://git.lede-project.org/?p=source.git;a=commit;h=b0a202ebdc4e523c66d593c9933beda69ce274c6 with the same command sequence. Both ended in the same result:

U-Boot 2013.10-openwrt4 (Aug 17 2016 - 21:50:51) VGV7519

Board: Arcadyan VGV7519
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  64 MiB
Flash: 16 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Phy not found
PHY reset timed out
ltq-eth
VGV7519 #

The device is unconnected. Original it was distributed by KPN. With the original firmware I was able to reconfigure and test it with Telfort. The LAN, WAN and Wifi are physical ok.

@TimelessNL
Copy link

@TimelessNL TimelessNL commented on 76fdd8e Aug 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmmh. very strange. Also noticed I have multiple R01's with both v1.3 or v1.5 as the external phy's . So I don't think the R01 actually is a revision number. But I tested my U-boot on thesame Phy's as you have. So that shouldn't been a problem.

Could you try the serial upload of a LEDE build and check if the ports do work when running actual LEDE instead of just U-boot?
To load files in u-boot with the serial interface see: https://blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial_port_loading_files

Use the following address for the serial upload
Load address: 0x80700000

And then execute the following command(s):

run update-uboot-nor
setenv bootdelay 2
setenv bootcmd bootm 0xB0080000
saveenv
reset

or

erase 0xB0080000 +${filesize}
cp.b 0x80700000 0xB0080000 ${filesize}
setenv bootdelay 2
setenv bootcmd bootm 0xB0080000
saveenv
reset

Ps. Could you also try to flash the u-boot.bin(NOR) image though JTaG instead of copying it to ram? Seems like the Phy's are not expecting a reset. Maybe they need a cold start. Just a idea though.

Please covert the LEDE generated u-boot.bin(NOR) file before flashing it with JTaG:

perl -e 'while (sysread(STDIN,$d,4)){print pack("N",unpack("V",$d));}' <u-boot_org.bin | dd conv=swab > u-boot_conv.bin

So the file will be fit (byteswapped) for the VGV7519. and replace u-boot_org.bin/u-boot_conv.bin accordingly.

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading the LEDE wrt version was not successful up till now. The saveenv cmd was not recognized. I flashed the u-boot according to your directions and tadaaaa:

ROM VER: ����� 팭1                                                        

U-Boot 2013.10-openwrt4 (Aug 17 2016 - 21:49:08) VGV7519                  

Board: Arcadyan VGV7519                                                   
SoC:   Lantiq VRX288 v1.2                                                 
CPU:   500 MHz                                                            
IO:    250 MHz                                                            
BUS:   250 MHz                                                            
BOOT:  NOR
DRAM:  64 MiB
Flash: 16 MiB
*** Warning - bad CRC, using default environment                                

In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   ltq-eth                                                                  
Hit any key to stop autoboot:  0                                                
Wrong Image Format for bootm command                                            
ERROR: can't get kernel image!                                                  
VGV7519 #

The Rom version number looks crippled, before it was 1.1.4.
Tomorrow I'll try to continue with the openwrt image.

@TimelessNL
Copy link

@TimelessNL TimelessNL commented on 76fdd8e Aug 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you upload the u-boot once again and this time though TFTP and U-Boot itself? Just directly your compiled version. So NOT the converted version. Seems that flashing with Serial/JTAG (Don't know what made it work) barely worked. At least it boots but is is barely standing.

@zita212
Copy link

@zita212 zita212 commented on 76fdd8e Aug 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an Experia Box V8 VGV7519 R01 (with VRX288 V1.1 (External ethernet PHY chip version V1.3))
I'm trying to compile from the latest trunk (r49395) the squashfs image. The compilation is successful but I get only one squashfs.bin image. I was under the impression the modification introduced in R43072 will generate 2 images, one for R01 and the other for R02 hardware versions:

gphy-xrx200 {
221 221 compatible = "lantiq,phy-xrx200";
222 firmware = "lantiq/vr9_phy11g_a1x.bin";
222 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /VR9 1.1/
223 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /VR9 1.2/
223 224 phys = [ 00 01 ];
How do I know if the generated firmware is compatible with R01 ?

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what you mean with "one or two" images and what distribution you're compiling. There should be more in your "bin" folder. But if you're speaking that there should be a separate R01/R02 image, then no. The R01 and R02 aren't so called reversion numbers. At-least they do not match the SoC/External Phy version at all. I guess the R0# is just part of the P/N number.

So long story short. The LEDE Squashfs VGV7519 image is compatible with all known versions.

@zita212
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you TimelessNL, I was confused by the OpenWRTwiki page for VGV7519 which stresses that is important to check the V1.1/V1.2 Phys revision (presumably only V1.2 is gigabitEthernet capable). I'm a newbie as you can see, but I'm very eager to learn. I saw now an earlier message from you mentioning LEDE as a fork of OpenWRT, Iĺl try to figure out how to clone that fork and build my own images. Is important for me to be able to configure a toolchain and compile my own images as I installed a few precompiled OpenWRT images for a WRT54g and for a Buffalo and found I did not learn much in the process.

@zita212
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cloned the LEDE git and got the following after compilation:
ls -atr
lede-lantiq-xrx200-VGV7519NOR-initramfs-kernel.bin
lede-lantiq-xrx200-VGV7519NOR-squashfs-sysupgrade.bin
packages
sha256sums

In target selection there is an option between VGV7519 and VGV7519NOR - not sure on the exact difference, I guess it has something to do with the type of flash altough I think all VGV7519 have NOR flash and looking in the .dts files it just seems to create other partitions in the Flash.

@BertHav
Copy link

@BertHav BertHav commented on 76fdd8e Sep 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Today the device is successful flashed with uboot and and lede-lantiq-xrx200-VGV7519NOR-squashfs-sysupgrade.bin. With a cold boot the UART shows the same crippled output, but a u-boot reset shows a clean output. The next hurdle is to configure the device for use with T%lf%rt VDSL and VOIP, but that is not a u-boot issue;). Thanks to The-Lizard and TimelessNL.

@zita212
Copy link

@zita212 zita212 commented on 76fdd8e Sep 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also thank to The Lizard for making the software and to TimelessNL and Cornel for the comments to the forum which were invaluable. I never managed to boot the ram image after transferring via jtag, the router was reset but still booting the original bootloader. However the u-boot flash image did flash correctly and after that I uploaded via TFTP a self compiled OpenWRT image (latest ChaosCalmer trunk) which also worked but seemed a bit basic compared with my TP-LINK WDR4300 with OpenWRT. It could probably be fixed by adding modules for 3G USB modem support, etc, but instead I installed (via sysupgrade) a LEDE image.
This is also working but is missing LUCI. When I run opkg update it shows it can update the package list from the repositories on the internet but when I run opkg install luci-ssl it complains there is nu such package, I wonder if I should configure opkg to look in other repositories than default - anyone faced this problem with LEDE ? From what I could glance in forums. lede fork is closer in having all components working on VG7519 including all USB ports and VDSL compared to main OpenWRT branch.

@zita212
Copy link

@zita212 zita212 commented on 76fdd8e Sep 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured out, /etc/opkg/distfeeds.conf had the luci entry commented out by default. Quite sure when I compiled the lede image I enable in menuconfig luci feeds. Oh well. Now need to figure out if I can bridge together the 4 LAN ports with the Gigabit Ethernet WAN port and the WLAN port (effectively to build a 5 port Gigabit Ethernet switch with AP functionality)

@TimelessNL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zita212, the 5 port switch is not going to work with the current lantiq drivers. The driver configures eth1 as a specific WAN port. IMHO it's not wise to continue this subject on a "github commit" which is outdated anyway. Rest of the questions are basic OpenWRT/LEDE usage and are not specific to the VGV7519.

@BertHav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reverted to the original fw. It reports hardware version R02.

@dpeddi
Copy link
Contributor Author

@dpeddi dpeddi commented on 76fdd8e Nov 21, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.