From owner-freebsd-mips@FreeBSD.ORG Fri Dec 9 18:10:36 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 CBB911065677 for ; Fri, 9 Dec 2011 18:10:36 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8AE338FC12 for ; Fri, 9 Dec 2011 18:10:36 +0000 (UTC) Received: by qcse13 with SMTP id e13so3526409qcs.13 for ; Fri, 09 Dec 2011 10:10:35 -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=lnv2lFUX76/rZJyqP2C8rEtgOmX4Dx2Ay89piti6gos=; b=eS2Fcsll5OAaF3ySK1U07l3yzCovgLCvMeR59jKoKA+2iY6dDH9bW/1XgY3fYXnYIn Jqb4chDwKxkQM/KHX6jnLtB4q6qobWrvYQNMe5CPjacGxGxjO+xIkmTVVR9f/7cy1SEi qlwwnGkKgqcGuwofo/A5/LkwsZfAmaQlpMJyc= MIME-Version: 1.0 Received: by 10.50.236.35 with SMTP id ur3mr4388102igc.28.1323454235605; Fri, 09 Dec 2011 10:10:35 -0800 (PST) Received: by 10.50.94.168 with HTTP; Fri, 9 Dec 2011 10:10:35 -0800 (PST) In-Reply-To: <2627625.rUEEKy6LTO@snifi> References: <11610829.bYiI1B7eQ0@snifi> <2627625.rUEEKy6LTO@snifi> Date: Fri, 9 Dec 2011 19:10:35 +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 18:10:37 -0000 On Fri, Dec 9, 2011 at 4:59 PM, Maciej Milewski wrote: > Dnia pi=B1tek, 9 grudnia 2011 16:00:59 Monthadar Al Jaberi pisze: >> >> ofcourse: >> makefs -t ffs -B big -s 20m ../target_image/rootfs.img rspro/root/ > Doesn't sound wrong but don't have my script to compare now. >> >> I dont know if I need to run fsck, I am using same image embedded in ker= nel: >> 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.... > I must have overlooked that. > >> >> > Alternative way maybe would work. Have you tried to run system from nf= s >> > and create fs by newfs + (cp || untar || rsync || install) needed >> > system files? >> sorry, but I dont understand, can you explain a bit more? > 1. boot some working environment with tools like gpart, newfs, mount > 2. gpart your usb drive (or not if you want to use full drive) > 3. newfs that > 4. transfer tar.gz of rspro/root contents and utar it into new drive > 5. reboot with correct rootdevname > > Does that sound better? :) indeed =3D) ok I did this: cd rspro/root tar -cvf ../root.img.gz * newfs -O1 /dev/da0 mount /dev/da0 /root/usb cd /root/usb tar -xvf /root/src/terranet/target_root/rspro/root.img.gz umount /root/usb/ reboot same result: Trying to mount root from ufs:/dev/da0 []... warning: no time-of-day clock registered, system time will not be set accur= ately g_vfs_done():da0[READ(offset=3D1060798464, length=3D32768)]error =3D 5 exec /sbin/init: error 5 g_vfs_done():da0[READ(offset=3D1060798464, length=3D32768)]error =3D 5 exec /sbin/oinit: error 5 g_vfs_done():da0[READ(offset=3D1060798464, length=3D32768)]error =3D 5 exec /sbin/init.bak: error 5 g_vfs_done():da0[READ(offset=3D530448384, length=3D32768)]error =3D 5 exec /rescue/init: error 5 init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall panic: no init KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at kdb_enter+0x4c: lui at,0x804e db> if I have empty filesystem, (or I did mistake in begining and copied folder root, so everything was in /root/*) I get this error instead: Trying to mount root from ufs:/dev/da0 []... warning: no time-of-day clock registered, system time will not be set accur= ately init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall panic: no init KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at kdb_enter+0x4c: lui at,0x804e db> >> >> > -- >> > Maciej > -- > Maciej --=20 Monthadar Al Jaberi