Skip to content

Upgrading Ubilinux Debian Wheezy to Jessie

catmaker edited this page Aug 10, 2015 · 9 revisions
Ubilinux Install and Upgrade Immediately to Jessie

Ubilinux from Emutexlabs isn't really Ubuntu -- It is Debian Wheezy Version 7.x
Start from Ubilinux fresh. Don't install ANY packages yet -- "Mai Kay Kiang" [singlish].

passwd root
(Get wifi working reliably)

Fix: In /etc/avahi/avahi-daemon.conf, add
allow-interfaces=wlan0,eth0

apt-get update
apt-get upgrade
apt-get dist-upgrade
cp /etc/apt/sources.list /etc/apt/sources.list.wheezy
sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
check and comment out in /etc/apt/sources.list
#deb http://ubilinux.org/edison jessie main
apt-get update
apt-get upgrade
apt-get dist-upgrade
reboot
.

Fix: After updating from Wheezy to Jessie, some bootloader u-boot artefacts may exist.
[  OK  ] Reached target Network.
[  OK  ] Reached target System Initialization.
         Starting Rescue Shell...
[  OK  ] Started Rescue Shell.
[  OK  ] Reached target Rescue Mode.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.
Type "journalctl -xb" to view system logs. Type "systemctl reboot" to reboot.
Give root password for maintenance
(or type Control-D to continue):
[   19.420587] intel_scu_watchdog_evo: watchdog_stop

bootargs_target=rescue or first-install
to be changed to
bootargs_target=multi-user

boot > printenv
boot_target_cmd=run do_flash_os;run do_probe_dfu;run do_compute_target;run mmc-bootargs;run load_kernel;zboot ${loadaddr}
bootargs_console=console=ttyMFD2 earlyprintk=ttyMFD2,keep
bootargs_debug=loglevel=4
bootargs_ethconfig=rndis
bootargs_target=first-install
bootcmd=echo "Target:${target_name}"; run do_partition; run do_handle_bootargs_mode;
bootdelay=1
dfu_alt_info_ram=kernel ram ${loadaddr} 0x800000
dfu_alt_info_reset=reset ram 0x0 0x0
dfu_to_sec=3

.

"Expanding" the filesystem

BAD things happen when apt-get command is executed and space on rootfs runs out. So some tweaking of partition management is required. Some directories of rootfs can be moved to /home partition, maximising space for the former.

  • /usr/share
  • /var/cache
  • move /usr/share to /home/share, and relink (to free up partition 1).
  # cd /usr  
  # cp -rp share /home  
  # mv share share.orig  
  # ln -sf /home/share  
  [reboot and check]  
  # cd /usr  
  # rm -rf share.orig [Ulp!]  

.

For me, the Australia debian mirror site is good ( nano /etc/apt/sources.list )
deb http://ftp.au.debian.org/debian jessie main contrib non-free
#deb-src http://http.debian.net/debian jessie main contrib non-free

deb http://ftp.au.debian.org/debian jessie-updates main contrib non-free
#deb-src http://http.debian.net/debian jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free

#deb http://ubilinux.org/edison wheezy main

deb http://ftp.au.debian.org/debian jessie-backports main

.

OS Post-Installation and customisations

dpkg-reconfigure tzdata
dpkg-reconfigure locales

  • apt-get installs [I need MD tables here, really]
    sudo
    x11-apps xjed screen
    alsa-utils mpg123 espeak libsndfile1-dev portaudio19-dev
    libv4l-dev
    i2c-tools
    git subversion build-essential cmake
    gcc-arm-none-eabi lpc21k
    .
Audio customisation

nano ~/.asoundrc

pcm.!default sysdefault:Headset

The "Headset" comes from

$ aplay -l
...snip snip...
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Headset [Logitech G430 Gaming Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

.