Ubuntu for ODroid-Q2?

Moderators: mdrjr, odroid

Ubuntu for ODroid-Q2?

Unread postby sslab » Fri Mar 29, 2013 7:22 pm

Hello, ODroid Team,
In the "Blog" page, I saw "ODROID-Q2(Tablet) : Ubuntu runs Software Center and GLMark2-ES2".
How can I get the Ubuntu image or source code?
Thank you!
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Sat Mar 30, 2013 12:57 am

Hello..

Here's how to do it:

I do download any image for X/X2/U2 doesnt matter. Write to a microSD
And replace the kernel with a kernel for Q2.

Kernel sources: https://github.com/hardkernel/linux/com ... roid-3.0.y
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Tue Apr 02, 2013 2:04 pm

Sorry, I failed.
First, I wrote the Ubuntu image for U2 to my microSD card.
Second, I replace the kernel and ramdisk with those from Android for ODroid-Q2.

My question is, which kernel and ramdisk should I use?
In the kernel configurations, thers is not a odroidq2_ubuntu_defconfig.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Wed Apr 03, 2013 8:21 am

Attached is a config for ODROID-Q just change the .config to Q2.

Its the one that I use.
Attachments
ubuntu.tar
(80 KiB) Downloaded 155 times
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Wed Apr 03, 2013 2:51 pm

Thank you for the kernel configuration file.
But I can not compile the kernel.

My host Ubuntu is 12.10_x86_64.
The kernel source tree I am using is linux-odriod-3.0.y from HardKernel's Github.
The cross toolchains I am using are arm-linux-gnueabi and arm-linux-gnueabihf (from Linaro).

Can you specify which kernel source tree and cross toolchain you are using?

Thank you.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby odroid » Wed Apr 03, 2013 4:33 pm

User avatar
odroid
Site Admin
 
Posts: 28863
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Wed Apr 03, 2013 9:13 pm

The kernel was compiled successfully.
But some errors still exist.
Here is the screenshot:

screen shot.png
screen shot.png (142.67 KiB) Viewed 8050 times


Any problem with using Ubuntu image for Odroid_U2 on Odroid_Q2?

Thank you!
Last edited by sslab on Fri Apr 05, 2013 9:08 pm, edited 2 times in total.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Thu Apr 04, 2013 7:14 am

The bootloader isn't reading the boot.scr script.

It should, you probably find problems booting of the Android schema.
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Thu Apr 04, 2013 2:18 pm

Sorry, I still can not boot up Ubuntu.
The detailed steps are as follows:
1. I fused odroidu2_20130125-linaro-ubuntu-desktop-SDeMMC.img to the MicroSD card.
2. I compiled linux-odroid-3.0.y with the configuration odroidq_ubuntu_defconfig, and got the zImage kernel.
3. I replace the zImage on the microSD card with the new zImage.

Below is the snapshot of the boot log.

1.JPG
1.JPG (153.44 KiB) Viewed 8110 times


The zImage kernel, uInitrd ramdisk are properly loaded into RAM.
Then what is the problem?
Thank you!
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Thu Apr 04, 2013 9:05 pm

Hmmm

Here's my zImage and uInitrd that I've just booted!

http://www.mdrjr.net/q2_kernel_uinitrd.tar.gz
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Fri Apr 05, 2013 2:37 pm

In the boot.scr, the mem=2047M does not work on Odroid-Q2.
After removed it, the board booted up.
The minicom output shows the board was booted up as root.

But no graphical interface on the board screen.

After replaced the zImage and uInitrd, do I need any additional operations?
Thank you!
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby odroid » Fri Apr 05, 2013 8:45 pm

type "pri" in the u-boot prompt and show us the result.
Some boot paramters are wrong or missing probably..
User avatar
odroid
Site Admin
 
Posts: 28863
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Fri Apr 05, 2013 9:01 pm

I removed the "mem=2047" parameter in the boot.txt in the BOOT partition of the MicorSD, and remade the boot.scr.
Then the board booted up.

Here is the U-Boot Environment Variables:
U-boot Environment.png
U-boot Environment.png (78.87 KiB) Viewed 8047 times
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Fri Apr 05, 2013 9:36 pm

For X.org on Q2:

/etc/X11/xorg.conf

change the fbdev to /dev/fb0
change the depth to 24

service lightdm restart

it should work.
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Fri Apr 05, 2013 10:33 pm

Thank you!
Now it is OK.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Sat Apr 06, 2013 1:40 pm

Hello,
Please send me the kernel config file that corresponds to the zImage provided above.
I can not compile a working kernel using the attached odroidq_ubuntu_mali_defconfig file you provided.
Thank you!
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby odroid » Sat Apr 06, 2013 11:23 pm

Show me the error message when you compile the kernel.
What compiler toolchain did you use?
User avatar
odroid
Site Admin
 
Posts: 28863
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Sun Apr 07, 2013 4:10 am

sslab wrote:Hello,
Please send me the kernel config file that corresponds to the zImage provided above.
I can not compile a working kernel using the attached odroidq_ubuntu_mali_defconfig file you provided.
Thank you!


sslab,

I don't have it on now, but.. here's a tip

on the kernel 3.0 folder
theres a folder named script.

there's a script: extract-ikconfig

Run extract-ikconfig zImage

you'll have my .config :)
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Sun Apr 07, 2013 11:44 pm

Thank you for the above tip.

Currently, I am porting ARMvisor to this board.
ARMvisor, based on linux kernel 2.6.38.7, is a patched Linux Kernel with KVM support.
I. The first step is getting this board booted with a normal Linux distribution
II. The next step is replacing the kernel with ARMvisor kernel.
Can you give some tips on getting the ARMvisor kernel booted up on this board?
In ARMvisor, there are some default kernel configs, such as exynos4_defconfig, s5pv210, etc.
Here is a list of all the ARM configs.
1.JPG
(756.06 KiB) Downloaded 98 times

Which of the above configs should I based on?
Thank you!
Last edited by sslab on Mon Apr 08, 2013 3:31 pm, edited 1 time in total.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Mon Apr 08, 2013 3:49 am

None, you need alot of hardware support for it.
Really alot of source is needed to this kernel that you have to support ODROID to its minimal boot.
I would recommend you to port the parts that you need from that 2.6 to 3.0. Will be alot more easier.
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Mon Apr 08, 2013 10:23 am

ARMvisor patched a lot of device drivers and I have no information of what was patched.
Can you specify which source code I should add to ARMvisor to get the board booted up?
Thank you!
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Mon Apr 08, 2013 3:49 pm

For a basic boot:

PMIC
MFD
Board Platform

Rest of stuff:
LCD
Touchscreen
USB
eMMC
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu for ODroid-Q2?

Unread postby sslab » Wed Apr 10, 2013 12:58 am

In the linux-odroid-3.0.y kernel source tree, I copied the directory ./arch/arm/mach-exynos to the corresponding ARMvisor kernel dirctory.
Then, I use the machine-odroid-q.c as a base, modify the Kconfig and Makefile, and add odroidq_ubuntu_defconfig to the configs directory.
Anything else?
Thank you.
sslab
 
Posts: 19
Joined: Wed Feb 27, 2013 12:23 pm
languages_spoken: english
ODROIDs: Odroid-Q2

Re: Ubuntu for ODroid-Q2?

Unread postby mdrjr » Wed Apr 10, 2013 1:08 am

Copying isn't going to make it work.. really... but if you want to try..

Check the odroidq2_defconfig and see all the device drivers that it needs, you'll need most of them. Or you'll have to modify the mach to match your new device drivers.
mdrjr
Site Admin
 
Posts: 11691
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -


Return to ODROID-Q2

Who is online

Users browsing this forum: No registered users and 2 guests