Re: [gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Mick
On Friday, 31 August 2018 22:10:48 BST Andrew Udvare wrote:
> On 8/31/18 2:41 PM, Mick wrote:
> > What I have not fathomed yet is how to compile into the mach_kernel the
> > vmlinuz and initrd the boot.efi uses to boot linux.  :-/
> 
> (Note that I am making assumptions that the Apple TV 1st gen can be
> treated kind of like a Mac.)

Right, I'm not sure if it can ...


> You probably should try rEFInd to help. You can get rid of it once you
> are comfortable. rEFInd can be avoided:
> 
> https://glandium.org/blog/?p=2830
> 
> This is what I used years back on a MacBook Pro but I was not successful
> in getting an EFI stub to boot correctly. The issue was a bug with USB
> 2/3 initialisation or something at the time in the kernel, which you
> probably won't run into. I had to use the BIOS emulation which you might
> have the ability to do. So it was rEFInd -> BIOS emulation (calls it
> Windows) -> LILO (GRUB didn't work) and then Linux.

Last time I was dual booting into a MacBook Pro a couple of years ago, I think 
I used CONFIG_EFI_STUB on linux and no boot manager at the time.  The 
MacBook's boot manager listed my gentoo bootx64.efi file which booted into 
Linux without any drama.


> Here is what it looked like (holding C at boot time):
> https://i.imgtc.com/jjBY8AF.jpg (OS is macOS, "Windows" CD in the
> picture was just Gentoo live CD).

Yes, I recall a similar picture with my installation at the time.


> Your problem can be made simpler if you have a) no desire to dual-boot
> and b) no disk encryption. This would mean you only have your VFAT
> partition for EFI and your main partition.

Well, this box has a 32bit EFI, for which a special boot.efi[1] binary was 
developed a long time ago to boot a mach_kernel executable.[2]  The 
mach_kernel is compiled to contain a compressed vmlinuz and initrd image for 
the Linux OS.  The /boot partition is on an 'AppleTV Recovery' (AF04) 
partition type with an HFS+ fs.  At least this is how OSMC and from what I 
understand older Gentoo installations were booting these devices.

However, all this was happening 10 years ago.  I don't know if I can bypass 
all this  malarkey and just compile a kernel with an EFI stub and without 
initrd to boot with.

[1] https://www.developerfusion.com/project/24162/atvbootloader/
[2] https://github.com/davilla/atv-bootloader

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Andrew Udvare
On 8/31/18 2:41 PM, Mick wrote:
> 
> What I have not fathomed yet is how to compile into the mach_kernel the 
> vmlinuz and initrd the boot.efi uses to boot linux.  :-/
> 

(Note that I am making assumptions that the Apple TV 1st gen can be
treated kind of like a Mac.)

You probably should try rEFInd to help. You can get rid of it once you
are comfortable. rEFInd can be avoided:

https://glandium.org/blog/?p=2830

This is what I used years back on a MacBook Pro but I was not successful
in getting an EFI stub to boot correctly. The issue was a bug with USB
2/3 initialisation or something at the time in the kernel, which you
probably won't run into. I had to use the BIOS emulation which you might
have the ability to do. So it was rEFInd -> BIOS emulation (calls it
Windows) -> LILO (GRUB didn't work) and then Linux.

Here is what it looked like (holding C at boot time):
https://i.imgtc.com/jjBY8AF.jpg (OS is macOS, "Windows" CD in the
picture was just Gentoo live CD).

Your problem can be made simpler if you have a) no desire to dual-boot
and b) no disk encryption. This would mean you only have your VFAT
partition for EFI and your main partition.

-- 
Andrew



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [SOLVED] Cellphone VFAT datestamps versus linux datestamps

2018-08-31 Thread james
On 8/29/18 8:45 PM, Walter Dnes wrote:
> On Wed, Aug 29, 2018 at 08:22:31AM +0100, Neil Bothwick wrote
>> On Tue, 28 Aug 2018 22:39:51 -0400, Walter Dnes wrote:
>>
>>>   Given this info, I can cobble together a short script.  A "for" loop
>>> cycles through "*.jpg".  Read "CreateDate" from the EXIF data, and feed
>>> it into the "touch" command, which would reset the physical file
>>> datestamp.
>>
>> You don't even need that, exiftool has a FileModifyDate tag, which is the
>> filesystem date not an EXIF tag, so you can simply set FileModifyDate to
>> CreateDate for each file.
>>
>> exiftool '-FileModifyDate 
>   Cool; I wasn't aware of that.  Definitely shorter than my version...
> 
> #!/bin/bash
> for filename in *.jpg
> do
>datestamp0=`exiftool -T -CreateDate ${filename} | sed "s/[ :]//g"`
>datestamp="${datestamp0:0:12}.${datestamp0:12:2}"
>touch -t ${datestamp} ${filename}
> done
> 
>   I tried out your command on a few directories going back to April (I
> got the phone in March) and it works fine.  I have the directories
> sorted by date, and the generated datestamps match the day.  Also, the
> hour:minute stamps monotonitcally rise with the image sequence numbers,
> which is a good sign.
> 


Here is a useful parallel thread that give syntax options too:


https://discuss.pixls.us/t/date-stamp-exiftool-and-google-photos/8803


hth,
James



Re: [gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Mick
On Friday, 31 August 2018 17:22:43 BST Andrew Udvare wrote:
> On 8/31/18 11:31 AM, Mick wrote:
> > Hi All,
> > 
> > Would anyone have *recent* experience of installing and running Gentoo
> 
> plus
> 
> > Kodi on the above?  It has a Pentium-M with Apple's 32bit EFI.
> 
> It also has a GeForce Go 7300 which is still supported. 304.137 of the
> proprietary driver is still in the tree. From what I can tell you will
> be better off with the proprietary driver over Nouveau.
> 
> I question if it can handle running Kodi. Maybe you would want to use
> something else for video playback/media management?

Yes, it can run it, at least it could last year using the OSMC build based on 
Dedian.


> You definitely would want to cross-compile everything for this machine
> on a modern system, with minimal dependencies since you only have 512 MB
> of RAM to work with. You can set Kodi to start with xinitrc or you can
> have something like SDDM show Kodi as an option.
> 
> Nouveau may work for you other than hardware acceleration of video
> decoding. Maybe that CPU can handle 480P MPEG-2 and non-HD XviD but
> almost certainly not x264 or HEVC (I doubt the OpenGL renderer can help
> here). If you are willing to convert files and use lower resolutions
> then this may be acceptable.

TBH I'm mostly using it for audio, but 720p video plays quite respectably and 
by the time the TV upscales it to 1080 it shows a very acceptable picture.


> https://nouveau.freedesktop.org/wiki/VideoAcceleration/
> 
> Conflicting information here as Nvidia says there are no VDPAU features
> supported by this graphics card.
> http://us.download.nvidia.com/XFree86/Linux-x86/304.137/README/supportedchip
> s.html

What I have not fathomed yet is how to compile into the mach_kernel the 
vmlinuz and initrd the boot.efi uses to boot linux.  :-/

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OFF-TOPIC] Best bios type thingy to boot a computer

2018-08-31 Thread Godzil
I really enjoyed (and still) Open Firmware which was used by Apple on the 
PowerPC macintosh (starting from the first PCI models up to the latest G5)

It is a nice environment, with all the capabilities of UEFI with even more as 
it come for free and directly with a Forth interpreter (basically the CLI is an 
immediate forth interpreter)

Was quite nice and tidy, allowing lots of stuff like modifications of the 
device tree and other nice things.

Was probably underused by Apple but yet, was the key for a lot of hacks on PPC 
models!


I think it was originated from Sun and use on spark station, not really sure 
there

> Le 31 août 2018 à 18:19, Andrew Lowe  a écrit :
> 
>> On 31/08/18 23:16, Andrew Udvare wrote:
>>> On 8/31/18 10:46 AM, Andrew Lowe wrote:
>>> Hi all,
>> 
>>>This is not to start a flame war, I just want to do some reading,
>>> wikipedia pages, for self interest on how a BIOS could have/should have
>>> been done. I'm thinking of how DECStations, Alpha's SPARCs etc etc
>>> booted up.
>> 
>> Try
>> 
>> https://en.wikipedia.org/wiki/Booting#Boot_sequence
>> https://github.com/coreos/grub/tree/2.02-coreos/grub-core/boot/i386/pc
>> https://github.com/torvalds/linux/blob/master/arch/x86/boot/main.c#L135
>> 
> 
> 
>Thanks for the comment but I was more looking along the lines of "When
> I used the early SPARC 1 the boot was controlled by  and it was
> really good because.." hence my original comment about "been there,
> done that", people who are old enough to know what a SPARC1 looked like
> or even used a Personal Iris or a POWERstation.
> 
>Andrew
> 




Re: [gentoo-user] [OFF-TOPIC] Best bios type thingy to boot a computer

2018-08-31 Thread Andrew Lowe
On 31/08/18 23:16, Andrew Udvare wrote:
> On 8/31/18 10:46 AM, Andrew Lowe wrote:
>> Hi all,
> 
>>  This is not to start a flame war, I just want to do some reading,
>> wikipedia pages, for self interest on how a BIOS could have/should have
>> been done. I'm thinking of how DECStations, Alpha's SPARCs etc etc
>> booted up.
> 
> Try
> 
> https://en.wikipedia.org/wiki/Booting#Boot_sequence
> https://github.com/coreos/grub/tree/2.02-coreos/grub-core/boot/i386/pc
> https://github.com/torvalds/linux/blob/master/arch/x86/boot/main.c#L135
> 


Thanks for the comment but I was more looking along the lines of "When
I used the early SPARC 1 the boot was controlled by  and it was
really good because.." hence my original comment about "been there,
done that", people who are old enough to know what a SPARC1 looked like
or even used a Personal Iris or a POWERstation.

Andrew



Re: [gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Andrew Udvare
On 8/31/18 11:31 AM, Mick wrote:
> Hi All,
>
> Would anyone have *recent* experience of installing and running Gentoo
plus
> Kodi on the above?  It has a Pentium-M with Apple's 32bit EFI.


It also has a GeForce Go 7300 which is still supported. 304.137 of the
proprietary driver is still in the tree. From what I can tell you will
be better off with the proprietary driver over Nouveau.

I question if it can handle running Kodi. Maybe you would want to use
something else for video playback/media management?

You definitely would want to cross-compile everything for this machine
on a modern system, with minimal dependencies since you only have 512 MB
of RAM to work with. You can set Kodi to start with xinitrc or you can
have something like SDDM show Kodi as an option.

Nouveau may work for you other than hardware acceleration of video
decoding. Maybe that CPU can handle 480P MPEG-2 and non-HD XviD but
almost certainly not x264 or HEVC (I doubt the OpenGL renderer can help
here). If you are willing to convert files and use lower resolutions
then this may be acceptable.

https://nouveau.freedesktop.org/wiki/VideoAcceleration/

Conflicting information here as Nvidia says there are no VDPAU features
supported by this graphics card.
http://us.download.nvidia.com/XFree86/Linux-x86/304.137/README/supportedchips.html




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Andrew Udvare
On 8/31/18 11:31 AM, Mick wrote:
> Hi All,
> 
> Would anyone have *recent* experience of installing and running Gentoo plus 
> Kodi on the above?  It has a Pentium-M with Apple's 32bit EFI.

Not exactly the same but I've tried converting old systems into usable
ones with Gentoo involved.

The Apple TV also has a GeForce Go 7300 which is still supported but
barely. 304.137 of the proprietary driver is still in the tree for the
time being. From what I can tell you will be better off with the
proprietary driver over Nouveau.

I question if it can handle running modern Kodi. Maybe you would want to
use something else for video playback/media management?

You definitely would want to cross-compile everything for this machine
on a modern system, with minimal dependencies since you only have 512 MB
of RAM to work with. You can set Kodi to start with xinitrc or you can
have something like SDDM show Kodi as an option.

Nouveau may work for you other than hardware acceleration of video
decoding. Maybe that CPU can handle 480P MPEG-2 and non-HD XviD but
almost certainly not x264 or HEVC (I doubt the OpenGL renderer can help
here). If you are willing to convert files and use lower resolutions
then this may be acceptable. You would still be able to have 6 channel
output via the HDMI or optical output.

Conflicting information here as Nvidia says there are no VDPAU features
supported by this graphics card.
http://us.download.nvidia.com/XFree86/Linux-x86/304.137/README/supportedchips.html
vs https://nouveau.freedesktop.org/wiki/VideoAcceleration/

-- 
Andrew



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Gentoo on Apple TV 1

2018-08-31 Thread Mick
Hi All,

Would anyone have *recent* experience of installing and running Gentoo plus 
Kodi on the above?  It has a Pentium-M with Apple's 32bit EFI.

There are a number of pages on the interwebs, but all I could find mentioning 
Gentoo are a few years old and superseded.  The latest installation supported 
until last year was by OSMC running debian jessie.  I'd like to update this 
with Gentoo binaries but I'm not exactly sure how the boot process is 
chainloaded from Apple's kernel and in addition OSMC's debian is running 
systemd.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OFF-TOPIC] Best bios type thingy to boot a computer

2018-08-31 Thread Andrew Udvare
On 8/31/18 10:46 AM, Andrew Lowe wrote:
> Hi all,

>   This is not to start a flame war, I just want to do some reading,
> wikipedia pages, for self interest on how a BIOS could have/should have
> been done. I'm thinking of how DECStations, Alpha's SPARCs etc etc
> booted up.

Try

https://en.wikipedia.org/wiki/Booting#Boot_sequence
https://github.com/coreos/grub/tree/2.02-coreos/grub-core/boot/i386/pc
https://github.com/torvalds/linux/blob/master/arch/x86/boot/main.c#L135

-- 
Andrew



signature.asc
Description: OpenPGP digital signature


[gentoo-user] [OFF-TOPIC] Best bios type thingy to boot a computer

2018-08-31 Thread Andrew Lowe
Hi all,
A bit of an off topic question , mainly aimed at those who, shall we
say, been there and done that.

It is very common to find webpages stating that the BIOS that is in a
PC is a mess with respect to the way things boot, device discovery  etc.
Looking back through the fog of time, would anyone like to point me at
something that gets a computer from a not running state to a running
state and, in their opinion, does it the "right" way,  in an elegant,
extensible way.

This is not to start a flame war, I just want to do some reading,
wikipedia pages, for self interest on how a BIOS could have/should have
been done. I'm thinking of how DECStations, Alpha's SPARCs etc etc
booted up.

Any thoughts greatly appreciated,

Andrew



Re: [gentoo-user] Xorg on really old PC

2018-08-31 Thread François-Xavier CARTON

Le 31/08/2018 à 05:10, Walter Dnes a écrit :

   Given the inter-connectedness of linux libraries, you're not going to
get an ancient version of mesa to work with a new Gentoo install.


That's where Gentoo helps, being a source-based distribution :)


Forget about OpenGL and undo the masks.

   Another option might be to set...

VIDEO_CARDS="fbdev"

..in make.conf, and use the xf86-video-fbdev driver and see if that
works.


Thanks for the suggestions. I'll try one more time with xf86-video-intel 
first (using the same package versions as debian squeeze for the 
xorg-related packages), as I would like to have OpenGL. But I'll try 
unmasking and fbdev if that doesn't work.



Le 31/08/2018 à 12:01, (Nuno Silva) a écrit :
> Perhaps try an older linux kernel, from the same time as the versions of
> X11 and mesa that you are trying to run.
>
> Running a system like this is going to be harder now, though, because
> the X11 headers were reorganized, and packages which use X11 now depend
> on the newer headers, which will most likely pull in the new
> xorg-server.

I'll try kernel 3.2 and xorg server 1.7.7 which are the versions used in 
debian squeeze. This is the last debian release with mesa < 8.0.




[gentoo-user] Re: Xorg on really old PC

2018-08-31 Thread nunojsilva
On 2018-08-30, François-Xavier CARTON wrote:

> Hi,
>
> I'm installing Gentoo on a really old PC (with a Pentium III and a
> i815 graphic card). I've installed a minimal Gentoo system, and I'm
> trying to get Xorg working.
>
> I've searched on the Gentoo wiki, and found that I should use an old
> version of mesa (<8.0) to get OpenGL support [1]. So I have masked
> recent versions of mesa and some Xorg packages in order to install the
> last version of mesa that is below 8.0. My package.mask is:
>>media-libs/mesa-7.10.3
>>=app-eselect/eselect-opengl-1.2.6
>>x11-proto/glproto-1.4.15
>>x11-base/xorg-server-1.12.4-r5
> I have no xorg.conf.

Perhaps try an older linux kernel, from the same time as the versions of
X11 and mesa that you are trying to run.

Running a system like this is going to be harder now, though, because
the X11 headers were reorganized, and packages which use X11 now depend
on the newer headers, which will most likely pull in the new
xorg-server.

> When I run startx, the screen goes black and the Xorg server
> segfaults, according to the log file [2]. Nothing works after that,
> including the keyboard, so I cannot go back to a linux console. Maybe
> it is a configuration issue, or maybe I'm using a buggy version. Has
> anyone any suggestion on what configuration and versions I should use?
>
> Thanks,
> François-Xavier Carton
>
> [1] https://wiki.gentoo.org/index.php?title=Intel=599748=599742
> [2] Xorg.0.log: http://sprunge.us/ZdWJNH
>
>

-- 
Nuno Silva




Re: [gentoo-user] backing up a partition

2018-08-31 Thread Jacques Montier
Le ven. 31 août 2018 04:48, Michael Jones  a écrit :

> try fsarchiver
>
> On Thu, Aug 30, 2018 at 11:53 AM, Philip Webb 
> wrote:
>
>> 180825 Philip Webb wrote:
>> > Thanks for the replies :
>> > it looks as if 'tar' mb adequate, but I'll think re it & make a test.
>>
>> I used 'tar -a' to copy the contents of the partition to a USB stick,
>> then copied them back to another partition, updated Lilo
>> & it booted successfully into the new partition, which works the same.
>>
>> --
>> ,,
>> SUPPORT ___//___,   Philip Webb
>> ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
>> TRANSIT`-O--O---'   purslowatchassdotutorontodotca
>>
>>
>>

Hi all

I use fsarchiver and SystemRescueCD for years.
It works fine.

Regards

Jacques

>
>


Re: [gentoo-user] Anyone using gentoo on POWER?

2018-08-31 Thread R0b0t1
Availability is okay. As long as you're not trying to run a prefix
installation from AIX a almost everything should work out of the box.
Programs that are heavily optimized may fail due to lack of code paths for
POWER8/9 but that is fairly rare.

Toolchain problems are most common.

On Thu, Aug 30, 2018 at 7:04 PM, taii...@gmx.com  wrote:

> It is my understanding that both little and big endian work on the
> regular "linux" POWER9 machines so that you can use gentoo which is
> ppc64 not ppc64le for some reason - and I was wondering what peoples
> experiences are with this? what is package availability like? any
> problems? etc etc.
>
> Thanks!
>