Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/5] Upgrade BeagleBone kernel to 3.8
@ 2013-05-09 20:31 Anders Darander
  2013-05-09 20:31 ` [Buildroot] [PATCH 1/5] beaglebone: update to linux 3.8 Anders Darander
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Anders Darander @ 2013-05-09 20:31 UTC (permalink / raw)
  To: buildroot

From: Anders Darander <anders@chargestorm.se>

Hi,

(I'm resending this series from a subscribed address).

This patch series upgrades the kernel for the BeagleBone to 3.8.

The 3.8 kernel is taken from TI's own repo, and the actual branch/commit used
are the same as currently being used in their own BSP (see meta-ti for
OpenEmbedded / Yocto).

As the BB support is being mainlined, the old board-setup has been removed,
thus the 3.8 kernel requires the use of a device tree. (A DTS, am33x-bone.dts
is included in the kernel).

The new package, am33x-cm3, consists of the FW blob for the Cortex M3 on the
BB that handles the power management of the board. Without this firmware
loaded, even a simple `reboot` won't succeed. In the old 3.2 kernel, this was
compiled in as a part of the kernel, however, in the 3.8 kernel, it has to be
loaded during the runtime.

The last patch in the series (0005-beaglebone-enable-NFS-root.patch) is not
necessary; it's only my preferred way of testing.

Cheers,
Anders

Anders Darander (5):
  beaglebone: update to linux 3.8
  beaglebone: reduce defconfig
  am33x-cm3: add FW for suspend/resume
  beaglebone: add am33x-cm3
  beaglebone: enable NFS root

 board/beaglebone/linux-3.2.9.config       |  252 -----------------------------
 board/beaglebone/linux-3.8.config         |  203 +++++++++++++++++++++++
 configs/beaglebone_defconfig              |   23 +--
 package/Config.in                         |    1 +
 package/am33x-cm3/Config.in               |    4 +
 package/am33x-cm3/am335x-pm-firmware-load |    6 +
 package/am33x-cm3/am33x-cm3.mk            |   26 +++
 7 files changed, 247 insertions(+), 268 deletions(-)
 delete mode 100644 board/beaglebone/linux-3.2.9.config
 create mode 100644 board/beaglebone/linux-3.8.config
 create mode 100644 package/am33x-cm3/Config.in
 create mode 100755 package/am33x-cm3/am335x-pm-firmware-load
 create mode 100644 package/am33x-cm3/am33x-cm3.mk

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 1/5] beaglebone: update to linux 3.8
@ 2013-05-11  4:37 Anders Darander
  2013-05-11  6:10 ` Arnout Vandecappelle
  0 siblings, 1 reply; 13+ messages in thread
From: Anders Darander @ 2013-05-11  4:37 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

(Resending as I first sent from an unsubcribed email).

Arnout Vandecappelle <arnout@mind.be> wrote:
>On 09/05/13 22:31, Anders Darander wrote:
>> From: Anders Darander <anders@chargestorm.se>
>>
>> The kernel config here, is basically the default one from the TI
>kernel.
>> Thus, it's omap2plus_defconfig, which is rather generic.
>
> So why include a config in buildroot? If it's just the defconfig that
>is already in the kernel tree, you can use it.

Well, the intention was to reduce it in the next patch, just to show how it
was derived. Though, I'll squash them in the next revision.

>> As the beaglebone support is mainlined, there's no support for the
>old
>> board setup files, and the only supported run-time configuration is
>through
>> the device tree.
>>
>> We're also setting the kernel headers to follow the 3.8 series.
>>
>> Signed-off-by: Anders Darander <anders@chargestorm.se>
>> ---
>>   board/beaglebone/linux-3.2.9.config |  252
>----------------------------
>>   board/beaglebone/linux-3.8.config   |  315
>+++++++++++++++++++++++++++++++++++
>
>  Please create your patches with the -M option to send-email or
>format-patch, so that we can actually see the diff crossing the rename.

Hmm, strange, I was using -M, but I might have to tweak the threshold a
little bit. I'll look into that for the next revision.

>Otherwise it's pretty hard to review.
>
>>   configs/beaglebone_defconfig        |   22 +--
>>   3 files changed, 321 insertions(+), 268 deletions(-)
>>   delete mode 100644 board/beaglebone/linux-3.2.9.config
>>   create mode 100644 board/beaglebone/linux-3.8.config
>>
>[snip]
>> diff --git a/configs/beaglebone_defconfig
>b/configs/beaglebone_defconfig
>> index 2177068..f80dd79 100644
>> --- a/configs/beaglebone_defconfig
>> +++ b/configs/beaglebone_defconfig
>> @@ -1,24 +1,14 @@
>> -# architecture
>>   BR2_arm=y
>>   BR2_cortex_a8=y
>> +BR2_KERNEL_HEADERS_3_8=y
>>   BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-fpu=vfpv3 --with-float=hard"
>>   # BR2_SOFT_FLOAT is not set
>> -
>> -# system
>
>Please don't remove these comments, they're useful. You can selectively

Ok, then I guess that I should keep the old ordering, even though
savedefconfig have reordered some of them.?

>undo changes with 'git checkout -p configs/beaglebone_defconfig'.
>

>>   BR2_LINUX_KERNEL=y
>>   BR2_LINUX_KERNEL_CUSTOM_GIT=y
>>
>-BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://github.com/koenkooi/linux.git"
>>
>-BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="linux-ti33x-psp-3.2-r5a+gitr09e9651bcf2ee8d86685f2a8075bc6557b1d3b91"
>>
>+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://
git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
>>
>+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="935f6c2f82056d538b528272e2bdbb5c08d69a58"
>
>Isn't there a tag you can clone from? That's much faster, because then
>we can (usually) do a shallow clone.

I'm not sure if there's a tag available in this case.

Ok, so tags preferred if they exists... Good to know, I'll check it and
change it if there's a tag.

The list few years I've mainly been working with another build system,
where SHA1's are preferred over tags for network-less building.

I'll come back with a new series in a couple of days.

Thanks for the feedback!

Cheers,
Anders

-- 
Anders Darander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130511/5d3d6858/attachment.html>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-05-12 17:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 20:31 [Buildroot] [PATCH 0/5] Upgrade BeagleBone kernel to 3.8 Anders Darander
2013-05-09 20:31 ` [Buildroot] [PATCH 1/5] beaglebone: update to linux 3.8 Anders Darander
2013-05-10 22:44   ` Arnout Vandecappelle
2013-05-09 20:31 ` [Buildroot] [PATCH 2/5] beaglebone: reduce defconfig Anders Darander
2013-05-10 22:45   ` Arnout Vandecappelle
2013-05-09 20:31 ` [Buildroot] [PATCH 3/5] am33x-cm3: add FW for suspend/resume Anders Darander
2013-05-10 22:56   ` Arnout Vandecappelle
2013-05-09 20:31 ` [Buildroot] [PATCH 4/5] beaglebone: add am33x-cm3 Anders Darander
2013-05-09 20:31 ` [Buildroot] [PATCH 5/5] beaglebone: enable NFS root Anders Darander
  -- strict thread matches above, loose matches on Subject: below --
2013-05-11  4:37 [Buildroot] [PATCH 1/5] beaglebone: update to linux 3.8 Anders Darander
2013-05-11  6:10 ` Arnout Vandecappelle
2013-05-11 12:41   ` Anders Darander
2013-05-12 17:15     ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox