[GUIDE] Building your own Ubuntu card from scratch

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

[GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Mon Feb 10, 2014 12:42 pm

Due to the high demand.. I'll cover this guide on how to make your own Ubuntu Linux out of scratch using Linaro's rootfs.

Note: This guide was tested on a host computer running Ubuntu 13.10 64-Bit with ia32 libs installed.
Note2: Keep a space ~10Gb of disk space to complete this guide in full
Note3: Keep some spare time.
Note4: If something goes wrong, start over.
Note5: Default user and password is linaro/linaro
Note6: tty1 will auto-login as root

1. Setting up the environment

Code: Select all

cd ~ 
mkdir ubuntu-guide
cd ubuntu-guide
export GUIDE=`pwd`
export SDCARD=/dev/sdX
You must replace X with the correct letter of your SDCard otherwise this won't work for you.

2. Downloading all the needed stuff.

2.1 Pre-Built bootloaders
(I'll not cover bootloader building because nothing changes over the pre-builts one).

Code: Select all

wget odroid.in/guides/ubuntu-lfs/boot.tar.gz
2.2 Kernel Sources

Code: Select all

git clone --depth 0 https://github.com/hardkernel/linux.git -b odroid-3.8.y odroid-3.8.y
2.3 Toolchain for Crossbuild.
I'm using on this guide GCC 4.7.2 from Archlinux ARM as my toolchain. I like this toolchain given the known
stability of this version.

Code: Select all

wget odroid.in/guides/ubuntu-lfs/arm-unknown-linux-gnueabi.tar.xz
2.4 Linaro's rootfs
I've choose to use Linaro's rootfs here because it comes easily packed as a tgz and will work very well for this guide.
At the moment of this writing Linaro's 13.12 is what was available, other rootfs should work just fine.

Code: Select all

wget http://releases.linaro.org/13.12/ubuntu/arndale/linaro-saucy-server-20131216-586.tar.gz
2.5 U-Boot tools
U-Boot tools comes with a tool called mkimage we need that to create a boot.scr

Code: Select all

sudo apt-get install u-boot-tools
3. Building and Putting things on Places

3.1 Emptying your card.

I choose to do that always as it provides a clean base.

Code: Select all

sudo dd if=/dev/zero of=$SDCARD bs=1M
3.2 Installing bootloaders
We'll unpack and install bootloaders.

Code: Select all

tar zxvf boot.tar.xz
cd boot
chmod +x sd_fusing.sh
sudo ./sd_fusing.sh $SDCARD
cd ..
3.3 Create Partitions
We use two partitions, one for kernel+initrd(if used) and one for rootfs
The kernel+initrd partition is a fat32 type
The rootfs is a ext4 partition with no Journal and no atime as mount option.

Its also important on this step that the first partition starts atleast 3072 sectors later, since this is the bootloader space.

Code: Select all

sudo fdisk $SDCARD
n
p
1
3072
+64M
n
p
2
134114
<just press enter here>
t
1
c
w
This can be slightly cryptography for some users.. but its quite simple.
n = new
p = partition
1 is the number of the partition that we are creating
3072 is the start address of this partition
+64M is the size of this partition, this is the fat partition, so doesn't have to be big

Again, we create a new partition we start address at 134114
134114 is the start of partition 2, this is right after partition 1
We don't tell the size to fdisk and leave it empty so it can use the rest of the sdcard

t = type
1 again, is our partition number
c is the type for Fat32 partition
w = write

after all this, lets call partprobe to get our new partitions read by the kernel

Code: Select all

sudo partprobe

3.4 Format and mount our partitions

At this step we'll format our partitions and change the UUID of to the same UUID that we use on Official Ubuntu so later on you can use the kernel-update script :)

Code: Select all

mkfs.vfat -n boot $SDCARD"1"
mkfs.ext4 -L rootfs $SDCARD"2"
Partitions are now formatted. Lets change the UUID of the ext4 partition.

Code: Select all

tune2fs $SDCARD"2" -U e139ce78-9841-40fe-8823-96a304a09859
Lets disable Journaling to prevent excessive wearing of your card

Code: Select all

tune2fs -O ^has_journal $SDCARD"2"
Now, we'll mount of partitions.

Code: Select all

mkdir rootfs
mkdir boot
sudo mount $SDCARD"1" boot
sudo mount $SDCARD"2" rootfs

3.5 Install the rootfs on our sdcard

This is very simple :)

Code: Select all

sudo tar -zxf linaro-saucy-server-20131216-586.tar.gz
sudo mv binary/* rootfs
We decompressed the rootfs and copied to the card.

3.6 Building the kernel

This is actually nice because this a guide on how to cross-compile the kernel for your board too :)

First lets decompress our toolchain

Code: Select all

tar -Jxf arm-unknown-linux-gnueabi.tar.xz
Since we already have the kernel sources that we downloaded earlier.

Code: Select all

cd odroid-3.8.y
export ARCH=arm
export CROSS_COMPILE=../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-
make odroidu2_defconfig
Wait! see that line, make odroidu2_defconfig ? this line works for U2 and U3.
If you are doing this guide for X2 just replace it by make odroidx2_defconfig

Now, lets build the kernel, it will take a while depending on your machine.

Code: Select all

make -j8
I use -j8 because my computer is a quad-core with hyper-threading so 8 threads are available. You can configure it to match your computer.


3.7 Install the kernel and modules that we just built

First part is to install just the kernel image.

Code: Select all

sudo cp arch/arm/boot/zImage ../boot
Second part is to install the modules

Code: Select all

sudo make ARCH=arm INSTALL_MOD_PATH=../rootfs modules_install
cd ..
Done, Kernel installed :)

3.8 Create a initial Boot Script for our first boot.

We need to create one boot.scr for the very first boot

Code: Select all

cd boot
cat << __EOF__ | sudo tee boot.txt
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait rw mem=2047M"
boot
__EOF__
sudo mkimage -A arm -T script -C none -n boot -d ./boot.txt boot.scr
cd ..	
At this step we created the boot.txt and the boot.scr
the sudo mkimage line is the one that creates the boot.scr


3.9 Unmount and clean-up
Lets unmount our card and clean things up

Code: Select all

sudo umount boot
sudo umount rootfs
sync

4. First boot and Configurations.

Now, we are ready to do our first boot.
Remove the card from your computer and connect to your board.

4.1 Configuring your network card.

Code: Select all

	
cd /etc/network/interfaces.d
cat << __EOF__ >> eth0
auto eth0
iface eth0 inet dhcp
__EOF__
reboot
4.2 Configuring FSTAB

Code: Select all

mount -t devtmpfs devtmpfs /dev
cat << __EOF__ >> /etc/fstab
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4  errors=remount-ro,noatime 0 1
/dev/mmcblk0p1 /media/boot vfat defaults,rw,owner,flush,umask=000 0 0
tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0
__EOF__

mkdir -p /media/boot
mount /media/boot
4.3 Kernel-update, first update.

Code: Select all

apt-get install u-boot-tools
wget builder.mdrjr.net/tools/kernel-update.sh
chmod +x kernel-update.sh
./kernel-update.sh
Running this step is important to create a uinitrd as well add all the other boot.scr's.


---------------------------------------------------------------------

Everything below this is just regular Linux usage that you can find on Google/Forums.
And its intended only for those who wants a Graphical environment.

---------------------------------------------------------------------




4.4 Install xubuntu-desktop

Warning: 450Mbytes of download

Code: Select all

sudo apt-get install xubuntu-desktop
4.5 Installing Mali Drivers
This part will cover the mali installation.

Code: Select all

cd ~ 
mkdir mali
cd mali
4.5.1 Downloading Blobs and Headers, Mali DDX Sources and Building dependencies

Code: Select all

wget http://builder.mdrjr.net/tools/mali.txz
wget http://malideveloper.arm.com/downloads/drivers/DX910/r3p2-01rel4/DX910-SW-99003-r3p2-01rel4.tgz
apt-get build-dep xserver-xorg-video-armsoc
apt-get install mesa-utils mesa-utils-extra libgles2-mesa-dev libgles2-mesa libgles1-mesa-dev libgles1-mesa libegl1-mesa libegl1-mesa-dev
4.5.2 Installing Blobs and Headers.

Code: Select all

tar zxf DX910-SW-99003-r3p2-01rel4.tgz
tar Jxf mali.txz
mv /usr/lib/arm-linux-gnueabihf/mesa-egl ~
cp -aR blobs/* /usr/lib
cp -aR include/* /usr/include
ldconfig
4.5.3 Building and Installing the X11 Driver

Code: Select all

cd DX910-SW-99003-r3p2-01rel4/x11/xf86-video-mali-0.0.1
./autogen.sh
cd src
rm -rf compat-api.h
wget http://cgit.freedesktop.org/~cooperyuan/compat-api/plain/compat-api.h
cd ..
make -j4
make install
mv /usr/local/lib/xorg/modules/drivers/mali* /usr/lib/xorg/modules/drivers
4.5.4 Configuring Xorg.conf to use Mali

Code: Select all

cat << __EOF__ >> /etc/X11/xorg.conf
Section "Device"
Identifier "Mali-Fbdev"
 Driver "mali"
 Option "fbdev"           "/dev/fb1"
 Option "DRI2"            "true"
 Option "DRI2_PAGE_FLIP"  "true"
 Option "DRI2_WAIT_VSYNC" "true"
 Option "UMP_CACHED"      "true"
 Option "UMP_LOCK"        "false"
EndSection

Section "Screen"
 Identifier "Mali-Screen"
 Device "Mali-Fbdev"
 DefaultDepth 24
EndSection

Section "DRI"
 Mode 0666
EndSection
__EOF__
4.5.5 Create udev rule to change mali permission in order to a regular user use it.

This is step is needed to get Mali working on a regular non-root user

Code: Select all

cat << __EOF__ >> /etc/udev/rules.d/10-mali.rules
KERNEL=="mali",SUBSYSTEM=="misc",MODE="0777"
KERNEL=="ump",SUBSYSTEM=="ump",MODE="0777"
__EOF__

Congratulations.. You made it!


I do want to keep this thread related to this guide and not how to use Linux and customize your own thing.
Basic instructions are provided you can start from here.

dweezy
Posts: 6
Joined: Sat Sep 28, 2013 10:59 pm
languages_spoken: english
ODROIDs: X
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by dweezy » Tue Feb 11, 2014 4:13 am

i really would like to give it a go :mrgreen: but:
--2014-02-10 20:11:31-- http://odroid.in/guides/ubuntu-lfs/boot.tar.gz
Resolving odroid.in (odroid.in)... 67.228.201.157
Connecting to odroid.in (odroid.in)|67.228.201.157|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-10 20:11:32 ERROR 404: Not Found.

the path: http://odroid.in/guides/ does not exists :/
Chris

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Tue Feb 11, 2014 7:26 am

oops! fixed :) I've forgot to upload the files :P

folderman
Posts: 19
Joined: Thu Feb 28, 2013 2:43 pm
languages_spoken: english
ODROIDs: odroid-x
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by folderman » Tue Feb 11, 2014 10:24 am

Hi mdrjr,

Great for your post, will give it a try.

Kenneth

jbales
Posts: 3
Joined: Tue Feb 11, 2014 5:10 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jbales » Thu Feb 13, 2014 12:00 am

Hi mdrjr,

First, thanks for putting this together so well. This is a great guide!

I've been able to get all the way to (Step 3.6) building the kernel using the cross compiler tool chain and am getting this error. I'm not quite sure what it means. I did some Google searching but wasn't able to come up with much. Any ideas?

Code: Select all

cd odroid-3.8.y
export ARCH=arm
export CROSS_COMPILE=../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-
make odroidu2_defconfig

make -j2

../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: 1: ../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: Syntax error: ")" unexpected
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/empty.o
../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: 1: ../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: Syntax error: ")" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: 1: ../arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc: Syntax error: ")" unexpected
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
As an additional note, most Google searches for:

"/arm-unknown-linux-gnueabi-gcc: Syntax error: ")" unexpected"

Return forums about people accidentally using the cross compiler on the actual ARM itself. I'm doing this on a laptop running Ubuntu 12.04 server.

Thanks for your help.
Last edited by jbales on Thu Feb 13, 2014 12:08 am, edited 1 time in total.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Thu Feb 13, 2014 12:04 am

Is your OS 64 bits? If so, can you run 32 bits apps ?
You must have ia32-libs installed.

jbales
Posts: 3
Joined: Tue Feb 11, 2014 5:10 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jbales » Thu Feb 13, 2014 12:11 am

I'm running 32 bit:

Code: Select all

lsb_release -a

LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
Codename:       precise


uname -m

i686


mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Thu Feb 13, 2014 12:18 am

Oops.. My toolchain is 64bit!

jbales
Posts: 3
Joined: Tue Feb 11, 2014 5:10 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jbales » Thu Feb 13, 2014 12:22 am

Ahh I was just coming to that conclusion myself! Tried to executing the -gcc on a simple app and realized that.

Thanks for looking into this with me.

I actually have a version of the gnu tool chain from when I was doing some GUMSTIX work. Trying that now (currently crunching through...)

gcc-arm-linux-gnueabi 4:4.6.2-7

UPDATE**

Successfully built the kernel, installed the modules, made the boot script, stuck card in U3, and booted into my first built card. In summary these are the places I deviated from the guide above.

* Built on a 32-bit Ubuntu 12.04 (precise)
* rootfs: Linaro 14.01 linaro-server, http://releases.linaro.org/14.01/ubuntu ... 627.tar.gz
* Arm cross compiler toolchain: gcc-arm-linux-gnueabi 4:4.6.2-7 (which came with my ubuntu distro)

Thanks for the excellent guide! I now have a method for tailoring a very specific/custom build for my U3!

:)

homedroid
Posts: 57
Joined: Fri Jan 24, 2014 9:23 am
languages_spoken: english
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by homedroid » Mon Feb 17, 2014 7:18 am

Hi mdrjr,

I get stuck in step 4.1: permission denied. Not sure what that command is to do...

cat << __EOF__ >> eth0
auto eth0
iface eth0 inet dhcp
__EOF__

Thanks

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Mon Feb 17, 2014 12:59 pm

run as root...

homedroid
Posts: 57
Joined: Fri Jan 24, 2014 9:23 am
languages_spoken: english
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by homedroid » Tue Feb 18, 2014 11:55 am

Cool... but I can't quite make it as to what to do in order to get the image to boot with networking so that I could ssh into it...

Btw, this is a great guide - very much appreciated.

Thanks

yeeler
Posts: 10
Joined: Tue Feb 18, 2014 2:16 am
languages_spoken: english
ODROIDs: Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by yeeler » Sat Feb 22, 2014 11:17 pm

I used a VirtualMachine which ran Ubuntu Desktop 64-bit withi lib ia32 installed.
the follow command just didn't stop. What should I do?

dd if=/dev/zero of=$SDCARD bs=1M

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Sun Feb 23, 2014 2:15 am

poor sdcard.

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by odroid » Sun Feb 23, 2014 3:50 pm

yeeler wrote:I used a VirtualMachine which ran Ubuntu Desktop 64-bit withi lib ia32 installed.
the follow command just didn't stop. What should I do?

dd if=/dev/zero of=$SDCARD bs=1M
Did you enable the direct access of USB device in the virtual machine?

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Sat Mar 01, 2014 12:58 pm

Hi,

Thanks for the guide.

After step 4.3 I rebooted but now I get:

Code: Select all

[    3.056394] Waiting for root device UUID=e139ce78-9841-40fe-8823-96a304a09859...
Do you know what went wrong?

Thanks.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Sat Mar 01, 2014 1:15 pm

You probably skipped 3.4

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Tue Mar 04, 2014 9:20 am

I didn't skip 3.4, but I repeated all steps again now, to make sure.

This time I rebooted after step 4.2 and it booted OK.

But after updating the kernel it didn't boot, as before. I have uploaded the log to http://pastebin.com/ybE6NtQk.

It looks like the root partition can't be mounted?

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Tue Mar 04, 2014 4:44 pm

Now looks like your partition is mounted. I'm not sure what you are skipping...
Did you get anything on screen?

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Tue Mar 04, 2014 11:45 pm

If I wait for a few minutes it goes past that point:

Code: Select all

[    4.541383] systemd-udevd[1563]: could not open moddep file '/lib/modules/3.8.13.16/modules.dep.bin'
 * Restoring resolver state...                                           [ OK ] 
 * Starting web server apache2                                                  AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
 * 
[  409.562255] [drm:exynos_drm_connector_get_modes] *ERROR* Panel operation get_edid failed -19
[  409.563967] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  409.563979] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  409.648223] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  409.651541] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  409.718859] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  409.722196] systemd-udevd[3121]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  494.805821] systemd-udevd[3189]: Failed to apply ACL on /dev/dri/card0: No such file or directory
[  494.809175] systemd-udevd[3189]: Failed to apply ACL on /dev/dri/card0: No such file or directory
but although I can login locally, it seems that the network card is no longer recognized after the kernel update.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Wed Mar 05, 2014 1:36 am

You are missing some part of 4.2

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Wed Mar 05, 2014 8:46 am

Can the following option be missing from the kernel configuration?

Code: Select all

# CONFIG_DEVTMPFS_MOUNT is not set
The /dev I get when I boot is different from the /dev I get when I run:

Code: Select all

mount -t devtmpfs devtmpfs /dev
from step 4.2.

fstab does not mount /dev, it seems it should be mounted by the kernel, but .config has this options disabled.

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Wed Mar 05, 2014 12:04 pm

I recompiled the kernel with CONFIG_DEVTMPFS_MOUNT=y and I could get /dev correctly mounted.

Then I updated the kernel with the script and, I don't know why, it works now although the updated kernel seems missing CONFIG_DEVTMPFS_MOUNT.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Wed Mar 05, 2014 2:52 pm

because Ubuntu Initrd will take care of that :P

yeeler
Posts: 10
Joined: Tue Feb 18, 2014 2:16 am
languages_spoken: english
ODROIDs: Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by yeeler » Sat Mar 08, 2014 3:39 pm

odroid wrote:
yeeler wrote:I used a VirtualMachine which ran Ubuntu Desktop 64-bit withi lib ia32 installed.
the follow command just didn't stop. What should I do?

dd if=/dev/zero of=$SDCARD bs=1M
Did you enable the direct access of USB device in the virtual machine?
I changed a card reader, now it is going well. the only problem is the first boot. my usb keyboard(Microsoft 4000) / wireless keyboad(Logitech K400r) are not working. I can't type in anything.

yeeler
Posts: 10
Joined: Tue Feb 18, 2014 2:16 am
languages_spoken: english
ODROIDs: Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by yeeler » Sat Mar 08, 2014 4:56 pm

I changed another keyboard(Microsoft wireless keyboard 3000) and it works. however, it can't find my network card. :(

yeeler
Posts: 10
Joined: Tue Feb 18, 2014 2:16 am
languages_spoken: english
ODROIDs: Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by yeeler » Sat Mar 08, 2014 5:16 pm

I can't find eth0 when I am doing step 4.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Sat Mar 08, 2014 10:24 pm

yeeler wrote:I can't find eth0 when I am doing step 4.
You probably didn't copied the modules to the sdcard.

BigNorm
Posts: 29
Joined: Mon Aug 05, 2013 4:15 am
languages_spoken: English and a little German
ODROIDs: Odroid-X, Odroid-X2, Odroid-U2, Odroid-U3, Odroid C1+, Odroid C2, Odroid-XU,
Odroid XU3. Really enjoying C1. XU amazing and XU3 even more amazing:-) and now the XU4 is even better! But the C2 is best:-)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by BigNorm » Sun Mar 09, 2014 2:30 am

Hi mdrjr,

Firstly, thanks so much for this superb guide - for the first time I have managed to understand the process involved:-)

I have managed to go through the build and setup steps to 4.1/4.2. ie. I can boot the created image:-). I have done this for my X2, U2, and U3.

In all cases (X2, U2 and U3) it 'seems' that the network is not connecting. I have created the eth0 file and can confirm it exists in /etc/network/interfaces.d. The lights on the (wired) network port light up which tells me the driver is loaded, and an attempt is being made to obtain an IP address, but this seems unsuccessful. Do you have any suggestions as to where I should look? You mention some modules need to be copied to the sdcard. Are these in addition to what you have described in your guide?

Thanks again for this great guide :D
Odroid X, Odroid X2, Odroid U2, Odroid U3, Odroid W, Odroid C1+, Odroid XU, Odroid XU3, Odroid XU4, C2, waiting for more:-)

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Sun Mar 09, 2014 7:13 am

I was not able to start eth0 successfully from /etc/network/interfaces.d/eth0, I had to copy the contents of this file into /etc/network/interfaces directly. It does not seem to make sense, but that's what happened to me.

BigNorm
Posts: 29
Joined: Mon Aug 05, 2013 4:15 am
languages_spoken: English and a little German
ODROIDs: Odroid-X, Odroid-X2, Odroid-U2, Odroid-U3, Odroid C1+, Odroid C2, Odroid-XU,
Odroid XU3. Really enjoying C1. XU amazing and XU3 even more amazing:-) and now the XU4 is even better! But the C2 is best:-)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by BigNorm » Sun Mar 09, 2014 8:14 pm

Thanks for the tip - worked for me too - I have now progressed further after doing what you suggested:-)
Odroid X, Odroid X2, Odroid U2, Odroid U3, Odroid W, Odroid C1+, Odroid XU, Odroid XU3, Odroid XU4, C2, waiting for more:-)

myc5
Posts: 8
Joined: Mon Mar 10, 2014 1:48 pm
languages_spoken: english
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by myc5 » Mon Mar 10, 2014 2:01 pm

Thanks for the guide.

I'm having some trouble with this on a U3.

The kernel boots up, but I believe rootfs isn't getting mounted and I can't start eth0.

When it boots up I get a Linaro-server:~# prompt.

dmesg at the bottom has lots of this constantly going on:

Code: Select all

init: auto-serial-console main process (3343) terminated with status 1
init: auto-serial-console main process ended, respawning
df doesn't show that the rootfs is mounted.

Not sure what to do next.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Mon Mar 10, 2014 11:35 pm

Follow the guide.. if you changed the rootfs in use it will probably break stuff that you should be able to deal.

myc5
Posts: 8
Joined: Mon Mar 10, 2014 1:48 pm
languages_spoken: english
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by myc5 » Thu Mar 13, 2014 10:10 am

I've been thru the guide a few times now and get the same result every time.

On the first boot, I do believe that the root fs is being mounted as I can navigate to folders and see files I put there when the eMMC was in my iMac (using Ubuntu VM).

On that first boot, I get a linaro-login: prompt for a split second after which I'm dumped to linaro-server# command prompt, without the need to login.

For 4.1, I can enable eth0 but need to do it manually by navigating to /etc/network/interfaces.d and do "ifup eth0". If I reboot after this as the guide suggests I have to enable eth0 manually again so rebooting after 4.1 is of no good.

It's /dev that doesn't look right until it's manually mounted in 4.2. Reboot or no reboot after 4.2 makes no difference to me. /dev still looks wonky until I manually mount it.

When I run kernel-update.sh I see a bunch of file not found msgs. It seems to complete successfully, takes about 4 minutes. But it's hard to tell what kind of errors are there because I can't see the entire screen. (the HDMI overscan problem)

When I reboot after the kernel-update.sh I see dmesgs, the penguins and then it just hangs. No prompt shows up.

I do see :

mmcblk0boot1 : unknown partition
mmcblk0boot0 : unknown partition

and a few lines below

Waiting on root device UUID=<that long number>

It seems to work prior to kernel-update.sh but not the usual 13.10 ubuntu-server that I know of. After kernel-update.sh it's pooched.

What's the purpose of kernel-update.sh ?

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Thu Mar 13, 2014 10:27 am

Read the guide.. its stated there.

If something is missing you missed a step or something didn't worked for you.

BigNorm
Posts: 29
Joined: Mon Aug 05, 2013 4:15 am
languages_spoken: English and a little German
ODROIDs: Odroid-X, Odroid-X2, Odroid-U2, Odroid-U3, Odroid C1+, Odroid C2, Odroid-XU,
Odroid XU3. Really enjoying C1. XU amazing and XU3 even more amazing:-) and now the XU4 is even better! But the C2 is best:-)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by BigNorm » Thu Mar 13, 2014 5:55 pm

Firstly, I confess to being a noob - having fun with the Odroid products - just love their speed and feature set :o

I want(ed) to go through this guide to the point of completion, but have simply not managed. I too have followed the steps to the very letter - the only deviation has been the changing of one of the downloads with the suffix ".xz" to ".gz", as the ".xz" version is not found - tonight I'll try one last time and confirm exactly which file it is. A second change is to remove the double space from after the ext4 in "UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime 0 1" in line 3 of fstab (step 4.2).

One area of uncertainty is the presence of ia32 libs in my 64bit systems. Is there a specific package I need to install? My system implies ia32 is either outdated, or included in some later package and thus no longer required - again I'll have to confirm the exact message I get tonight...

I have managed to get the eth0 issue resolved up to and before running "kernel-update.sh" by adding the specific eth0 lines to "/dev/network/interfaces". I have also created the eth0 file in "/dev/network/interfaces.d", but this doesn't seem to have any effect. The result is that I can download "u-boot-tools" of the newly created system, but can go no further (if I reboot). If I don't reboot I can keep going, albeit with a number of error messages and eventually a system which will not boot :?

My efforts boot past the UUID message, but to a point where the system hangs for about four minutes before presenting the logged-in prompt. At that stage the ethernet has again NOT been started - tonight I'll try to manually do the "ifup eth0" suggested by myc5.

I must have restarted - even to the point of re-downloading everything from scratch on a freshly installed and updated uBuntu 13.10 ten times...
Not wanting to bother mdrjr with noob questions, perhaps someone who has managed to successfully complete the process can offer some assistance?

Thanks!
Odroid X, Odroid X2, Odroid U2, Odroid U3, Odroid W, Odroid C1+, Odroid XU, Odroid XU3, Odroid XU4, C2, waiting for more:-)

jmss
Posts: 16
Joined: Sat Mar 01, 2014 12:54 pm
languages_spoken: english, portuguese
ODROIDs: U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by jmss » Fri Mar 14, 2014 12:39 am

I prepared this:

https://docs.google.com/document/d/1b89 ... sp=sharing

It seems to work, but it looks like eth0 does not come up at boot. Feel free to comment here or on the doc page.

bbaronas
Posts: 1
Joined: Thu Mar 13, 2014 5:44 am
languages_spoken: english
ODROIDs: Odroid-U3
Odroid-XU+E
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by bbaronas » Fri Mar 14, 2014 3:49 am

Hi,

I just followed this guide line by line - stopping at section 4.4 (I don't need to run graphics) on an eMMC. And it works for the most part....

However, I am having a few problems. The most glaring is that running fdisk -l (sudo fdisk -l) reveals nothing. Not even an error - just nothing.

Running lsusb (or sudo lsusb) throws an error "unable to initialize lsusb: -99". As a result I cannot mount a USB flash drive.

I was also having the same issue with eth0 that was posted earlier in this thread. I just added it directly into /etc/network/interfaces and it went away.

Also, even though I created a user, I go right to root@<hostname> after reboot. I'm not prompted for a login and password.

I am very new to Odroid, but have worked on other boards (still a noob with all of this), and this has been my first experience with these things not working. I cannot figure this out.

Any ideas? Maybe some clues as to what to look for in the logs?

Thanks!

BigNorm
Posts: 29
Joined: Mon Aug 05, 2013 4:15 am
languages_spoken: English and a little German
ODROIDs: Odroid-X, Odroid-X2, Odroid-U2, Odroid-U3, Odroid C1+, Odroid C2, Odroid-XU,
Odroid XU3. Really enjoying C1. XU amazing and XU3 even more amazing:-) and now the XU4 is even better! But the C2 is best:-)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by BigNorm » Fri Mar 14, 2014 4:35 am

Hi again,

As a follow-up to my last post, I tried to install ia32-libs, but was referred to three newer packages:- lib32z1, lib32ncurses5 and lib32bz2-1.0. These three I installed with "sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0"

Then I started again from scratch - blanked the sd card, rebuilt the kernel, etc etc. The same results - although now after the kernel-update script (4.3) it does not go to the logged-in prompt.

Thanks for your doc "jmss", I'm going to give that a try - stick around for an hour or two ;)
Odroid X, Odroid X2, Odroid U2, Odroid U3, Odroid W, Odroid C1+, Odroid XU, Odroid XU3, Odroid XU4, C2, waiting for more:-)

BigNorm
Posts: 29
Joined: Mon Aug 05, 2013 4:15 am
languages_spoken: English and a little German
ODROIDs: Odroid-X, Odroid-X2, Odroid-U2, Odroid-U3, Odroid C1+, Odroid C2, Odroid-XU,
Odroid XU3. Really enjoying C1. XU amazing and XU3 even more amazing:-) and now the XU4 is even better! But the C2 is best:-)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by BigNorm » Fri Mar 14, 2014 5:12 pm

Well, this time a degree of success, however the ethernet has to be enabled manually - thanks jmss!

I managed to do the kernel-update, albeit with errors related to initramfs, but at least now every boot now gets to the logged-in prompt error free:-).

This morning I set the download of xubuntu-desktop going - will see how far I get when I get home again this afternoon:-)
Odroid X, Odroid X2, Odroid U2, Odroid U3, Odroid W, Odroid C1+, Odroid XU, Odroid XU3, Odroid XU4, C2, waiting for more:-)

Guy4732
Posts: 3
Joined: Mon Mar 10, 2014 7:43 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by Guy4732 » Mon Mar 24, 2014 1:35 am

Hey, i have a couple questions. I want to install linux on my 8gb mmc card using my current mmc with 800mb left of free space before downloading anything.
1. I have an 8gb emmc card which i've put into the sd card slot on the u3. Odroid see's it BUT Windows does not. I've tried putting it into my sd/mmc reader on my desktop and it doesn't see it. I can plug in an actual sd card 4gb and it'll see it.
2. I have like 800mb left on my 8gb linux emmc card thats IN the odroid, could i install linux on my other card USING this card? will it be enough? you said at the start it has to be ~10gb
3. Can i download all the stuff onto the sdcard i want to install linux on and go on from there or does it have to be on the boot MMC card so it doesn't get formatted?
4. I don't know what i'm doing.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Mon Mar 24, 2014 9:43 am

If you don't know what you are doing.. this guide isn't for you.
This guide is mostly likely a explanation on how things work for ODROID.

You need 10GB on a LINUX computer to do this guide.

adonp
Posts: 5
Joined: Mon Mar 24, 2014 6:05 pm
languages_spoken: english
ODROIDs: ODROID XU+E REV0.3-20130717
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by adonp » Mon Mar 24, 2014 6:32 pm

Can I use this guide for odroid XU+E too? So far, I stucked at the step: "3.6 Building the kernel". In particular, I observed that there are 3 "defconfig" options in source's directory (/odroid-3.8.y/arch/arm/configs/*): odroidu2_defconfig, odroidx2_defconfig, and odroidx_defconfig, available, in order to do "make xxx_defconfig" before building the kernel ("make").

Thanks in advance.

updated: I am sorry, http://forum.odroid.com/viewforum.php?f=61 includes the linux's for XU/XU+E

Vanfanel
Posts: 63
Joined: Wed Mar 26, 2014 8:38 pm
languages_spoken: english, spanish
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by Vanfanel » Wed Mar 26, 2014 8:44 pm

Hello there!
I'm new to the forum and to the Odroid in general, but not new to GNU/Linux on ARM :P
So I just unpacked my Odroid U3 and I'm trying to build my system following these instructions.
However, after writting the bootloader, the partition process doesn't go as expected.
As you can see, writing the bootloader seems to be fine:

Code: Select all

manuel@vader:~/ODROID/boot$ sudo ./sd_fusing.sh $SDCARD
/dev/sdb reader is identified.
BL1 fusing
30+0 records in
30+0 records out
15360 bytes (15 kB) copied, 0.159567 s, 96.3 kB/s
BL2 fusing
32+0 records in
32+0 records out
16384 bytes (16 kB) copied, 0.0931532 s, 176 kB/s
u-boot fusing
575+1 records in
575+1 records out
294444 bytes (294 kB) copied, 1.07194 s, 275 kB/s
TrustZone S/W fusing
312+0 records in
312+0 records out
159744 bytes (160 kB) copied, 0.620299 s, 258 kB/s
U-boot image is fused successfully.
Eject SD card and insert it again.
But after that, partitioning following the instructions fails:

Code: Select all

manuel@vader:~/ODROID/boot$ sudo fdisk $SDCARD
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x030b2734.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15523839, default 2048): 3072
Last sector, +sectors or +size{K,M,G} (3072-15523839, default 15523839): +64M

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
Partition number (1-4, default 2): 2
First sector (2048-15523839, default 2048): 134114
Sector 134114 is already allocated
First sector (134144-15523839, default 134144): 134114
Value out of range.
Maybe these sector values are wrong or I am doing something strange?
Thanks for this great guide! I hope I can build my system soon! :)

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Wed Mar 26, 2014 11:48 pm

Partition 2 start size is equal partition 1 end + 1

Vanfanel
Posts: 63
Joined: Wed Mar 26, 2014 8:38 pm
languages_spoken: english, spanish
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by Vanfanel » Thu Mar 27, 2014 1:58 am

mdrjr wrote:Partition 2 start size is equal partition 1 end + 1
Yes, I know that, but then maybe the numbers in the tutorial should be considered as "examples" and can vary, can't them?
Anyway, I worked it out and found the right value for me.
I can already boot and I'm building the rest of the system... :)
Thanks!

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Thu Mar 27, 2014 2:04 am

Yes, as I said.. this isn't really a copy and past -able thing.

Its more likely to illustrate how to get there.

:)

Vanfanel
Posts: 63
Joined: Wed Mar 26, 2014 8:38 pm
languages_spoken: english, spanish
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by Vanfanel » Thu Mar 27, 2014 2:35 am

Some new questions arise now:

-I'm using the U3 connected to a DVI monitor using an HDMI-DVI adaptor. The text image is cropped: I can't see the bottom part so, once cursor has gone down a certain point, I have to do a "clear" to see it again.
How am I supposed to set a DVI mode instead of an HDMI one?
I know I can overwrite the boot.scr file in /media/boot with any of the available scr files after kernel update, but there's no difference really: I get the same video mode over and over, and I tried all of them.

-Am I supposed to install the Exynos DRM module or does it come pre-installed with recent kernels? I need that for LIMA driver ;)

-Also, I'm missing /dev/mali, wich is supposed to be present if the mali kernel module is loaded. Any idea on what's wrong here?

PS: I don't run X here and never will, so I just need to adjust text mode resolution really.

User avatar
memeka
Posts: 4417
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by memeka » Thu Mar 27, 2014 6:43 am

you don't need /dev/mali for text mode.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: [GUIDE] Building your own Ubuntu card from scratch

Unread post by mdrjr » Thu Mar 27, 2014 8:32 am

Vanfanel wrote:Some new questions arise now:

-I'm using the U3 connected to a DVI monitor using an HDMI-DVI adaptor. The text image is cropped: I can't see the bottom part so, once cursor has gone down a certain point, I have to do a "clear" to see it again.
How am I supposed to set a DVI mode instead of an HDMI one?
I know I can overwrite the boot.scr file in /media/boot with any of the available scr files after kernel update, but there's no difference really: I get the same video mode over and over, and I tried all of them.

-Am I supposed to install the Exynos DRM module or does it come pre-installed with recent kernels? I need that for LIMA driver ;)

-Also, I'm missing /dev/mali, wich is supposed to be present if the mali kernel module is loaded. Any idea on what's wrong here?

PS: I don't run X here and never will, so I just need to adjust text mode resolution really.
Unless you changed something.. /dev/mali should be there.

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 2 guests