WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero  (Read 3652 times)

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« on: October 23, 2016, 09:42:43 AM »
Hi,

With a lot of help from this forum I got several features I needed working in piCore V8.0.

However, I was working with my RPi 2 and I actually want to use a Pi Zero in my project, so I removed the SD card from the RPi 2 and plugged it in to my Zero.  Two things at least no longer work:
  • Audio.  I get a very lengthy error message with multiple statements regarding alsa and PCM
  • When I run wifi.sh, I get a message that says that no wifi device was found.

Both of these functions work properly when the SD Card is plugged into the RPi 2 and audio and WiFi work when I plug a Raspbian SD card into the Zero, so I'm thinking that there are some extensions missing that are required for the Zero, but not for the RPi 2.

Can anyone shed any light on what is happening here?
Terry

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #1 on: October 23, 2016, 09:57:26 AM »
RPi Zero has an armv6 while RPi2 has an arm7 processor, therefore tehy are using different kernels. Just install kernel modules from the armv6 repo, same as you are having from armv7 repo. In such case SD card will work on all RPi boards.
Béla
Ham Radio callsign: HA5DI

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

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #2 on: October 23, 2016, 10:41:46 AM »
RPi Zero has an armv6 while RPi2 has an arm7 processor, therefore tehy are using different kernels. Just install kernel modules from the armv6 repo, same as you are having from armv7 repo. In such case SD card will work on all RPi boards.

As with my config.txt question, the cause is obvious when explained.   ;D  Thanks for the info.

However, at the moment the solution is not so obvious.  I have been using tce-ab to search for and load extensions when running on the RPi 2.  I will have to do this further change from the RPi 2 as well, since I have no network functionality on the Zero.  How do I select the armv6 repo?  The default is presumably the armv7, but does this change when running on a v6 device, or is there a config file somewhere?
Terry

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 402
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #3 on: October 23, 2016, 01:00:45 PM »
hi Terry_J_C,

I think you will need to manually do a "wget".

Main 2 repos:
http://repo.tinycorelinux.net/
http://distro.ibiblio.org/tinycorelinux/

Code: [Select]
repo directory structure

                              3.x
                              4.x   
                              5.x
http://repo.tinycorelinux.net/6.x/armv6/tcz/
                                  armv7
                                  armv8  <-- future

regards
Greg

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #4 on: October 24, 2016, 08:20:37 AM »
I think you will need to manually do a "wget".

Main 2 repos:
http://repo.tinycorelinux.net/
http://distro.ibiblio.org/tinycorelinux/

I found the extensions at http://distro.ibiblio.org/tinycorelinux/8.x/armv6/tcz/ and, while booted into the RPi 2, downloaded the two kernel module extensions listed below using wget. I put them into a directory called /home/tc/tce.

  • alsa-modules-4.4.20-piCore+tcz and associated .md5.txt file.
  • wireless-4.4.20-piCore+tcz and associated .md5.txt file.

I then installed these two modules using:

tce-load -i <modulename.tcz>

The tce-load command returned OK in each case.

I then removed the SD Card from the RPi 2 and put it into the Zero, booted the Zero and the sound and wireless responses were exactly as before, eg failed.

So, are there any other modules that I need to load?  All the others that were associated with alsa and wireless seemed to have exactly the same names as their armv7 counterparts.  Should I load them too?  Are the armv7 extensions different to the armv6 ones when they have the same name?  Will they load alongside the armv7 extensions or overwrite them?

Finally, was my installation process correct?
Terry

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #5 on: October 25, 2016, 02:56:41 AM »
I found the extensions at http://distro.ibiblio.org/tinycorelinux/8.x/armv6/tcz/ and, while booted into the RPi 2, downloaded the two kernel module extensions listed below using wget. I put them into a directory called /home/tc/tce.

.................

I then installed these two modules using:

tce-load -i <modulename.tcz>

The tce-load command returned OK in each case.

...............

Finally, was my installation process correct?

Answering myself, I suspect that my installation process was not correct.  I have just mounted the SDCard in my desktop PC running Kubuntu and examined the contents of the various directories.  Looking in mydata.tgz on the second partition, I can see that the /home/tc directory contains the two downloaded modules in the tce directory that I created for them when I used wget to download them.

However, when I look in tce/optional in the same partition, I can only see the v7 versions of those two modules, not the two that I loaded.

Can I repeat my question; did I use tce-load correctly? 
Terry

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #6 on: October 25, 2016, 03:25:38 AM »
Move downloaded tcz's to tce/optional and add them to onboot list.
Béla
Ham Radio callsign: HA5DI

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

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #7 on: October 25, 2016, 03:29:56 AM »
Move downloaded tcz's to tce/optional and add them to onboot list.

OK.  I'll try that, but I notice that the v7 modules are not in the onboot list. Will putting the v6 modules in that list affect the operation when running on the RPi 2?
Terry

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #8 on: October 25, 2016, 03:33:10 AM »
You can have both versions loaded, kernel will use the proper one.

If a tce is not in the boot list but loaded than it is in a dep list of a loaded extension.
Béla
Ham Radio callsign: HA5DI

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

Offline Terry_J_C

  • Newbie
  • *
  • Posts: 22
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #9 on: October 25, 2016, 04:00:53 AM »
Wireless and sound now working on both RPi 2 and Zero  :)

Many thanks.

Any ideas why the tce-load command didn't work as advertised?
Terry

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: piCore V8.0 working fine in RPi 2, but bits failing in Pi Zero
« Reply #10 on: October 25, 2016, 10:30:42 AM »
The -i command installs (for this boot), it doesn't add to onboot.lst or copy files around. You can use it to install from arbitrary paths, like a temp download dir.
The only barriers that can stop you are the ones you create yourself.