Ubuntu for olpc
James Cameron
quozl at laptop.org
Tue Apr 7 00:15:50 EDT 2015
On Mon, Apr 06, 2015 at 12:18:38PM -0400, Jhon Diaz wrote:
> Ubuntu 14.04 Tutorial now online on Sourceforge
> Enjoy
> Links https://sourceforge.net/projects/ubuntuforolpc/files/?
> Its the howto.save
Thanks.
It had lots missing.
See attached for fixes.
With the fixes, I was able to boot an XO-1 into Ubuntu 14.04 with
LXDE.
Please read and understand the bash scripts in uxo, which do
something very similar. You may learn some methods to use. If
there's anything you don't understand, ask me about it.
The web browser link to the git repository is:
http://dev.laptop.org/git/users/quozl/uxo/.git/
--
James Cameron
http://quozl.linux.org.au/
-------------- next part --------------
Ubuntu 14.04 on OLPC XO-1
Mount point will be ${MP}
MP=/mnt
Get a usb drive or sdcard to install on
with one partition with ext4 filesystem
mount /dev/(device) ${MP}
cd ${MP}
debootstrap --arch i386 trusty . http://archive.ubuntu.com/ubuntu
mount -o bind /dev ${MP}/dev
mount -o bind /proc ${MP}/proc
mount -o bind /sys ${MP}/sys
mount -o bind /tmp ${MP}/tmp
cp /etc/resolv.conf ${MP}/etc/resolv.conf
chroot ${MP}
sed -i 's/main/main universe/g' /etc/apt/sources.list
apt-get update
echo "(your hostname)" > /etc/hostname
apt-get install wpasupplicant rpm2cpio wget
adduser olpc
apt-get install xserver-xorg lxde Choose your own desktop sugar,lxde,xfce are know to work on olpc xo-1 i used lxde
xserver-xorg and lxde bring in 137 mb of download! includes chromium-browser
wget http://dev.laptop.org/~kernels/public_rpms/f20-xo1/kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
cd /
rpm2cpio kernel*.rpm | cpio -idmv
update-initramfs -c -u -k 3.10.0_xo1-20130716.1755.olpc.c06da27
(cd /boot ; ln -s initrd.img-3.10.0_xo1-20130716.1755.olpc.c06da27 initrd.img)
(cd /boot ; ln -s vmlinuz-3.10.0_xo1-20130716.1755.olpc.c06da27 vmlinuz )
rm kernel-3.10.0_xo1-20130716.1755.olpc.c06da27.i686.rpm
mkdir /lib/firmware
cd /lib/firmware
wget -O usb8388.bin http://dev.laptop.org/pub/firmware/libertas/usb8388-5.110.22.p22.bin
create a file /boot/olpc.fth with these lines:
\ trusty
visible
" ext:\boot\initrd.img" to ramdisk
" ext:\boot\vmlinuz" to boot-device
" console=tty0 fbcon=font:SUN12x22 root=/dev/mmcblk0p1" to boot-file
boot
exit the chroot
umount ${MP}/dev
# umount: /mnt/dev: device is busy.
# lsof /mnt
# kill dbus-daemon dbus-launch
# caused by daemon processes started by apt-get, see mkuxo-minimal for fix
umount ${MP}/proc
umount ${MP}/sys
umount ${MP}/tmp
cd
umount ${MP}
# root password not set, so no way to install packages
# console font too small
# lxde shutdown
# GDbus.Error:org.freedesktop.DBus.Error:AccessDenied: Operation not permitted
# display manager shutdown
# total size of remix exceeds 1GB so not suitable for XO-1 NAND Flash
More information about the Devel
mailing list