From owner-freebsd-mips@freebsd.org Wed Dec 27 12:36:37 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 3A055E8A9CC for ; Wed, 27 Dec 2017 12:36:37 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com [IPv6:2607:f8b0:400d:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E809263E39 for ; Wed, 27 Dec 2017 12:36:36 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-qk0-x242.google.com with SMTP id b132so16244581qkc.13 for ; Wed, 27 Dec 2017 04:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h4bY3V+6olDnKI9P4JPg9ec5ifgf39wMxNGi8buvcug=; b=QATLLHeR+BSS4dcLgzEiMOOKly/8tX8djRMyvzn7VbcDW/I5UBtV0TdbkztHrDHRfd 8Lg+DkCYMeN9vVn2OPfC0AXtKqCNvCsXsri8dsMoEN0JGTXN7e/sdJula7QWkYTlphu2 j1D7w2IO6Wd7h6+YpgHRT6G+udHf+2PSfTavaKyjjREnvTavtAH873KnTNBNHFwXZBE2 mIGpmpqGGblMTnj7POw6afRxkHHyb5e2484kOHE7KQWOynv2KXI8hvAKLP6uwQDx8bqz W+GjZfnfdSYM5CPdiZLX1zXBp1gqyfJidQvwtSs1VYbHlz0tXCYiqkemezlf1vUa0AFS h9sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h4bY3V+6olDnKI9P4JPg9ec5ifgf39wMxNGi8buvcug=; b=Rt+AS/v2ii5sLbTmNrSs1kBs19NgmFaje73vT+6a+dn5pPsIqdAJulR8TFCRT5QW6t PeizsNA+/0IwFtu8mnYCtmA/UBqIYEIJmLn4tjkeFFo5vpRqFniPBpiqDj4x6aABhZvo OT4E5Ww+XVXqoCQqcuYTHyPv7FkSgrwXDvd1ItX9nUJceWhVKRr+O0dcNbG4AsIj4OKv 3J2Vp9WUXU9MQ9CV7CC0xayjVYojQrApeBrq2s9TGVjT87duyYXwl0yxamSp3h90L0OQ /QZqvpSNTdevzT8YOtKCtxXuxh9Or1vXPgykLMX9q2/ByfY1CoixUGm8ZJGAfdb5Wecd PfQQ== X-Gm-Message-State: AKGB3mLuLFiO3+zEl1KFVDWWxU52ZAGIwUGLUYKoHwRr9dk0T3HJzCGN CufkqTIauxzcrTY6qbDFcxSw53gBZZikD/P81G4= X-Google-Smtp-Source: ACJfBovcdCiYI5JdRpVRuCWEqzAOyTOMBCvXq8wLyaHTIOT/cVY3EvqEoQVEvKm3QL4G1wHHvHCJepsKKCjVSy28JWQ= X-Received: by 10.55.179.193 with SMTP id c184mr18402124qkf.76.1514378196021; Wed, 27 Dec 2017 04:36:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.89.244 with HTTP; Wed, 27 Dec 2017 04:36:35 -0800 (PST) In-Reply-To: <740770.34795.qm@web101706.mail.ssk.yahoo.co.jp> References: <740770.34795.qm@web101706.mail.ssk.yahoo.co.jp> From: Michael Zhilin Date: Wed, 27 Dec 2017 15:36:35 +0300 Message-ID: Subject: Re: CFI Flash problem. To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 12:36:37 -0000 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 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" >