[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-mips
Subject:    Re: CFI Flash problem.
From:       Mori Hiroki <yamori813 () yahoo ! co ! jp>
Date:       2017-12-27 22:42:17
Message-ID: 125804.21070.qm () web101711 ! mail ! ssk ! yahoo ! co ! jp
[Download RAW message or body]

Hi

I mistake paste. This is broken dump.

bfc50000: 56190527 83810400 10c03c5a be501100    '..V....Z<....P.
bfc50010: 00110080 00110080 1801e251 03020505    ........Q.......
bfc50020: 65657246 20445342 6e72654b 49206c65    FreeBSD Kernel I
bfc50030: 6567616d 00000000 00000000 00000000    mage............

I will check geom debug bit.

Thanks

Hiroki Mori

----- Original Message -----
>From: Michael Zhilin <mizhka@gmail.com>
>To: Mori Hiroki <yamori813@yahoo.co.jp> 
>Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
>Date: 2017/12/27, Wed 21:36
>Subject: Re: CFI Flash problem.
> 
>
>Hi Hiroki-san,
>
>1. I see no broken bytes on your example, could you please explain what byte is wrong? 
>2. md0 is memory disk. I guess it's worth to enable geom debug bits to identify why bio has been failed.
>
>Thanks!
>
>
>
>On Wed, Dec 27, 2017 at 3:19 AM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:
>
>Hi.
>>
>>I compite flush upgrade for SPI flash.
>>
>>But I have problem at CFI flash. I can't correct upgrade
>>CFI Flash. I do flash upgrade then can't boot it.
>>
>>I try on RT3052 with sys/mips/mediatek code. Flash is MX
>>29LV320BTI.
>>
>>
>>Upgrade method used by tftp and dd. This is same as SPI
>>flash.
>>
>>This is image dump.
>>
>>microserver % hexdump Planex_MZK-WNH_FDT.zimage
>>0000000 0527 5619 c441 f1ab 3c5a 1ed0 1100 bf50
>>0000010 0080 0011 0080 0011 413a 7d8b 0505 0302
>>0000020 7246 6565 5342 2044 654b 6e72 6c65 4920
>>0000030 616d 6567 0000 0000 0000 0000 0000 0000
>>
>>This is flash dump by u-boot command.
>>
>>RT3052 # md bfc50000
>>bfc50000: 56190527 f1abc441 1ed03c5a bf501100    '..VA...Z<....P.
>>bfc50010: 00110080 00110080 7d8b413a 03020505    ........:A.}....
>>bfc50020: 65657246 20445342 6e72654b 49206c65    FreeBSD Kernel I
>>bfc50030: 6567616d 00000000 00000000 00000000    mage............
>>
>>Always broken some byte.
>>Also I have strange behavior. I copy to flash to md then
>>first time fail but second time success.
>>
>># dd if=/dev/cfid0s.rootfs of=/dev/md0 bs=64k
>>dd: /dev/md0: No space left on device
>>29+0 records in
>>28+0 records out
>>1835008 bytes transferred in 2.198883 secs (834518 bytes/sec)
>># dd if=/dev/cfid0s.rootfs of=/dev/md0 bs=64k
>>41+0 records in
>>41+0 records out
>>2686976 bytes transferred in 1.467438 secs (1831066 bytes/sec)
>>
>>
>>This is only by telnet access. There is work fine on serial
>>console. 
>>
>>If you have some advice, please let me know.
>>
>>Regards
>>
>>Hiroki Mori
>>
>>______________________________ _________________
>>freebsd-mips@freebsd.org mailing list
>>https://lists.freebsd.org/ mailman/listinfo/freebsd-mips
>>To unsubscribe, send any mail to "freebsd-mips-unsubscribe@ freebsd.org"
>>
>
>
>
_______________________________________________
freebsd-mips@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic