From owner-freebsd-mips@FreeBSD.ORG Fri Dec 9 15:00:59 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE09E106566B for ; Fri, 9 Dec 2011 15:00:59 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 99E6D8FC13 for ; Fri, 9 Dec 2011 15:00:59 +0000 (UTC) Received: by iafi7 with SMTP id i7so7357224iaf.13 for ; Fri, 09 Dec 2011 07:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Wx+FNKP/NxiA1rwmCH8wX2bwf9lmmzHsaRBz4z3RU/4=; b=he1Xr/dPsFoPbcXkmBVkZpJVbWtpjIzp976JVqg8GXkgKEFx+XNJZEAkYc63AHUCW9 Gvcb2vJyKeW9/oQBJA5bgS3EH9BMkENLREpuOFFf6d1HHfi3M7nEKIVKO1STetvfAAqa 3rzeP8wdvMXHpheLvhmns32VDvgXZMHodbFIY= MIME-Version: 1.0 Received: by 10.50.209.98 with SMTP id ml2mr3211061igc.40.1323442859080; Fri, 09 Dec 2011 07:00:59 -0800 (PST) Received: by 10.50.94.168 with HTTP; Fri, 9 Dec 2011 07:00:59 -0800 (PST) In-Reply-To: <11610829.bYiI1B7eQ0@snifi> References: <20111209133928.76cb2cdf.ray@dlink.ua> <11610829.bYiI1B7eQ0@snifi> Date: Fri, 9 Dec 2011 16:00:59 +0100 Message-ID: From: Monthadar Al Jaberi To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: boot RSPRO from usb X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 15:01:00 -0000 On Fri, Dec 9, 2011 at 2:10 PM, Maciej Milewski wrote: > Dnia pi=B1tek, 9 grudnia 2011 13:24:01 Monthadar Al Jaberi pisze: >> On Fri, Dec 9, 2011 at 12:39 PM, Aleksandr Rybalko wrote: >> > On Fri, 9 Dec 2011 11:47:00 +0100 >> > >> > Monthadar Al Jaberi wrote: >> mountroot> . >> da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 >> da0: Removable Direct Access SCSI-2 device >> da0: 40.000MB/s transfers >> da0: 2022MB (4141056 512 byte sectors: 255H 63S/T 257C) >> (probe1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 >> (probe1:umass-sim1:1:0:0): CAM status: SCSI Status Error >> (probe1:umass-sim1:1:0:0): SCSI status: Check Condition >> (probe1:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not >> present) da1 at umass-sim1 bus 1 scbus1 target 0 lun 0 >> da1: Removable Direct Access SCSI-0 device >> da1: 40.000MB/s transfers >> da1: Attempt to query device size failed: NOT READY, Medium not present >> >> mountroot> ? >> >> List of GEOM managed disk devices: >> =A0 da1 da0 flash/spi0 >> >> mountroot> ufs:/dev/da0 >> Trying to mount root from ufs:/dev/da0 []... >> warning: no time-of-day clock registered, system time will not be set >> accurately g_vfs_done():da0[READ(offset=3D142729216, length=3D65536)]err= or =3D 5 >> vnode_pager_getpages: I/O read error >> ELF interpreter /libexec/ld-elf.so.1 not found >> g_vfs_done():da0[READ(offset=3D5037056, length=3D1024)]error =3D 5 >> g_vfs_done():da0[READ(offset=3D5037056, length=3D1024)]error =3D 5 >> g_vfs_done():da0[READ(offset=3D782336, length=3D65536)]error =3D 5 >> vnode_pager_getpages: I/O read error >> vm_fault: pager read error, pid 1 (init) >> BAD_PAGE_FAULT: pid 1 (init), uid 0: pc 0x49e398 got a read fault at >> 0x49e398 Trapframe Register Dump: >> =A0 =A0 =A0 zero: 0 at: 0x513d20 =A0 =A0v0: 0x21 =A0 =A0 =A0 =A0v1: 0x4d= c224 >> =A0 =A0 =A0 a0: 0x7ffec9f8 =A0a1: 0xd a2: 0x4dc1d0 =A0 =A0a3: 0x7ffeca80 >> =A0 =A0 =A0 t0: 0x1beec8 =A0 =A0t1: 0 =A0 t2: 0x1beec8 =A0 =A0t3: 0x8000= 000 >> =A0 =A0 =A0 t4: 0x1beec80 =A0 t5: 0 =A0 t6: 0 =A0 t7: 0 >> =A0 =A0 =A0 t8: 0x3d000 =A0 =A0 t9: 0x49e398 =A0 =A0s0: 0x7ffec9f8 =A0s1= : 0x7ffeca80 >> =A0 =A0 =A0 s2: 0x7ffed6e0 =A0s3: 0x4dc245 =A0 =A0s4: 0x4dc24e =A0 =A0s5= : 0x4d55d4 >> =A0 =A0 =A0 s6: 0x7ffed7b4 =A0s7: 0x4d5ab4 =A0 =A0k0: 0 =A0 k1: 0 >> =A0 =A0 =A0 gp: 0x4fefe0 =A0 =A0sp: 0x7ffec9c8 =A0s8: 0x40301c =A0 =A0ra= : 0x456d5c >> =A0 =A0 =A0 sr: 0xfc13 =A0 =A0 =A0mullo: 0x222222a2 =A0 =A0 =A0 mulhi: 0= xffffffffffffff80 =A0 =A0 =A0 badvaddr: 0x49e398 >> =A0 =A0 =A0 cause: 0x10000008 =A0 =A0 =A0 pc: 0x49e398 >> pc address 0x49e398 is inaccessible, pde =3D 0x80b9b000, pte =3D 0 >> Page table info for bad address 0x49e398: pde =3D 0x80b9b000, pte =3D 0 >> > Hi Monthadar, > this looks for me like some error in fs. I remember similar problems(with= fs) > on first boot of new makefs based image. There was needed to run fsck bef= ore > first mount of fs. But have never seen such error on my board. > > Can you provide the command used to generate this image(and maybe image i= tself > privately?) ofcourse: makefs -t ffs -B big -s 20m ../target_image/rootfs.img rspro/root/ I dont know if I need to run fsck, I am using same image embedded in kernel= : ROOTDEVNAME=3D\"ufs:/dev/md0.uzip\" and it works, and also as I noted above I have an old kernel that loads fine from same usb.... how can I send you the image? > > Alternative way maybe would work. Have you tried to run system from nfs a= nd > create fs by newfs + (cp || untar || rsync || install) needed system file= s? sorry, but I dont understand, can you explain a bit more? > > > -- > Maciej --=20 Monthadar Al Jaberi