Fatdogarm for Raspberry pi3 - headless

A home for all kinds of Puppy related projects
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Fatdogarm for Raspberry pi3 - headless

#1 Post by don570 »

Fatdog Arm for Raspberry Pi 3

If you have raspberry pi 3 then here is
an version of fatdog arm to try.
There's a good assortment of apps in the fatdogarm repository.
http://distro.ibiblio.org/fatdog/arm/packages/beta/
I use my board to play music (headless i.e. no monitor and keyboard)

Dropbear is used (SSH clone)
Samba and OMX player is now included.


This is targeted to Raspberry pi3 users who want a general purpose
operating system that is reasonably fast and it can be used as a music player.
______________________________________________________
Installation is easy.

New version :fatdogarm-pi3-06-14-2018.zip
Available.....
244mb
md5sum: 73166F2A53258BCAA87677674BF0A1FC
https://drive.google.com/open?id=1e1c1q ... j-UtJaTYLZ
User: root
Password: woofwoof

Note that config.txt file uses hdmi_safe=1 at first boot

Should give the same results as:

hdmi_force_hotplug=1
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=4
disable_overscan=0

Change if you want.
Put music files in /Music folder. These will be played at startup.

__________________________________________________________
2) You can install using Windows or a Linux computer
Format your micro SD card as fat32 using a windows or linux formatter.
In linux I recommend you zero out the card first...
just do "dd if=/dev/zero of=/dev/<flash-drive-device-name> bs=1M count=1". After doing this Gparted will regard you flash drive as completely empty and will offer to create a new MS-DOS partition table - which you should accept.
If you are using Windows to format the SD card then I recommend
https://www.sdcard.org/downloads/formatter_4/
A quick formating to fat32 is all that is needed.

Open up fatdogarm-pi3-06-14-2018.zip. Inside the folder you will see some files and folders .
Drag the contents of the folder to a freshly formatted (fat32) micro SD card.

3) Take out the card from its adaptor and insert in your raspberry pi3
computer. Plug in the power cable. If you wish, you can plug in your
ethernet cable and a wireless adapter.

4)If you have savefile=direct:local in cmdline.txt file
While booting ---> the OS will find a default named save file (fdsave.ext4) and automatically
go to desktop.

If you have savefile=ask
While booting ---> the OS asks for a save file , just press the <ENTER> key.
The operating system will automatically find the fatdog save file.
Note that user's documents and config files are in that save file.



5) You will soon see the desktop with a giant clock on it.

User: root or spot
Password : woofwoof

Support site: http://murga-linux.com/puppy/viewtopic.php?t=92548


Set your wlan with the tray app.
Check if your ethernet device has been recognized
Tip: Type 'ifconfig' in terminal to check if a network address has been assigned.
___________________________________________________________

The built-in wireless should be easy to set up using the control panel app.


An externel wireless adapter requires some work. Here is how I made the connection...

I first checked that the wireless driver had loaded properly...

Code: Select all

dmesg  | more
I checked the boot messages to see if the driver had loaded.
I saw...

Code: Select all

usbcore: registered new interface driver carl9170
carl9170 is the name of my driver, so it has loaded. Good!

Next I connected my adapter to a wifi network
Control panel > network > Network Setup
(or type 'network-setup.sh' in terminal)

SSID (the router's network name) and wireless password for my Cisco router is entered .
See network setup here....
http://distro.ibiblio.org/fatdog/web/fa ... rking.html
Activate wlan0 now with Network Setup
_____________________________________________

To check the activation....
Type 'ifconfig' in terminal and wlan0 will have a network address assigned to it now.
It is different than ethernet address.

I could find a windows server with fatdog_connect.sh

Network > Fatdog connect

Fill in the address of server and the Share name.
Click 'Connect'

__________________________________________
Attachments
screenshot-fatdog-beta4_zpswby3p59y.jpg
(15.17 KiB) Downloaded 905 times
Last edited by don570 on Sat 16 Jun 2018, 18:52, edited 19 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

Test as a music player by putting a couple of mp3 files in /Music folder
and reboot . Playmusic app by Thunor should play the music
thru the headphone output.
_________________________________________________________

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

Test on Raspberry pi3

#3 Post by woodenshoe-wi »

I have an original Pi3 (I don't have a 3+), so I figured I would test the fatdogarm-pi3-03-15-2018.zip

I had to un-comment the following line in config.txt to get the audio to work.

Code: Select all

dtparam=audio=on
Is there a reason that there is a separate version for Pi3 instead of sharing with Pi2?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#4 Post by don570 »

Is there a reason that there is a separate version for Pi3 instead of sharing with Pi2?

Each model that is supported requires a separate kernel.

Thanks for testing since I don't have a raspberry pi3.
It costs $100 here in Canada with tax. Ridiculous!

Test it to see if you can make a headless, wireless music player.
I was successful with my raspberry pi2.

Samba and x11vnc are builtin.
____________________________________________

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

Sharing kernel

#5 Post by woodenshoe-wi »

I know from first hand experience that the new models of Pis always need the newest version of the firmware to boot, but looking at the files included in fatdogarm-pi3-03-15-2018.zip I saw the dtb file for the Pi2, bcm2709-rpi-2-b.dtb

So I was wondering if the fatdogarm-pi3 version could actually run on a Pi2...

First attempt didn't boot, but after adding

Code: Select all

 [pi2]
kernel=vmlinuz.rpi3
to config.txt I was able to successfully boot the Pi3 version of fatdogarm on my Pi2.

My current config.txt is

Code: Select all

disable_overscan=0
start_x=1
gpu_mem=128
hdmi_group=1
hdmi_mode=4
#max_usb_current=1

# Safest video mode
#hdmi_safe=1

# Enable on-board audio
dtparam=audio=on
 
# force audio to headphone jack  (Set to 1)
hdmi_ignore_edid_audio=1


initramfs initrd.rpi3
[pi3]
kernel=vmlinuz.rpi3
[pi2]
kernel=vmlinuz.rpi3

# Warning: CMA does not work properly in newer firmware versions
#
#cma_lwm=16
#cma_hwm=32
#cma_offline_start=16
I normally use my Pis with a mouse, keyboard and computer monitor attached, although I did build an IR receiver for my Pi3 to use with Kodi and the TV, but have never used them with vnc software.

I tested the sound with the 2barks.wav file, so I wouldn't call that music ;-)

The built in wifi on the Pi3 works fine after the normal wifi password configuration.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post by don570 »

I tested the sound with the 2barks.wav file, so I wouldn't call that music


I believe I put the ivy.mp3 file in /usr/share/audio/ folder to test mp3

__________________________________________________________

Read my raspberry pi2 site to get the instructions to set up board as
music player.

You can start by dragging ivy.mp3 into Music folder.
_________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#7 Post by don570 »

I believe I put the ivy.mp3 file in /usr/share/audio/ folder to test mp3
When I checked I put ivy.mp3 in /root/puppy-reference/audio/
not in /usr/share/audio/

_____________________________________________

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

Cannot find files and going to prompt

#8 Post by veronicathecow »

Hi thanks for making this puppy.
I have tried to boot on my Model 3B pi but i am getting
Cannot load basesfs
cannot find fdsave.ext4 from anywhere
welcome to bulldog linux
bulldog login:
Any help appreciated

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#9 Post by don570 »

OOps! This was what I feared. :roll:

Apparently there is something in my modified fdarm.sfs that is not compatible???

You can try James bond's fd-arm.sfs and I think it would work
http://distro.ibiblio.org/fatdog/arm/re ... fd-arm.sfs

I'll look through the files in my fd-arm.sfs to see what is happening.
_______________________________________________________

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#10 Post by veronicathecow »

Hi Don570, many thanks I will give this a try.

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#11 Post by veronicathecow »

Hi don570, sorry but I swapped out the fd-arm.sfs as per your suggestion but am getting same error.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#12 Post by don570 »

I'll ask james bond for help. He owns a raspberry pi3.
__________________________

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

#13 Post by woodenshoe-wi »

What is the contents of your cmdline.txt file?

Mine is:

Code: Select all

pkeys=en waitdev=3 savefile=direct:local   basesfs=device:mmcblk0p1:/fatdogarm/fd-arm.sfs 
fdsave.ext4 is the save file. It won't exist on first boot.

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#14 Post by veronicathecow »

Hi Don6570 thanks

Hi woodenshoe-wi
I login as root PW=woofwoof
but ls just gives me nothing
not sure where
tried
find cmline.txt
but no files found.

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

#15 Post by woodenshoe-wi »

The file would be on the SD card. There should have been one in the zip file.
It gives the location of "basesfs=device:mmcblk0p1:/fatdogarm/fd-arm.sfs"
If it is missing that explains
Cannot load basesfs

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#16 Post by veronicathecow »

Hi thanks I have found it on the memory card (using my main PC
The contents of the file are
pkeys=en waitdev=3 savefile=direct:local basesfs=device:mmcblk0p1:/fatdogarm/fd-arm.sfs

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

#17 Post by woodenshoe-wi »

Is the fd-arm.sfs file in the fatdogarm directory on the SD card?

Are you still getting the "Cannot load basesfs" error when booting?

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#18 Post by veronicathecow »

Yes still same error.
Files in root(as are all the files) not in a folder

woodenshoe-wi
Posts: 109
Joined: Sat 29 Jul 2017, 03:16
Location: Wisconsin

#19 Post by woodenshoe-wi »

The only file that belongs in the fatdogarm directory is fd-arm.sfs

But you can probably edit the cmdline.txt file to remove the fatdogarm directory from the basesfs path if you don't want to put it in a directory.

Code: Select all

pkeys=en waitdev=3 savefile=direct:local   basesfs=device:mmcblk0p1:/fd-arm.sfs
You could even try renaming or deleting cmdline.txt, I was able to reproduce the boot errors you described by renaming cmdline.txt but the fd-arm.sfs file on my SD card is in the fatdogarm directory. Without the cmdline.txt file telling init to look in the fatdogarm directory for fd-arm.sfs the init script will probably look for it in the root of the SD card.

User avatar
veronicathecow
Posts: 559
Joined: Sat 21 Oct 2006, 09:41

#20 Post by veronicathecow »

Woof Woof, up and running!
I just created the folder and moved the file across and it has booted up to desktop.

Many thanks for your help woodenshoe-wi

Post Reply