RS / RSPRO FreeBSD
Monthadar Al Jaberi
monthadar at gmail.com
Tue Feb 1 09:32:11 UTC 2011
Sure,
I used the standard kernel configuration file and modifed this:
options MD_ROOT
options MD_ROOT_SIZE=40960
options ROOTDEVNAME=\"ufs:md0\"
to generate filesystem:
makefs -t ffs -B big -s 40m rootfs.img path-to-filesystem/
to embedd the filesystem (script code):
addr=($(strings -td kernel | grep "MFS Filesystem" | awk '{print
$1}')) #calculate start and end address for mdroot
rootfs_start=${addr[0]}
rootfs_end=$((${addr[1]}+1))
echo "Generating kernel image"
head -c ${rootfs_start} kernel > kernel.new
cat rootfs.img >> kernel.new
tail -c +${rootfs_end} kernel >> kernel.new
gzip -9 kernel.new
Sorry for the extreme delay, hope it helps...
br,
On Fri, Jan 21, 2011 at 9:21 PM, Youri Adonis <vrtuff at yahoo.com> wrote:
> Monthadar,
>
> can you share your kernel config?
>
>
>
> ----- Original Message ----
> From: Monthadar Al Jaberi <monthadar at gmail.com>
> To: Adrian Chadd <adrian at freebsd.org>
> Cc: freebsd-mips at freebsd.org
> Sent: Thu, January 20, 2011 7:55:54 AM
> Subject: Re: RS / RSPRO FreeBSD
>
> Just a note, I used tinybsd to generate a wireless configuration. Its
> easy to add extra files and ports to it. My image was around 47 MB
> with kernel (filesystem 40 MB), then I compressed it to around 10MB
> and run everything from RAM like Adrian noted.
>
> On Thu, Jan 20, 2011 at 10:17 AM, Adrian Chadd <adrian at freebsd.org> wrote:
>> On 20 January 2011 16:28, Milan Obuch <freebsd-mips at dino.sk> wrote:
>>
>>>> There's two scripts to build an MFS root for my tplink AP. One builds
>>>> a normal one, one builds one using bsdbox (and creates symlinks.)
>>>>
>>>
>>> Which TP-Link model, please? I am going to examine some next week and it will
>>> be great to know if you succeeded to put FreeBSD on it already...
>>
>> WR-1043ND.
>>
>> You'll need a few patches and an alternate kernel config file to make
>> it somewhat work.
>> USB is broken. The switch PHY isn't yet fully supported so it's a dumb
>> switch. Other than that, it seems to work alright.
>>
>> I've moved back to doing my 11n/mips stuff on the rspro and I've left
>> the 1043ND running openwrt+ath9k.
>>
>>
>> Adrian
>> _______________________________________________
>> freebsd-mips at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
>> To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
>>
>
>
>
> --
> //Monthadar Al Jaberi
> _______________________________________________
> freebsd-mips at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
>
>
>
>
>
--
//Monthadar Al Jaberi
More information about the freebsd-mips
mailing list