Win32DiskImager
program. By default, the network interface in the distribution package requests the address via DHCP, so by connecting Malin to the home router, I could log in and configure the serial port using:root@raspberrypi:~# raspi-config
Would you like a login shell to be accessible over serial? Current setting: yes
apt-get install minicom
minicom -D /dev/ttyAMA0 -b 115200 -8
5784468
.SQUASHFS error: Major/Minor mismatch, trying to mount newer 4.0 filesystem
SQUASHFS error: Please update your kernel
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
/usr/local/tmp/image.cfs
with the help of nanddump
.mount -o loop /usr/local/tmp/image.cfs /mnt
resulted in the same error as when loading.image.cfs
itself in flash memory. But another review of the download log, I noticed an error message, which was initially lost in the long text of the log:Image Name: Linux-2.6.31.8
.....
Verifying Checksum ... Bad Data CRC
NAND read: device 0 offset 0x7100800, size 0x500000 load addr .... =a00000 5242880 bytes read: OK ## Booting image at 00a00000 ... Image Name: Linux-2.6.22.18 Created: 2011-05-25 7:23:15 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2214860 Bytes = 2.1 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK
"mini firmware"
internal flash, from where the image with the kernel was booted in emergency mode, seems to be designed for such situations. If I had an earlier firmware, the download would be successful and I would not have learned about the damage. But in firmware 1.04, the new kernel 2.6.31.8 and therefore the mounting of the image by the compressed file system (again, the new format) on the old kernel ended in error.DLINK_DNS325.1.04b05
(at that time I was named this version).binwalk
:0x100000
.apt-get install ckermit
.kermrc
with the following contents: set line /dev/ttyAMA0 set speed 115200 set carrier-watch off set handshake none set flow-control none robust set file type bin set rec pack 1000 set send pack 1000 set window 5
minicom
for this operation in the minicom
console:PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 1
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
command in the stock U-Boot loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel
flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
loadb , .
U-Boot .
:
apt-get install gcc
U-Boot:
git clone -b dns320_support github.com/lentinj/u-boot.git
:
make distclean && make dns325_config && make u-boot.kwb
( USB-Uart-TTL x86 , ARM-: export CROSS_COMPILE=arm-linux-gnueabi-
)
U-Boot:
root@raspberrypi:~/u-boot# cd u-boot
root@raspberrypi:~/u-boot# ./tools/kwboot -p -b u-boot.kwb -B115200 -t /dev/ttyAMA0
Sending boot message. Please reboot the target.../
, NAS, 10 , u-boot.kwb
.
. .
Hit any key to stop autoboot: 4
(. ).
Ctrl+/ "c"
flash
kermit
uKernel, :
root@raspberrypi:~# kermit
:
(/root/) C-Kermit>connect Connecting to /dev/ttyAMA0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------
, U-Boot, 0x000000 ( , ):
=> loadb 0x00000000
U-Boot , Kermit
Ctrl+\ "c" :
(/root/) C-Kermit>send uKernel

flash:
=> nand erase 0x100000 0x300000
- flash 0x100000-0x300000
=> nand write 0x000000 0x100000 0x300000
- 0x000000
... .
NAS USB .
.
PS U-Boot flash , . , :
? uImage U-Boot' 0x300000; tftp
uImage; USB flash uImage ( U-Boot USB); flash USB .
Source: https://habr.com/ru/post/239805/
All Articles