Re: n950: mmc fails to work, omap_hsmmc 480b4000.mmc: RX DMA channel request failed ? was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! > Then I was (finally!) able to run dmesg, and that tells me: > > [0.816040] mousedev: PS/2 mouse device common for all mice > [0.817657] input: TWL4030 Keypad as > /devices/platform/6800.ocp/4807.i2c/i2c-0/0-0048/4807.i2c:twl@48:keypad/input/input0 > [0.820800] i2c

Re: n950: mmc fails to work, omap_hsmmc 480b4000.mmc: RX DMA channel request failed ? was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! > Then I was (finally!) able to run dmesg, and that tells me: > > [0.816040] mousedev: PS/2 mouse device common for all mice > [0.817657] input: TWL4030 Keypad as > /devices/platform/6800.ocp/4807.i2c/i2c-0/0-0048/4807.i2c:twl@48:keypad/input/input0 > [0.820800] i2c

n950: mmc fails to work, omap_hsmmc 480b4000.mmc: RX DMA channel request failed ? was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! I was able to setup nfsroot, and boot postmarketos (with root read/only, but that's good enough for debugging). Then I was (finally!) able to run dmesg, and that tells me: [0.816040] mousedev: PS/2 mouse device common for all mice [0.817657] input: TWL4030 Keypad as

n950: mmc fails to work, omap_hsmmc 480b4000.mmc: RX DMA channel request failed ? was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! I was able to setup nfsroot, and boot postmarketos (with root read/only, but that's good enough for debugging). Then I was (finally!) able to run dmesg, and that tells me: [0.816040] mousedev: PS/2 mouse device common for all mice [0.817657] input: TWL4030 Keypad as

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! > > I got "uncompressing Linux 4.13" on serial console now, debug LEDs > > blinking, and if I use a flashlight, I see output on the screen, too. > > > > (What do I need to do to get the backlight working?) > > Glad you got it working :) For backlight you can add this > in

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-30 Thread Pavel Machek
Hi! > > I got "uncompressing Linux 4.13" on serial console now, debug LEDs > > blinking, and if I use a flashlight, I see output on the screen, too. > > > > (What do I need to do to get the backlight working?) > > Glad you got it working :) For backlight you can add this > in

Backlight on Nokia N900 was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Pavel Machek
Hi! > > I got "uncompressing Linux 4.13" on serial console now, debug LEDs > > blinking, and if I use a flashlight, I see output on the screen, too. > > > > (What do I need to do to get the backlight working?) > > Glad you got it working :) For backlight you can add this > in

Backlight on Nokia N900 was Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Pavel Machek
Hi! > > I got "uncompressing Linux 4.13" on serial console now, debug LEDs > > blinking, and if I use a flashlight, I see output on the screen, too. > > > > (What do I need to do to get the backlight working?) > > Glad you got it working :) For backlight you can add this > in

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Filip Matijević
> If someone knows how to fix the backlight, it would still be useful. In panel-dsi-cm.c it's set to maximum with dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff); Sebastian suggested the same but used 100 instead of 0xff, which might be a bit too low. You can also add msleep(1000) after

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Filip Matijević
> If someone knows how to fix the backlight, it would still be useful. In panel-dsi-cm.c it's set to maximum with dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff); Sebastian suggested the same but used 100 instead of 0xff, which might be a bit too low. You can also add msleep(1000) after

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Pavel Machek
Hi! So I got it to work; here are my notes from debugging. I put them on https://elinux.org/N950 , too. If someone knows how to fix the backlight, it would still be useful. Best regards, Pavel

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-27 Thread Pavel Machek
Hi! So I got it to work; here are my notes from debugging. I put them on https://elinux.org/N950 , too. If someone knows how to fix the backlight, it would still be useful. Best regards, Pavel

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! > > > Glad you got it working :) For backlight you can add this > > > in drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c: > > > > > > add the following code at the end of dsicm_probe: > > > > You did not actually include code to paste into panel-dsi-cm, can you > > try a again? > > I added

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! > > > Glad you got it working :) For backlight you can add this > > > in drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c: > > > > > > add the following code at the end of dsicm_probe: > > > > You did not actually include code to paste into panel-dsi-cm, can you > > try a again? > > I added

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Sebastian Reichel
Hi, On Thu, Oct 26, 2017 at 11:57:34AM +0200, Pavel Machek wrote: > On Thu 2017-10-26 11:31:15, Sebastian Reichel wrote: > > Hi, > > > > On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > > > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > > > * Pavel Machek

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Sebastian Reichel
Hi, On Thu, Oct 26, 2017 at 11:57:34AM +0200, Pavel Machek wrote: > On Thu 2017-10-26 11:31:15, Sebastian Reichel wrote: > > Hi, > > > > On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > > > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > > > * Pavel Machek [171025 13:36]: >

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 11:31:15, Sebastian Reichel wrote: > Hi, > > On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > > * Pavel Machek [171025 13:36]: > > > > Hi! > > > > > > > > ...hardware should be identical.

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 11:31:15, Sebastian Reichel wrote: > Hi, > > On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > > * Pavel Machek [171025 13:36]: > > > > Hi! > > > > > > > > ...hardware should be identical. 3.5.3-nemo kernel

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 11:13:26, Pavel Machek wrote: > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > * Pavel Machek [171025 13:36]: > > > Hi! > > > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > > both. 4.13-rc2 with display and clock patches boots

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 11:13:26, Pavel Machek wrote: > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > * Pavel Machek [171025 13:36]: > > > Hi! > > > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > > both. 4.13-rc2 with display and clock patches boots on phone "S",

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Sebastian Reichel
Hi, On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > * Pavel Machek [171025 13:36]: > > > Hi! > > > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > > both. 4.13-rc2 with display and

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Sebastian Reichel
Hi, On Thu, Oct 26, 2017 at 11:13:26AM +0200, Pavel Machek wrote: > On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > > * Pavel Machek [171025 13:36]: > > > Hi! > > > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > > both. 4.13-rc2 with display and clock patches

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > * Pavel Machek [171025 13:36]: > > Hi! > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > * Pavel Machek [171025 13:36]: > > Hi! > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing is received

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing is received on serial port. > > > > There is some difference in the bootloaders: S's bootloader

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing is received on serial port. > > > > There is some difference in the bootloaders: S's bootloader

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! On Thu 2017-10-26 09:32:36, Pali Rohár wrote: > On Thursday 26 October 2017 09:27:59 Pavel Machek wrote: > > Hi! > > > > On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > > > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > >

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! On Thu 2017-10-26 09:32:36, Pali Rohár wrote: > On Thursday 26 October 2017 09:27:59 Pavel Machek wrote: > > Hi! > > > > On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > > > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > >

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Filip Matijević
On 10/26/2017 09:16 AM, Pavel Machek wrote: > "Uart pins not muxed in NOLO" would certainly explain my problems. In > 3.5.X, output works even in decompressor ("Uncompressing > kernel... done, booting linux"). IIRC bootloader passes some additional settings for gpio that kernel should apply (2.6

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Filip Matijević
On 10/26/2017 09:16 AM, Pavel Machek wrote: > "Uart pins not muxed in NOLO" would certainly explain my problems. In > 3.5.X, output works even in decompressor ("Uncompressing > kernel... done, booting linux"). IIRC bootloader passes some additional settings for gpio that kernel should apply (2.6

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pali Rohár
On Thursday 26 October 2017 09:27:59 Pavel Machek wrote: > Hi! > > On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > > > Last time I couldn't get output on serial I used

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pali Rohár
On Thursday 26 October 2017 09:27:59 Pavel Machek wrote: > Hi! > > On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > > > Last time I couldn't get output on serial I used

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > > Last time I couldn't get output on serial I used CONFIG_DEBUG_LL, > > > CONFIG_DEBUG_OMAP3UART3, CONFIG_EARLY_PRINTK... and

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
Hi! On Thu 2017-10-26 09:21:13, Pali Rohár wrote: > On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > > Last time I couldn't get output on serial I used CONFIG_DEBUG_LL, > > > CONFIG_DEBUG_OMAP3UART3, CONFIG_EARLY_PRINTK... and

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pali Rohár
On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > Last time I couldn't get output on serial I used CONFIG_DEBUG_LL, > > CONFIG_DEBUG_OMAP3UART3, CONFIG_EARLY_PRINTK... and ignore_loglevel > > earlyprintk kernel params to get output

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pali Rohár
On Thursday 26 October 2017 09:08:15 Pavel Machek wrote: > On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > > Last time I couldn't get output on serial I used CONFIG_DEBUG_LL, > > CONFIG_DEBUG_OMAP3UART3, CONFIG_EARLY_PRINTK... and ignore_loglevel > > earlyprintk kernel params to get output

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > * Pavel Machek [171025 13:36]: > > Hi! > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Wed 2017-10-25 14:28:07, Tony Lindgren wrote: > * Pavel Machek [171025 13:36]: > > Hi! > > > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > > both. 4.13-rc2 with display and clock patches boots on phone "S", but > > does not on phone "P"; nothing nothing is received

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > Hi Pavel, > > On 10/25/2017 10:34 PM, Pavel Machek wrote: > > 3.5.3-nemo kernel seems to work > > I did take a quick look at the board-rm680.c since there are some > conditional statements with regards to system revision but I didn't > notice

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Pavel Machek
On Thu 2017-10-26 08:25:02, Filip Matijević wrote: > Hi Pavel, > > On 10/25/2017 10:34 PM, Pavel Machek wrote: > > 3.5.3-nemo kernel seems to work > > I did take a quick look at the board-rm680.c since there are some > conditional statements with regards to system revision but I didn't > notice

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Filip Matijević
Hi Pavel, On 10/25/2017 10:34 PM, Pavel Machek wrote: > 3.5.3-nemo kernel seems to work I did take a quick look at the board-rm680.c since there are some conditional statements with regards to system revision but I didn't notice anything that might prevent it from booting. > If you have > any

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-26 Thread Filip Matijević
Hi Pavel, On 10/25/2017 10:34 PM, Pavel Machek wrote: > 3.5.3-nemo kernel seems to work I did take a quick look at the board-rm680.c since there are some conditional statements with regards to system revision but I didn't notice anything that might prevent it from booting. > If you have > any

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Aaro Koskinen
Hi, On Wed, Oct 25, 2017 at 02:28:07PM -0700, Tony Lindgren wrote: > Also try booting with mem=512M@0x8000 or 256M or 768M. Maybe the > memory is different size or partially broken? Yeah, some early N950s may have only 512 MB. A.

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Aaro Koskinen
Hi, On Wed, Oct 25, 2017 at 02:28:07PM -0700, Tony Lindgren wrote: > Also try booting with mem=512M@0x8000 or 256M or 768M. Maybe the > memory is different size or partially broken? Yeah, some early N950s may have only 512 MB. A.

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Tony Lindgren
* Pavel Machek [171025 13:36]: > Hi! > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > both. 4.13-rc2 with display and clock patches boots on phone "S", but > does not on phone "P"; nothing nothing is received on serial port. > > There is some difference in

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Tony Lindgren
* Pavel Machek [171025 13:36]: > Hi! > > ...hardware should be identical. 3.5.3-nemo kernel seems to work on > both. 4.13-rc2 with display and clock patches boots on phone "S", but > does not on phone "P"; nothing nothing is received on serial port. > > There is some difference in the

4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Pavel Machek
Hi! ...hardware should be identical. 3.5.3-nemo kernel seems to work on both. 4.13-rc2 with display and clock patches boots on phone "S", but does not on phone "P"; nothing nothing is received on serial port. There is some difference in the bootloaders: S's bootloader provides lots of debug

4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Pavel Machek
Hi! ...hardware should be identical. 3.5.3-nemo kernel seems to work on both. 4.13-rc2 with display and clock patches boots on phone "S", but does not on phone "P"; nothing nothing is received on serial port. There is some difference in the bootloaders: S's bootloader provides lots of debug