From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 05:08:11 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 2BF0A106566C for ; Thu, 20 Jan 2011 05:08:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id D36578FC12 for ; Thu, 20 Jan 2011 05:08:10 +0000 (UTC) Received: by qwj9 with SMTP id 9so206243qwj.13 for ; Wed, 19 Jan 2011 21:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TkHlLvdlJ3az8ue/PHq6pFNDkVmonUkmZmMWn9jtm40=; b=fNFX4JMcw736zbF33kS6uD0jvcmQsH9mrhAtoJrtdDhbalap1ADiWSqUEM1D0J2gGn o+H79OErgA8miBJou64+pifZe79vBG6N1Lu4Ofsd1CvmWIc/1Ev1Wbs4Nua0Os5MyRmq DVA8t0J0MXpjVV1xS3lAYCBi/Fur/9W9wuixA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=uei/B2TtA+AV9rmifrxBBkaaVOZM+Rss9mdqry0HA/DfWkS94JisJAZRgaVqe8K7F8 aEimntSaKLa5rmG+90pDwObmwEHIWXTR1F0KJANIkXITf6mmEw1/AGRvtzOn4Zjjv+Jz Qj34iZ5TXQjhFM3sxDQjH7j5jZZc0d84ufhlY= MIME-Version: 1.0 Received: by 10.224.37.4 with SMTP id v4mr1520622qad.70.1295500090105; Wed, 19 Jan 2011 21:08:10 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Wed, 19 Jan 2011 21:08:10 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Jan 2011 13:08:10 +0800 X-Google-Sender-Auth: Y5JR9uJkIfNyg4gK8hLZsMWtGgw Message-ID: From: Adrian Chadd To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD 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: Thu, 20 Jan 2011 05:08:11 -0000 There's a couple of ways you can do this. The first way is to build a small MFS kernel that has a compressed filesystem image in the MFS (geom_gzip / geom_ulzma) which is then booted from flash or network and runs entirely from RAM. I built a busybox style system using the rescue+crunchgen stuff to do exactly this kind of thing. The second way is to build a complete tree, write it out to a USB or SD card and then boot the kernel from the internal flash. You'll need to patch things slightly so the system gets a chance to finish probing the USB devices before you can use them as root devices. The third way is to build a small geom_gzip/geom_ulzma image that isn't included in the MFS, and then generate an image which uses that. I've done the first two and I'm currently using them both at home - the former for test hostaps, the latter for testing freebsd/mips. You can feed kernel and rootfs images to mkfwimage. They have to be zero-padded out to multiples of 64k or things just will silently not work. Then you can do an initial flash of your unit with that image using the flash helper (eg holding down the reset button when powering the unit on.) IT'll partition the flash for you as needed which is helpful. Once FreeBSD is booted you can dd a kernel into the flash, again it needs to be sized a multiple of 64k AND written out using a 64k blocksize (eg dd if=3Dkernel of=3D/dev/redboot/kernel bs=3D64k; assuming kernel is already padded out to the nearest 64k.) I think you need to write zero's out for the rest of the kernel flash or it will get highly confused. I don't have time to sit down and write up a comprehensive howto on this stuff. I'm on holiday in February so maybe I'll be able to do it then. :-) Adrian On 19 January 2011 21:24, Outback Dingo wrote: > Ok Ive read alot of the emails about Free on the RS/RSPRO.. I have some > questions. > Simplest way to generate a flashable image for the RS.. ive seen the nano= bsd > rspro work > Ive seen adrians site, ive read the threads... heres what eludes us... > theres no base > Howto / FAQ on image generation, booting from flash, reading/writing flas= h, > what patches > are required. So simply stated, does someone have a RS image with wireles= s > support? > > and if so whats the list of pointers to required patches, utilities, buil= d > process, image generation > > Id just like a =A0base image with wireless, pf, no external usb... > > and we will happily setup a wiki page on our site, with any and all > information provided > and contribute the documentation for this to the FreeBSD site. What we'd > like to do is > create a fuller repository / guide for users to get to where its running = on > their boards > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >