Merge lp:~ltrager/maas-images/lp1702976 into lp:maas-images

Proposed by Lee Trager
Status: Merged
Merged at revision: 374
Proposed branch: lp:~ltrager/maas-images/lp1702976
Merge into: lp:maas-images
Diff against target: 14 lines (+4/-0)
1 file modified
bin/kpack-from-image (+4/-0)
To merge this branch: bzr merge lp:~ltrager/maas-images/lp1702976
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+327329@code.launchpad.net

Commit message

Include the i2c-thunderx driver on ARM64 only.

Enlistment fails on Cavium ThunderX systems as the IPMI SSIF interface requires the i2c-thunderx module to access the BMC. Include the i2c-thunderx driver in the published ARM64 initrds.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Lgtm! Have you tested this? Also, please superseed the other MP!

review: Approve
Revision history for this message
dann frazier (dannf) wrote :

My comments from my original merge proposal still stand here:
  https://code.launchpad.net/~dannf/maas-images/lp1702976/+merge/327308

Specifically, I'd prefer we do this for arm*, just just for arm64, and that we include all the bus drivers, not just the i2c-thunderx driver. I don't know of any specific system that would be fixed by either of the above - but seems like a cleaner future-proofing. And obviously, it's ultimately your call.

I'd also like to continue to ask that we use 'dpkg --print-architecture' instead of 'uname -m'. From chatting on IRC, it sounds like qemu-user does emulate 'uname -m' to match the userspace, but that's just one form of a non-native build mechanism. Consider if we were building images for armhf on an arm64 host in an lxd container:

root@armhf:~# uname -m
armv8l

Whereas, we know in this case 'dpkg --print-architecture' will always report the thing we want to know:
root@armhf:~# dpkg --print-architecture
armhf

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/kpack-from-image'
2--- bin/kpack-from-image 2017-05-09 14:04:12 +0000
3+++ bin/kpack-from-image 2017-07-12 19:56:26 +0000
4@@ -187,6 +187,10 @@
5 copy_modules_dir kernel/drivers/char/ipmi # LP: #1333271
6 copy_modules_dir kernel/drivers/net/usb # LP: #1552378
7 manual_add_modules bcache # (LP: #1513176)
8+# LP: #1702976
9+if [ `uname -m` = 'aarch64' ]; then
10+ manual_add_modules i2c-thunderx
11+fi
12 EOF
13 if [ "$rel" = "precise" ]; then
14 echo "manual_add_modules squashfs # (LP: #1501834)" >> "$fname"

Subscribers

People subscribed via source and target branches