Previously, I set up a crosstools-NG build environment on OSX and then tried to compile a kernel. The kernel compilation process was a bit much to adjust to. Easier to just install Ubuntu in a VirtualBox image and do compilation there.
After installing Ubuntu on the image, I did (mostly via this stackexchange answer):
1
|
|
1
|
|
1 2 |
|
Note that I had to set VirtualBox to “bridged adapter” mode in order to see the ‘local’ devices on the network.
1
|
|
1
|
|
1 2 |
|
NB. I configured VirtualBox to see as 8 cores for -jN
to produce a speedup.
That…. was straightforward.
Now to install it on the Pi. I’ll just take my SD card and mount it on the Ubuntu host for this. This required installing the VirtualBox Extension Pack. And using a USB SD card reader since I couldn’t figure out how to work the Mac’s builtin reader in VirtualBox.
1 2 3 4 |
|
Upon booting I got some errors about “disagrees about version of symbol module_layout
”. This made no sense, as modinfo showed the same version as uname -a
, but then I added gcc
to the make-modules-install
option (this had previously ended in “-
” like I would have expected), and made sure all modules were owned and writable only by root. That combination appeared to work (I was less than scientific in doing both at once.)