LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-25-2016, 09:52 PM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
how to compile or install package in busybox based system?


i'm new to embedded linux.

i have an linux-based IPTV box called TVPAD2 that's been out of commission, it's based on busybox and i've gained root access to it. I'd like to play with it to learn about embedded linux.

one of the first thing i want to do is to install a ntp package to sync with internet time server. i downloaded 'ntpclient' from http://doolittle.icarus.com/ntpclient/. but i couldn't figure out how to compile the package in busybox.

any hints on what should i do?
 
Old 08-26-2016, 06:30 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Easiest might be to cross-compile for the ARM processor on another system. You may need to compile and add missing libraries as well. You may be able to determine info about the tool chain that was used by examining the binaries. Since it's GPL I'm sure the vendor would be happy to assist [sarcasm tag].
 
Old 08-26-2016, 06:46 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Not totally impossible but without knowing anything about the box it will be difficult. In most cases the SBC does not have enough storage space for a full development system so you will need to setup a cross compiler on your desktop system assuming you can determine the its architecture type. Once compiled you need to figure out how to upload the program into the box and how to save it to flash memory (I assume).
 
Old 08-26-2016, 07:57 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
You might check the version of busybox. It currently does have a ntp command builtin.
 
Old 08-26-2016, 12:30 PM   #5
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
thanks for advice!

I'll look into cross-compiler for ARM. probably more hassle than i first realized when it comes to transfer to the box since it's equipped with standard hdmi/microSD/USB. if it's required to open up the box for accessing programming header, i'm not sure i could do that.

on a positive note, it turns out the busybox already has 'ntpd' included, so i could sync the time without problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Get autoconf to compile differently based on the system architecture 4dummies Programming 2 12-25-2014 08:25 PM
[SOLVED] user based package system question charlie_lab Linux From Scratch 4 05-15-2010 05:36 PM
compile gentoo package on debian system kpachopoulos Gentoo 3 07-24-2009 04:52 AM
User Based Package Management System Chowroc Linux From Scratch 2 03-16-2007 04:30 PM
Install .deb package on rpm based distribution sailajabhandaru Linux - Software 2 12-12-2005 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration