WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore 6.0 rc1  (Read 26051 times)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: piCore 6.0 rc1
« Reply #15 on: January 02, 2015, 04:18:27 AM »
Hi Gerrelt,

One thing I noticed: If I change the volume through alsamixer, the setting isn't saved.
Do I have to add some config file to filetools.lst? I will investigate further.

The backup and restore of the ALSA state need to be done this way:
Code: (bash) [Select]
sudo alsactl store
This saves the complete setting of the ALSA module including the volumes of all the sound cards in the /var/lib/alsa directory.

Than add this line to the /opt/.filetool.lst
Code: (bash) [Select]
var/lib/alsa
This saves the ALSA state every shutdown.

Finaly need to be loaded the ALSA state during startup:

Add this line to the /opt/bootlocal.sh:
Code: (bash) [Select]
alsa restore

That's all.

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: piCore 6.0 rc1
« Reply #16 on: January 02, 2015, 08:42:46 AM »
Hi Fany,

 Yes! Thanks, that worked.  8)

There is a small typo in your instructions. The command that has to be added to bootlocal.sh is alsactl .
I've added this to bootlocal:
Code: [Select]
alsactl restore
Greetings,

   Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: piCore 6.0 rc1
« Reply #17 on: January 02, 2015, 12:04:06 PM »
I've tried to make the automatic store of the ALSA state during shutdown / reboot.
I have the link
Code: (bash) [Select]
alsactl store
at the beginning of the /opt/shutdown.sh file, but the ALSA state is not stored. Seems that this file is executed after the /opt/ /home/ directories backup and therefor the state file is not saved correctly. Is there some other way how to do so?


Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #18 on: January 04, 2015, 06:47:26 AM »
Hi bm!

I've tried the X version of piCore 6.0 rc1 with wifi and my Netgear wifi adapter works just as before. I had in mind to compile GO in piCore so I installed compile-essentials but I ran in to a problem. The compiler (gcc) can't be found. It seems that the path to it hasn't been set. I would really like some help here go get it working. Thanks for a good work!

Kind greetings,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #19 on: January 04, 2015, 07:09:02 AM »
Hi again!

Sorry, my bad! I had it ondemand so no wonder it couldn't be found. However I ran into another problem. A dependency that is needed - linux/limits.h - so I still can use some help. I've compiled GO in the latest Raspbian and it went without problems. But in piCore I certainly can use some help since I haven't a clue what linux/limits.h is.

Kindest Greetings,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 6.0 rc1
« Reply #20 on: January 04, 2015, 07:30:49 AM »
Install linux headers fom repo.

Use provides function in apps to find tcz has specific file.

Go 1.4 is in the repo already.
« Last Edit: January 04, 2015, 07:43:40 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #21 on: January 04, 2015, 07:56:17 AM »
Hi Béla!

Do you refer to: "linux-3.17.y-api.headers.tcz"?

Greetings,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #22 on: January 04, 2015, 08:04:20 AM »
Didn't notice that you beat me to it when it comes to go. It feels more rewarding thought to have compiled it oneself.

Thanks for a great work with piCore!
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #23 on: January 04, 2015, 08:33:44 AM »
Hi again Béla!

Nevermind my question about the kernel headers before. Go is done compiling now and the, for GO, ubiquitous test programs are running.  ;) Thanks for your help!

Greetings from a sunny town in Sweden,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 6.0 rc1
« Reply #24 on: January 10, 2015, 03:06:08 AM »
Complete set of modules can be downloaded for the now final kernel:

http://tinycorelinux.net/6.x/armv6/release/src/kernel/
Béla
Ham Radio callsign: HA5DI

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

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: piCore 6.0 rc1
« Reply #25 on: January 10, 2015, 10:41:08 AM »
Hi Béla,

A thing I noticed in the output of "p" from fdisk:

Code: [Select]
Command (m for help): p

Disk /dev/mmcblk0: 1000 MB, 1000079360 bytes
2 heads, 8 sectors/track, 122080 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1             513        2344       14649   c Win95 FAT32 (LBA)
/dev/mmcblk0p2            2344        3442        8789+ 83 Linux


Previously the start of partition two was the end of partition one + 1. But now these two numbers are the same: 2344. Is this correct?

Greetings,
    Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: piCore 6.0 rc1
« Reply #26 on: January 10, 2015, 12:25:25 PM »
Hi Béla,

A thing I noticed in the output of "p" from fdisk:

Code: [Select]
Command (m for help): p

Disk /dev/mmcblk0: 1000 MB, 1000079360 bytes
2 heads, 8 sectors/track, 122080 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1             513        2344       14649   c Win95 FAT32 (LBA)
/dev/mmcblk0p2            2344        3442        8789+ 83 Linux


Previously the start of partition two was the end of partition one + 1. But now these two numbers are the same: 2344. Is this correct?

Greetings,
    Gerrelt.

I see the same thing.

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: piCore 6.0 rc1
« Reply #27 on: January 10, 2015, 03:52:22 PM »
I noticed tha same thing but when I followed the README file to make the second partition larger it didn't seem to matter. Everything works just fine as far as I can see.

Have fun,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 6.0 rc1
« Reply #28 on: January 10, 2015, 09:36:53 PM »
By default BusyBox fdisk displays cylinders:

Code: [Select]
root@box:/# fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 4023 MB, 4023386112 bytes
2 heads, 8 sectors/track, 491136 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1             513        2344       14649   c Win95 FAT32 (LBA)
/dev/mmcblk0p2            2344        3442        8789+ 83 Linux

Use -u to display sectors:

Code: [Select]
root@box:/# fdisk -lu /dev/mmcblk0

Disk /dev/mmcblk0: 4023 MB, 4023386112 bytes
2 heads, 8 sectors/track, 491136 cylinders, total 7858176 sectors
Units = sectors of 1 * 512 = 512 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1            8192       37489       14649   c Win95 FAT32 (LBA)
/dev/mmcblk0p2           37490       55068        8789+ 83 Linux

fdisk (including BusyBox) do not allow to create overlapping partitions.

It is written in README:

Quote
1) Start fdisk partitioning tool as root:

   sudo fdisk -u /dev/mmcblk0

   Now list partitions with 'p' command and write down the starting and
   ending sectors of the second partition.
« Last Edit: January 10, 2015, 09:41:10 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: piCore 6.0 rc1
« Reply #29 on: January 10, 2015, 10:40:00 PM »
Couple of problems:

1) i2c-dev is not loaded on demand like previous versions.   i2c_bcm2708 is loaded on demand, but pretty much useless without i2c-dev getting loaded first.   Loading them in boot local in the proper order works.
2) unable to mount cifs (smb) shares.   cifs kernel module is loading on demand  (The share is mounted just fine on older piCore devices)  This error is in dmesg
Code: [Select]
[  306.469540] CIFS VFS: could not allocate crypto hmacmd5
[  306.469562] CIFS VFS: could not crypto alloc hmacmd5 rc -2
[  306.469572] CIFS VFS: Error -2 during NTLMSSP authentication
[  306.469586] CIFS VFS: Send error in SessSetup = -2
3) Having problems with squeezelite recognizing the USB DAC....but aplay does.  so I need to investigate this a bit more.