Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 17:50:57 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        Giovanni Trematerra <gianni@freebsd.org>
Cc:        arm@freebsd.org, Tim Kientzle <tim@kientzle.com>, Oleksandr Tymoshenko <gonzo@freebsd.org>
Subject:   Re: Towards an ARM system-building script
Message-ID:  <CAGtf9xPNagN0F3ma0PEmUHLL4O36_4O%2B7fR%2BaSTLtGGHpz8pBg@mail.gmail.com>
In-Reply-To: <CACfq090bnkZJg_=aRaR-bqTv4z7bXgYmiNFqmL9jJFW3YC0bqA@mail.gmail.com>
References:  <DD05E72B9F474BFE96B6A4B050D2A18A@gmail.com> <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> <FAA208C1-2872-4BB6-A7EC-04C757533CA4@kientzle.com> <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> <9896AA3E-D8A0-4CE8-8160-4672AA07388F@cheney.net> <6B74ADD7-3266-4919-BEB4-B10E0C1BAB58@kientzle.com> <5679C679-A434-4714-BE61-4DC093DA7F34@kientzle.com> <CAGtf9xPgFeDHMnKRacYfUg1BKJx0MjfmX=DWOc-X2NoJfPVB9Q@mail.gmail.com> <8C1192B3-EC56-4D9E-824E-774700FB2EE9@kientzle.com> <CAGtf9xO%2Bz8JhCY-TirNwh-R_zW=hY%2BbPh-4x%2Bz3H0TQHu1aXAQ@mail.gmail.com> <CACfq090bnkZJg_=aRaR-bqTv4z7bXgYmiNFqmL9jJFW3YC0bqA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Tue, Oct 9, 2012 at 5:46 PM, Giovanni Trematerra <gianni@freebsd.org> wrote:
> On Tue, Oct 9, 2012 at 11:10 AM, Ganbold Tsagaankhuu <ganbold@gmail.com> wrote:
>> On Tue, Oct 9, 2012 at 12:42 PM, Tim Kientzle <tim@kientzle.com> wrote:
>>>
>>> On Oct 8, 2012, at 9:07 PM, Ganbold Tsagaankhuu wrote:
>>>
>>>> On Mon, Sep 24, 2012 at 2:55 AM, Tim Kientzle <tim@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 made significant progress and would
>>>>> appreciate any feedback:
>>>>>
>>>>>   github.com/kientzle/freebsd-beaglebone
>>>>>
>>>>> * 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:
>>>
>>> Wonderful!  Thanks for trying it!
>>>
>>> Please send me any patches you used; I'll try
>>> to incorporate them.
>>>
>>>> 1. PANDABOARD kernel config should be modified to use mmcsd card as root.
>>>
>>> Would anyone object to adding this line to FreeBSD SVN?
>>>
>>> # Boot device is 2nd slice on MMC/SD card
>>> options         ROOTDEVNAME=\"ufs:mmcsd0s2\"
>>>
>>>
>>>> 2. u-boot build complains about the board was configured to support THUMB mode
>>>
>>> Hmmm…  Not sure I understand this.
>
> This is because we have gcc 4.2 in base. You need at least gcc 4.4 to
> cross-compile in THUMB mode.

I see, but disabling THUMB works.

> I wasn't sure if it's needed to have u-boot.bin compiled in THUMB.
>
>>>
>>>> 3. Maybe there is need some more patches to have correct u-boot.bin,
>>>> since it looks for uImage for instance
>>>
>>> There will certainly need to be some U-Boot patches.
>>>
>>> Perhaps Oleksandr can point us to the source he
>>> used for that u-boot.bin?  If so, I can help fill in
>>> the options so it can correctly chain ubldr.
>>>
>>>> 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.
>>
>>
>> Progress, seems like ubldr is working after patching u-boot.
>> Here are the patches, uEnv.txt etc:
>> http://people.freebsd.org/~ganbold/pandaboard/
>
> Are you sure that uEnv.txt is correct.
> It seems to me to have an extra " at the end of last row and missing
> an empty row at the end of file.

It works without any problem that way.

Ganbold

>
>
> --
> Gianni


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xPNagN0F3ma0PEmUHLL4O36_4O%2B7fR%2BaSTLtGGHpz8pBg>