DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] Y2038 support broken on MIPS
@ 2023-07-10 20:52 Robert Schwebel
  2023-08-15  9:09 ` Robert Schwebel
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schwebel @ 2023-07-10 20:52 UTC (permalink / raw)
  To: distrokit

Hi,

I've today updated DistroKit to ptxdist-2023.07.1, and I tried the new
PTXCONF_GLIBC_Y2038 feature. It seems to work everywhere but on MIPS.
In qemu, it stops here:

rsc@dude05:~/work/DistroKit$ configs/platform-mips/run
[    0.000000] Linux version 6.4.0-malta (ptxdist@ptxdist) (mips-softfloat-linux-gnu-gcc (OSELAS.Toolchain-2022.10.1 12-20230519) 12.3.1 20230519, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT 2023-07-01T00:00:00+00:00
[    0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] CPU0 revision is: 00019300 (MIPS 24Kc)
[    0.000000] FPU revision is: 00739300
[    0.000000] MIPS: machine is mti,malta
[    0.000000] Software DMA cache coherency enabled
[    0.000000] CPU frequency 333.33 MHz
[    0.637209] This architecture does not have kernel memory protection.
[    7.486114] systemd-rc-once[95]: remounting root rw...done
[    7.492033] systemd-rc-once[95]: running rc.once.d services...
[    7.538456] systemd-rc-once[100]: Creating dynamic linker cache...
[    7.942716] systemd-rc-once[109]: Create ed25519 key; this may take some time ...
[    8.104296] systemd-rc-once[109]: Created ed25519 key.
[    8.264490] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 'systemd'
[    9.463754] systemd-rc-once[95]: remounting root ro...done

Changing the config option makes it boot again.

If someone wants to debug it, go ahead :-)

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] Y2038 support broken on MIPS
  2023-07-10 20:52 [DistroKit] Y2038 support broken on MIPS Robert Schwebel
@ 2023-08-15  9:09 ` Robert Schwebel
  2023-08-16 11:44   ` Oleksij Rempel
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schwebel @ 2023-08-15  9:09 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: distrokit

Oleksij,

could you have a look?

On Mon, Jul 10, 2023 at 10:52:34PM +0200, Robert Schwebel wrote:
> I've today updated DistroKit to ptxdist-2023.07.1, and I tried the new
> PTXCONF_GLIBC_Y2038 feature. It seems to work everywhere but on MIPS.
> In qemu, it stops here:
> 
> rsc@dude05:~/work/DistroKit$ configs/platform-mips/run
> [    0.000000] Linux version 6.4.0-malta (ptxdist@ptxdist) (mips-softfloat-linux-gnu-gcc (OSELAS.Toolchain-2022.10.1 12-20230519) 12.3.1 20230519, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT 2023-07-01T00:00:00+00:00
> [    0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
> [    0.000000] printk: bootconsole [uart8250] enabled
> [    0.000000] CPU0 revision is: 00019300 (MIPS 24Kc)
> [    0.000000] FPU revision is: 00739300
> [    0.000000] MIPS: machine is mti,malta
> [    0.000000] Software DMA cache coherency enabled
> [    0.000000] CPU frequency 333.33 MHz
> [    0.637209] This architecture does not have kernel memory protection.
> [    7.486114] systemd-rc-once[95]: remounting root rw...done
> [    7.492033] systemd-rc-once[95]: running rc.once.d services...
> [    7.538456] systemd-rc-once[100]: Creating dynamic linker cache...
> [    7.942716] systemd-rc-once[109]: Create ed25519 key; this may take some time ...
> [    8.104296] systemd-rc-once[109]: Created ed25519 key.
> [    8.264490] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 'systemd'
> [    9.463754] systemd-rc-once[95]: remounting root ro...done
> 
> Changing the config option makes it boot again.
> 
> If someone wants to debug it, go ahead :-)

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] Y2038 support broken on MIPS
  2023-08-15  9:09 ` Robert Schwebel
@ 2023-08-16 11:44   ` Oleksij Rempel
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksij Rempel @ 2023-08-16 11:44 UTC (permalink / raw)
  To: Robert Schwebel; +Cc: distrokit

On Tue, Aug 15, 2023 at 11:09:27AM +0200, Robert Schwebel wrote:
> Oleksij,
> 
> could you have a look?

The next branch with my latest patches seems to work in a y2038 mode.

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-16 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 20:52 [DistroKit] Y2038 support broken on MIPS Robert Schwebel
2023-08-15  9:09 ` Robert Schwebel
2023-08-16 11:44   ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox