maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   debian jessie image for N900 (https://talk.maemo.org/showthread.php?t=93251)

AapoRantalainen 2014-06-15 20:41

Re: debian jessie image for N900
 
Quote:

Originally Posted by Android_808 (Post 1429689)

I got it little bit further, tested simple.c from: http://talk.maemo.org/showthread.php?t=37356
I think I need better minimal test-case.

Code:

wget http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/armv7hl/ti-omap3-sgx-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm
rpm2cpio ti-omap3-sgx-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm | cpio --extract --make-directories

wget http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/armv7hl/ti-omap3-sgx-libGLESv2-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm
rpm2cpio ti-omap3-sgx-libGLESv2-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm | cpio --extract --make-directories

wget http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/armv7hl/ti-omap3-sgx-libEGL-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm
rpm2cpio ti-omap3-sgx-libEGL-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm | cpio --extract --make-directories

wget http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/armv7hl/ti-omap3-sgx-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm
rpm2cpio ti-omap3-sgx-devel-1.4.268.5-12.1.Nemo.Adaptation.N9xx.armv7hl.rpm | cpio --extract --make-directories

cd usr/lib
ln -s libGLESv2_r125.so libGLESv2.so
ln -s libIMGegl_r125.so libIMGegl.so
ln -s libGLES_CM_r125.so libGLES_CM.so
ln -s libsrv_um_r125.so libsrv_um.so
ln -s libglslcompiler_r125.so libglslcompiler.so
ln -s libOpenVG_r125.so libOpenVG.so
ln -s libOpenVGU_r125.so libOpenVGU.so
ln -s libpvr2d_r125.so libpvr2d.so
ln -s libPVRScopeServices_r125.so libPVRScopeServices.so
cd ../..

LD_LIBRARY_PATH=usr/lib g++ -fpermissive -lX11 -lEGL -lGLESv2  simple.c -o simple -Iusr/include -Lusr/lib

Got it compiled.

Running:
Code:

DISPLAY=:0 LD_LIBRARY_PATH=usr/lib ./simple
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Atom id in failed request:  0x0
  Serial number of failed request:  11
  Current serial number in output stream:  12


------
Quote:

Originally Posted by freemangordon (Post 1429694)
I can provide patches for or push to github 3.15-rc7 with working SGX driver that comes with omap1 kernel. No idea which userland drivers it will work with (besides those from fremantle).

http://talk.maemo.org/showpost.php?p...&postcount=115

This thread is about Linux n900 3.12.0-rc5+ #2 PREEMPT Tue May 27 15:19:59 BRT 2014 armv7l GNU/Linux, but I think newer is better :) (I have read what is not working with it)

caveman 2014-06-16 11:20

Re: debian jessie image for N900
 
Quote:

Originally Posted by wicket (Post 1429677)
I'm not sure if this works with caveman's image but I can chroot straight into my images on my PC, qemu runs automatically (I'm building my images using qemu-debootstrap).

I believe that you can install
Code:

qemu-system-arm/qemu-user-static
, copy the static binary into the arm filesystem's /usr/bin/, and then chroot into it on a x86 system. Performance will not be great, and it has been a year since I last used this setup, but it shoul work :-)

caveman 2014-06-16 11:32

Re: debian jessie image for N900
 
Quote:

Originally Posted by freemangordon (Post 1429694)
Guys, I didn't get which kernel is used (and I am too lazy right now to re-read the whole thread), but I can provide patches for or push to github 3.15-rc7 with working SGX driver that comes with omap1 kernel. No idea which userland drivers it will work with (besides those from fremantle).

As you are bringing this up, I have a couple of questions:
* I would like to build this kernel and give it a try, but could not clone the repo. Do I need to register to clone it?
* in the jessie setup with the 3.12 kernel, I have horrible battery life. Is there a kernel config or patchset that may improve this matter?

Regarding the SGX drivers, it would be great if we could build weston on the N900, and maybe try maynard. With the right drivers this should yield good performance. However, I must say that I lack knowledge in this respect. So here goes the question: with the driver setup we have at hand, is it feasible to get weston to run?

In http://www.collabora.com/projects/graphics/ there is even mention of it running on powervr.

taixzo 2014-06-16 15:11

Re: debian jessie image for N900
 
Someone has built Nemo with basic Wayland support for the N900. Perhaps this would be somewhere to look?

wicket 2014-06-16 16:54

Re: debian jessie image for N900
 
Quote:

Originally Posted by caveman (Post 1429752)
* I would like to build this kernel and give it a try, but could not clone the repo. Do I need to register to clone it?

You don't need to register. Pali's tagged 3.16-rc1 just a few hours ago. To clone it run the following:

Code:

$ git clone git://gitorious.org/linux-n900/linux-n900.git
$ git checkout v3.16-rc1-n900


freemangordon 2014-06-17 05:31

Re: debian jessie image for N900
 
Quote:

Originally Posted by wicket (Post 1429797)
You don't need to register. Pali's tagged 3.16-rc1 just a few hours ago. To clone it run the following:

Code:

$ git clone git://gitorious.org/linux-n900/linux-n900.git
$ git checkout v3.16-rc1-n900


I didn't try what Pali pushed yesterday so dunno if it even boots. He was very busy lately, so we somehow "split" and I was working on my own trees.

Anyway, I will push 3.16-rc1 that boots with DT and has SGX and cmt-speech drivers as soon as I find some free time to clean up my tree.

caveman 2014-06-17 10:48

Re: debian jessie image for N900
 
Quote:

Originally Posted by wicket (Post 1429797)
You don't need to register. Pali's tagged 3.16-rc1 just a few hours ago. To clone it run the following:

Code:

$ git clone git://gitorious.org/linux-n900/linux-n900.git
$ git checkout v3.16-rc1-n900


Thanks for the hint. I will give it a try. The image was build with 3.12 and there are plenty new stuff since I last checked.

The one I could not clone was this one: https://gitorious.org/linux-n900/fre...ons-linux-n900

freemangordon 2014-06-17 16:23

Re: debian jessie image for N900
 
Quote:

Originally Posted by caveman (Post 1429888)
Thanks for the hint. I will give it a try. The image was build with 3.12 and there are plenty new stuff since I last checked.

The one I could not clone was this one: https://gitorious.org/linux-n900/fre...ons-linux-n900

try this one git://gitorious.org/linux-n900/freemangordons-linux-n900.git branch v3.16-rc1-n900

to build it follow the instructions on http://elinux.org/N900#DT_Kernel_Compilation

I tested it with qemu, it boots, should boot on the device as well.

EDIT:
for building, you need to use rx51_defconfig, it has all the needed stuff enabled

caveman 2014-06-18 17:23

Re: debian jessie image for N900
 
Quote:

Originally Posted by freemangordon (Post 1429926)
try this one git://gitorious.org/linux-n900/freemangordons-linux-n900.git branch v3.16-rc1-n900

to build it follow the instructions on http://elinux.org/N900#DT_Kernel_Compilation

I tested it with qemu, it boots, should boot on the device as well.

EDIT:
for building, you need to use rx51_defconfig, it has all the needed stuff enabled

@fmg It does boot :-)
Code:

Linux n900 3.16.0-rc1+ #2 PREEMPT Wed Jun 18 13:29:27 BRT 2014 armv7l
I had to disable CONFIG_SYSFS_DEPRECATED, otherwise kernel loads but boot fails.

For those willing to live on the bleeding edge here follows uImage/uInitrd and modules suitable to be used on the jessie image: https://187.115.25.181/public/n900/3.16-rc1.tgz

freemangordon 2014-06-18 17:35

Re: debian jessie image for N900
 
Quote:

Originally Posted by caveman (Post 1430044)
@fmg It does boot :-)
Code:

Linux n900 3.16.0-rc1+ #2 PREEMPT Wed Jun 18 13:29:27 BRT 2014 armv7l
I had to disable CONFIG_SYSFS_DEPRECATED, otherwise kernel loads but boot fails.

For those willing to live on the bleeding edge here follows uImage/uInitrd and modules suitable to be used on the jessie image: https://187.115.25.181/public/n900/3.16-rc1.tgz

What about SGX driver, are you able to load it and start X ? I guess you'll need userspace from Meego


All times are GMT. The time now is 01:52.

vBulletin® Version 3.8.8