Jump to content


Photo

Openpli Quick setup Ubuntu/debian


  • Please log in to reply
572 replies to this topic

Re: Openpli Quick setup Ubuntu/debian #361 ehenderichs

  • Member
  • 8 posts

0
Neutral

Posted 15 November 2014 - 21:14

Well it seems the build is ok now, meaning I completed successful. There were some (minor) warnings.

However I was expecting actual source code files to be available in /openpli40/sources which I could use in Eclipse. Instead the /openpli40/sources is filled with .done, .zip, etc files. Is this normal? If yes why are these files here?

Another thing that is not clear to me, is where are the kernel.bin, rootfs.bin, etc. I was under the impression these are the files that are uploaded by the device.

As you might have guess I need some pointing in the right direction to get me started. Any advice/information is welcome.

PS: let me know if you rather have I create new posts startup questions.

Thx in advance

Re: Openpli Quick setup Ubuntu/debian #362 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 15 November 2014 - 23:16

The build first downloads all needed sources. Then it unpacks them, compile them, store compiled programs, libs and so on and deletes afterwards the unpacked sources and object files.

You should find in the deploy/image directory under builds the image in a zip file.

What do you wanna do? Adapt enigma2?
Sources are here:
http://sourceforge.n...ci/master/tree/
Use git to download them.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #363 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 16 November 2014 - 10:16

You can find all You need under

 

openpli-oe-core/build/tmp

 

sysroots  all needed stuff in function off architecture and crosscompiling (local arch cross arch cross (root) )

 

work  (if You keep work directory's after build)  very handy to analize and trouble shoot. Also the deployed sources .

 

deploy the images relating to the machine you are building. ipk the individual packages.

 

Everything You need is there. It's just a mather of being used to the structures and way of work.


Edited by christophecvr, 16 November 2014 - 10:17.


Re: Openpli Quick setup Ubuntu/debian #364 ehenderichs

  • Member
  • 8 posts

0
Neutral

Posted 16 November 2014 - 13:08

Thx, this should get me started on structure and looking into some code.

Re: Openpli Quick setup Ubuntu/debian #365 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 18:44

Hello,

 

If I do this,

bitbake -f -c compile virtual/kernel
gzip the resulting vmlinux
ftp vmlinux.gz to /tmp
flash_eraseall /dev/mtd1
nandwrite -p /dev/mtd1 /tmp/vmlinux.gz
and reboot

I have a problem rewritting back the vmlinux.gz file,

root@dm800se:/var/volatile/tmp# nandwrite -p /dev/mtd1 /tmp/vmlinux.gz
Writing at 0x00000000
Writing at 0x00004000
Writing at 0x00008000
Writing at 0x0000c000
Writing at 0x00010000
Writing at 0x00014000
Writing at 0x00018000
Writing at 0x0001c000
Writing at 0x00020000
Writing at 0x00024000
Writing at 0x00028000
Writing at 0x0002c000
Writing at 0x00030000
Writing at 0x00034000
Writing at 0x00038000
Writing at 0x0003c000
nandwrite: not enough space in MTD device

Let me know,

 

Thanks,

 

TS



Re: Openpli Quick setup Ubuntu/debian #366 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 November 2014 - 18:50

bitbake -f -c compile virtual/kernel
gzip the resulting vmlinux
ftp vmlinux.gz to /tmp
flash_eraseall /dev/mtd1
nandwrite -p /dev/mtd1 /tmp/vmlinux.gz
and reboot
I have a problem rewritting back the vmlinux.gz file,
root@dm800se:/var/volatile/tmp# nandwrite -p /dev/mtd1 /tmp/vmlinux.gz
Writing at 0x0003c000
nandwrite: not enough space in MTD device


Maybe the kernel is not stripped ...
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Openpli Quick setup Ubuntu/debian #367 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 19:38

Thank you, what do you mean ? I have "2nd stage missing" when I do this above,

 

So I tried this,

mount -t jffs2 /dev/mtdblock2 /boot

and replaced the file vmlinux in /boot

root@dm800se:/boot# ls -l
-rw-r--r--    1 root     root           163 Nov 19  2014 autoexec.bat
-rw-r--r--    1 root     root           147 Nov 19  2014 autoexec_dm800se.bat
lrwxrwxrwx    1 root     root            18 Nov 19  2014 backdrop.mvi -> /boot/bootlogo.mvi
-rwxr-xr-x    1 root     root        242111 Nov 19  2014 bootlogo-dm800se.elf.gz
-rwxr-xr-x    1 root     root         72884 Nov 19  2014 bootlogo-dm800se.jpg
lrwxrwxrwx    1 root     root            23 Nov 19  2014 bootlogo.mvi -> /usr/share/bootlogo.mvi
lrwxrwxrwx    1 root     root            18 Nov 19  2014 bootlogo_wait.mvi -> /boot/bootlogo.mvi
-rw-r--r--    1 root     root       2466415 Nov 19  2014 vmlinux-3.2-dm800se.gz

but my file that I compile coming exactly from the same OpenPLI Linux compiler/VM is much bigger, is this normal ?

 

I compress just entering "gzip vmlinux" and I get a "vmlinux.gz" file that is 400kb bigger.

 

The file : 2466415 Nov 19  2014 vmlinux-3.2-dm800se.gz

My file : 2'847'724 vmlinux-3.2-dm800se.gz

 

Does there is specific parameters to compress with gzip ?

 

Thank you !

 

TS



Re: Openpli Quick setup Ubuntu/debian #368 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 19:51

With the compressed file, should I do this instead ? This is on a DM800HDse

flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 /tmp/vmlinux.gz

TS



Re: Openpli Quick setup Ubuntu/debian #369 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 November 2014 - 19:54

You need to install second stage not kernel on /dev/mtd1!
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Openpli Quick setup Ubuntu/debian #370 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 20:00

Thanks, so the correct commands are then with mt2 instead of mt1,

bitbake -f -c compile virtual/kernel
gzip the resulting vmlinux
ftp vmlinux.gz to /tmp
flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 /tmp/vmlinux.gz
and reboot

This way it's possible to upload the vmlinux to the box,

 

TS



Re: Openpli Quick setup Ubuntu/debian #371 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 20:03

Doing this, I am getting the box booting but then stops with IP address requesting to load the image,

 

Any idea what I do wrong ?

 

TS



Re: Openpli Quick setup Ubuntu/debian #372 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 November 2014 - 20:06

Thanks, so the correct commands are then with mt2 instead of mt1,


Did you try to mount and replace kernel under boot?

mount -t jffs2 /dev/mtdblock/2 /boot
See file meta-dream/recipes-bsp/linux/linux-dreambox.inc to see how kernel update works.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Openpli Quick setup Ubuntu/debian #373 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 20:12

Yes, I took the vmlinux file, compressed it with gzip and then replaced the vmlinux-3.2-dm800se.gz by it, and I am getting the same problem, at boot asking for IP address.

 

The file I have on the built image is : 

2466415 Nov 19  2014 vmlinux-3.2-dm800se.gz

 

My vmlinux built with the command bitbake -f -c compile virtual/kernel is : 

2848162 Jan  1 01:05 vmlinux-3.2-dm800se.gz

 

I find strange the difference of 400kb...

 

Thank you !

 

TS



Re: Openpli Quick setup Ubuntu/debian #374 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 November 2014 - 20:17

Better to try a full image build and see if that works!

MACHINE=dm800se make image

Αnd then grab nfi from build/tmp/deploy/images/dm800se
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Openpli Quick setup Ubuntu/debian #375 Toysoft

  • Senior Member
  • 36 posts

+4
Neutral

Posted 25 November 2014 - 20:28

I just wanted to replace the vmlinux in the image, with some modifications inside to test them. How could I do this ?

 

Thanks,

 

TS



Re: Openpli Quick setup Ubuntu/debian #376 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 25 November 2014 - 23:16

as you overwrote mtd1, perhaps your secondstage loader has gone missing?



Re: Openpli Quick setup Ubuntu/debian #377 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 26 November 2014 - 00:05

Normally
gzip -9 vmlinux
is used. Perhaps that makes the 400KB difference.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #378 beebee

  • Senior Member
  • 452 posts

+4
Neutral

Posted 13 December 2014 - 01:07

Ter info.

 

I do now have ubuntu 14.04. Some extra issues about it . The base document is updated.

 

By me all ok no problem for vuduo2 or dm8000.

 

QUICK-SETUP-DOCUMENT

This is my first attempt to build a DM8000 image.

 

with WUBI and ubuntu 12.on it.

Then i upgraded to ubuntu 14.04.

Same faults as on 12.

 

I followed your

 

QUICK-SETUP-DOCUMENT

 

 

beebeee@ubuntu:/media/usb0/openpli40/openpli-oe-core$ MACHINE=dm8000 make image
Building image for dm8000
Traceback (most recent call last):
  File "/usr/bin/bitbake", line 234, in <module>
    ret = main()
  File "/usr/bin/bitbake", line 197, in main
    server = ProcessServer(server_channel, event_queue, configuration)
  File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in __init__
    self.cooker = BBCooker(configuration, self.register_idle_function)
  File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
    self.parseConfigurationFiles(self.configuration.file)
  File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in parseConfigurationFiles
    data = _parse(os.path.join("conf", "bitbake.conf"), data)
AttributeError: 'module' object has no attribute 'contains'
ERROR: Error evaluating '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable${LIBCOVERRIDE}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
AttributeError: 'module' object has no attribute 'contains'

ERROR: Error evaluating 'linux${LIBCEXTENSION}${ABIEXTENSION}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
AttributeError: 'module' object has no attribute 'contains'

ERROR: Error evaluating '${@['', '-gnu'][(d.getVar('ABIEXTENSION', True) or '') != '']}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "LIBCEXTENSION", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
AttributeError: 'module' object has no attribute 'contains'

ERROR: Error evaluating '${@bb.utils.contains("TUNE_FEATURES", "n32", "n32", "" ,d)}'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "ABIEXTENSION", line 1, in <module>
AttributeError: 'module' object has no attribute 'contains'

make: *** [image] Fout 1
 


Beebee
______________________________________________________________________
DM8000 + mutifeed 13E+19.2E+23.5E+28.2E en ook nog de rotor werkend op Tuner A.

Re: Openpli Quick setup Ubuntu/debian #379 beebee

  • Senior Member
  • 452 posts

+4
Neutral

Posted 14 December 2014 - 12:08

I made myself a step forward.

The errors above i get because mkdir openpli40 on /media/usb0 (my harddisk)

 

Now i mkdir openpli40 in my home dir.

I get warnings, but no error.

when i run: ~/openpli40/openpli-oe-core/build$ MACHINE=dm8000 bitbake openpli-enigma2-feed

 

| collect2: error: ld returned 1 exit status
| make[1]: *** [rename-test] Error 1
| make[1]: *** Waiting for unfinished jobs....
| : final link failed: No space left on device
| No space left on device
| collect2: error: ld returned 1 exit status
| make[1]: *** [tr-getopt-test] Error 1
 

I run on WUBI with ubuntu 14.04.and have 32 Gig space, thats wy i tried mkdir opelpli40 op my harddisk.

 

anyone: What im i doing wrong?

suggestions?


Edited by beebee, 14 December 2014 - 12:10.

Beebee
______________________________________________________________________
DM8000 + mutifeed 13E+19.2E+23.5E+28.2E en ook nog de rotor werkend op Tuner A.

Re: Openpli Quick setup Ubuntu/debian #380 beebee

  • Senior Member
  • 452 posts

+4
Neutral

Posted 14 December 2014 - 12:41

i did re-run the same command:

probebly used space was cleared?

 

Loading cache: 100% |#########################################################################################################################| ETA:  00:00:00
Loaded 2346 entries from dependency cache.
Parsing recipes: 100% |#######################################################################################################################| Time: 00:00:08
Parsing of 1954 .bb files complete (1870 cached, 84 parsed). 2429 targets, 195 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.24.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "mipsel-oe-linux"
MACHINE           = "dm8000"
DISTRO            = "openpli"
DISTRO_VERSION    = "4"
TUNE_FEATURES     = "o32 fpu-hard mips32"
TARGET_FPU        = ""
meta-oe           
meta-filesystems  
meta-multimedia   
meta-networking   
meta-python       = "(detachedfromb727080):b727080564eef84f0c568dbbf1dd27683039c4da"
meta              = "(detachedfrom323b2d2):323b2d27598df8fe18892559e093ae7281e99918"
meta-openpli      
meta-dream        
meta-vuplus       
meta-xp           = "master:0c3d177ed92954a6b4e04eeb56f179f70791910c"
meta-xtrend       = "(detachedfrom6360bec):6360bec83c4844e1bc99bd4264e598e3142cf9c8"
meta-formuler     = "(detachedfromeb5e082):eb5e0828526ad4a5212e194143bb53481227ff12"
meta-hd           = "(detachedfrom5e9beed):5e9beedea229996d3295dc7a40749cf55ca76a74"
meta-local        = "master:0c3d177ed92954a6b4e04eeb56f179f70791910c"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3693 tasks of which 3693 didn't need to be rerun and all succeeded.
 


Beebee
______________________________________________________________________
DM8000 + mutifeed 13E+19.2E+23.5E+28.2E en ook nog de rotor werkend op Tuner A.


4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users