[Buildroot] [PATCH 2/2] board/sifive: add support for the HiFive Unleashed board
mark.corbin at embecosm.com
Wed Apr 17 12:03:13 UTC 2019
On 16/04/2019 00:29, Alistair Francis wrote:
> On Mon, Apr 15, 2019 at 7:28 AM Arnout Vandecappelle <arnout at mind.be> wrote:
>> On 15/04/2019 15:04, Mark Corbin wrote:
>>>>> +Connect the USB cable and open minicom (/dev/ttyUSB1, 115200, 8N1).
>>>> How do you know it is ttyUSB1? It is usually USB0...
>>> There are two USB serial devices on the board - the console always seems
>>> to be on USB1 on my board. I can be more cautious and say '/dev/ttyUSBx'
>> Ah, now I see... So the single USB cable provides two serial ports, and USB1 is
>> the one you need? Then it's indeed better to specify USB1 in the README. But
>> maybe also explain that there are two ports.
> It should always be USB1.
Ok, that's agreed then :-)
>>>>> +See the 'SiFive HiFive Unleashed Getting Started Guide' for
>>>>> +more details (https://www.sifive.com/documentation).
>>>>> +Mark Corbin <mark.corbin at embecosm.com> April 2019
>>>>> diff --git a/configs/sifive_u540_unleashed_defconfig b/configs/sifive_u540_unleashed_defconfig
>>>>> new file mode 100644
>>>>> index 0000000000..b56ae1b164
>>>>> --- /dev/null
>>>>> +++ b/configs/sifive_u540_unleashed_defconfig
>>>>> @@ -0,0 +1,29 @@
>>>>> +# Architecture
>>>>> +# Patches
>>>>> +# Linux headers same as kernel, a 4.20 series
>>>>> +# System
>>>>> +# Kernel
>>>> Oh, now I see, you're porting the changes done by sifive from 4.19 to 4.20...
>>>> Is that also what the freedom-u-sdk does? I don't think so...
>>> I'm not sure that the freedom-u-sdk has moved to 4.19 yet (the v1_0
>>> release uses 4.15), but there is a patched 4.19 kernel tree available in
>>> the master branch. I've generated a patch for 4.20.17 based on this
>>> patched 4.19 tree. I wanted to move to the most recent version of the
>>> 4.20 kernel that Buildroot supported, but I guess that I could also just
>>> look at using the patched 4.19 branch that already exists.
>> If a board is far away from being supported by upstream, we usually stick to an
>> "offical" fork from the board vendor.
> Unfortunately there is no "official" upstream fork. If using the 5.1
> kernel there are only 8 patches required
> (https://github.com/alistair23/linux/tree/hifive-unleashed-5.1). In OE
> we just apply those patches on top of mainline for 5.1
> as that way we can still get updates from the kernel community.
> I think the best bet is to use the latest kernel (maybe it's worth
> waiting until 5.1) and applying the patches on top. The diff is slowly
> shrinking so the newer the kernel the better. Those older kernels are
> not in a great shape and no one is maintaining them.
Rather that waiting for the 5.1 kernel I will look at using upstream
5.0.7 (Buildroot latest) with patches applied from the appropriate repo
via the BR2_LINUX_KERNEL_PATCH variable.
More information about the buildroot