WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't import any extensions on Allwinner A20 & dCore  (Read 10995 times)

Offline Sebster

  • Newbie
  • *
  • Posts: 17
Can't import any extensions on Allwinner A20 & dCore
« on: November 07, 2016, 08:18:42 AM »
hello.
I finally managed to get a bootable dCore on my Banana Pi.
But the problem now is:
I do have a Internet connection (ping Google.com etc works), but after using sce-import ssh   e.g.  it looks for the right packages but then it says "Can't updating Debinx..."  and the worst error is that "wget" seems to be unable to fetch any files, because it says: bla bla is not http or ftp URL.
I think it's a problem related to wget, because it seems like it is unable to download files through a ssl connection. 
Using: wget http://Google.com works, BUT  using wget https://Google.com gives me the same error as if I want to import any extensions.

Please help me, I really don't know how to fix this problem, I'm really desperate right now..

Best regards!
Sebster

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #1 on: November 07, 2016, 09:47:54 AM »
Welcome Sebster. I am no wget or SSL expert but came across this:
Quote
Install wget (with SSL)
The default wget in OpenWRT is provided by Busybox, which does not support SSL. If you want to use SSL (https) URLs, you can install the real wget:
https://wiki.openwrt.org/doc/howto/wget-ssl-certs

Just a guess, try importing wget from Debian/Ubuntu and ensure it's used instead of the BusyBox version, similar to this dCore grep guide:
http://wiki.tinycorelinux.net/dcore:important_grep_notice

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #2 on: November 08, 2016, 09:37:14 AM »
hi: how did you prepare the micro sd card (or full size SD) card for the banana pi?
Which model of the banana pi?
Could please give me a quick how too?
Thank you
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Sebster

  • Newbie
  • *
  • Posts: 17
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #3 on: November 08, 2016, 10:11:05 AM »
Thanks a lot for your answer!!

I am struggling right now, because I think I have the busybox grep utilized, but I cannot change it.
I also don't know how to install the wget extension from the Debian / Ubuntu repository, because using
Code: [Select]
sce-import wget gives me the error I'm referring to in my first post so that I cannot install a newer version of wget because wget is too outdated...

Can you tell he, how to install the newer version of wget exactly? I am a complete newbie to TC and dCore but have experience with Linux...

Thank you a lot!

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #4 on: November 08, 2016, 02:59:14 PM »
Just think BusyBox's wget is less full featured. I am probably not understanding something about your setup. As you say ping and 'wget http://Google.com works', what happens if you remove ssh from /etc/sysconfig/tcedir/sceboot.lst, reboot system then run:
sce-import -b wget

On my dCore-jessie system the repositories do not require https:
http://security.debian.org jessie main
http://ftp.us.debian.org/debian

Did you install an Ubuntu-based dCore, maybe Ubuntu uses https.

Alternatively, if your Banana Pi can access a USB stick, just download the wget package .deb file from the correct Ubuntu or Debian repository, extract the executable, transfer it via USB stick to Banana Pi dCore's /usr/bin/ directory and add the file to backup as an interim test.
Code: [Select]
tc@box:/tmp$ ar x wget_1.16-1\+deb8u1_i386.deb
tc@box:/tmp$ tar xvf data.tar.xz
tc@box:/tmp$ cp (extracted_deb's) ./usr/bin/wget (dCore's)/usr/bin/
tc@box:/tmp$ echo "usr/bin/wget" >> /opt/.filetool.lst
tc@box:/tmp$ backup
tc@box:/tmp$ sudo reboot
« Last Edit: November 08, 2016, 03:04:59 PM by nitram »

Offline Sebster

  • Newbie
  • *
  • Posts: 17
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #5 on: November 09, 2016, 08:29:00 AM »
Thanks again!
Yes I think it's the busybox version of wget that causes the problem.

I tried t remove ssh from /etc/sysconfig/...,but the file sceboot.lst does not exist.
so running the command sce-import -b wget gives me the same error as always:
Code: [Select]
wget: not an http or ftp url:  /pool/main/d/dpkg
...

I was able to extract the data.tar.xz

What I got was a folder called /etc/ and a folder called /usr/ in the directory /tmp (where I extracted it).
There were also other files like one called "debian-binary", but they were not extracted from the data.tar.xz so I did not copied them.

I tried to follow your instructions and copied the /etc folder into ./usr/bin/wget . Was that the correct way of doing it?


I did all your other steps, rebooted the BananaPi but I still get the same errors as before.

And when entering "wget" into the console it says:

Code: [Select]
tc@box:~$ wget
BusyBox v1.20.2 (2012-08-30 13:40:42 PDT)

...

Did I something wrong or am I missing some steps?
Seems like the version of wget was not replaced by the newer version...right?

Thanks for taking time for me! :)

Sebster
« Last Edit: November 09, 2016, 08:33:35 AM by Sebster »

Offline Sebster

  • Newbie
  • *
  • Posts: 17
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #6 on: November 09, 2016, 08:47:31 AM »
Also your link to this grep guide just tells how to see wether there is the Busybox version used.

Now I know, that I have just the Busybox version utilized.
Now my question is:

How can I change that?
And can I verify, that I succesfully installed wget in the way you told me?

Thanks a lot! 

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #7 on: November 09, 2016, 10:03:54 AM »
I am not familiar at all with the Allwinner dCore port. Files in the dCore Allwinner download section are foreign to me, not like x86. You say that your system has no /etc/sysconfig/tcedir/sceboot.lst file? Then i don't know how to proceed, hopefully Jason the developer can address. It also looks like that port was not recently updated.

When you set up Allwinner with dCore, did you run the tce-setdrive command to set up a persistent installation? Are you loading dCore from USB or a connected hard drive?
Code: [Select]
tce-setdrive


If tce-setdrive was properly set then on reboot you should have an /etc/sysconfig/tcedir/ (TCE directory) that contains sceboot.lst plus more.

I saw your other post too, if you don't know what variant of Debian your Allwinner uses it will be hard to figure out which wget to download. I replied to your other post, hopefully it helps. Also when you run sce-import does the output indicate which Debian version you're connecting to? You can also review the documents in /usr/share/doc/tc/.

If you're not sure which wget .deb file to trial, Wheezy maybe, i noticed there's also an Arm and other hardware download links, don't know exactly what you need:
https://packages.debian.org/wheezy/wget

You're just looking for the wget binary, should be all you need, not the directory path, copying the /etc/ 'folder' won't work.
 
When you extract data.tar.xz, all you want is 'wget', it's in the extracted /usr/bin/wget. Once the 'wget' file has been placed in Allwinner dCore /usr/bin/ then you may need to reboot to activate, but if you don't have a persistent system (TCE directory setup mentioned above, run backup, reboot) then it won't work. So hopefully the TCE directory setup stuff outlined above will help. Then when you reboot, check that /usr/bin/wget is still present and test performance.

Offline Sebster

  • Newbie
  • *
  • Posts: 17
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #8 on: November 09, 2016, 11:12:41 AM »
I also think that uCore is quite outdated but I don't know how to fix that...

That was a good hint!
I didn't know about the "setdrive" command. Did it and now I got the /sceboot.lst. The thing is just the file i empy. 

I boot the board from a 8gb micro SD Card.

While I was looking trough the allwinner a10 section (where uCore comes from) I've found out, that it is a Debian Wheezy.

I finallly managed to replace wget with the newer version from the repo (Even tough that "which wget" still says "/bb/wget" ) ! But when I enter wget now, I see the message that a shared libary is missing.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Can't import any extensions on Allwinner A20 & dCore
« Reply #9 on: November 09, 2016, 12:16:24 PM »
When the TCE directory is first created, sceboot.lst will be empty, but now you can start importing SCE extensions, run backup and have a persistent system. All your TCE stuff should now be saved on the SD card between sessions. Any files or directories you want saved that are not located in /home/tc/ or /opt/ will need to be specified in the /opt/.filetool.lst file. Just remember to run the 'backup' command before shutdown.

If you do not have any Tiny Core or dCore experience, you must read the Core book: http://tinycorelinux.net/book.html

It is also recommended you run dCore on an x86 system first to get a better understanding of operations. The Allwinner dCore port may require a refresh, hopefully the developer will have opportunity to address sometime. Everyone is a volunteer and not everyone has the hardware for testing, so it might take some time. Until then it will be difficult to provide proper support. Not to be discouraging, keep trying hopefully you'll get things running.

If your version of dCore has the readme.sh command and the Pi has an internet connection, run  readme.sh  and review some of the more important READMEs then the dCore wiki. The READMEs named '1st' and 'sce-import' initially most important. Later the others will help get graphics and a Window Manager running.

If 'which wget' indicates /bb/ then still the wrong version, but i'm not really sure why SSH is involved. Do you have a keyboard and monitor directly plugged into Banana Pi ? ...or is all your work through SSH from another system ?

If you have direct access to the Pi with keyboard, have a working network connection then not sure why the non-BusyBox wget issue is relevant. Without any wget changes, can you now simply run something like this successfully. Can you paste the exact error output.
Code: [Select]
sce-import nano

When you run a wget command try specifying the wget version directly, for example:
Code: [Select]
/usr/bin/wget whatever

Regarding the missing shared libraries, sorry about the extra dependencies. My dCore is running /usr/bin/wget, must have been imported from another extension, probably Dillo and running the command  ldd /usr/bin/wget  shows lots of dependencies. It is doubtful this wget hack will work.