Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Jun 21, 2018 9:43 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Jan 16, 2012 10:45 am 
Offline
Newbie

Joined: Sun Jan 01, 2012 1:58 pm
Posts: 9
I have a customized program that I would like to run on my LS. I have compiled the binary for my laptop (running ubuntu), but the same binary won't run on my LS.

The file has correct permissions, the error message I get says that "cannot execute binary file", so to me it seams that the file is not compiled correctly for the LS.

Does anyone know how to create an executable binary for LS?


Top
   
PostPosted: Mon Jan 16, 2012 11:29 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
You have to use a crosscompiler for the LS environment.
Or you have to install the compiler stuff on the LS itself
and do the compile on the LS.
There are some articles in our wiki about crosscompiling
and Optware is the right way to install a compiler on the LS.
Now it is your choice: crosscompile or native compile.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Mon Jan 16, 2012 11:29 am 
Online
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2731
you have to compile on your ls or crosscompile on your pc.

Example minidlna

http://forum.discountnetz.com/buffalo-technology-nas-anleitungen/minidlna-ab-version-1-0-22-from-scratch-kompilieren-installieren-t1130.html


Top
   
PostPosted: Mon Jan 16, 2012 9:00 pm 
Offline
Newbie

Joined: Sun Jan 01, 2012 1:58 pm
Posts: 9
Crosscompiling would be preferable. What sort of environment should I set for the crosscompiler? I am using the stock firmware (v. 1.56) for LS-CHL V2.


Top
   
PostPosted: Tue Jan 17, 2012 1:35 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
There are several links regarding cross compile in our wiki.
http://buffalo.nas-central.org/wiki/Main_Page
Although for an other model, one point to start could be this:
http://buffalo.nas-central.org/wiki/Building_a_kernel_from_Buffalos_source
To compile a kernel for the LS-XHL, I used the arm-2007q1
toolchain successfully before I switched to a native compile.
arm-2008q1 should work as well for own applications.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited