How to build Xenial Joule branch

Bug #1688160 reported by Emily Chien
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Intel-Joule project
Fix Committed
Undecided
Unassigned

Bug Description

Copy query from https://answers.launchpad.net/ubuntu/+source/linux/+question/630819

Hi,

I am Yash from Intel. I am trying to build Kernel Source from Xenial Joule branch with below mentioned steps. Build is successful and it generates deb files. I am facing dependency problem while installing the packages. Could you please let me know, are these the right steps to build Xenial Joule branch and install packages.

OS : Ubuntu 16.04

Source from : git clone -b joule https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial

Build Environment:
 sudo apt-get install build-essential git
 sudo apt-get install kernel-wedge
 sudo apt-get install libssl-dev ncurses-dev xz-utils kernel-package

Modify the Configuration:
    chmod a+x debian/rules
    chmod a+x debian/scripts/*
    chmod a+x debian/scripts/misc/*
    fakeroot debian/rules clean
    fakeroot debian/rules editconfigs

Trigger the kernel build:
Change your working directory to the root of the kernel source tree and then type the following commands:
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-joule

Build Outputs:
cd ..
ls *.deb
Following files were generated from build
linux-headers-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb
linux-image-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb
linux-joule-headers-4.4.0-1000_4.4.0-1000.1_amd64.deb
linux-tools-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb

Install:

sudo dpkg -i linux*.deb
Selecting previously unselected package linux-headers-4.4.0-1000-joule.
(Reading database ... 250898 files and directories currently installed.)
Preparing to unpack linux-headers-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb ...
Unpacking linux-headers-4.4.0-1000-joule (4.4.0-1000.1) ...
Selecting previously unselected package linux-image-4.4.0-1000-joule.
Preparing to unpack linux-image-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-1000-joule (4.4.0-1000.1) ...
Selecting previously unselected package linux-joule-headers-4.4.0-1000.
Preparing to unpack linux-joule-headers-4.4.0-1000_4.4.0-1000.1_amd64.deb ...
Unpacking linux-joule-headers-4.4.0-1000 (4.4.0-1000.1) ...
Selecting previously unselected package linux-tools-4.4.0-1000-joule.
Preparing to unpack linux-tools-4.4.0-1000-joule_4.4.0-1000.1_amd64.deb ...
Unpacking linux-tools-4.4.0-1000-joule (4.4.0-1000.1) ...
Setting up linux-image-4.4.0-1000-joule (4.4.0-1000.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
update-initramfs: Generating /boot/initrd.img-4.4.0-1000-joule
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
run-parts: executing /etc/kernel/postinst.d/vboxadd 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-1000-joule /boot/vmlinuz-4.4.0-1000-joule
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-1000-joule
Found initrd image: /boot/initrd.img-4.4.0-1000-joule
Found linux image: /boot/vmlinuz-4.4.0-75-generic
Found initrd image: /boot/initrd.img-4.4.0-75-generic
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-joule-headers-4.4.0-1000 (4.4.0-1000.1) ...
dpkg: dependency problems prevent configuration of linux-tools-4.4.0-1000-joule:
 linux-tools-4.4.0-1000-joule depends on linux-joule-tools-4.4.0-1000; however:
  Package linux-joule-tools-4.4.0-1000 is not installed.

dpkg: error processing package linux-tools-4.4.0-1000-joule (--install):
 dependency problems - leaving unconfigured
Setting up linux-headers-4.4.0-1000-joule (4.4.0-1000.1) ...
Errors were encountered while processing:
 linux-tools-4.4.0-1000-joule

Thanks,

Changed in intel-joule:
assignee: nobody → Jesse Sung (wenchien)
Revision history for this message
Jesse Sung (wenchien) wrote :

If you just want to install the kernel, you can safely skip the linux-tools package. In case you do need it, please also add "binary-perarch" to the command:

$ fakeroot debian/rules clean binary-headers binary-joule binary-perarch
...
dpkg-deb: building package 'linux-joule-tools-4.4.0-1000' in '../linux-joule-tools-4.4.0-1000_4.4.0-1000.1_amd64.deb'.

This will generate the linux-joule-tools package.

Changed in intel-joule:
status: New → Fix Committed
Changed in intel-joule:
assignee: Jesse Sung (wenchien) → Yashaswini Hanji (yhanji)
Revision history for this message
Yashaswini Hanji (yhanji) wrote :

Thanks you so much for answering. I will try this.

$ fakeroot debian/rules clean binary-headers binary-joule binary-perarch

Also, I raised one more question https://answers.launchpad.net/ubuntu/+source/linux/+question/630905 but somebody made duplicate of https://answers.launchpad.net/ubuntu/+source/linux/+question/630819

Is "ubuntu-core-16-joule.img.xz" and "tuchuck-xenial-desktop-iso-20170317-0.iso" image is built from https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial (Joule branch)

Could you please provide the build instructions to generate these images.

Thank you.

Changed in intel-joule:
assignee: Yashaswini Hanji (yhanji) → nobody
Revision history for this message
Fnoop (fnoop) wrote :

git clone -b joule https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial fails:
Cloning into 'xenial'...
fatal: Remote branch joule not found in upstream origin

Now that Intel has abandoned the Joule, it would be nice if we can continue using the hardware with Ubuntu. There is some missing support with the ubuntu kernel - namely support for the joule csi cameras - so instructions on how to pull and build the kernel would be great.

Revision history for this message
Forrest Sheng Bao (forrest.bao) wrote :

@fnoop, i think the new source is here https://code.launchpad.net/~canonical-kernel/ubuntu/+source/linux-joule/+git/linux-joule

I also noticed that there is no branch called Joule in xenial's repository (as of July 22, 2017). Maybe it was merged or deleted recently.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.