WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: setup usb - lan adapter on pi zero running piCore 8.0  (Read 7304 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #15 on: July 02, 2016, 08:05:05 AM »

i dont see wiringpi.tcz and compile-essentials.tcz in the repo.

Install compiletc.tcz instead of compile-essentials.tcz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #16 on: July 02, 2016, 08:44:07 AM »
Thank you, now for wiringpi.tcz, is it still available or has it been updated to a newer version? i have tried wiringpi2.

If its not compatible (yet) for 8.x , but is still in the repo. i might have to move back to 7.


Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #17 on: July 03, 2016, 07:45:40 AM »
I'm trying to (compile)built/install wiringPi.

Code: [Select]
cd wiringPi
./build
it gives me an error:
Code: [Select]
wiringPi Build script
=====================

WiringPi Library
sudo: make: command not found

i thought i had installed compiletc.tcz, but when i tried again to check it gave me the following:

Code: [Select]
compiletc.tcz.dep OK
gawk.tcz.dep OK
gcc_libs-dev.tcz.dep OK
glibc_apps.tcz.dep OK
bash.tcz.dep OK
grep.tcz.dep OK
mount: mounting /dev/loop56 on /tmp/tcloop/make failed: Invalid argument

make.tcz / bash.tcz are already installed.

what could be the problem here?



Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #18 on: July 03, 2016, 08:16:26 AM »
oke, i removed make.tcz. and reinstalled compiletc.tcz now it looks like all is installed.

this is what i had to do before ./build would work.

Code: [Select]
cd wiringPi
make
sudo make install

cd ../devLib
make
sudo make install

cd ../gpio
make
sudo make install

Do i still have to make wiringPi.tcz or examples?
« Last Edit: July 03, 2016, 08:21:15 AM by bernie »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #19 on: July 03, 2016, 11:27:08 PM »
The install is not persistent.  One reboot and it's gone.   Have to make an extension.

Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #20 on: July 04, 2016, 11:19:42 AM »
sorry not 100% sure that i get it. do i have to make a wiringPi.tcz extention in order to make it persistent?

(for what it's worth). this is what i have in /lib/
Code: [Select]
libwiringPi.so
libwiringPi.so.2.32
libwiringPiDev.so
libwiringPiDev.so.2.32

I added libwiringPi.so to filetool.lst and ran filetool.sh -b before reboot, but after reboot all is gone.

I have tried following the instructions or executing the commands in this wiringPi built script, but i got stuck.

http://tinycorelinux.net/7.x/armv6/tcz/src/wiringpi/

thank you.






Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #21 on: July 04, 2016, 12:22:17 PM »
Hi bernie
Make sure you have  squashfs-tools.tcz  installed and try the following from your home directory:
Code: [Select]
mkdir -p package/usr/local/lib
cp /lib/libwiringPi* package/usr/local/lib
mkdir -p package/usr/local/tce.installed
touch package/usr/local/tce.installed/libwiringPi.installed
mksquashfs package libwiringPi.tcz
busybox rm -rf package
Copy  libwiringPi.tcz  to your tce directory and add  libwiringPi.tcz  to your  onboot.lst  file. Then reboot.
« Last Edit: July 04, 2016, 07:53:30 PM by Rich »

Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #22 on: July 04, 2016, 12:41:46 PM »
Hi Rich,

Thank you, i get the following at cp ,

Code: [Select]
tc@box:/home$ cp /lib/libwiringPi* package/usr/local/lib
cp: can't stat '/lib/libwiringPi*': No such file or directory



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #23 on: July 04, 2016, 01:09:08 PM »
Hi bernie
You said:
(for what it's worth). this is what i have in /lib/
Code: [Select]
libwiringPi.so
libwiringPi.so.2.32
libwiringPiDev.so
libwiringPiDev.so.2.32
You want to copy those files to  package/usr/local/lib/

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #24 on: July 04, 2016, 01:32:14 PM »
I think you need to take a look at Creating an Extension.

http://wiki.tinycorelinux.net/wiki:creating_extensions


Offline bernie

  • Newbie
  • *
  • Posts: 15
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #25 on: July 04, 2016, 04:00:27 PM »
alright it worked! thank you. now after reboot all libwiringPi* files are in /usr/local/lib/ again.
Sorry i'm new to all this, so after doing
Code: [Select]
cp /usr/local/lib/libwiringPi* package/usr/local/libI could reboot and do a pure-data test-run without error.

Is libwiringPi.tcz now a boot script?

thanks again for the help!





Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: setup usb - lan adapter on pi zero running piCore 8.0
« Reply #26 on: July 04, 2016, 08:43:08 PM »
Hi bernie
Quote
Is libwiringPi.tcz now a boot script?
No, it's an extension. Since you added a  libwiringPi.tcz  entry to your  onboot.lst  file it will be present every time you boot.
A  .tcz  file is a compressed file system with a directory structure in it that gets mounted under  /tmp/tcloop. From there
it gets linked into the main file system. If you enter:
Code: [Select]
ls -l /usr/local/lib/libwiringPi.soyou should see something like this:
Code: [Select]
lrwxrwxrwx 1 root root 52 May 10 15:49 /usr/local/lib/libwiringPi.so -> /tmp/tcloop/libwiringPi/usr/local/lib/libwiringPi.sowhich shows that  /usr/local/lib/libwiringPi.so  is really just a link back to your  libwiringPi.tcz  extension mounted under  /tmp/tcloop.