Date: Fri, 9 Dec 2011 19:10:35 +0100 From: Monthadar Al Jaberi <monthadar@gmail.com> To: Maciej Milewski <milu@dat.pl> Cc: freebsd-mips@freebsd.org Subject: Re: boot RSPRO from usb Message-ID: <CA%2BsBSoKRBDfgDLnKBxc1o8gH%2Boyd5egHtU2sodya%2BYKXUvEvzg@mail.gmail.com> In-Reply-To: <2627625.rUEEKy6LTO@snifi> References: <CA%2BsBSoKdkEjE1ykuy6oHrn%2Bqv7unruWS_BSS2J73W-zajMkXvg@mail.gmail.com> <11610829.bYiI1B7eQ0@snifi> <CA%2BsBSoKrGDKh9S1K1w0gn28D%2BS=YLt5zFWfV3FETNWXWbt9Ewg@mail.gmail.com> <2627625.rUEEKy6LTO@snifi>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 9, 2011 at 4:59 PM, Maciej Milewski <milu@dat.pl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSoKRBDfgDLnKBxc1o8gH%2Boyd5egHtU2sodya%2BYKXUvEvzg>