Towards an ARM system-building script
Ganbold Tsagaankhuu
ganbold at gmail.com
Tue Oct 9 06:56:09 UTC 2012
On Mon, Sep 24, 2012 at 2:55 AM, Tim Kientzle <tim at kientzle.com> wrote:
> On Sep 4, 2012, at 9:52 PM, Tim Kientzle wrote:
>> On Sep 4, 2012, at 9:33 PM, Dave Cheney wrote:
>>
>>> Sorry to butt in on this discussion, but how feasible would it be to adapt this build script to the pandaboard. I understand there may be a config in svn similar to the beaglebone which may be applicable.
>>
>> I've started tinkering with ideas for generalizing my
>> BeagleBone script so it can build system images for
>> other boards.
>
> I've made significant progress and would
> appreciate any feedback:
>
> github.com/kientzle/freebsd-beaglebone
>
> This has been massively refactored so it can
> build system images for a variety of
> ARM-based boards. Right now:
>
> * BeagleBone builds and boots cleanly again. ;-)
> In particular, I've caught up with some changes to
> ubldr in -CURRENT and switched to using the
> stable DENX U-Boot sources instead of the
> rapidly-evolving (and often broken) TI/Arago sources.
>
> * PandaBoard: I have a completely untested
> sketch. Someone with a PandaBoard will need
> to work through the U-Boot configuration to make
> this work.
I tried your script on PandaBoard ES.
Basically it works with some modifications/considerations:
1. PANDABOARD kernel config should be modified to use mmcsd card as root.
2. u-boot build complains about the board was configured to support THUMB mode
3. Maybe there is need some more patches to have correct u-boot.bin,
since it looks for uImage for instance
4. I didn't dig into ubldr/u-boot much, instead modified uEnv.txt to
load kernel.bin from first partition which is FAT. I tried 8MB of FAT.
5. I used MLO, u-boot.bin from http://people.freebsd.org/~gonzo/pandaboard/
So how does ubldr work? Can it load kernel.bin from second partition
in case of PandaBoard?
Ganbold
>
> * RaspberryPi: I have a completely untested
> sketch that will need more work before it can
> build a bootable image.
>
> Others? If you're interested in adding support for
> other boards, let me know. All the boards above:
> * Are ARMv6-based.
> * Have a kernel configuration in -CURRENT
> * Boot from an MBR-partitioned SD card or USB stick
> * Boot using U-Boot and ubldr
>
> It should be pretty straightforward to add support
> for other boards that meet these criteria. The hardest
> part is working up the correct U-Boot patches; hopefully
> the existing BeagleBone patches will prove helpful
> to anyone who wants to work on this.
>
> Tim
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list