[GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overclock)

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

[GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overclock)

Unread post by mdrjr » Mon Feb 25, 2013 10:22 am

Hello,

In this guide you'll know how to re-build the Ubuntu kernel on-board.

For this guide you'll need the following packages installed:
sudo apt-get install build-essential libqt4-dev git

Steps:

1. Getting the sources:
git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.0.y odroid-3.0.y
This will clone only the latest commit, not the entire repo, as you probably don't need it anyway.

2. Picking the correct defconfig
cd odroid-3.0.y
ls arch/arm/configs/odroid*ubuntu*

Code: Select all

odroidq_ubuntu_defconfig        odroidx2_ubuntu_defconfig
odroidu2_ubuntu_defconfig       odroidx2_ubuntu_mali_defconfig
odroidu2_ubuntu_mali_defconfig  odroidx_ubuntu_defconfig
odroidu_ubuntu_defconfig        odroidx_ubuntu_mali_defconfig
Just pick what you want, your board and if you want Ubuntu with or Without Mali!
In this example I'll use U2 with Mali defconfig

I'll type them: make odroidu2_ubuntu_mali_defconfig

3. Configure additional modules: make xconfig or make menuconfig
menuconfig is a console only. while xconfig is a qt4 GUI.
This step is optional since its intended to those who are looking for adding support that isn't on the official image.

4. Building the kernel and modules.
To build the kernel and the modules using all the ODROID power type: make -j5 zImage modules

Sit down and relax, this takes ~15 minutes to complete.

5. Installing the kernel: cp arch/arm/boot/zImage /media/boot/zImage

6. Install new modules: make modules_install

7. Updating initramfs:
1. cp .config /boot/config-`cat include/config/kernel.release`
2. update-initramfs -c -k `cat include/config/kernel.release`
3. mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-`cat include/config/kernel.release` /boot/uInitrd-`cat include/config/kernel.release`
4. cp /media/boot/uInitrd /boot/uInitrd-`uname -r`
5. cp /boot/uInitrd-`cat include/config/kernel.release` /media/boot/uInitrd

Let me explain those above:
1. copy the current config /boot so update-initramfs can run properly.
2. run the ubuntu command to recreate the initramfs
3. make the current initrd a u-boot one, add's the 64byte u-boot header.
4. Back up your current uInitrd
5. Copy the new one ;)

8. Ready for reboot :)
sync && reboot

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel

Unread post by mdrjr » Mon Feb 25, 2013 11:10 am

Mali overclock!

To be added between steps 4 and 5.

1. edit the .config file
2. Search for MALI_OVERCLOCK

Code: Select all

# CONFIG_MALI_OVERCLOCK_533 is not set
# CONFIG_MALI_OVERCLOCK_640 is not set
# CONFIG_MALI_OVERCLOCK_733 is not set
# CONFIG_MALI_OVERCLOCK_800 is not set
3. Change one of those that you may want. to something like:
CONFIG_MALI_OVERCLOCK_640=y


By default Mali runs at 440Mhz, but you can try higher frequencies. I've let up to 800Mhz because that's the max that -U2 can do.. so.. results may not be the same for everyone ;)

Lemon
Posts: 12
Joined: Mon Feb 25, 2013 8:39 am
languages_spoken: english
ODROIDs: ODROID-u2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by Lemon » Tue Feb 26, 2013 11:29 am

For this bit...
cp arch/arch/boot/zImage /media/boot/zImage
Do you mean cp arch/arm/boot/zImage /media/boot/zImage ?

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Tue Feb 26, 2013 6:18 pm

Lemon wrote:For this bit...
cp arch/arch/boot/zImage /media/boot/zImage
Do you mean cp arch/arm/boot/zImage /media/boot/zImage ?
Oh yes ;( Sorry... fixed.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Sun Mar 03, 2013 7:38 pm

Sit down and relax, this takes ~15 minutes to complete.
are you sure ?

i am still sitting on my O-X and it's about 14h since i started the compile O_o (it's still working, last entry was CC fs/ext4/block_validity.o)

nearly 20h now .. am i doing something wrong?

and i got several warnings on unused symbols and other likely unhamrfull stuff, should i post them here when finished for review and fixing or is that not neccessary ? i just wanna know if i can help :) PS will ther be an log file at the end of the compile?

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Mon Mar 04, 2013 12:15 am

Lol.. 20h? that's crazy.. even without -j5 it wouldn't take that long..

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Mar 04, 2013 12:51 am

i don't know what i am doing wrong, i did step 4 and it's still compiling

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Mon Mar 04, 2013 1:26 am

mindforger wrote:i don't know what i am doing wrong, i did step 4 and it's still compiling
Check that clock on your odroid is set correctly and that files of the kernel were unpacked (have modification time) in the past. Weird things happen with make if files come from the future. Actually it builds them, assigns current time to newly created files, checks that compiled files are newer than source ones, they are not, so it starts over.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Mar 04, 2013 1:40 am

but there was no error until now and as far as i have checked the printout so far there are no doubles! even the clock is perfect setup, i made the whole tutorial in one session ... maybe my OX is not perfectl running =? how can i check the core clock and usage ?

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Mon Mar 04, 2013 2:35 am

type: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

It should return what the current frequency of the CPU

type: cat /sys/devices/system/cpu/online

It will tell you what CPU's are online.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Mar 04, 2013 3:17 am

between 300.000 and 1.400.000

and 0,3

can i disable the cpu scaling in ubuntu somehow? that was an issue on the MC server too sometimes

PS: what i wanted to have is a full force 4 cores, can this be achived by setting some commands into console or just by recompiling the kernel ?

it looks like there is no load present on any core in the system monitor

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Mon Mar 04, 2013 3:37 am

mindforger wrote:can i disable the cpu scaling in ubuntu somehow? that was an issue on the MC server too sometimes
Yes. This for disableing scaling:
http://forum.odroid.com/viewtopic.php?f ... ernor#p158
This for overclocking:
how to overclock :
- max frequency that can be set
2000000 1920000 1800000 1704000(default)
echo 1920000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
You may need a cooling fan for this overclocking.
But this would not help in this particular situation because make utility didn't tried to use all your resources. It would not start using them even if you disable automatic scaling.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Mar 04, 2013 3:47 am

i am getting permission denied when i try that echo performance even with sudo
but the whole system is laggy like hell .. i suppose there is something wrong with my board ... no load in the system monitor and lagging like hell seems to be an problem with the board

okay sudo echo does not work but sudo -s then echo worked :roll:

did this disable only the core's beeing shut down or the complete frequency scaling ?
Last edited by mindforger on Mon Mar 04, 2013 3:55 am, edited 1 time in total.

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Mon Mar 04, 2013 3:50 am

mindforger wrote:i am getting permission denied when i try that echo performance even with sudo
Execute "sudo -s" to get root console and run command then. When you type "sudo command > smth" the command is executed from root user, but output redirection to file named "smth" is done from your user.
mindforger wrote:but the whole system is laggy like hell .. i suppose there is something wrong with my board ... no load in the system monitor and lagging like hell seems to be an problem with the board
mdrjr, what happens if CPU overheats? Does it throttle frequency?

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Mar 04, 2013 3:56 am

it's air cooled and cold like a dog nose!

okay he is using all 4 cores but they are most time sleeping with PIPE_WAITING or was it PIPE_IDLE ?!

it looks likt there is something wrong with the directory or the filesystem/fileaccess, as it took very long to change the R&W permissions of the whole frolder, because i accidentially installed it completly as root!

all steps redone as user and now pulling 100% from all 4 cores! .. could somebody cut this stupid discussion i started from the original topic? :oops: looks a bit awfull

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Thu Mar 07, 2013 12:19 pm

under 3.6.y branch ----

whay is there not a odroidx2_defconfig ? only a odroidx2_emmc_defconfig ... does it matter??

Im using the SDCard for booting ...

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Thu Mar 07, 2013 12:21 pm

We do not support 3.6.y branch, right now only 3.0.y

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Mon Mar 11, 2013 1:34 am

ok .. new noob question ...

when step "make menuconfig" is done ....

I have no idea if i need to change anything in the window ......
Is every thing there defaulted so that the latest ..... well im not even sure what im trying to ask really.

I guess im asking -- do i need to make changes in the menu's .....

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Mon Mar 11, 2013 2:36 am

KC7NOA wrote:I guess im asking -- do i need to make changes in the menu's .....
Yes. If you don't need to change anything you just don't need to rebuild a kernel. Menu shown by "make menuconfig" allows you to enable/disable drivers and different low level features. Mostly people rebuild kernel when they lack support for something.

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Mon Mar 11, 2013 4:17 am

I want to change the default config in the max98090.c .. since the kernal 3.8/3.9 are not supported yet .... i need to get left and right audio channels separated for proper I/Q image rejection to work for soft ware defined radio to work (least with the Max98090)

SO i just need a small change .... but don't want to have some thing not working after building the kernal because i didnt know it needed to be enabled.... so thats why i ask.

Else ill probably sell my O-Droid-X2 and get a U2 and a good USB soundcard ...

--- Id rather not and keep a smaller footprint ....

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Mon Mar 11, 2013 5:45 am

KC7NOA wrote:I want to change the default config in the max98090.c .. since the kernal 3.8/3.9 are not supported yet .... i need to get left and right audio channels separated for proper I/Q image rejection to work for soft ware defined radio to work (least with the Max98090)

SO i just need a small change .... but don't want to have some thing not working after building the kernal because i didnt know it needed to be enabled.... so thats why i ask.
In this case you can skip "make menuconfig" step and use config provided by hardkernel.

ohora23
Posts: 2
Joined: Mon Mar 11, 2013 9:15 pm
languages_spoken: Korean
ODROIDs: ODROID-X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by ohora23 » Wed Mar 13, 2013 9:48 am

What does mean in the following process of 4 and 5? Just type the following arguments?

4. cp /media/boot/uInitrd /boot/uInitrd-`uname -r`
5. cp /boot/uInitrd-`cat include/config/kernel.release` /media/boot/uInitrd

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Wed Mar 13, 2013 10:02 am

oops! that's just a typo! Ignore it! I've fixed it already.

vjvargas
Posts: 2
Joined: Tue Mar 05, 2013 9:13 am
languages_spoken: english, spanish
ODROIDs: OIDROID-X, ODROID-X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by vjvargas » Thu Mar 21, 2013 4:48 am

Hi mdrjr,

I have downloaded from http://dn.odroid.com/Ubuntu_X2/20130215/ the latest kernel built by hardkernel people I guess. From that file I just untared the tarball an run the install.sh script that comes within. That upgraded the kernel of my ODROID-X2 from 3.0.51 to 3.0.63 wich helped me a lot because it has the gpio sysfs feature. Now I see in my ODROID-X2 /usr/src/ directory the linux headers for that kernel (3.0.63). I would like to know how to enable some modules and compile a kernel from that headers.
From that directory I can run

Code: Select all

sudo make menuconfig
to bring up the configuration menu and enable the features and modules I need, but now I don't know what command is next to compile or rebuild the kernel. Any help would be very appreciate as I'm stuck at that point. I tried

Code: Select all

sudo make
but it prints errors, tried

Code: Select all

sudo make all
and the same results,

Code: Select all

sudo make modules
but no success.

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Thu Mar 21, 2013 4:55 am

Follow the guide...

railfarm
Posts: 3
Joined: Tue Mar 19, 2013 2:21 am
languages_spoken: english german
ODROIDs: x x2 u2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by railfarm » Sun Mar 24, 2013 11:29 am

Has any one tried Kernel builds with CONFIG_FB_S5P_SPLASH_SCREEN set in the build config file? Or .... Are boot splashscreens working?

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Sun Mar 24, 2013 9:09 pm

i have no LCD so could not test it, but on HDMI the option does nothing

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Sat Apr 06, 2013 7:00 am

**snip**

with qt5 and full git clone of 3.8.y
Last edited by KC7NOA on Sat Apr 06, 2013 7:29 am, edited 1 time in total.

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Sat Apr 06, 2013 7:03 am

KC7NOA wrote:linaro@linaro-ubuntu-desktop:~/linux/arch/arm/configs$ make odroidx2_defconfig
make: Nothing to be done for `odroidx2_defconfig'.
linaro@linaro-ubuntu-desktop:~/linux/arch/arm/configs$

with qt5 and full git clone of 3.8.y
This thread isn't target to support kernel 3.8! Its for our yet support 3.0.

Create a own thread so I can talk there.

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Sat Apr 06, 2013 7:28 am

ok .. i found my issue already ....

can u delete my last 2 ..?

jblesa
Posts: 3
Joined: Wed Mar 20, 2013 9:23 pm
languages_spoken: english, spanish
ODROIDs: Odroid-X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by jblesa » Wed Apr 10, 2013 11:53 pm

Hi!

I've follow your tutorial in order to test the GPIOs in the 50pin bus of a Odroid x2. Now I've the kernel:

Linux linaro-ubuntu-desktop 3.0.71 #4 SMP Sat Jan 29 07:24:56 UTC 2000 armv7l armv7l armv7l GNU/Linux

When I write in the sys/class/gpio/gpio87 a 0 or an 1 the pin voltage does not change. I've found a difference with you systes that is gpio87 does not correspond with the GPF0. In my board, the gpio47 correspond with the GPF0 but neither does work.

root@linaro-ubuntu-desktop:/sys/class/gpio# for file in gpio*; do echo -n "$file - ";cat $file/label; done
gpio47 - cat: gpio47/label: No such file or directory
gpiochip0 - GPA0
gpiochip105 - GPK3
gpiochip113 - GPL0
gpiochip122 - GPL1
gpiochip126 - GPL2
gpiochip135 - GPY0
gpiochip142 - GPY1
gpiochip147 - GPY2
gpiochip154 - GPY3
gpiochip16 - GPB
gpiochip163 - GPY4
gpiochip172 - GPY5
gpiochip181 - GPY6
gpiochip190 - GPX0
gpiochip199 - GPX1
gpiochip208 - GPX2
gpiochip217 - GPX3
gpiochip226 - GPZ
gpiochip234 - GPJ0
gpiochip243 - GPJ1
gpiochip249 - GPM0
gpiochip25 - GPC0
gpiochip258 - GPM1
gpiochip266 - GPM2
gpiochip272 - GPM3
gpiochip281 - GPM4
gpiochip290 - GPV0
gpiochip299 - GPV1
gpiochip308 - GPV2
gpiochip31 - GPC1
gpiochip317 - GPV3
gpiochip326 - GPV4
gpiochip37 - GPD0
gpiochip42 - GPD1
gpiochip47 - GPF0
gpiochip56 - GPF1
gpiochip65 - GPF2
gpiochip74 - GPF3
gpiochip81 - GPK0
gpiochip89 - GPK1
gpiochip9 - GPA1
gpiochip97 - GPK2

Best regards,

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Thu Apr 11, 2013 2:29 am

following the guide ... i couldnt get my X2 to boot .... when finished ...

i was running kernal 3.6 and was trying to upgrade to 3.8 (no mali400 yet)

could you write another guid...or is this still useable?

Mike KC7NOA

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Thu Apr 11, 2013 7:58 am

1. As far as I recall, gpio numbers can be changed as they aren't the real GPIO's, GPIO's are the GPXX.

2. I'll write a guide for kernel 3.8 and its ready. Right now... please stay away from it.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Mon Apr 15, 2013 10:05 pm

i have run into 1 or 2 problems!

i installed 2013 02 15 ubtunu and upgraded it including the mali like described in the how to section, using the mali400 2013 02 22 from mdrjr's mirror (he recommended it to me) now i tried to rebuild the kernel but libqt4-dev fails for following reason

Code: Select all

    linaro@linaro-ubuntu-desktop:~$ sudo apt-get install build-essential libqt4-dev git
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    git is already the newest version.
    git set to manually installed.
    libqt4-dev is already the newest version.
    build-essential is already the newest version.
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     libqt4-opengl-dev : Depends: libgles2-mesa-dev or
                                  libgles2-dev
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
i tried sudo aot-get -f install but it failed with

Code: Select all

    (Reading database ... 226775 files and directories currently installed.)
    Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb) ...
    dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb (--unpack):
     trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package mali400-dev 2.1-13
    No apport report written because MaxReports is reached already
                                                                  dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
    dpkg-deb: error: subprocess <decompress> returned error exit status 2
    Unpacking libgles2-mesa-dev (from .../libgles2-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb) ...
    dpkg: error processing /var/cache/apt/archives/libgles2-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb (--unpack):
     trying to overwrite '/usr/include/GLES2/gl2ext.h', which is also in package mali400-dev 2.1-13
    No apport report written because MaxReports is reached already
                                                                  dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
    dpkg-deb: error: subprocess <decompress> returned error exit status 2
    Errors were encountered while processing:
     /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb
     /var/cache/apt/archives/libgles2-mesa-dev_8.0.4-0ubuntu0.4_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
the only additional things i installed were synaptic via apt-get and xubuntu via synaptic

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Mon Apr 15, 2013 11:57 pm

And Why its on the Kernel Rebuild guide?

Just remove the mali drivers, install your thing and re-install the mali drivers.
Its a bug on the .deb's that doesn't provide the Virtual packages needed.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Tue Apr 16, 2013 12:14 am

it's here because I got stuck at the rebuild at installing the tools after doing a clean install, as you stated it is a bug, I was not aware of it, so where else should I have posting this? :D anybody else could trip over this when following the guides, I just wanted to help improving them.

by removing, you mean simply removing the Mali package folder or using apt-get purge (just a guess)

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Tue Apr 16, 2013 12:20 am

mindforger wrote:it's here because I got stuck at the rebuild at installing the tools after doing a clean install, as you stated it is a bug, I was not aware of it, so where else should I have posting this? :D anybody else could trip over this when following the guides, I just wanted to help improving them.

by removing, you mean simply removing the Mali package folder or using apt-get purge (just a guess)
Makes sense! :)

purge :)

sirrado
Posts: 2
Joined: Wed Apr 17, 2013 10:14 pm
languages_spoken: Fresh
ODROIDs: ODROID
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by sirrado » Wed Apr 17, 2013 10:50 pm

Hi,
I'm starter on Odriod.
I received my U2 few weeks ago. I'm impress using it on android.
Now I install Ubuntu, running Ubuntu I notice some limitation:(I used image : odroidu2_20130104-linaro-ubuntu-desktop-uSDeMMC.img)
- I try to connect USB hub, but it's not working (I tried 3 different hubs, 2 power, 1 slave) In bought only the first device connected to the hub is working.
- When I try to watch movie it's not possible, the sound is ok but the picture are not smooth .

I try to install update it was working up to I decide to install the Mali drivers.
After installing Mali package wen a reboot I got a black screen(No video on HDMI). and i need to reflash EMMC.

So I decide to make rebuild Ubuntu following it topic, but i always have it error message we I try make cmd:
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: word unexpected (expecting ")")
make[1]: *** [scripts/basic/fixdep] Error 2
make: *** [scripts_basic] Error 2

I'm using Ubuntu 12.11 with kernel update: 3.2.0-40-generic-pae #64-Ubuntu SMP Mon Mar 25 21:44:41 UTC 2013 i686 i686 i386 GNU/Linux
I install package recommend in the topic.

Is some one notice the same issue ?

Thanks for your Help

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Thu Apr 18, 2013 2:03 am

double check your stuff.. Or re-download sources.

sirrado
Posts: 2
Joined: Wed Apr 17, 2013 10:14 pm
languages_spoken: Fresh
ODROIDs: ODROID
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by sirrado » Mon Apr 22, 2013 10:18 pm

Hi
Thanks for you answer.

I Update my U2 using the : odroidu2_20130125-linaro-ubuntu-desktop_SDeMMC.img.
Now the the usb Hub is working fine.
I installed Mali drivers according the topic: http://neagix.blogspot.nl/2013/04/retro ... dware.html.
all was done without issue.
But for bought VLC or MPlayer, the video is not working correctly. On only XBMC is forking fine to watch video.

kibergus
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by kibergus » Tue Apr 23, 2013 3:22 am

sirrado wrote:But for bought VLC or MPlayer, the video is not working correctly. On only XBMC is forking fine to watch video.
You can create a separate topic for discussion of video playback. This is not related to kernel anyhow. Currently there is no player that would play most 1080p videos under linux without lags.

koying
Posts: 57
Joined: Fri Mar 22, 2013 8:08 pm
languages_spoken: english, french
ODROIDs: U2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by koying » Tue Apr 23, 2013 4:57 am

kibergus wrote:
sirrado wrote:But for bought VLC or MPlayer, the video is not working correctly. On only XBMC is forking fine to watch video.
You can create a separate topic for discussion of video playback. This is not related to kernel anyhow. Currently there is no player that would play most 1080p videos under linux without lags.
Mmm... You'd better enable mfc in the kernel to have any chance to get hw playback one day...

Envoyé depuis mon Nexus 7 avec Tapatalk

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Tue Apr 23, 2013 8:21 pm

okay this question is WAY out of the actual discussion but still topic related

but i am in some situation where i have to port my work from the O-X2 to the O-X (as i may loose access to the X2 in very near future), is it possible without harm to put the eMMC from the X2 to the X ?

or to get closer to the topic itself with my question! would it be possible to make a kernel compile to O-X kernel on the O-X2 until step 7 -> finishing with

sync && shutdown -P now

and then pluggin it into the O-X booting the O-X modified kernel ?

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Wed Apr 24, 2013 1:47 am

mindforger wrote:okay this question is WAY out of the actual discussion but still topic related

but i am in some situation where i have to port my work from the O-X2 to the O-X (as i may loose access to the X2 in very near future), is it possible without harm to put the eMMC from the X2 to the X ?

or to get closer to the topic itself with my question! would it be possible to make a kernel compile to O-X kernel on the O-X2 until step 7 -> finishing with

sync && shutdown -P now

and then pluggin it into the O-X booting the O-X modified kernel ?
Yes, just respect the Kernel and boot.scr changes and it will be 100%.

mindforger
Posts: 242
Joined: Mon Feb 25, 2013 8:54 pm
languages_spoken: english, german
ODROIDs: ODROID-X
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mindforger » Thu Apr 25, 2013 12:00 am

whoops forgot the boot.scr :P thanx for advice

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Wed May 01, 2013 7:52 am

Thought i read about this error ... needing another ")" some where .. but couldnt find it ....

HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/sortextable
/usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: 1: /usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: 1: /usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
linaro@linaro-ubuntu-desktop:~/odroid-3.8.y$

Mike KC7NOA

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Wed May 01, 2013 12:11 pm

KC7NOA wrote:Thought i read about this error ... needing another ")" some where .. but couldnt find it ....

HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/sortextable
/usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: 1: /usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: 1: /usr/local/arm/toolchain/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
linaro@linaro-ubuntu-desktop:~/odroid-3.8.y$

Mike KC7NOA
double check your toolchain!

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Wed May 01, 2013 1:35 pm

not sure how really ///

was trying to follow this ....

http://odroid.us/mediawiki/index.php?ti ... g_a_Kernel

KC7NOA
Posts: 834
Joined: Wed Feb 27, 2013 2:25 pm
languages_spoken: english
ODROIDs: Odroid-X2(blown HDMI output)
Odroid-C2 to replace X2
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by KC7NOA » Fri May 03, 2013 4:21 am

also how do you do a git pull from the directory that was made with

git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.0.y odroid-3.0.y

without getting the whole repository ..??

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: [GUIDE] Rebuilding Ubuntu Kernel (Optional Mali Overcloc

Unread post by mdrjr » Fri May 03, 2013 4:26 am

KC7NOA wrote:also how do you do a git pull from the directory that was made with

git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.0.y odroid-3.0.y

without getting the whole repository ..??
This is not a how to git thread, this is also on google.
Just cherry-pick each commit or merge...

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 2 guests