Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 10:52
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Quirky Xerus 8.1.4 for Raspberry Pi2 and 3
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 13 of 44 [654 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 42, 43, 44 Next
Author Message
tinker

Joined: 06 Dec 2007
Posts: 52
Location: Midwestern United States

PostPosted: Tue 25 Oct 2016, 00:33    Post subject: Quirky working
Subject description: Pi a la mode
 

It's been an age since I last posted a reply to this forum, and it was Barry's Quirky for the Raspberry Pi that got me back, combining my old enthusiasm for Puppy-related distributions and my new enthusiasm for the Raspberry pi.

I downloaded the file, burnt it to a 32GB SD card, booted, and there it was!

This is Pi improved - pie a la mode as we say in the US - pie with ice cream on top - two beautiful flavors together.

Thank you, Barry!
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1156
Location: Sweden

PostPosted: Tue 25 Oct 2016, 05:13    Post subject: Quirky Linux boots *without* an SD card on Pi3
Subject description: Raspberry Pi3 boots Quirky from a USB flash drive
 

Good news! I've got Barry's latest creation booting and running from a USB flash drive - NO SD card needed at all Very Happy

Finally, no more fiddling around with these tiny SD cards!

Using a Pi3 (no overclocking) and a USB3 flash drive, boot time ~15 seconds from the 4 raspberry icons to the desktop.

Note that this will only work on the Pi3 (and probably on the newly released v1.2 Pi2 board (Pi2B2?), which now has the same SoC (BCM2837) as the Pi3.


=> See the next post on how I created a bootable Quirky Linux USB flash drive

_________________
Puppy unofficial tester (off and on) since v0.9.2

Last edited by pakt on Tue 25 Oct 2016, 13:08; edited 2 times in total
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1156
Location: Sweden

PostPosted: Tue 25 Oct 2016, 05:14    Post subject: How to boot Quirky Linux from a USB flash drive on a Pi3  

How to boot Quirky Linux from a USB flash drive on a Pi3

Part I. Some technical background (for just the practical part, skip to Part II)

When the Broadcom BCM2837 SoC (CPU/GPU chip on the Pi3) was designed, a small amount of experimental boot code was added in ROM. This code cannot be modified once the SoC is manufactured, so the designers decided to keep the new boot modes disabled (using a register bit) until they could test that the code worked as planned before publicizing how to enable these boot modes.

Turns out the new boot modes work well enough so that the Pi3 can now boot from USB (flash drive or hard disk), over Ethernet and well as from an SD card.

Quoting Gordon Hollingworth, the Director of Software at Raspberry Pi, on adding the code for the extra boot modes: "Needless to say, it’s not easy squeezing SD boot, eMMC boot, SPI boot, NAND flash, FAT filesystem, GUID and MBR partitions, USB device, USB host, Ethernet device, and mass storage device support into a mere 32kB."

Ref: https://www.raspberrypi.org/blog/pi-3-booting-part-i-usb-mass-storage-boot/

Part II. Enabling the new boot modes

To enable the new boot modes, follow the tutorial in this link:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md

To summarize, you put Raspbian on an SD card, boot it on a Pi3, then install special versions of 'start.elf' and 'bootcode.bin', and edit 'config.txt' adding a line. You then reboot and the previously mentioned register bit will be enabled allowing the new boot modes to work.

Part III. Preparing Quirky Linux to boot from a USB flash drive

What needs to be done is to copy Quirky Linux to an 8GB (or bigger) USB flash drive, then replace all files except 'kernel7.img', 'cmdline.txt' & 'config.txt' on the 1st, FAT32, partition with ones from the SD card (containing the modified Raspbian used in Part II). I also copied over the 'overlays' folder but don't know if that was really neccessary.

Then edit 'cmdline.txt', replacing
Code:
root=/dev/mmcblk0p2

with
Code:
root=/dev/sda2


Now, on the 2nd, ext4, partition of the USB flash drive, edit /etc/fstab changing the line
Code:
/dev//dev/sdb2     /     ext4     defaults,noatime   0 1

to
Code:
/dev//dev/sda2     /     ext4     defaults,noatime   0 1

(that's changing 'sdb2' to 'sda2')

That's it! Just remove any SD card still inserted in your Pi3, plug in the USB flash drive with the modified Quirky Linux on it and connect power. The Pi3 now-enabled boot code will look on the FAT partitions of any connected devices it finds for 'bootcode.bin' (in this case, the USB flash drive) and boot from it.

Here's a link explaining the boot code flow:

https://github.com/raspberrypi/documentation/blob/master/hardware/raspberrypi/bootmodes/bootflow.md

Booting is faster from an SD card than from a USB flash drive for the usual reason: about 5 seconds needed to wait while detecting a USB drive.

Hope I didn't miss anything.

Edited: Oops, need to keep Barry's kernel too!

_________________
Puppy unofficial tester (off and on) since v0.9.2

Last edited by pakt on Tue 25 Oct 2016, 14:22; edited 4 times in total
Back to top
View user's profile Send private message 
Minnesota

Joined: 11 Sep 2008
Posts: 325

PostPosted: Tue 25 Oct 2016, 11:07    Post subject: Sound
Subject description: NO sound on reboot
 

First THANK you Barry for this Puppy. Fun to play a bit on the Pi, been waiting a long time to get involved with the Pi. Smile

Did I miss something? Beginning of the thread mentions issues with sound - audio.

After basic set up, I have sound for video or audio files. Can play as many as I wish. Turn off power, reboot. NO Sound. Volume control set to 96%, mute off - not selected. aumix screen not helpful at all, does not seem to do anything. Running ALSA wizard no effect.

I am on a TV HDMI output from the Pi to the TV.

THANK you again for all your past and present efforts. Enjoy your hiking and retirement Sir:

Looking forward to ODROID-XU4 software Smile>
Back to top
View user's profile Send private message 
Olle

Joined: 25 Oct 2016
Posts: 10

PostPosted: Tue 25 Oct 2016, 16:11    Post subject: Pi3 Sweden
Subject description: sve keyboard and wifi
 

First post, been looking at puppy for some years.

The PI3 wifi works OOTB with 8.1.
For sve keybord I had to manually edit
/etc/X11/xorg.conf.d/10-evdev-puppy.conf
to
Option "XkbLayout" "se"
instead of "us"

Tack! Thanks from Årsta. /olle

Last edited by Olle on Wed 26 Oct 2016, 15:38; edited 1 time in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Tue 25 Oct 2016, 17:49    Post subject:  

Quote:
The PI3 wifi works OOTB with 8.1.
For sve keybord I had to manually edit
/etc/X11/xorg.conf.d
to
Option "XkbLayout" "se"
instead of "us"


I had trouble changing to 'fr' keyboard layout, so I'll try your fix.
________________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Wed 26 Oct 2016, 19:05    Post subject:  

Here's how I did the change.

I was successful changing qwerty keyboard to azerty keyboard i.e. fr keyboard layout.

I went to folder /etc/X11/xorg.conf.d/
and made one simple change to file '10-evdev-puppy.conf' ---> fr
(see image)

Now I have french keyboard. Cool
screenshot=fr.jpg
 Description   change to fr
 Filesize   35.85 KB
 Viewed   1157 Time(s)

screenshot=fr.jpg

Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Wed 26 Oct 2016, 19:21    Post subject:  

Some suggestions..

Put gtkhash on the list of apps that can use 'OpenWith'.
I find that a quicker method to find md5sum
compared to start menu or terminal.

______________________________________________________

Here's a change to simple vlc media player I suggest...

Force the help button completely to the left side of window using the 'false' attribute.
Then the text widget will force the button all the way to left. Cool
Code:
<button space-expand=\"false\" space-fill=\"false\">




__________________________________________
Back to top
View user's profile Send private message 
TeX Dog

Joined: 06 Jul 2016
Posts: 341

PostPosted: Thu 27 Oct 2016, 00:26    Post subject:  

So Verry Berry Sweet, Barry.

Using Dons omxplayer and BK's youtube_dl having fun.

however the pet does not work out of the box.

need to edit
/etc/ld.so.conf
Code:
/lib
/usr/lib
/opt/vc/lib
/root/my-applications/lib
/usr/lib/omxplayer
include /etc/ld.so.conf.d/*.conf


adding /usr/lib/omxplayer

after saving run
Code:

ldconfig


to add Alpha blend to his run-as app (whole text file below)
/usr/local/apps/OMXplayer


Code:

#!/bin/sh

#opening window using Xdialog     
 Xdialog  --backtitle "$(gettext 'Choose the output sound path.')"\
 --title "OmxPlayer 0.3.6"   --radiolist "" 17 70 0 "Analog" "Stereo headphones" off  \
 "HDMI" "TV set"   ON 2>/tmp/checklist.tmp.$$

retval=$?
choice=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$
case $retval in
  0)
    echo "'$choice' chosen.";;
  1)
    exit 0;;
  255)
    exit 0;;
esac
if [ $choice = HDMI ];then
xset s 6
urxvt -e  omxplayer.bin --alpha 192 -o hdmi  "$@"
xset s 60
else
urxvt -e  omxplayer.bin  -o local "$@"
fi
exit 0
 


"     


it allows view to see fullscreen AND desktop at same TIME. So you can check on compiling and watch movie. wiggle mouse to see ghostly spooky desktop Wink
Back to top
View user's profile Send private message 
TeX Dog

Joined: 06 Jul 2016
Posts: 341

PostPosted: Thu 27 Oct 2016, 01:17    Post subject:  

found Big Buck Bunny 1080pHD .mp4 on youtube, downloaded it and I played back flawlessly with above setup, CPU was near zero, continued to browse this forum in Alpha mode using scripts AND playing 1080p HD without a hiccup. Try the above setup to truly see what hardware is capable of doing. With correct X win setup layering would also work but its not functional now. With alpha blend in hardware is awesome. Not bad for $35, a cellphone charger and a HDMI TV.

here is my config.txt ( keeps banding from HD videos which uses MORE cpu not less reversed logic I know )

Code:
disable_overscan=1
start_x=1
gpu_mem=128
hdmi_group=1
hdmi_mode=16
# Safest video mode
#hdmi_safe=1


# Berryboot settings, do not change
#initramfs berryboot.img

#[pi2]
#kernel=kernel_rpi2_aufs.img

initramfs initrd.rpi2
[pi2]
kernel=vmlinuz.rpi2

# Warning: CMA does not work properly in newer firmware versions
#
#cma_lwm=16
#cma_hwm=32
#cma_offline_start=16
Back to top
View user's profile Send private message 
Sage

Joined: 04 Oct 2005
Posts: 5302
Location: GB

PostPosted: Thu 27 Oct 2016, 07:18    Post subject:  

More about HDMI/VGA interconversion for the RPi family. The HDMI socket carries +5V on pin 18 (lower left) @~50mA. This might be enough to drive a tiny smcDAC, but it is intended only to drive the monitor/video device with I2C-coded interface. On the other hand, some monitors with VGA have stuck +5V/300mA+ on pin 9 specifically to interact with attached video HW. Whilst the proposed ladderDAC might well suffice for some RPi s, apparently, it is even more temperamental in practice, according to reports. Resistive elements, by definition, always involve attenuation, apart from phase-shifting and diverse additional spuriosities, some of which may be relevant to digital systems and associated analogue conversion? The addition of the 5V source only on some monitor vga connectors is especially interesting and may explain why professional HDMI-VGA converters containing a DAC don't always work (or, conversely, sometimes do).
As I said, all this could've been avoided if the humble RPi stuck with VGA. 99% of monitors have a VGA and, guessing, 80% of TVs. Furthermore, streaming content (of the legal kind!) usually comes down the ISP's, or other 3rd party's, box of tricks, and not a tiny teaching-lab intended PC substitute. Let's get the horses & courses sorted...

[Above item specifically addresses discussion in this thread, but moderator might wish to have it tidied up and corrected by a qualified electronic engineer then copied into, eg the HW section, for wider interest?]
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8312
Location: Perth, Western Australia

PostPosted: Thu 27 Oct 2016, 08:05    Post subject:  

don570 wrote:
Here's a change to simple vlc media player I suggest...

Force the help button completely to the left side of window using the 'false' attribute.
Then the text widget will force the button all the way to left. Cool
Code:
<button space-expand=\"false\" space-fill=\"false\">




__________________________________________


Ah, I thought that I must have left something out before!

_________________
http://barryk.org/news/
Back to top
View user's profile Send private message Visit poster's website 
TeX Dog

Joined: 06 Jul 2016
Posts: 341

PostPosted: Thu 27 Oct 2016, 12:44    Post subject: battery powered and vga  

came across this kickstarter. ( I use a portable battery cell phone charger as UPS ) and see it has a HDMI adapter for VGA. @sage is that like yours?

http://www.geeky-gadgets.com/raspberry-pi-battery-hat-26-10-2016/

http://www.geeky-gadgets.com/raspberry-pi-battery-hat-26-10-2016/
Back to top
View user's profile Send private message 
Sage

Joined: 04 Oct 2005
Posts: 5302
Location: GB

PostPosted: Thu 27 Oct 2016, 13:02    Post subject:  

Nope, 'fraid not. It's a small black box, vga socket one side, hdmi flying lead and sound socket on t'other. CPC don't seem to be selling it any longer - only posh ones for ~25quid (almost certainly with precision DACs inside?)!
Back to top
View user's profile Send private message 
Olle

Joined: 25 Oct 2016
Posts: 10

PostPosted: Thu 27 Oct 2016, 15:52    Post subject: kernel 4.8.4
Subject description: linux kernel 4.8.4
 

Is kernel 4.8.4 possible to install? It contains improvements for pi3, I believe. /o
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 13 of 44 [654 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 42, 43, 44 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0858s ][ Queries: 12 (0.0087s) ][ GZIP on ]