October 18, 2019, 07:41:24 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Ubuntu 13.10 developer for A20

Started by patwood, October 15, 2013, 05:58:21 pm

Previous topic - Next topic

patwood

October 15, 2013, 05:58:21 pm Last Edit: February 14, 2014, 10:45:04 am by patwood
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:

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.

tombs


magno

October 16, 2013, 05:13:30 pm #2 Last Edit: October 16, 2013, 06:22:43 pm by magno
Nice!

One more for my catalog !

Ok Pat, it's already in the catalog:
http://www.cubieboard.cmabreu.com.br

tombs

how do I disable the auto login feature?

tombs


patwood

Quote from: tombs on October 16, 2013, 06:23:01 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).

patwood


derekdhaas

To fix the error on apt-get update (about missing GPG_KEY), run:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F1FCBACA7BE1F97B

derekdhaas

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.

patwood

Quote from: derekdhaas on October 18, 2013, 06:59:19 am
To fix the error on apt-get update (about missing GPG_KEY), run:

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.

tombs

Quote from: patwood on October 16, 2013, 07:34:07 pm
Quote from: tombs on October 16, 2013, 06:23:01 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).


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

tombs

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

How to automatically mount /dev/sda3?
In /etc/fstab nothing


tombs

I went back to using 13.04, several packages were not avalaible.