All of lore.kernel.org
 help / color / mirror / Atom feed
* Nokia N900 on 5.4 and 5.5
@ 2020-02-07 14:54 Merlijn Wajer
  2020-02-07 15:51 ` H. Nikolaus Schaller
  0 siblings, 1 reply; 18+ messages in thread
From: Merlijn Wajer @ 2020-02-07 14:54 UTC (permalink / raw)
  To: linux-omap; +Cc: Ivaylo Dimitrov, Arthur D., Tony Lindgren


[-- Attachment #1.1: Type: text/plain, Size: 3129 bytes --]

Hi,

I've tried to build 5.4.18 and 5.5.2 for the Nokia N900, using
omap2plus_defconfig. Using appended DTB, like so:

$ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage.dtb
$ mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n
zImage -d zImage.dtb uImage

But they both fail to boot for me - the device resets almost instantly:

> data abort
> 
>     MAYBE you should read doc/README.arm-unaligned-accesses
> 
> pc : [<8000c878>]          lr : [<80008160>]
> sp : 803c46c8  ip : 003a1870     fp : 003a1848
> r10: 803ba890  r9 : 00caa42c     r8 : 80000100
> r7 : 000007a3  r6 : 803a9878     r5 : 80000100  r4 : 80008000
> r3 : 00004e6c  r2 : 00019fa8     r1 : 803a9878  r0 : 00000000
> Flags: nZcv  IRQs off  FIQs on  Mode SVC_32
> Resetting CPU ...
> 
> resetting ...

Full log below. I tried the same with "-Os" instead of "-O2" ; to no avail.

Any clue what could be up?

Cheers,
Merlijn

[1]
> NOLO X-Loader (v1.4.14, Jun  3 2010)
> Secondary image size 109384
> Booting secondary
> [   0.002] Nokia OMAP Loader v1.4.14 (Jun  3 2010) running on Nokia N900 F5 (RX-51)
> [   0.014] I2C v3.12
> [   0.033] System DMA v4.0
> [   0.036] OneNAND device ID 0040, version ID 0121 (256 MiB, 66 MHz)
> [   0.071]   OneNAND blocks unlocked in 28040 us
> [   0.075]   Flash id: ec4021
> [   0.094] Partition table successfully read
> [   0.102] TWL4030 PWR ISR: 40
> [   0.105] Reset reason: por
> [   0.108] McSPI v2.1
> [   0.111] LP5523 found at I2C bus 2, address 0x32
> [   0.122] SMB138C: Not loading driver (version reg. 0x4b)
> [   0.128] BQ24150 (rev. 3) found on I2C bus 1, address 0x6b
> [   0.134] SSI version 1.0
> [   0.148] Battery voltage 3.780 V, BSI: 971
> [   0.164] Initializing LCD panel
> [   0.167]   Detecting LCD panel moscow
> [   0.171]     Panel ID: 108d77
> [   0.174]   Detected LCD panel: acx565akm
> [   0.178] DISPC: version 3.0
> [   0.183]   LCD pixel clock 24000 kHz
> [   0.214]   Logo drawn in 5 ms (11700 kB/s)
> [   0.345]   �ber-cool backlight fade-in took 9 ms
> [   0.352] Initializing USB
> [   0.360]   No USB host detected
> [   0.363] Loading kernel image info
> Loading kernel (1961 kB)... done in 71 ms (27535 kB/s)
> [   0.443] Loading initfs image info
> [   0.447] Total bootup time 450 ms
> [   0.451] Serial console disabled
> 
> 
> U-Boot 2013.04 (Apr 20 2013 - 11:00:56)
> 
> OMAP3530-HS ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 MHz
> Nokia RX-51 + LPDDR/OneNAND
> I2C:   ready
> DRAM:  256 MiB
> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
> Using default environment
> 
> In:    vga
> Out:   vga
> Err:   vga
> data abort
> 
>     MAYBE you should read doc/README.arm-unaligned-accesses
> 
> pc : [<8000c878>]          lr : [<80008160>]
> sp : 803c46c8  ip : 003a1870     fp : 003a1848
> r10: 803ba890  r9 : 00caa42c     r8 : 80000100
> r7 : 000007a3  r6 : 803a9878     r5 : 80000100  r4 : 80008000
> r3 : 00004e6c  r2 : 00019fa8     r1 : 803a9878  r0 : 00000000
> Flags: nZcv  IRQs off  FIQs on  Mode SVC_32
> Resetting CPU ...
> 
> resetting ...


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 14:54 Nokia N900 on 5.4 and 5.5 Merlijn Wajer
@ 2020-02-07 15:51 ` H. Nikolaus Schaller
  2020-02-07 16:36     ` Tony Lindgren
  0 siblings, 1 reply; 18+ messages in thread
From: H. Nikolaus Schaller @ 2020-02-07 15:51 UTC (permalink / raw)
  To: Merlijn Wajer; +Cc: linux-omap, Ivaylo Dimitrov, Arthur D., Tony Lindgren


> Am 07.02.2020 um 15:54 schrieb Merlijn Wajer <merlijn@wizzup.org>:
> 
> Hi,
> 
> I've tried to build 5.4.18 and 5.5.2 for the Nokia N900, using
> omap2plus_defconfig. Using appended DTB, like so:
> 
> $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage.dtb
> $ mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n
> zImage -d zImage.dtb uImage
> 
> But they both fail to boot for me - the device resets almost instantly:
> 
>> data abort
>> 
>>    MAYBE you should read doc/README.arm-unaligned-accesses
>> 
>> pc : [<8000c878>]          lr : [<80008160>]
>> sp : 803c46c8  ip : 003a1870     fp : 003a1848
>> r10: 803ba890  r9 : 00caa42c     r8 : 80000100
>> r7 : 000007a3  r6 : 803a9878     r5 : 80000100  r4 : 80008000
>> r3 : 00004e6c  r2 : 00019fa8     r1 : 803a9878  r0 : 00000000
>> Flags: nZcv  IRQs off  FIQs on  Mode SVC_32
>> Resetting CPU ...
>> 
>> resetting ...
> 
> Full log below. I tried the same with "-Os" instead of "-O2" ; to no avail.
> 
> Any clue what could be up?

I can only tell that I have successfully running 5.5.2 on GTA04A5 (dm3730
but with our own defconfig). This may reduce the number of problem areas
a little.

BR,
Nikolaus

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 15:51 ` H. Nikolaus Schaller
@ 2020-02-07 16:36     ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 16:36 UTC (permalink / raw)
  To: Kees Cook, Nicolas Pitre, Russell King
  Cc: Merlijn Wajer, linux-omap, Ivaylo Dimitrov, Arthur D.,
	H. Nikolaus Schaller, linux-arm-kernel, Aaro Koskinen

Hi,

* H. Nikolaus Schaller <hns@goldelico.com> [200207 15:52]:
> 
> > Am 07.02.2020 um 15:54 schrieb Merlijn Wajer <merlijn@wizzup.org>:
> > 
> > Hi,
> > 
> > I've tried to build 5.4.18 and 5.5.2 for the Nokia N900, using
> > omap2plus_defconfig. Using appended DTB, like so:
> > 
> > $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage.dtb
> > $ mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n
> > zImage -d zImage.dtb uImage
> > 
> > But they both fail to boot for me - the device resets almost instantly:
> > 
> >> data abort
> >> 
> >>    MAYBE you should read doc/README.arm-unaligned-accesses
> >> 
> >> pc : [<8000c878>]          lr : [<80008160>]
> >> sp : 803c46c8  ip : 003a1870     fp : 003a1848
> >> r10: 803ba890  r9 : 00caa42c     r8 : 80000100
> >> r7 : 000007a3  r6 : 803a9878     r5 : 80000100  r4 : 80008000
> >> r3 : 00004e6c  r2 : 00019fa8     r1 : 803a9878  r0 : 00000000
> >> Flags: nZcv  IRQs off  FIQs on  Mode SVC_32
> >> Resetting CPU ...
> >> 
> >> resetting ...
> > 
> > Full log below. I tried the same with "-Os" instead of "-O2" ; to no avail.
> > 
> > Any clue what could be up?
> 
> I can only tell that I have successfully running 5.5.2 on GTA04A5 (dm3730
> but with our own defconfig). This may reduce the number of problem areas
> a little.

Looks like there's a regression in general for appended dtb booting that
was caused by commit 9f671e58159a ("security: Create "kernel hardening"
config area"). With that change we now get STACKPROTECTOR_PER_TASK
selected by default with Kconfig.

Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
.config to see if that helps?

Not sure why appended dtb boot now breaks though.. Could be just the
zImage uncompressing over dtb again? Any ideas?

Regards,

Tony

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-07 16:36     ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 16:36 UTC (permalink / raw)
  To: Kees Cook, Nicolas Pitre, Russell King
  Cc: Ivaylo Dimitrov, Aaro Koskinen, H. Nikolaus Schaller,
	Merlijn Wajer, linux-omap, Arthur D.,
	linux-arm-kernel

Hi,

* H. Nikolaus Schaller <hns@goldelico.com> [200207 15:52]:
> 
> > Am 07.02.2020 um 15:54 schrieb Merlijn Wajer <merlijn@wizzup.org>:
> > 
> > Hi,
> > 
> > I've tried to build 5.4.18 and 5.5.2 for the Nokia N900, using
> > omap2plus_defconfig. Using appended DTB, like so:
> > 
> > $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage.dtb
> > $ mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n
> > zImage -d zImage.dtb uImage
> > 
> > But they both fail to boot for me - the device resets almost instantly:
> > 
> >> data abort
> >> 
> >>    MAYBE you should read doc/README.arm-unaligned-accesses
> >> 
> >> pc : [<8000c878>]          lr : [<80008160>]
> >> sp : 803c46c8  ip : 003a1870     fp : 003a1848
> >> r10: 803ba890  r9 : 00caa42c     r8 : 80000100
> >> r7 : 000007a3  r6 : 803a9878     r5 : 80000100  r4 : 80008000
> >> r3 : 00004e6c  r2 : 00019fa8     r1 : 803a9878  r0 : 00000000
> >> Flags: nZcv  IRQs off  FIQs on  Mode SVC_32
> >> Resetting CPU ...
> >> 
> >> resetting ...
> > 
> > Full log below. I tried the same with "-Os" instead of "-O2" ; to no avail.
> > 
> > Any clue what could be up?
> 
> I can only tell that I have successfully running 5.5.2 on GTA04A5 (dm3730
> but with our own defconfig). This may reduce the number of problem areas
> a little.

Looks like there's a regression in general for appended dtb booting that
was caused by commit 9f671e58159a ("security: Create "kernel hardening"
config area"). With that change we now get STACKPROTECTOR_PER_TASK
selected by default with Kconfig.

Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
.config to see if that helps?

Not sure why appended dtb boot now breaks though.. Could be just the
zImage uncompressing over dtb again? Any ideas?

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 16:36     ` Tony Lindgren
@ 2020-02-07 16:48       ` Merlijn Wajer
  -1 siblings, 0 replies; 18+ messages in thread
From: Merlijn Wajer @ 2020-02-07 16:48 UTC (permalink / raw)
  To: Tony Lindgren, Kees Cook, Nicolas Pitre, Russell King
  Cc: linux-omap, Ivaylo Dimitrov, Arthur D.,
	H. Nikolaus Schaller, linux-arm-kernel, Aaro Koskinen


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]

On 07/02/2020 17:36, Tony Lindgren wrote:
> 
> Looks like there's a regression in general for appended dtb booting that
> was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> config area"). With that change we now get STACKPROTECTOR_PER_TASK
> selected by default with Kconfig.
> 
> Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> .config to see if that helps?

Yes, this makes the kernel boot.

Cheers,
Merlijn


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-07 16:48       ` Merlijn Wajer
  0 siblings, 0 replies; 18+ messages in thread
From: Merlijn Wajer @ 2020-02-07 16:48 UTC (permalink / raw)
  To: Tony Lindgren, Kees Cook, Nicolas Pitre, Russell King
  Cc: Ivaylo Dimitrov, Aaro Koskinen, H. Nikolaus Schaller, linux-omap,
	Arthur D.,
	linux-arm-kernel


[-- Attachment #1.1.1: Type: text/plain, Size: 467 bytes --]

On 07/02/2020 17:36, Tony Lindgren wrote:
> 
> Looks like there's a regression in general for appended dtb booting that
> was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> config area"). With that change we now get STACKPROTECTOR_PER_TASK
> selected by default with Kconfig.
> 
> Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> .config to see if that helps?

Yes, this makes the kernel boot.

Cheers,
Merlijn


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 16:48       ` Merlijn Wajer
@ 2020-02-07 16:53         ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 16:53 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Kees Cook, Nicolas Pitre, Russell King, linux-omap,
	Ivaylo Dimitrov, Arthur D.,
	H. Nikolaus Schaller, linux-arm-kernel, Aaro Koskinen

* Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
> On 07/02/2020 17:36, Tony Lindgren wrote:
> > 
> > Looks like there's a regression in general for appended dtb booting that
> > was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> > config area"). With that change we now get STACKPROTECTOR_PER_TASK
> > selected by default with Kconfig.
> > 
> > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> > .config to see if that helps?
> 
> Yes, this makes the kernel boot.

OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
selected causes changes to include/generated/asm-offsets.h that
appended dtb booting does not like. But let's see what others
think.

Regards,

Tony

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-07 16:53         ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 16:53 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Aaro Koskinen, Russell King, linux-omap, Arthur D.,
	linux-arm-kernel

* Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
> On 07/02/2020 17:36, Tony Lindgren wrote:
> > 
> > Looks like there's a regression in general for appended dtb booting that
> > was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> > config area"). With that change we now get STACKPROTECTOR_PER_TASK
> > selected by default with Kconfig.
> > 
> > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> > .config to see if that helps?
> 
> Yes, this makes the kernel boot.

OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
selected causes changes to include/generated/asm-offsets.h that
appended dtb booting does not like. But let's see what others
think.

Regards,

Tony



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 16:53         ` Tony Lindgren
@ 2020-02-07 17:01           ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 17:01 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Kees Cook, Nicolas Pitre, Russell King, linux-omap,
	Ivaylo Dimitrov, Arthur D.,
	H. Nikolaus Schaller, linux-arm-kernel, Aaro Koskinen

* Tony Lindgren <tony@atomide.com> [200207 16:54]:
> * Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
> > On 07/02/2020 17:36, Tony Lindgren wrote:
> > > 
> > > Looks like there's a regression in general for appended dtb booting that
> > > was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> > > config area"). With that change we now get STACKPROTECTOR_PER_TASK
> > > selected by default with Kconfig.
> > > 
> > > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> > > .config to see if that helps?
> > 
> > Yes, this makes the kernel boot.
> 
> OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
> selected causes changes to include/generated/asm-offsets.h that
> appended dtb booting does not like. But let's see what others
> think.

I don't think this is an issue of CONFIG_STACKPROTECTOR + CONFIG_SMP
booted on UP machine as it only happens with appended dtb it seems.

Regards,

Tony

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-07 17:01           ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-07 17:01 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Aaro Koskinen, Russell King, linux-omap, Arthur D.,
	linux-arm-kernel

* Tony Lindgren <tony@atomide.com> [200207 16:54]:
> * Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
> > On 07/02/2020 17:36, Tony Lindgren wrote:
> > > 
> > > Looks like there's a regression in general for appended dtb booting that
> > > was caused by commit 9f671e58159a ("security: Create "kernel hardening"
> > > config area"). With that change we now get STACKPROTECTOR_PER_TASK
> > > selected by default with Kconfig.
> > > 
> > > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
> > > .config to see if that helps?
> > 
> > Yes, this makes the kernel boot.
> 
> OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
> selected causes changes to include/generated/asm-offsets.h that
> appended dtb booting does not like. But let's see what others
> think.

I don't think this is an issue of CONFIG_STACKPROTECTOR + CONFIG_SMP
booted on UP machine as it only happens with appended dtb it seems.

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 17:01           ` Tony Lindgren
@ 2020-02-07 20:20             ` Arthur D.
  -1 siblings, 0 replies; 18+ messages in thread
From: Arthur D. @ 2020-02-07 20:20 UTC (permalink / raw)
  To: Merlijn Wajer, Tony Lindgren
  Cc: Kees Cook, Nicolas Pitre, Russell King, linux-omap,
	Ivaylo Dimitrov, H. Nikolaus Schaller, linux-arm-kernel,
	Aaro Koskinen

Hi.

I was able to build linux-5.5 and run it on N900 with no problems.
Even WiFi works, mmc0 is in place too. It seems you're doing something
wrong.

Were you able to build linux-5.1 with your scripts and run it on the
phone? I mean the pure linux-5.1 without configs and changes done
in https://github.com/maemo-leste/n9xx-linux.

BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
omap2plus_defconfig.

--
Best regards, Spinal

> * Tony Lindgren <tony@atomide.com> [200207 16:54]:
>> * Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
>> > On 07/02/2020 17:36, Tony Lindgren wrote:
>> > >
>> > > Looks like there's a regression in general for appended dtb booting  
>> that
>> > > was caused by commit 9f671e58159a ("security: Create "kernel  
>> hardening"
>> > > config area"). With that change we now get STACKPROTECTOR_PER_TASK
>> > > selected by default with Kconfig.
>> > >
>> > > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
>> > > .config to see if that helps?
>> >
>> > Yes, this makes the kernel boot.
>>
>> OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
>> selected causes changes to include/generated/asm-offsets.h that
>> appended dtb booting does not like. But let's see what others
>> think.
>
> I don't think this is an issue of CONFIG_STACKPROTECTOR + CONFIG_SMP
> booted on UP machine as it only happens with appended dtb it seems.
>
> Regards,
>
> Tony

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-07 20:20             ` Arthur D.
  0 siblings, 0 replies; 18+ messages in thread
From: Arthur D. @ 2020-02-07 20:20 UTC (permalink / raw)
  To: Merlijn Wajer, Tony Lindgren
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Aaro Koskinen, Russell King, linux-omap, linux-arm-kernel

Hi.

I was able to build linux-5.5 and run it on N900 with no problems.
Even WiFi works, mmc0 is in place too. It seems you're doing something
wrong.

Were you able to build linux-5.1 with your scripts and run it on the
phone? I mean the pure linux-5.1 without configs and changes done
in https://github.com/maemo-leste/n9xx-linux.

BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
omap2plus_defconfig.

--
Best regards, Spinal

> * Tony Lindgren <tony@atomide.com> [200207 16:54]:
>> * Merlijn Wajer <merlijn@wizzup.org> [200207 16:47]:
>> > On 07/02/2020 17:36, Tony Lindgren wrote:
>> > >
>> > > Looks like there's a regression in general for appended dtb booting  
>> that
>> > > was caused by commit 9f671e58159a ("security: Create "kernel  
>> hardening"
>> > > config area"). With that change we now get STACKPROTECTOR_PER_TASK
>> > > selected by default with Kconfig.
>> > >
>> > > Merlijn, care to try to disable STACKPROTECTOR_PER_TASK in your
>> > > .config to see if that helps?
>> >
>> > Yes, this makes the kernel boot.
>>
>> OK good to hear. My guess is that having STACKPROTECTOR_PER_TASK
>> selected causes changes to include/generated/asm-offsets.h that
>> appended dtb booting does not like. But let's see what others
>> think.
>
> I don't think this is an issue of CONFIG_STACKPROTECTOR + CONFIG_SMP
> booted on UP machine as it only happens with appended dtb it seems.
>
> Regards,
>
> Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-07 20:20             ` Arthur D.
@ 2020-02-08  1:49               ` Merlijn Wajer
  -1 siblings, 0 replies; 18+ messages in thread
From: Merlijn Wajer @ 2020-02-08  1:49 UTC (permalink / raw)
  To: Arthur D., Tony Lindgren
  Cc: Kees Cook, Nicolas Pitre, Russell King, linux-omap,
	Ivaylo Dimitrov, H. Nikolaus Schaller, linux-arm-kernel,
	Aaro Koskinen


[-- Attachment #1.1: Type: text/plain, Size: 1163 bytes --]

Hi,

On 07/02/2020 21:20, Arthur D. wrote:
> Hi.
> 
> I was able to build linux-5.5 and run it on N900 with no problems.
> Even WiFi works, mmc0 is in place too. It seems you're doing something
> wrong.

Well, I didn't try mmc0 on 5.5 (since it was also non-booting due to
issue below), so I will have to try that this weekend. The steps I
applied to build either kernels (5.1 with our patches, 5.4.18 and 5.5.2
are identical, except for the defconfig for our 5.1 branch)

> Were you able to build linux-5.1 with your scripts and run it on the
> phone? I mean the pure linux-5.1 without configs and changes done
> in https://github.com/maemo-leste/n9xx-linux.
> 
> BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
> omap2plus_defconfig.

Well, I can assure you it was turned on on my system after a
omap2plus_defconfig. I do run Gentoo Hardened on my daily systems, so
perhaps that somehow makes a difference in what defconfig is picked.

Either way - the option is turned on by default after I make
omap2plus_defconfig, and it breaks appended DTB loading, so I hope we
can look at fixing that.

Cheers,
Merlijn


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-08  1:49               ` Merlijn Wajer
  0 siblings, 0 replies; 18+ messages in thread
From: Merlijn Wajer @ 2020-02-08  1:49 UTC (permalink / raw)
  To: Arthur D., Tony Lindgren
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Aaro Koskinen, Russell King, linux-omap, linux-arm-kernel


[-- Attachment #1.1.1: Type: text/plain, Size: 1163 bytes --]

Hi,

On 07/02/2020 21:20, Arthur D. wrote:
> Hi.
> 
> I was able to build linux-5.5 and run it on N900 with no problems.
> Even WiFi works, mmc0 is in place too. It seems you're doing something
> wrong.

Well, I didn't try mmc0 on 5.5 (since it was also non-booting due to
issue below), so I will have to try that this weekend. The steps I
applied to build either kernels (5.1 with our patches, 5.4.18 and 5.5.2
are identical, except for the defconfig for our 5.1 branch)

> Were you able to build linux-5.1 with your scripts and run it on the
> phone? I mean the pure linux-5.1 without configs and changes done
> in https://github.com/maemo-leste/n9xx-linux.
> 
> BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
> omap2plus_defconfig.

Well, I can assure you it was turned on on my system after a
omap2plus_defconfig. I do run Gentoo Hardened on my daily systems, so
perhaps that somehow makes a difference in what defconfig is picked.

Either way - the option is turned on by default after I make
omap2plus_defconfig, and it breaks appended DTB loading, so I hope we
can look at fixing that.

Cheers,
Merlijn


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-08  1:49               ` Merlijn Wajer
@ 2020-02-13 21:33                 ` Ard Biesheuvel
  -1 siblings, 0 replies; 18+ messages in thread
From: Ard Biesheuvel @ 2020-02-13 21:33 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Arthur D.,
	Tony Lindgren, Ivaylo Dimitrov, Kees Cook, Nicolas Pitre,
	H. Nikolaus Schaller, Aaro Koskinen, Russell King, linux-omap,
	linux-arm-kernel

On Sat, 8 Feb 2020 at 02:48, Merlijn Wajer <merlijn@wizzup.org> wrote:
>
> Hi,
>
> On 07/02/2020 21:20, Arthur D. wrote:
> > Hi.
> >
> > I was able to build linux-5.5 and run it on N900 with no problems.
> > Even WiFi works, mmc0 is in place too. It seems you're doing something
> > wrong.
>
> Well, I didn't try mmc0 on 5.5 (since it was also non-booting due to
> issue below), so I will have to try that this weekend. The steps I
> applied to build either kernels (5.1 with our patches, 5.4.18 and 5.5.2
> are identical, except for the defconfig for our 5.1 branch)
>
> > Were you able to build linux-5.1 with your scripts and run it on the
> > phone? I mean the pure linux-5.1 without configs and changes done
> > in https://github.com/maemo-leste/n9xx-linux.
> >
> > BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
> > omap2plus_defconfig.
>
> Well, I can assure you it was turned on on my system after a
> omap2plus_defconfig. I do run Gentoo Hardened on my daily systems, so
> perhaps that somehow makes a difference in what defconfig is picked.
>
> Either way - the option is turned on by default after I make
> omap2plus_defconfig, and it breaks appended DTB loading, so I hope we
> can look at fixing that.
>

The STACKPROTECTOR_PER_TASK Kconfig option is only selectable if the
prerequisite GCC headers are found on your system which are needed to
build GCC plugins.

Is there any way you can enable early serial output one one of these
boards, to see if you are making it through the decompressor all the
way into the kernel?

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-13 21:33                 ` Ard Biesheuvel
  0 siblings, 0 replies; 18+ messages in thread
From: Ard Biesheuvel @ 2020-02-13 21:33 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, Tony Lindgren,
	H. Nikolaus Schaller, Aaro Koskinen, Russell King, linux-omap,
	Arthur D.,
	linux-arm-kernel

On Sat, 8 Feb 2020 at 02:48, Merlijn Wajer <merlijn@wizzup.org> wrote:
>
> Hi,
>
> On 07/02/2020 21:20, Arthur D. wrote:
> > Hi.
> >
> > I was able to build linux-5.5 and run it on N900 with no problems.
> > Even WiFi works, mmc0 is in place too. It seems you're doing something
> > wrong.
>
> Well, I didn't try mmc0 on 5.5 (since it was also non-booting due to
> issue below), so I will have to try that this weekend. The steps I
> applied to build either kernels (5.1 with our patches, 5.4.18 and 5.5.2
> are identical, except for the defconfig for our 5.1 branch)
>
> > Were you able to build linux-5.1 with your scripts and run it on the
> > phone? I mean the pure linux-5.1 without configs and changes done
> > in https://github.com/maemo-leste/n9xx-linux.
> >
> > BTW, I didn't find STACKPROTECTOR_PER_TASK option to be enabled in
> > omap2plus_defconfig.
>
> Well, I can assure you it was turned on on my system after a
> omap2plus_defconfig. I do run Gentoo Hardened on my daily systems, so
> perhaps that somehow makes a difference in what defconfig is picked.
>
> Either way - the option is turned on by default after I make
> omap2plus_defconfig, and it breaks appended DTB loading, so I hope we
> can look at fixing that.
>

The STACKPROTECTOR_PER_TASK Kconfig option is only selectable if the
prerequisite GCC headers are found on your system which are needed to
build GCC plugins.

Is there any way you can enable early serial output one one of these
boards, to see if you are making it through the decompressor all the
way into the kernel?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Nokia N900 on 5.4 and 5.5
  2020-02-13 21:33                 ` Ard Biesheuvel
@ 2020-02-13 21:44                   ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-13 21:44 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Merlijn Wajer, Arthur D.,
	Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Aaro Koskinen, Russell King, linux-omap, linux-arm-kernel

* Ard Biesheuvel <ard.biesheuvel@linaro.org> [200213 21:34]:
> Is there any way you can enable early serial output one one of these
> boards, to see if you are making it through the decompressor all the
> way into the kernel?

I was able to reproduce this on another board with appended dtb,
looks like uncompress happens fine but then nothing. Looking at
System.map the u-boot alignment warning Merlijn posted, pc is
somewhere very early in the kernel.

I can easily reproduce the issue now if you have something in mind
to try.

Regards,

Tony

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

* Re: Nokia N900 on 5.4 and 5.5
@ 2020-02-13 21:44                   ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2020-02-13 21:44 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Ivaylo Dimitrov, Kees Cook, Nicolas Pitre, H. Nikolaus Schaller,
	Merlijn Wajer, Aaro Koskinen, Russell King, linux-omap, Arthur D.,
	linux-arm-kernel

* Ard Biesheuvel <ard.biesheuvel@linaro.org> [200213 21:34]:
> Is there any way you can enable early serial output one one of these
> boards, to see if you are making it through the decompressor all the
> way into the kernel?

I was able to reproduce this on another board with appended dtb,
looks like uncompress happens fine but then nothing. Looking at
System.map the u-boot alignment warning Merlijn posted, pc is
somewhere very early in the kernel.

I can easily reproduce the issue now if you have something in mind
to try.

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-02-13 21:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-07 14:54 Nokia N900 on 5.4 and 5.5 Merlijn Wajer
2020-02-07 15:51 ` H. Nikolaus Schaller
2020-02-07 16:36   ` Tony Lindgren
2020-02-07 16:36     ` Tony Lindgren
2020-02-07 16:48     ` Merlijn Wajer
2020-02-07 16:48       ` Merlijn Wajer
2020-02-07 16:53       ` Tony Lindgren
2020-02-07 16:53         ` Tony Lindgren
2020-02-07 17:01         ` Tony Lindgren
2020-02-07 17:01           ` Tony Lindgren
2020-02-07 20:20           ` Arthur D.
2020-02-07 20:20             ` Arthur D.
2020-02-08  1:49             ` Merlijn Wajer
2020-02-08  1:49               ` Merlijn Wajer
2020-02-13 21:33               ` Ard Biesheuvel
2020-02-13 21:33                 ` Ard Biesheuvel
2020-02-13 21:44                 ` Tony Lindgren
2020-02-13 21:44                   ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.