Minnowboard talk:Debian Bare Minimum Bootstrapping

From eLinux.org
Jump to: navigation, search

Contents

Thread titleRepliesLast modified
Ubuntu on Minnowboard012:39, 13 September 2014
Corrections/Defects010:26, 9 August 2014

Ubuntu on Minnowboard

I found a *much* easier way to get a Linux distribution installed to the Minnowboard that I though worth sharing. I've successfully installed Ubuntu and Lubuntu 14.04 to a sd-card and a SATA HDD respectively today. Both seem to work ok - Ethernet, keyboard, HDMI all working fine. Ubuntu runs very slowly from my sd-card, Lubuntu on a regular HDD is tolerable.

Approach I took was to burn (using pendrivelinux) a regular 32bit i386 ISO to a USB stick, and then copy over from the Angstrom card that came with the board the EFI directory and the ID.txt and startup.nsh files. Then edit EFI/BOOT/grub.cfg to remove the angstrom command and add the grub commands forinstallation from the grub config file that the ISO wrote to the stick.

Boot the minnowboard from the USB stick with an sd-card or hdd in place, follow the regular install sequence (which is pretty slow) and it installs just fine.

12:39, 13 September 2014

Corrections/Defects

Thanks a lot for this, *nearly* got me working but there are some errors.

1. The vmlinuz and initrd.img files referenced in grub are given as /boot/vmlinuz etc. The file in /boot has a full name with the version so its not found by grub (there is a link in root which is just vmlinuz). I fixed this by using the full name (/boot/vmlinuz-xxxx) in the grub file, I guess you could just point to root too.

2. I couldn't run update-initramfs as specified, I had to do the following first before chroot, to bring in some other dependencies.

 sudo mount --bind /dev /mnt/debian/dev
 sudo mount --bind /proc /mnt/debian/proc
 sudo mount --bind /sys /mnt/debian/sys

3. The comment "make sure that you change the 'root=/dev/sda2' line to 'root=/dev/mmcblkp2'" should actually say /dev/mmcblk0p2

4. Even after I built the new initramfs after adding mmc, I'm not sure this is needed. When it boots on the Minnow modprobe says it can't find mmc, but it boots off the sdcard anyway

Lastly, I had to exit chroot to do the grub file changes towards the end of the process.

10:26, 9 August 2014