From owner-freebsd-mips@freebsd.org Wed Dec 27 22:44:06 2017 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1862E82C9D for ; Wed, 27 Dec 2017 22:44:06 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh502-vm7.bullet.mail.kks.yahoo.co.jp (nh502-vm7.bullet.mail.kks.yahoo.co.jp [183.79.56.152]) by mx1.freebsd.org (Postfix) with SMTP id 78F867C051 for ; Wed, 27 Dec 2017 22:44:05 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 27 Dec 2017 22:42:19 -0000 Received: from [183.79.100.135] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 27 Dec 2017 22:42:19 -0000 Received: from [127.0.0.1] by omp504.mail.kks.yahoo.co.jp with NNFMP; 27 Dec 2017 22:42:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 482272.45944.bm@omp504.mail.kks.yahoo.co.jp Received: (qmail 44782 invoked by uid 60001); 27 Dec 2017 22:42:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1514414539; bh=kdDtf062A6XOjiFDUEMW2I6mzs1WsUxteDN/Z3clE/M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pk8LQ1ZX7KCy/5GQ+HZN+M9yDwNlbkS20jehnfZVu3QVgS56hDM2h8DBw4eIU7OyWlmsbtzyrp9vOz00jazdCfG7q+lnB7D3OLew0lTg4PhhGaDlbJ0QLmM+aF9koBFohAuPT03uOjSVvgr4fSELAAQnksECdjA2YVJVwRmRZ+U= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YjtJCui37A2R6/SIdHlacc9Eot8BSfP74q0UxdNzQM53lOROLAKSmb1/xU6FcVbz+1VSYF7MYSs1Q0D3mRvjkkPLSskyEvua84vsDKhqfZfyMNdkCPa9VDL5n+N34HiEE/d5lVGKQKb9D9E6dssmz3rcoLkGX+a2wFcbMsXeh1g=; Message-ID: <125804.21070.qm@web101711.mail.ssk.yahoo.co.jp> X-YMail-OSG: ohjfqCEVM1lQxOpJuVaS9qC.hpwBDqD2RgCf6KRN_ZcPEaGY25HOzhfkuMX2cV2qCdirAHG1FOhKYe0z.UDiN5QdjHNADLtgyPVkPONatu9slL6x79LrFxKn144BcILeCRsIui4EFD6zgcVe4ilHGvXpj7ICCXbhZx_22XO7JNHV8FPfXB3iPNZZL.3Rd.t9JtzhuAMQs_QGRGSfhtNcioO.i9BVXDXh9TfHO9Ke0FFKU8iVIiaP5jZkVXpQBe6GtBXuocdlt013NBuL36_Zs0de7.7NiJ5DmF7O9I7mif9lkODlhOtkDciS6X411flJPecCXkwu7oT4EAWsuyhtPwrUxSO4XiKTw5fN.IqxnIZrrXNYzwIuUvAjuA6B04hhMK4JXonP9G6dVzp3xsCE4P_irJ7nOlzSDTdK2mtZCCAmQXnNLuDLAqso70DC0y8bWHERY5E7VDe_wNbnaQ8IFyuEgcv8WmhYvql5kVNS2LLjmFX79oc6Tnm2bE3.zcTmcUYTcPCnCJOgYFo_RR9_RvAIg.WiVReQqN_JWC2cvHlfyUUg0eVCYp7406BI84mXPIM4D7XMBf5tstxC_1HHAIX_XqfdF2c2edbAsXhxK6NSKbG9RxL24kU- Received: from [203.165.91.75] by web101711.mail.ssk.yahoo.co.jp via HTTP; Thu, 28 Dec 2017 07:42:17 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: MvTvHUcVM1l.N1wpoelzGQAJC87IH_d909tOdLALr1HkdIdFdsQjeC_dw8b8oSf6IcZrUsEfq286k.wX_qLUBSP4lLdNkJZCKs2Brf2KL3AynaOosCumndGZLpFEYwRoA7sT References: <740770.34795.qm@web101706.mail.ssk.yahoo.co.jp> Date: Thu, 28 Dec 2017 07:42:17 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: CFI Flash problem. To: Michael Zhilin Cc: "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2017 22:44:06 -0000 Hi=0A=0AI mistake paste. This is broken dump.=0A=0Abfc50000: 56190527 83810= 400 10c03c5a be501100 =A0 =A0'..V....Z<....P.=0Abfc50010: 00110080 00110080= 1801e251 03020505 =A0 =A0........Q.......=0Abfc50020: 65657246 20445342 6e= 72654b 49206c65 =A0 =A0FreeBSD Kernel I=0Abfc50030: 6567616d 00000000 00000= 000 00000000 =A0 =A0mage............=0A=0AI will check geom debug bit.=0A= =0AThanks=0A=0AHiroki Mori=0A=0A----- Original Message -----=0A>From: Micha= el Zhilin =0A>To: Mori Hiroki =0A= >Cc: "freebsd-mips@freebsd.org" =0A>Date: 2017/12= /27, Wed 21:36=0A>Subject: Re: CFI Flash problem.=0A> =0A>=0A>Hi Hiroki-san= ,=0A>=0A>1. I see no broken bytes on your example, could you please explain= what byte is wrong? =0A>2. md0 is memory disk. I guess it's worth to enabl= e geom debug bits to identify why bio has been failed.=0A>=0A>Thanks!=0A>= =0A>=0A>=0A>On Wed, Dec 27, 2017 at 3:19 AM, Mori Hiroki wrote:=0A>=0A>Hi.=0A>>=0A>>I compite flush upgrade for SPI flash.=0A>= >=0A>>But I have problem at CFI flash. I can't correct upgrade=0A>>CFI Flas= h. I do flash upgrade then can't boot it.=0A>>=0A>>I try on RT3052 with sys= /mips/mediatek code. Flash is MX=0A>>29LV320BTI.=0A>>=0A>>=0A>>Upgrade meth= od used by tftp and dd. This is same as SPI=0A>>flash.=0A>>=0A>>This is ima= ge dump.=0A>>=0A>>microserver % hexdump Planex_MZK-WNH_FDT.zimage=0A>>00000= 00 0527 5619 c441 f1ab 3c5a 1ed0 1100 bf50=0A>>0000010 0080 0011 0080 0011 = 413a 7d8b 0505 0302=0A>>0000020 7246 6565 5342 2044 654b 6e72 6c65 4920=0A>= >0000030 616d 6567 0000 0000 0000 0000 0000 0000=0A>>=0A>>This is flash dum= p by u-boot command.=0A>>=0A>>RT3052 # md bfc50000=0A>>bfc50000: 56190527 f= 1abc441 1ed03c5a bf501100 =A0 =A0'..VA...Z<....P.=0A>>bfc50010: 00110080 00= 110080 7d8b413a 03020505 =A0 =A0........:A.}....=0A>>bfc50020: 65657246 204= 45342 6e72654b 49206c65 =A0 =A0FreeBSD Kernel I=0A>>bfc50030: 6567616d 0000= 0000 00000000 00000000 =A0 =A0mage............=0A>>=0A>>Always broken some = byte.=0A>>Also I have strange behavior. I copy to flash to md then=0A>>firs= t time fail but second time success.=0A>>=0A>># dd if=3D/dev/cfid0s.rootfs = of=3D/dev/md0 bs=3D64k=0A>>dd: /dev/md0: No space left on device=0A>>29+0 r= ecords in=0A>>28+0 records out=0A>>1835008 bytes transferred in 2.198883 se= cs (834518 bytes/sec)=0A>># dd if=3D/dev/cfid0s.rootfs of=3D/dev/md0 bs=3D6= 4k=0A>>41+0 records in=0A>>41+0 records out=0A>>2686976 bytes transferred i= n 1.467438 secs (1831066 bytes/sec)=0A>>=0A>>=0A>>This is only by telnet ac= cess. There is work fine on serial=0A>>console.=A0=0A>>=0A>>If you have som= e advice, please let me know.=0A>>=0A>>Regards=0A>>=0A>>Hiroki Mori=0A>>=0A= >>______________________________ _________________=0A>>freebsd-mips@freebsd= .org mailing list=0A>>https://lists.freebsd.org/ mailman/listinfo/freebsd-m= ips=0A>>To unsubscribe, send any mail to "freebsd-mips-unsubscribe@ freebsd= .org"=0A>>=0A>=0A>=0A>