instantinfrastructure / edison-src

Edison BSP - https://communities.intel.com/docs/DOC-23242
10 stars 8 forks source link

Building edison-image BSP with Linux 3.19.x #2

Open hh opened 9 years ago

hh commented 9 years ago

This issues is to document my attempt to a build of linux kernel 3.19 to build as a yocto linux BSP layer on top of the Intel Edison BSP layer.

The intel/maker/edison forum post for this is at https://communities.intel.com/message/272467#272467

Edison - Software Downloads includes http://downloadmirror.intel.com/24389/eng/edison-image-rel1-maint-rel1-ww42-14.zip Which I imported into github: https://github.com/instantinfrastructure/edison-src and is the src of this github repo.

The recipe we need to override is here: ./device-software/meta-edison/recipes-kernel/linux/linux-yocto_3.10.bbappend

I haven't found any working examples of layers that build against 3.19.x?

I did find a layer that does not change the kernel version at richards-tech/meta-edison-rt

hh commented 9 years ago

It looks like out of the box 3.17 is the highest integrated into the yocto / poky distribution builder... http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-kernel/linux/linux-yocto_3.17.bb

hh commented 9 years ago

linux-yocto-contrib seems to be getting the 3.19 stream http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-contrib/log/

I just hope enough of the intel-mid stuff has been merged at this point!

hh commented 9 years ago

Opened a new repo for the edison bsp layer https://github.com/instantinfrastructure/meta-edison-ii

hh commented 9 years ago

Reading up on http://www.yoctoproject.org/docs/latest/kernel-dev/kernel-dev.html#kernel-dev-advanced

hh commented 9 years ago

I'm a bit worried that the platform/intel-mid is hugely different between 3.10.17 (with the intel patches) and what is in 3.19.0-rc4.... I'm going to wait until I hear something from the platform/intel-mid folks before I head down this route to far

hh commented 9 years ago

From http://layers.openembedded.org/layerindex/branch/master/layer/meta-intel/

Official layer for Intel platform/board support. This layer itself (at the top level) contains common components, and then there are sub-layers for each BSP which are listed individually in this index.

Maintainer: Nitin A Kamble nitin.a.kamble@intel.com

However I don't see any kernel stuff on there...

hh commented 9 years ago

@nitinkamble do you know where the edison bsp community repos are? I've gotten very little public information out of Intel, and this seems to be the correct external location but I don't find the word edison in any of these sources.

hh commented 9 years ago

It look like the kernel configuration and source for many embedded devices don't get updated often. if we want the latest gadgets on devices like the Edison and Raspberry Pi, we are going to have to backport. I'm interested in the bold ones.

hh commented 9 years ago

This gave me the idea to retarget the first port to a raspi, at they have a 3.18 kernel

http://wiki.openmoko.org/wiki/Building_Gadget_USB_Module gave me an idea of how to build it as a module out of tree... sort of out of tree.

pklapperich commented 7 years ago

I see there's a 3.19.5 branch in the edison-linux repo: https://github.com/01org/edison-linux/tree/edison-3.19.5 ... not sure if it's stable

andy-shev commented 7 years ago

@pklapperich Vanilla kernel (v4.11-rc1) supports most of the important parts of Edison out-of-the-box.

hh commented 7 years ago

Nice! Thanks for the info @andy-shev !

andy-shev commented 7 years ago

v4.11-rc1 is a bit unstable (looks like a boot time regression bug that makes watchdog fired at boot time). I pushed back my v.4.10 based branch for Edison which works nicely stable now.