Author Topic: Ubuntu 13.10 developer for A20  (Read 12465 times)

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Ubuntu 13.10 developer for A20
« on: October 15, 2013, 05:58:21 pm »
I have uploaded an A20 build of the Ubuntu 13.10 (Saucy Salamander) core distribution taken from here a couple of days ago: http://cdimage.ubuntu.com/ubuntu-core/daily/current and combined it with the latest 3.4.61 kernel+modules here: http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.
The download is here: http://dl.cubieforums.com/patwood/saucy-core-developer-20131013-A20-3.4.61.img.xz and is only 133MB; the 590MB root fs fits on a 1GB SD card.  The file size is 138596052 bytes and the md5sum (compressed file) is c6ad3257237b6aa59725593b2e1e3d0e.


Edit: this image has been superseded by this one: http://dl.cubieforums.com/patwood/saucy-13.10-ct-cb2-3.4.75.img.xz.  It was created from the official 13.10 build for armhf from here: http://cdimage.ubuntu.com/ubuntu-core/releases/saucy/release/ and the 3.4.75+ kernel from here: http://dl.cubieforums.com/patwood/A20-kernel-3.4.75-ct.tar.gz (the previous image was based on a pre-release build from about a week before).  It supports both CB2 and CT dual-boot and has OTG, with g_ether loaded at startup.  The file size is 128655692 bytes and the md5sum (compressed file) 335c481c71e915f1cd66e33ef0ec912d.

Edit2: I have removed the saucy-core-developer-20131013-A20-3.4.61.img.xz due to problems with replacing the kernel on the ext4 root fs.  Please use the newer image instead.

This is useful for headless servers and do-it-yourself image builders.  apt-get is installed and updated, along with openssh, networking (including wireless), and developer tools.  There's no GUI, but X and desktops can be installed with apt-get.  HDMI console framebuffer and virtual terminals are supported. Note that if you want to use Mali, G2D, or CedarX, you should remove the extraargs settings in /boot/uEnv.txt; similarly, the HDMI settings are currently locked at 1280x720p60 in extraargs to support the widest array of monitors and TVs.

root password is root, but the serial console and virtual terminal tty1 are automatically logged in as root.

I've also made it easy to boot this system with the SD card mounted read-only, and various system dirs that need write access are mounted as ramdisks (e.g., /run, /tmp, /var/tmp, /var/cache, /etc).  To enable this, copy /boot/uEnv-ro.txt over /boot/uEnv.txt; to switch back to writable SD, copy /boot/uEnv-rw.txt over /boot/uEnv.txt.  I've posted the mechanisms used here separately in the initrd.gz download.

Note: if you plan on deploying something based on this distro, make sure you disable ssh or generate a new set of ssh host keys:

Code: [Select]
rm /etc/ssh/ssh_host_*
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

Note: unlike a lot of distros, this one has only one partition.  I've done away with the FAT32 boot partition; all the boot files (uImage, script.bin, uEnv.txt) live on the root partition in /boot.  I've gone back to a dual-partition layout, mostly because u-boot seems fussy about loading large files from ext4 file systems.
« Last Edit: February 14, 2014, 10:45:04 am by patwood »

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #1 on: October 16, 2013, 08:51:37 am »
I will try it out today.

magno

  • Guest
Re: Ubuntu 13.10 developer for A20
« Reply #2 on: October 16, 2013, 05:13:30 pm »
Nice!

One more for my catalog !

Ok Pat, it's already in the catalog:
http://www.cubieboard.cmabreu.com.br
« Last Edit: October 16, 2013, 06:22:43 pm by magno »

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #3 on: October 16, 2013, 06:23:01 pm »
how do I disable the auto login feature?

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #4 on: October 16, 2013, 06:26:27 pm »
And remove that plymouth stuff?

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #5 on: October 16, 2013, 07:34:07 pm »
how do I disable the auto login feature?

Delete /etc/init/ttyS0.conf (serial auto login), /etc/init/openvt.conf (tty1 auto login), /etc/init/tty2.conf (tty2 auto login), and /etc/init/auto-serial-console.conf (another serial auto login, but appears to already be disabled).

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #6 on: October 16, 2013, 07:34:33 pm »
And remove that plymouth stuff?

Beats me.  It's an ubuntu thing.

derekdhaas

  • Guest
Re: Ubuntu 13.10 developer for A20
« Reply #7 on: October 18, 2013, 06:59:19 am »
To fix the error on apt-get update (about missing GPG_KEY), run:

Code: [Select]
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F1FCBACA7BE1F97B

derekdhaas

  • Guest
Re: Ubuntu 13.10 developer for A20
« Reply #8 on: October 18, 2013, 10:53:25 am »
It's a pitty that midori will crash when loading larger pages, when only compiling the display driver.

Also chromium will crash after a while using this kernel. Linux stays running (X server went away). Still haven't found a good combination of linux for the cubieboard (except an earlier build of cubian, where the USB hub and wifi were working directly).

Though great work, especially the boot time.

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #9 on: October 18, 2013, 01:57:14 pm »
To fix the error on apt-get update (about missing GPG_KEY), run:

Code: [Select]
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F1FCBACA7BE1F97B

Thanks.  I'll make sure this gets into the next build, along with the updated package indicies.

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #10 on: October 19, 2013, 10:11:09 am »
how do I disable the auto login feature?

Delete /etc/init/ttyS0.conf (serial auto login), /etc/init/openvt.conf (tty1 auto login), /etc/init/tty2.conf (tty2 auto login), and /etc/init/auto-serial-console.conf (another serial auto login, but appears to already be disabled).

to get rid of annoying root autologins rename "/etc/init/openvt.conf" to "/etc/init/openvt.conf.noboot" and edit "/etc/default/autogetty" to disable tty and serial autologin

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #11 on: October 19, 2013, 04:31:48 pm »
and to disable auto login on tty2 and ttyS0

change tty2.conf and ttyS0.conf in /etc/init

to read like this:
exec /sbin/getty -L 115200 tty2 vt102

instead of this:
exec /sbin/getty -L 115200 -a root tty2 vt102


lexxksb

  • Guest
Re: Ubuntu 13.10 developer for A20
« Reply #12 on: October 21, 2013, 07:23:29 am »
How to automatically mount /dev/sda3?
In /etc/fstab nothing

Offline milkboy007

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +4/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #13 on: October 21, 2013, 08:34:41 am »

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Ubuntu 13.10 developer for A20
« Reply #14 on: October 23, 2013, 07:10:57 pm »
I went back to using 13.04, several packages were not avalaible.