Re: [Bsdrp-devel] PATCH: Cross compile BSDRP for EdgeRouter Lite mips64
Router distribution based on FreeBSD with FFRouting and Bird
Brought to you by:
cochard
From: Olivier Cochard-L. <ol...@co...> - 2014-05-27 03:57:25
|
On Thu, May 22, 2014 at 9:02 PM, Cesar Fazan <ces...@gm...> wrote: > This is a dirty and intrusive patch to cross compile BSDRP for the > EdgeRouter Lite > Wow... Thanks for this big patch ! Now I just add to think how to "cleanly" include it :-) > > TODO > Find someone willing to port ubldr to mips so we can get a freebsd loader > when using uboot > - http://kernelnomicon.org/?p=351 > - http://svnweb.freebsd.org/base/stable/10/sys/boot/arm/uboot/ > - http://svnweb.freebsd.org/base/head/sys/boot/mips/ > Organize and clean up changes to not break build for other plataforms > Patch BSDRP upgrade so it can work with this disk layout > newfs, geom labels are a mess when creating big endian fs on little endian... so labels are removed > It's mandatory to use geom label on x86 for being "storage device agnostic". If BSDRP start from an USB flash key, the drive will be /dev/da0, but from a mSATA flash it will be /dev/ada0. I need to check if makefs(8) or mkimg(1) supports to set a correct label on this case. About the UPGRADE tool on MIPS: I had to "emulate" the concept of "MBR active partition" on sparc64 architecture. Because there is no concept of "MBR active" partition, I had to use a new method (directly re-configuring the Sun OBP for booting on the other partition). How, from the userland on a MIPS platform, how to configure the boot loader for booting to a new partition ? I didn't have an edgerouter anymore for testing the image, but I will play with qemu for testing the integration of your patch. Thanks a lot's. Olivier |