Jump to content
RobAberdeen

tftp how to upload .img from flash?

Recommended Posts

Hi Guys

 

I have NVR Dahua clone with U-Boot 2010.06-svn1781

 

after conecting to NVR via rs232 I can see the list of images:

 

da=tftp u-boot.bin.img; flwrite

dr=tftp romfs-x.cramfs.img; flwrite

du=tftp user-x.cramfs.img; flwrite

dw=tftp web-x.cramfs.img; flwrite

dl=tftp logo-x.cramfs.img; flwrite

dc=tftp custom-x.cramfs.img; flwrite

up=tftp update.img; flwrite

tk=tftp uImage; bootm

 

Does anybody know what kind of parameter with tftp should use to upload any .img from nvr to tftp server?

 

I tried to use command tftp with parameters like put, upload but no success

 

P.S of course I have got run tftp server on pc - ip -> 172.16.40.98

Share this post


Link to post
Share on other sites

Hi Guys

 

I have NVR Dahua clone with U-Boot 2010.06-svn1781

 

after conecting to NVR via rs232 I can see the list of images:

 

da=tftp u-boot.bin.img; flwrite

dr=tftp romfs-x.cramfs.img; flwrite

du=tftp user-x.cramfs.img; flwrite

dw=tftp web-x.cramfs.img; flwrite

dl=tftp logo-x.cramfs.img; flwrite

dc=tftp custom-x.cramfs.img; flwrite

up=tftp update.img; flwrite

tk=tftp uImage; bootm

 

Does anybody know what kind of parameter with tftp should use to upload any .img from nvr to tftp server?

 

I tried to use command tftp with parameters like put, upload but no success

 

P.S of course I have got run tftp server on pc - ip -> 172.16.40.98

 

 

Have you tried this?

 

setenv bootserver 192.168.1.12 ip my pc

setenv gatewayip 192.168.1.1

setenv ipaddr 192.168.1.11 ip dvr

setenv subnetmask 255.255.255.0

setenv ipdaddr 192.168.1.11 ip dvr

setenv serverip 192.168.1.12 ip tftp server

saveenv

 

da=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite

du=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite

dr=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite

dw=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite

dl=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite

dc=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite

up=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 update.img;sf probe 0;flwrite

tk=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 zImage.img; bootm 0x82000000

dd=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite

 

Good Luck

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×