Installing 12.04 hard float on Beagle Bone

Hi folks,

I just received a BeagleBone and I need to get Ubuntu 12.04 (the hard
float version) working on it. My first approach will probably be to
follow the instructions at http://elinux.org/BeagleBoardUbuntu#Demo_Image.
That leads me to my first question: Where can I grab the source for
the image there? The reason I need the source is that I need to
compile a 3rd party kernel module post-installation. The reason why
I'm looking to build off the source rather than installing the kernel
headers is that I've run into some problems in the past compiling
modules with header packages; when doing it from source I usually end
up fine.

However, I may end up trying to install 12.04 images straight from
ubuntu-arm. That leads me to my second question. In that case, how
do I go through the installation procedure for installing Ubuntu in
this fashion? For example, on the BeagleBoard, I can go through the
config and installation stages on the initial boot-up because I'm
connected to the board via the serial port. Obviously, there's no
serial port on the BeagleBoard. So how can I get around that? The
mini-usb port?

Thanks in advance for your help,

Tony

Hi folks,

I just received a BeagleBone and I need to get Ubuntu 12.04 (the hard
float version) working on it. My first approach will probably be to
follow the instructions at BeagleBoardUbuntu - eLinux.org.
That leads me to my first question: Where can I grab the source for
the image there?

The kernel source for that current shipping image is, mainline v3.2 +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/patch-3.2-psp1.diff.gz +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/defconfig

The reason I need the source is that I need to
compile a 3rd party kernel module post-installation. The reason why
I'm looking to build off the source rather than installing the kernel
headers is that I've run into some problems in the past compiling
modules with header packages; when doing it from source I usually end
up fine.

However, I may end up trying to install 12.04 images straight from
ubuntu-arm.

Those should work too, just bring your own kernel.. I haven't read of
any ubuntu/canonical developers working on the bone..

That leads me to my second question. In that case, how
do I go through the installation procedure for installing Ubuntu in
this fashion? For example, on the BeagleBoard, I can go through the
config and installation stages on the initial boot-up because I'm
connected to the board via the serial port. Obviously, there's no
serial port on the BeagleBoard. So how can I get around that? The
mini-usb port?

Actually there is, the usb-mini port next to the ethernet, has a
serial-usb... As long as you have a recent kernel, 3.2.5+/3.3-rc's it
should be detected out of the box..
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=55f13aeae0346f0c89bfface91ad9a97653dc433

if not, there's udev rule directions on beagleboard.org for the bone..

Regards,

The kernel source for that current shipping image is, mainline v3.2 +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/patch-3.2-psp1.diff.gz +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/defconfig

Thank you Robert. I applied the patch, but I don't know what to do
with the defconfig file. What am I supposed to do with it?

As long as you have a recent kernel, 3.2.5+/3.3-rc's it should be detected out of the box..

And so it did! Man, you guys have really streamlined the installation
process; that installation process/those scripts are sweet. Kudos.
The only hiccup I ran into was having to pop off resistor 219 to get
the ethernet working.

-Tony

The kernel source for that current shipping image is, mainline v3.2 +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/patch-3.2-psp1.diff.gz +
http://rcn-ee.net/deb/precise-armhf/v3.2.0-psp1/defconfig

Thank you Robert. I applied the patch, but I don't know what to do
with the defconfig file. What am I supposed to do with it?

That defconfig, is the kernel ".config" file used with that patched
source to setup the kernel used in that demo image..

As long as you have a recent kernel, 3.2.5+/3.3-rc's it should be detected out of the box..

And so it did! Man, you guys have really streamlined the installation
process; that installation process/those scripts are sweet. Kudos.
The only hiccup I ran into was having to pop off resistor 219 to get
the ethernet working.

Regards,

Got it. I cross-compiled the kernel (to set-up for a 3rd party kernel
module cross-compilation), but am having some problems getting a
kernel module to work. Before I start a thread on that issue, I
wanted to validate the steps I took to cross-compile the kernel:

1. Downloaded linux-3.2.tar.gz from kernel.org (i.e. not linux-3.2.X.tar.gz).
2. Applied the patch from your link: patch -p1 < patch-3.2-psp1.diff.
3. Saved the defconfig and .config, and ran make menuconfig.
4. Cross-compiled: make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm

Is that sane, or am I missing a step/messed something up?

Thanks for your help,

Tony

"make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm uImage" will generate
a bootable kernel image..

for the modules, mount your sd card's rootfs:

make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm modules_install
INSTALL_MOD_PATH=/media/rootfs/

Regards,