WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: filetool.sh and gpio and build  (Read 2956 times)

Offline gioreva

  • Newbie
  • *
  • Posts: 2
filetool.sh and gpio and build
« on: March 08, 2019, 12:58:24 AM »
Hi
I'm new to TinyCore

For save installed application, (From repository and from make) , I have changed /opt/.filetool.lst to
Code: [Select]
opt
home
etc
usr
bin
lib
sbin
var

Is ok ?

For make WiringPI  and other need build-essential, but i don't find it on repository.
How can I do ?

Tanks.

    [EDIT]: Added code tags.  Rich
« Last Edit: March 08, 2019, 05:04:05 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: filetool.sh and gpio and build
« Reply #1 on: March 08, 2019, 01:02:04 AM »
That's not really the way to do it - you should take a look at the tinycore book.

To keep a compiled application it would be much better to make an extension out of it.

Which version of piCore are you using?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: filetool.sh and gpio and build
« Reply #2 on: March 08, 2019, 05:02:39 AM »
Hi gioreva
... For save installed application, (From repository and from make) , I have changed /opt/.filetool.lst to
Code: [Select]
opt
home
etc
usr
bin
lib
sbin
var
Please don't do that. Backing up those system directories (etc through var in your list) is going to cause you nothing but trouble.
It will cause excessive backup and restore times and likely interfere with the operating system by overriding files created while
booting with older versions from the previous session. As Juanito suggested, read the Tinycore book. It should only take about
an hour and will be well worth your time.:
http://tinycorelinux.net/book.html

Quote
For make WiringPI  and other need build-essential, but i don't find it on repository.
Actually, what you need is called  compiletc.tcz.  It will pull in everything you need for a proper toolchain.
« Last Edit: March 08, 2019, 06:12:25 AM by Rich »

Offline gioreva

  • Newbie
  • *
  • Posts: 2
Re: filetool.sh and gpio and build
« Reply #3 on: March 12, 2019, 08:54:01 AM »
Tanks, wiringPi compiled.

But I spent 8 hours on that book and didn't understand how to make persist.
My English is shameful, and my linux is poor.

Code: [Select]
tce-load -wi  compiletc git
git clone git://git.drogon.net/wiringPi
cd wiringPi
sudo ./build

How to make persistent WiringPi and not compiletc ad git ?

Code: [Select]
tce-load -wi nano libavcodec libavformat libswscale bashHow to make persistent  "nano libavcodec libavformat libswscale bash" ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: filetool.sh and gpio and build
« Reply #4 on: March 12, 2019, 09:22:53 AM »
Hi gioreva
Code: [Select]
tce-load -wi  compiletc git
git clone git://git.drogon.net/wiringPi
cd wiringPi
sudo ./build

How to make persistent WiringPi and not compiletc ad git ?
Make an extension of it. See:
http://wiki.tinycorelinux.net/wiki:creating_extensions

Code: [Select]
tce-load -wi nano libavcodec libavformat libswscale bashHow to make persistent  "nano libavcodec libavformat libswscale bash" ?
Loading them that way should have made them persistent. Did you remember to expand the second partition of your storage
device so there's space for those extensions? Did you read the  SD card partitioning  section found here:
http://tinycorelinux.net/10.x/armv7/test_relases/RPi/README

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: filetool.sh and gpio and build
« Reply #5 on: March 12, 2019, 12:45:02 PM »
And just to clarify, wiringpi is in the 9.x and 10.x repo.

Do you know how to search the repo?
« Last Edit: March 12, 2019, 01:06:34 PM by Rich »

Offline Pats

  • Sr. Member
  • ****
  • Posts: 322
Re: filetool.sh and gpio and build
« Reply #6 on: March 13, 2019, 02:25:06 AM »
Quote
Last post by Paul_123
Do you know how to search the repo?
1) Simple way is to use in-built  App utility, if net access is available thru TC .

2) Else Suppose you want to search a perticular TCZ in for eq:
 
http://tinycorelinux.net/9.x/armv6/tcz/

Just open above page of Pi repo in a browser , and use *Find on page* feature of your  browser to search for the desired TCZ. .. If net access is not posible in your TCL box, download the TCZ and all its Deps thru Windoz and copy to /tce/optional ... etc.

... First approach is much better. .. :)