Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-22 Thread sodface


ralphy wrote: 
> Yes, I'm still using it with v3.11.2 and a hard disk connected to the
> sata port without any issues.
> 
> The only alpine packages I've updated are squeezelite and the kernel to
> 5.5.19.
> 
> I really should update the kernel but the m300 has been solid.
> 
> I'm running LMS from git on it now so I haven't been updating those.

Good to know, it bugs me that I haven't been using my M300's for
anything, old tech but nice looking enclosure!



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-22 Thread ralphy


sodface wrote: 
> Cool! I was watching this thread but didn't have any ideas to jump in
> with, glad you got it working. Your timing is funny because I was just
> thinking about the stack of M300's I have and whether I should go back
> and update all the armel packages to see if I still have the data
> corruption issues that made me give up the first time around.
> 
> @ralphy, are you still using the M300's with Alpine? Any issues?

Yes, I'm still using it with the hard disk connected to the sata port
without any issues.

The only alpine packages I've updated are squeezelite and the kernel to
5.5.19.  I really should update the kernel but the m300 has been solid.

I'm running LMS from git on it now so I haven't been updating those.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-21 Thread sodface


pseudov wrote: 
> 
> Thanks again, sodface and ralphy :)

Cool! I was watching this thread but didn't have any ideas to jump in
with, glad you got it working. Your timing is funny because I was just
thinking about the stack of M300's I have and whether I should go back
and update all the armel packages to see if I was still having the data
corruption issues that made me give up the first time around.

@ralphy, are you still using the M300's with Alpine? Any issues?



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-21 Thread pseudov


Dug through the /var/log/message file on rootfs, turns out the pogoplug
could not get a DHCP address from the router.

Assigned a static one at /etc/network/interfaces, and lo and behold:


Code:

Welcome to Alpine!
  
  The Alpine Wiki contains a large amount of how-to guides and general
  information about administrating Alpine systems.
  See .
  
  You can setup the system with the command: setup-alpine
  
  You may change this message by editing /etc/motd.
  



Thanks again, sodface and ralphy :)



pseudov's Profile: http://forums.slimdevices.com/member.php?userid=71686
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-21 Thread pseudov


Thanks for the quick reply.

I believe sodface's armel_genrootfs.sh already enables PermitRootLogin.

I also tried adding those 4 lines to /etc/securetty, but still couldn't
ssh.

Here's how the boot process goes on the pogoplug_v4:
1. power up, blinking green led light
2. netconsole begins to display u-boot log | blinking green led light,
pogoplug can be pinged
3. after netconsole logs end with "Starting kernel...", led light turns
to solid orange, pogoplug cannot be pinged (Destination Host
Unreachable)
4. after a while, led light turns solid green, but pogoplug still cannot
be pinged



pseudov's Profile: http://forums.slimdevices.com/member.php?userid=71686
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-21 Thread ralphy


Looks like the boot loader was successful.

That's all the messages you'll get using netconsole.  Output from the
kernel booting is not displayed.


Did you enable ssh connections as root by adding

PermitRootLogin yes

in /etc/ssh/sshd_config

and these lines to the bottom of /etc/securetty

pts/0
pts/1
pts/2
pts/3

in the rootfs before trying to boot?



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2021-04-21 Thread pseudov


ralphy wrote: 
> 
> I have alpine linux running on a dockstar using and the latest u-boot.
> 
> Had to modify the rootfs to allow remote root ssh login as I don't have
> the serial console cable connected.
> 
> I put boot and root on sda1 as that's how I already had u-boot
> configured and I set alignment=2.
> 
> A linux system using 7MB of memory, nice!  Well, 17 really, but 10 is
> cache. Makes the 114MB available in the dockstar seem excessive.
> 

Hi ralphy,

Sorry for reviving this old thread. I, too, have a dockstar running with
bodhi's latest kernel and u-boot. I think running Alpine on the dockstar
would really help, given the limited memory on this device.

I've been trying to get Alpine to run on my dockstar for a week, but I
seem to have run into a dead end. I'm kind of new to u-boot, and
troubleshooting is hard without a serial connection.

I have netconsole enabled on a very similarly configured pogoplug_v4,
and here is as far as I get:


Code:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
  Pogoplug V4
  gcc (Debian 6.3.0-18) 6.3.0 20170516
  GNU ld (GNU Binutils for Debian) 2.28
  Hit any key to stop autoboot:  0 
  Initializing devices...
  starting USB...
  USB0:   USB EHCI 1.00
  scanning bus 0 for devices... 2 USB Device(s) found
  scanning usb for storage devices... 
  Use USB retry period from the environment: 15 second(s)
  1 Storage Device(s) found
  
  Reset IDE: ide_preinit failed
  Card did not respond to voltage select!
  mmc_init: -95, time 11
  Loading envs from usb 0...
  126 bytes read in 1046 ms (0 Bytes/s)
  ... envs loaded
  importing envs ...
  running scan_disk ...
  Scan device usb
  device usb 0:1
  1 bytes read in 723 ms (0 Bytes/s)
  Found bootable drive on usb 0
  loading uImage ...
  5350552 bytes read in 893 ms (5.7 MiB/s)
  loading uInitrd ...
  9609650 bytes read in 801 ms (11.4 MiB/s)
  loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
  9970 bytes read in 1815 ms (4.9 KiB/s)
  ## Booting kernel from Legacy Image at 0080 ...
  Image Name:   Linux-5.11.4-kirkwood-tld-1
  Created:  2021-04-20  16:40:07 UTC
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:5350488 Bytes = 5.1 MiB
  Load Address: 8000
  Entry Point:  8000
  Verifying Checksum ... OK
  ## Loading init Ramdisk from Legacy Image at 0110 ...
  Image Name:   initramfs-5.11.4-kirkwood-tld-1
  Created:  2021-04-20  16:40:25 UTC
  Image Type:   ARM Linux RAMDisk Image (gzip compressed)
  Data Size:9609586 Bytes = 9.2 MiB
  Load Address: 
  Entry Point:  
  Verifying Checksum ... OK
  ## Flattened Device Tree blob at 01c0
  Booting using the fdt blob at 0x1c0
  
  
  Starting kernel ...



As per bodhi's installation guide, everything is just on sda1, formatted
to ext4.
No other partitions on the drive. So far, I've tried the following:

Used sodface's armel_genrootfs.sh to generate the Alpine rootfs
Added alignment=2 to uEnv.txt
Played around with /etc/fstab

I would appreciate if you or sodface could point me in the right
direction. Thank you.



pseudov's Profile: http://forums.slimdevices.com/member.php?userid=71686
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-03 Thread sodface


ralphy wrote: 
> "692 distinct packages available"
> 
> Wow, getting there!
> 
> Thank you.

There's only 650 .apk files in the directory though which has me a
little confused.  The APKINDEX file must have more entries than there
are actual packages.  Need to figure that out.


Code:

[sodface@www armel]$ ls *.apk | wc -l
  650
  




sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-03 Thread ralphy


sodface wrote: 
> Repo updated!  I added a few more packages too.
"692 distinct packages available"

Wow, getting there!

Thank you.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-02 Thread sodface


ralphy wrote: 
> I sent you a PM for alsa-utils.  Building subversion next.

Repo updated!  I added a few more packages too.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-02 Thread ralphy


sodface wrote: 
> Sounds good!  I tried building alsa-utils once and gave up thinking I'd
> come back to it later, just like git.

I sent you a PM for alsa-utils.  Building subversion next.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-01 Thread sodface


ralphy wrote: 
> Thanks for building the tzdata package.  I just installed it on the
> dockstar and pogoplug pro.
> 
> As a test I have the pogoplug building alsa-utils and all the
> dependencies ATM and there are a lot.
> 
> If it completes successfully I can zip up the lot and PM you a download
> link if you'd like.

Sounds good!  I tried building alsa-utils once and gave up in favor of
more immediate needs.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-03-01 Thread ralphy


Thanks for building the tzdata package.  I just installed it on the
dockstar and pogoplug pro.

As a test I have the pogoplug building alsa-utils and all the
dependencies ATM and there are a lot.

If it completes successfully I can zip up the lot and PM you a download
link if you'd like.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-29 Thread sodface


ralphy wrote: 
> Thanks for getting the repo setup and the rootfs creation script. 

No problem, I'm glad for the extra testing and feedback.

ralphy wrote: 
> 
> I did script all the steps to create the dockstar fs using the rootfs
> file you posted earlier, but that's a better option.
> 

The M300 pictured in post 1 needs to be reloaded so I will test the
build script and post back.  I've setup another M300 as a build machine
just using the 16GB ssd that came with it, ok on space so far.

ralphy wrote: 
> 
> To set the timezone I had to download the tzdata armv7 package and
> extract just the zoneinfo file for my timezone into the filesystem to be
> able to set the clock correctly with ntpd.  Perhaps that would be a
> package that could be added to the repo eventually?
> 

I'll get it added, I haven't really done a lot of testing so there's
probably more stuff like that that I've overlooked.

ralphy wrote: 
> 
> I've had squeezelite playing on the dockstar with a Behringer UCA-202
> all morning without a tick/pop using -a 120:::0.
> 

Cool.

ralphy wrote: 
> 
> I have a 2 core 850Mhz pogoplug pro that I'm thinking of setting up as
> an alpine armel package build system, I used to use it for squeezeplug
> builds back in the day.  If I do, perhaps we could coordinate using the
> same signing key so I can contribute them to the repo?  You could always
> resign them afterward as well if you prefer.

I don't have a problem sharing the key with you. I haven't really
thought through how that work.  I posted up all the packages I had last
night.  There's a APKINDEX.tar.gz file in the root of the repo that
reflects the contents of the repo.  I build some more packages locally
this morning and rsync'd my local build repo with the remote one.  That
works ok when there's only one local and one remote repo but with two
different locals updating the same remote I imagine it would be possible
to get some inconsistencies since there's only the one index file.  I'm
sure this is a solved problem I'm just not sure what the solution is.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-29 Thread ralphy


Thanks for getting the repo setup and the rootfs creation script.  I did
script all the steps to create the dockstar fs using the rootfs file you
posted earlier, but that's a better option.

To set the timezone I had to download the tzdata armv7 package and
extract just the zoneinfo file for my timezone into the filesystem to be
able to set the clock correctly with ntpd.  Perhaps that would be a
package that could be added to the repo eventually?

I've had squeezelite playing on the dockstar with a Behringer UCA-202
all morning without a tick/pop using -a 120:::0.

I have a 2 core 850Mhz pogoplug pro that I'm thinking of setting up as
an alpine armel package build system, I used to use it for squeezeplug
builds back in the day.  If I do, perhaps we could coordinate using the
same signing key so I can contribute them to the repo?



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-29 Thread sodface


Here's a tarball for a script to create a root file system from the
repo:

http://www.sodface.com/repo/armel-rootfs-x86_64.tar.gz

It consists of the following:


Code:


  .
   apk-tools-2.10.4
  apk
   armel_genrootfs.sh
   busybox-links.txt
   keys
   s...@sodface.com-5e51d361.rsa.pub
  



I tested this on my Fedora x86_64 laptop, the included apk is Alpine's
static binary for x86_64.

Take a look at armel_genrootfs.sh and tweak as needed!  I think you need
to run it as root, not via sudo.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-28 Thread sodface


ralphy wrote: 
> 
> I have alpine linux running on a dockstar 

Awesome.

ralphy wrote: 
> 
> Could you provide squeezelite and prerequisites packages? That will give
> me something usefull to test with until the repo is ready.

I think I have a partial repo ready, and by partial I just mean
everything I have built but not everything that's in the normal Alpine
repos.  It took me a bit to figure out a script to re-sign a lot of
packages so they are all under one key without having to recompile them.
I think I have it sorted.

Add the repo:

Code:


  m300-01:~$ cat /etc/apk/repositories 
  http://www.sodface.com/repo
  



My public key is available here:
http://www.sodface.com/repo/sodface-pub-key.tar.gz

Extract to /etc/apk/keys/

Code:


  m300-01:~$ sudo tar xzvf sodface-pub-key.tar.gz -C /etc/apk/keys/
  s...@sodface.com-5e51d361.rsa.pub
  



Run apk update:

Code:


  m300-01:~$ sudo apk update
  fetch http://www.sodface.com/repo/armel/APKINDEX.tar.gz
  main  [http://www.sodface.com/repo]
  OK: 501 distinct packages available
  



Install squeezelite:

Code:


  m300-01:~$ sudo apk add squeezelite
  (1/14) Installing rsync-openrc (3.1.3-r2)
  (2/14) Installing libgcc (9.2.0-r3)
  (3/14) Installing libogg (1.3.4-r0)
  (4/14) Installing libstdc++ (9.2.0-r3)
  (5/14) Installing flac (1.3.3-r0)
  (6/14) Installing alsa-lib (1.2.2-r0)
  (7/14) Installing faad2-libs (2.9.1-r0)
  (8/14) Installing faad2 (2.9.1-r0)
  (9/14) Installing mpg123-libs (1.25.13-r0)
  (10/14) Installing mpg123 (1.25.13-r0)
  (11/14) Installing libvorbis (1.3.6-r2)
  (12/14) Installing libmad (0.15.1b-r9)
  (13/14) Installing squeezelite (1.9.6.1210-r0)
  Executing squeezelite-1.9.6.1210-r0.pre-install
  (14/14) Installing squeezelite-openrc (1.9.6.1210-r0)
  OK: 30 MiB in 57 packages
  



I know you know all this ralphy but just in case someone else is
following the thread and just to show that I tested it at least once! 
Please let me know how it works for you.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-28 Thread ralphy


sodface wrote: 
> Quick testing indicates this may have fixed it! In fact, just :::0 seems
> to fix it also. Thanks ralphy.
> 
> //edit, spoke too soon, just tried a flac and had to add back in the
> 120, so, 120:::0 as you originally suggested seems necessary.

That's great!

I have alpine linux running on a dockstar using 'bodhi's 5.5.1 kirkwood
kernel' (https://forum.doozan.com/read.php?2,12096) and the 'latest
u-boot' (http://forum.doozan.com/read.php?3,12381).


Code:

U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -0700)
  Seagate FreeAgent DockStar
  gcc (Debian 6.3.0-18) 6.3.0 20170516
  GNU ld (GNU Binutils for Debian) 2.28
  Hit any key to stop autoboot:  0 
  starting USB...
  USB0:   USB EHCI 1.00
  scanning bus 0 for devices... 3 USB Device(s) found
  scanning usb for storage devices... 
  Use USB retry period from the environment: 15 second(s)
  1 Storage Device(s) found
  
  Partition Map for USB device 0  --   Partition Type: DOS
  
  Part  Start SectorNum Sectors UUIDType
  1 20486291456 c140d5b1-01 83
  2 6293504 1533952 c140d5b1-02 82
  
  loading envs from usb 0 ...
  99 bytes read in 999 ms (0 Bytes/s)
  importing envs ...
  running scan_disk ...
  Scan device usb
  device usb 0:1
  1 bytes read in 814 ms (0 Bytes/s)
  Found bootable drive on usb 0
  loading uImage ...
  5202928 bytes read in 1096 ms (4.5 MiB/s)
  loading uInitrd ...
  7661797 bytes read in 1253 ms (5.8 MiB/s)
  loading DTB /boot/dts/kirkwood-dockstar.dtb ...
  10058 bytes read in 1046 ms (8.8 KiB/s)
  ## Booting kernel from Legacy Image at 0080 ...
  Image Name:   Linux-5.5.1-kirkwood-tld-1
  Created:  2020-02-27  20:50:42 UTC
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:5202864 Bytes = 5 MiB
  Load Address: 8000
  Entry Point:  8000
  Verifying Checksum ... OK
  ## Loading init Ramdisk from Legacy Image at 0110 ...
  Image Name:   initramfs-5.5.1-kirkwood-tld-1
  Created:  2020-02-27  20:50:43 UTC
  Image Type:   ARM Linux RAMDisk Image (gzip compressed)
  Data Size:7661733 Bytes = 7.3 MiB
  Load Address: 
  Entry Point:  
  Verifying Checksum ... OK
  ## Flattened Device Tree blob at 01c0
  Booting using the fdt blob at 0x1c0
  
  Starting kernel ...
  
  $ ssh -l root dockstar
  Welcome to Alpine!
  
  The Alpine Wiki contains a large amount of how-to guides and general
  information about administrating Alpine systems.
  See .
  
  You can setup the system with the command: setup-alpine
  
  You may change this message by editing /etc/motd.
  
  dockstar:~#



Had to modify the rootfs to allow remote root ssh login as I don't have
the serial console cable connected.

I put boot and root on sda1 as that's how I already had u-boot
configured and I set alignment=2.


Code:

dockstar:~# cat /proc/cmdline 
  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 
mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) alignment=2
  
  dockstar:~# cat /proc/cpu/alignment 
  User:   0
  System: 0 (0x0)
  Skipped:0
  Half:   0
  Word:   0
  DWord:  0
  Multi:  0
  User faults:2 (fixup)
  



A linux system using 7MB of memory, nice!  Well, 17 really, but 10 is
cache. Makes the 114MB free in the dockstar seem excessive.


Code:

dockstar:~# free
  totalusedfree  shared  buff/cache   available
  Mem: 114272   16848   87536 1409888   
97932
  Swap:766972   0  766972
  


Could you provide squeezelite and prerequisites packages? That will give
me something usefull to test with until the repo is ready.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-27 Thread sodface


ralphy wrote: 
> 
> Try turning mmap off -a 120:::0 
> 

Quick testing indicates this may have fixed it!  In fact, just :::0
seems to fix it also.  Thanks ralphy.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-27 Thread sodface


ralphy wrote: 
> Try turning mmap off -a 120:::0 and if still no difference try
> increasing 120 to 200, 300 and 400 just to see if you can get clean
> audio with -a.  Beyond 200ms is really much higher than should be
> needed.  Could be a specific decoder issue as well, try several
> different audio formats if possible.

Will continue to test.  I was originally only planning on using this as
an LMS / file server but it would be a nice bonus to have working audio
out too.

I've learned a lot working on this.  One thing that initially almost
made me give up was issues I had with Alpine's apk package manager.  It
took me a while to get to the point where I had a bootable base system
and then the one application that I wanted to work correctly, the
package manager, didn't.

If you are interested, you can read about it here:
https://lists.alpinelinux.org/~alpine/apk-tools

Subject is "APK Package Name Issue on armel port".  The developers were
great and commited some patches to fix the problem (fixes included in
the tar ball you got.)  It was down to unaligned memory access, which
after I knew what I was looking for I was able to read up about but I
wouldn't have figured it out without the Alpine dev diagnosing it.

I haven't quite figure out why yet, but, Alpine on the pi zero w
defaults /proc/cpu/alignment to 2 (fixup) and I don't even think
unaligned access is an issue on that architecture (not sure) but on the
armel port I'm working on it was defaulting to 0 (ignore) which
basically caused all the weird stuff with the package manager.  I'm
setting alignment=2 now as a kernel boot param, even though they fixed
it in apk's code, just in case there are other apps that might cause
problems.

I tried to convince the guys over at the doozan forum where they were
working on this device (I used the .dts and kernel config there as a
starting point) that it was a potential problem on their Debian loads
but I don't think I was able to get my point across.  Not even 100% sure
I'm right but I think I am.

See starting here and on:
https://forum.doozan.com/read.php?2,61344,96059#msg-96059

Anyway, just food for thought and if you have any opinions on anything
I'd like to hear them!



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-27 Thread ralphy


sodface wrote: 
> Let me know when you have it and I'm going to take the link down.
Thank you.  I've grabbed the file.

sodface wrote: 
> I was going to post all this stuff up and put a repo online etc. but I
> wasn't quite ready to go just yet.
Guess I jumped the gun!  Something to look forward to.

sodface wrote: 
> I didn't add any kernel modules
> no kernel or initramfs
That's no problem. Kernels tend to be device specific and I already have
a couple kernels for the devices I want to try.

sodface wrote: 
> in the meantime, let me know if there's something specific you need.
Thanks.

sodface wrote: 
> Also, I tried the squeezelite settings you posted and the -a 120 didn't
> seem to help (or hurt) but the -a 16384:4096 made it way worse,
> basically unlistenable.
Try turning mmap off -a 120:::0 and if still no difference try
increasing 120 to 200, 300 and 400 just to see if you can get clean
audio with -a.  Beyond 200ms is really much higher than should be
needed.  Could be a specific decoder issue as well, try several
different audio formats if possible.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-26 Thread sodface


@ralphy, here's a link to download the basic root filesystem that I last
used to boot from (I made a bunch, this is the most recent):

http://www.sodface.com/res/tmp/202002270337-armel.tar.gz

Let me know when you have it and I'm going to take the link down.  I was
going to post all this stuff up and put a repo online etc. but I wasn't
quite ready to go just yet.  A few notes on the tar ball:

- root password is alpine
- the fstab is setup for my m300, a small partition for /boot on
/dev/sda1 and / on /dev/sda2
- I was having the script create a 1GB swapfile but I disabled that for
this download and commented it out in the fstab creation
- I didn't add any kernel modules
- no kernel or initramfs

Here's the list of packages in the download:


Code:


  chroot:/home/sodface/aports/scripts# ./m300_genrootfs.sh 
  (1/39) Installing musl (1.1.24-r0)
  (2/39) Installing busybox (1.31.1-r8)
  (3/39) Installing alpine-baselayout (3.2.0-r3)
  (4/39) Installing openrc (0.42.1-r0)
  (5/39) Installing alpine-conf (3.8.3-r4)
  (6/39) Installing libcrypto1.1 (1.1.1d-r3)
  (7/39) Installing libssl1.1 (1.1.1d-r3)
  (8/39) Installing ca-certificates-cacert (20191127-r0)
  (9/39) Installing libtls-standalone (2.9.1-r0)
  (10/39) Installing ssl_client (1.31.1-r8)
  (11/39) Installing zlib (1.2.11-r3)
  (12/39) Installing apk-tools (2.10.4-r5)
  (13/39) Installing busybox-suid (1.31.1-r8)
  (14/39) Installing busybox-initscripts (3.2-r2)
  (15/39) Installing scanelf (1.2.4-r0)
  (16/39) Installing musl-utils (1.1.24-r0)
  (17/39) Installing libc-utils (0.7.2-r0)
  (18/39) Installing alpine-keys (2.1-r2)
  (19/39) Installing alpine-base (3.11.2-r0)
  (20/39) Installing libblkid (2.34-r1)
  (21/39) Installing libcom_err (1.45.4-r0)
  (22/39) Installing e2fsprogs-libs (1.45.4-r0)
  (23/39) Installing libuuid (2.34-r1)
  (24/39) Installing e2fsprogs (1.45.4-r0)
  (25/39) Installing jitterentropy-rngd (1.1.0-r0)
  (26/39) Installing jitterentropy-rngd-openrc (1.1.0-r0)
  (27/39) Installing mdadm (4.1-r1)
  (28/39) Installing openssh-keygen (8.1_p1-r0)
  (29/39) Installing ncurses-terminfo-base (6.1_p20191130-r0)
  (30/39) Installing ncurses-terminfo (6.1_p20191130-r0)
  (31/39) Installing ncurses-libs (6.1_p20191130-r0)
  (32/39) Installing libedit (20191211.3.1-r0)
  (33/39) Installing openssh-client (8.1_p1-r0)
  (34/39) Installing openssh-sftp-server (8.1_p1-r0)
  (35/39) Installing openssh-server-common (8.1_p1-r0)
  (36/39) Installing openssh-server (8.1_p1-r0)
  (37/39) Installing openssh (8.1_p1-r0)
  (38/39) Installing openssl (1.1.1d-r3)
  (39/39) Installing sudo (1.8.29-r0)
  OK: 23 MiB in 39 packages
  



I don't know if this is of any use to you in this form, maybe for
initial testing?  I've got 400+ packages built so far but like I said
I'm sort of still in the process of organizing the stuff and prepping
the website.  I've also put myself in a silly spot because I cross
compiled a bunch of packages on my laptop with one public/private key
pair and compiled a bunch more packages natively on the m300 with a
different public/private key pair.  I think I've figured out a way to
re-sign all the packages to be under one key but I haven't done it yet. 
Still need to test it some more.

In the meantime, let me know if there's something specific you need.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-26 Thread sodface


ralphy wrote: 
> Would you be willing to share a tarball of your Alpine armel root
> filesystem?  I have several armel based systems that I'd like to use
> with Alpine linux.

You bet.  I'll follow up later today with some links.


> 
> Make sure your squeezelite process has permissions to raise the thread
> priority, or just run it as root.
> 
> Try adding *-a 120* to the squeezelite command line.  If you still
> experience the pops/clicks then try *-a 16384:4096*


Will test and report back, thanks!



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Alpine Linux on Dell M300

2020-02-26 Thread ralphy


sodface wrote: 
> Alpine doesn't have an armel port but they do have the scripts and
> framework built into their aports system for porting Alpine to different
> architectures, so I've been messing around with that on and off for the
> last couple of months.  I now have a working base load and enough extra
> packages built that I was able to run squeezelite on it last night. 
> Next up is LMS.  I already have Perl built, it only took about 4 hours
> to compile natively on the M300. (!)

Would you be willing to share a tarball of your Alpine armel root
filesystem?  I have several armel based systems that I'd like to use
with Alpine linux.

sodface wrote: 
> Picked up an Apple USB-C DAC dongle for $8 on Amazon ('because of this
> write-up and comments, and the price'
> (https://www.audiosciencereview.com/forum/index.php?threads/review-apple-vs-google-usb-c-headphone-adapters.5541/))
> and used that for the squeezelite testing, connected with a USB-C to
> USB-A adapter. Working and sounds pretty good though I can hear
> occasional pops and clicks which has me a little concerned.  I don't
> hear them when using the dongle in my laptop.

Make sure your squeezelite process has permissions to raise the thread
priority, or just run it as root.

Try adding *-a 120* to the squeezelite command line.  If you still
experience the pops/clicks then try *-a 16384:4096*



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111730

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix