Re: Busybox 1.4.2 tftp: read error: Input/output error

2017-02-16 Thread Mattias Schlenker



Am 16.02.2017 um 11:08 schrieb Vesta:

I managed successfully download the other MTD files via tftp, some of them larger in size 
than mtdblock6 "RootFileSystem". mtdblock6 size is near 4,3MB
The downloading is over the wan network, not via local net. In general, 
embedded CPU is weak and Busybox implementation with limited functions (no 
gzip, etc)
I've never been successful with using netcat on Busybox, only tftp worked. 
After running nc command it just stay forever, zero-size file been created on 
PC and it never got actual bytes. Netcat transfer can used in different ways, 
perhaps there is command variant that might work better in this particular 
case? Please specify netcat commamnd that can work in this situation, on 
transmit side and receive side.


Just tried on a live linux that has busybox on board, this would be your 
embedded device:


dd if=/dev/sr0 | nc -l -p 3456

On the receiver side (PC?) to retrieve the image:

nc 10.76.23.81 3456 > test.img

Yours,
Mattias


--
Mattias Schlenker - Freier IT-Fachredakteur und -autor
 redakt...@mattiasschlenker.de
Mattias Schlenker - IT-Consulting, Softwareentwicklung
consult...@mattiasschlenker.de

Address__ August-Bebel-Str. 74 - D-04275 LEIPZIG - GERMANY
Phone: +49 341 39290767  Fax: +49 341 30393578
Mobile: +49 163  6953657  Another mobile: +49 159 03160327
VATIN_ DE240998538

Fork me! https://github.com/mschlenker
Website.__ http://www.mattiasschlenker.de/
My books!___ http://www.arduino-hausautomation.de/

___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


Re: Busybox 1.4.2 tftp: read error: Input/output error

2017-02-16 Thread Vesta
I managed successfully download the other MTD files via tftp, some of them 
larger in size than mtdblock6 "RootFileSystem". mtdblock6 size is near 4,3MB
The downloading is over the wan network, not via local net. In general, 
embedded CPU is weak and Busybox implementation with limited functions (no 
gzip, etc)
I've never been successful with using netcat on Busybox, only tftp worked. 
After running nc command it just stay forever, zero-size file been created on 
PC and it never got actual bytes. Netcat transfer can used in different ways, 
perhaps there is command variant that might work better in this particular 
case? Please specify netcat commamnd that can work in this situation, on 
transmit side and receive side.

SSH not implemented on an embedded device.


Best Regards,
Alex

> Sent: Thursday, February 16, 2017 at 11:06 AM
> From: "Mattias Schlenker" <m...@mattiasschlenker.de>
> To: busybox@busybox.net
> Subject: Re: Busybox 1.4.2 tftp: read error: Input/output error
>
>
>
> Am 16.02.2017 um 09:57 schrieb Vesta:
> > Hi,
> >
> > BusyBox v1.4.2 on an embedded device running Linux v2.6.18.
> >
> > I tried to download mtdblock6 "RootFileSystem" MTD partition via tftp, but 
> > at the very end, transfer every time ended with error tftp: read error: 
> > Input/output error.
>
> This way you just download the device file, not the block device
> represented by the device file. Use netcat/nc or a SSH tunnel in
> combination with dd to create an image of the block device on the fly.
> Imaging with dd also works whan mounted, but might result in corruption
> of the image (usually no bad corruption since most devices with simple
> flash keep writes low) when mounted read-write.
>
> Yours,
> Mattias
>
>
> >
> > /proc/mtd
> > dev: size erasesize name
> > ...
> > mtd6: 00416800 0001 "RootFileSystem"
> >
> > brw-rw 1 0 0 31, 6 mtdblock6
> >
> > Is there way to solve this issue? Does it possible unmount RootFileSystem 
> > MTD partition without rebooting and dropping network connection? Busybox 
> > commands is limited by defined functions only.
> > ___
> > busybox mailing list
> > busybox@busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
>
> --
> Mattias Schlenker - Freier IT-Fachredakteur und -autor
> redakt...@mattiasschlenker.de
> Mattias Schlenker - IT-Consulting, Softwareentwicklung
> consult...@mattiasschlenker.de
>
> Address__ August-Bebel-Str. 74 - D-04275 LEIPZIG - GERMANY
> Phone: +49 341 39290767 Fax: +49 341 30393578
> Mobile: +49 163 6953657 Another mobile: +49 159 03160327
> VATIN_ DE240998538
>
> Fork me! https://github.com/mschlenker
> Website.__ http://www.mattiasschlenker.de/
> My books!___ http://www.arduino-hausautomation.de/
>
> ___
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
> 
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


Re: Busybox 1.4.2 tftp: read error: Input/output error

2017-02-16 Thread Mattias Schlenker



Am 16.02.2017 um 09:57 schrieb Vesta:

Hi,

BusyBox v1.4.2 on an embedded device running Linux v2.6.18.

I tried to download mtdblock6 "RootFileSystem" MTD partition via tftp, but at 
the very end, transfer every time ended with error tftp: read error: Input/output error.


This way you just download the device file, not the block device 
represented by the device file. Use netcat/nc or a SSH tunnel in 
combination with dd to create an image of the block device on the fly. 
Imaging with dd also works whan mounted, but might result in corruption 
of the image (usually no bad corruption since most devices with simple 
flash keep writes low) when mounted read-write.


Yours,
Mattias




/proc/mtd
dev:size   erasesize  name
...
mtd6: 00416800 0001 "RootFileSystem"

brw-rw1 00 31,   6 mtdblock6

Is there way to solve this issue? Does it possible unmount RootFileSystem MTD 
partition without rebooting and dropping network connection? Busybox commands 
is limited by defined functions only.
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


--
Mattias Schlenker - Freier IT-Fachredakteur und -autor
 redakt...@mattiasschlenker.de
Mattias Schlenker - IT-Consulting, Softwareentwicklung
consult...@mattiasschlenker.de

Address__ August-Bebel-Str. 74 - D-04275 LEIPZIG - GERMANY
Phone: +49 341 39290767  Fax: +49 341 30393578
Mobile: +49 163  6953657  Another mobile: +49 159 03160327
VATIN_ DE240998538

Fork me! https://github.com/mschlenker
Website.__ http://www.mattiasschlenker.de/
My books!___ http://www.arduino-hausautomation.de/

___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox