From owner-freebsd-mips@FreeBSD.ORG Tue Dec 6 12:24:29 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 457571065675 for ; Tue, 6 Dec 2011 12:24:29 +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 1203F8FC18 for ; Tue, 6 Dec 2011 12:24:28 +0000 (UTC) Received: by iafi7 with SMTP id i7so6954695iaf.13 for ; Tue, 06 Dec 2011 04:24:28 -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=J8meE9X+Yj3OJqTZYRFrKxcByZvdyhBeXnHrsFpHges=; b=aueRGruaiOcS9VxZmRiueye2PpdAmNVIZOIyCipkz+siRNcJJGWN1CK7JCekGZia5X oxsyc8GGqlVeieHXwHNBepIQpsWdKgWt51jzRUqQgue5Z4WADC3OQh12ZF98lCuqNOov IZLiROyVDO8Zlp+7i0zKfqemXEfB/2qYTBx0Q= MIME-Version: 1.0 Received: by 10.231.73.139 with SMTP id q11mr3240275ibj.97.1323174268547; Tue, 06 Dec 2011 04:24:28 -0800 (PST) Received: by 10.50.100.132 with HTTP; Tue, 6 Dec 2011 04:24:28 -0800 (PST) In-Reply-To: References: Date: Tue, 6 Dec 2011 13:24:28 +0100 Message-ID: From: Monthadar Al Jaberi To: Stefan Bethke Content-Type: text/plain; charset=UTF-8 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: Tue, 06 Dec 2011 12:24:29 -0000 Hi, On Mon, Dec 5, 2011 at 11:32 PM, Stefan Bethke wrote: > Am 05.12.2011 um 21:04 schrieb Monthadar Al Jaberi: > >> Hi, >> >> sorry if this is old and answered somewhere, but I cant seem to find a s= olution: >> >> I am trying to boot Freebsd current root file system @ RouterStation >> Pro from usb (I did it before) but I cant remember how to do it. >> >> I know I need =C2=A0ROOTDEVNAME=3D\"ufs:/dev/da0\" but I dont seem to ma= nage >> to create a bottable root fs=E2=80=A6 > > How are you creating your filesystem? newfs on a little-endian machine wi= ll not do the right thing. =C2=A0You can use makefs -B big to create an ima= ge, then dd it to the partition. yes I do it like this: makefs -t ffs -B big -s 40m rootfs.img path/to/root dd it if=3Drootfs.img of=3D/dev/da0 bs=3D1m I found a very old kernel image I had and it boot root from usb, but the one I am compiling gives this error: Now booting linux kernel: Base address 0x80050000 Entry 0x80050120 memsize=3D0x08000000 modetty0=3D0,n,8,1,hw board=3DRouterStation PRO ethaddr=3D00.15.6d.c3.30.e6 CPU platform: Atheros AR7161 rev 2 CPU Frequency=3D720 MHz CPU DDR Frequency=3D360 MHz CPU AHB Frequency=3D180 MHz platform frequency: 720000000 arguments: a0 =3D 00000002 a1 =3D 80050028 a2 =3D 80050000 a3 =3D 0000000a Cmd line: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD Environment: memsize =3D 0x08000000 modetty0 =3D 0,n,8,1,hw ethaddr =3D 00.15.6d.c3.30.e6 board =3D RouterStation PRO Cache info: picache_stride =3D 4096 picache_loopcount =3D 16 pdcache_stride =3D 4096 pdcache_loopcount =3D 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=3D0x9ee3519e Config3=3D0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #8: Tue Dec 6 13:08:50 CET 2011 root@:/usr/obj/mips.mipseb/usr/src/sys/MONTHADAR mips WARNING: WITNESS option enabled, expect reduced performance. real memory =3D 134217728 (131072K bytes) avail memory =3D 123727872 (117MB) nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 360000000 Hz quality 800 Event timer "MIPS32" frequency 360000000 Hz quality 800 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) ohci0: on apb0 usbus0 on ohci0 gpio0: on apb0 gpio0: [GIANT-LOCKED] gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 2 on gpiobus0 ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 usbus1: set host controller mode usbus1: EHCI version 1.0 usbus1: set host controller mode usbus1: on ehci0 pcib0 at irq 0 on nexus0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) pci0: at device 17.0 (no driver attached) ath0: irq 1 at device 18.0 on pci0 ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath1: irq 2 at device 19.0 on pci0 ath1: AR5413 mac 10.5 RF5413 phy 6.1 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 miibus0: on arge0 ukphy0: PHY 4 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto arge0: Ethernet address: 00:15:6d:c3:30:e6 arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: Ethernet address: 00:15:6d:c3:30:e7 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: mx25ll128, sector 65536 bytes, 256 sectors ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 WARNING: WITNESS option enabled, expect reduced performance. ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 Root mount waiting for: usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered Root mount waiting for: usbus1 ugen1.2: at usbus1 umass0: on usb= us1 Root mount waiting for: usbus1 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 2023MB (4143104 512 byte sectors: 255H 63S/T 257C) ugen1.3: at usbus1 umass1: on usbus1 Root mount waiting for: usbus1 Trying to mount root from ufs:/dev/da0 []... (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI status: Check Condition (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not prese= nt) warning: no time-of-day clock registered, system time will not be set accur= ately 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 g_vfs_done():da0[READ(offset=3D142827520, length=3D8192)]error =3D 5 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 0x49e3= 98 Trapframe Register Dump: zero: 0 at: 0x513d20 v0: 0x21 v1: 0x4dc224 a0: 0x7ffec9f8 a1: 0xd a2: 0x4dc1d0 a3: 0x7ffeca80 t0: 0x1beec8 t1: 0 t2: 0x1beec8 t3: 0x8000000 t4: 0x1beec80 t5: 0 t6: 0 t7: 0 t8: 0x3d000 t9: 0x49e398 s0: 0x7ffec9f8 s1: 0x7ffeca80 s2: 0x7ffed6e0 s3: 0x4dc245 s4: 0x4dc24e s5: 0x4d55d4 s6: 0x7ffed7b4 s7: 0x4d5ab4 k0: 0 k1: 0 gp: 0x4fefe0 sp: 0x7ffec9c8 s8: 0x40301c ra: 0x456d5c sr: 0xfc13 mullo: 0x11111381 mulhi: 0xfffffffffffffd90 badvaddr: 0x49e398 cause: 0x10000008 pc: 0x49e398 pc address 0x49e398 is inaccessible, pde =3D 0x80c17000, pte =3D 0 Page table info for bad address 0x49e398: pde =3D 0x80c17000, pte =3D 0 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 0x49e3= 98 Trapframe Register Dump: zero: 0 at: 0xffffffffffffffe0 v0: 0x21 v1: 0x4dc224 a0: 0x7ffeba20 a1: 0xd a2: 0x4dc1d0 a3: 0x7ffebaa8 t0: 0x1beec8 t1: 0 t2: 0x1beec8 t3: 0x8000000 t4: 0x1beec80 t5: 0 t6: 0 t7: 0 t8: 0x3d000 t9: 0x49e398 s0: 0x7ffeba20 s1: 0x7ffebaa8 s2: 0x7ffec708 s3: 0x4dc245 s4: 0x4dc24e s5: 0x4d55d4 s6: 0x7ffec7dc s7: 0x4d5ab4 k0: 0 k1: 0 gp: 0x4fefe0 sp: 0x7ffeb9f0 s8: 0x40301c ra: 0x456d5c sr: 0xfc13 mullo: 0x555557c9 mulhi: 0xfffffffffffffd8c badvaddr: 0x49e398 cause: 0x10000008 pc: 0x49e398 pc address 0x49e398 is inaccessible, pde =3D 0x80c17000, pte =3D 0 Page table info for bad address 0x49e398: pde =3D 0x80c17000, pte =3D 0 g_vfs_done():da0[READ(offset=3D782336, length=3D65536)]error =3D 5 and the error message repeats all the time..... br > > > Stefan > > -- > Stefan Bethke =C2=A0 Fon +49 151 14070811 > > > > --=20 Monthadar Al Jaberi