Active Topics

 


Reply
Thread Tools
filip.pz's Avatar
Posts: 108 | Thanked: 579 times | Joined on Feb 2013 @ Požega, Croatia
#11
Back to business...

Originally Posted by wicket View Post
Some device tree work has been mainlined within the last couple of years:

https://git.kernel.org/cgit/linux/ke...s/omap3-n9.dts
https://git.kernel.org/cgit/linux/ke...omap3-n950.dts
https://git.kernel.org/cgit/linux/ke...3-n950-n9.dtsi

This commit seems to imply that the mainline kernel is actually bootable:

https://git.kernel.org/cgit/linux/ke...737887fea9d46d
Does anybody know Aaro? Seems that he would be an excellent addition to this effort.
 

The Following 4 Users Say Thank You to filip.pz For This Useful Post:
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#12
Perhaps catch his attention through linkedin ?
https://fi.linkedin.com/pub/aaro-koskinen/48/73b/ab8

Last edited by nieldk; 2015-09-17 at 08:12. Reason: Typo
 

The Following 3 Users Say Thank You to nieldk For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#13
Originally Posted by wicket View Post
Some device tree work has been mainlined within the last couple of years:

https://git.kernel.org/cgit/linux/ke...s/omap3-n9.dts
https://git.kernel.org/cgit/linux/ke...omap3-n950.dts
https://git.kernel.org/cgit/linux/ke...3-n950-n9.dtsi

This commit seems to imply that the mainline kernel is actually bootable:

https://git.kernel.org/cgit/linux/ke...737887fea9d46d

I think a good starting point would be to build a kernel from mainline and see if it boots on an N9 or N950. I would test it against either Nemo or Sailfish as it's more likely to be compatible with one of those rather than Harmattan. Of course you could also bootstrap a Debian system and try that.
This means good news!

I'll update my scripts to install Debian onto N950 to support N9 too. I'll push them for review here. If they're correct, I'll test it on my N950 and ask peterleinchen to do it on his N9.

But, which config will we use for building mainline kernel for the N9/N950? Maybe we could copy the config from the 3.5.3?

But, what about kbd on N9 & Debian?

Added post #5 to bibliography. Besides, I'd love to read some good introduction to DeviceTree. As for know I know that it exists.

I have another idea to boost this project: a donation pool. Those who can't help directly could pledge a donation for this project. It would be disposed when the project succeeds. But I have several apprehensions:
1. Won't this deprive us of any possible helping hands?
2. Who should be eligible to get a part of the donations?

I created a template but not pushing anything to the public yet.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2015-09-17 at 11:35.
 

The Following 6 Users Say Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#14
Originally Posted by nieldk View Post
Perhaps catch his attention through linkedin ?
https://fi.linkedin.com/pub/aaro-koskinen/48/73b/ab8
Or maybe mail him directly? The address is available here: https://git.kernel.org/cgit/linux/ke...737887fea9d46d
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
filip.pz's Avatar
Posts: 108 | Thanked: 579 times | Joined on Feb 2013 @ Požega, Croatia
#15
As first step, I tried building 4.3.0-rc1 kernel and boot Nemomobile (with Easy Boot) on it - but a few second into the boot, N9 just turns off (the same thing happened with 3.14.0). I didin't expect much (working USB, maybe) but this is still disappointing.

I used old "mer" defconfig for N9 updated with make olddefconfig. A few manual tweaks/bits were required as described here: http://elinux.org/N900#DT_Kernel_Compilation, and compilation was done using sb2.

I'm unsure what can be used to debug this kind of behaviour apart from using working serial console.

Has anybody else tried building/booting it?
 

The Following 3 Users Say Thank You to filip.pz For This Useful Post:
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#16
Originally Posted by filip.pz View Post
As first step, I tried building 4.3.0-rc1 kernel and boot Nemomobile (with Easy Boot) on it - but a few second into the boot, N9 just turns off (the same thing happened with 3.14.0). I didin't expect much (working USB, maybe) but this is still disappointing.

I used old "mer" defconfig for N9 updated with make olddefconfig. A few manual tweaks/bits were required as described here: http://elinux.org/N900#DT_Kernel_Compilation, and compilation was done using sb2.

I'm unsure what can be used to debug this kind of behaviour apart from using working serial console.

Has anybody else tried building/booting it?
Hmmm that reminds that I need to create that serial connection to N9
No, unfortunately, at this early stage, I think serial console is only option.
I tried to enable USB serial, in kernel, but obviously that failed.
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#17
Well, I haven't build anything yet. I was waiting for some replies about the config to use. (see #13). And I won't be able to try anything for a week.

I'd see one theoretical scenario. Can we stop the device from rebooting if boot fails? Can we get some boot log on screen (on N900 one did this by adding "modprobe fbcon" at the beginning of /sbin/preinit)

If yes, then we could get some information where the boot fails.

/edit: Filip, did you append the device tree (.dtb) and enable the option in the kernel config? See "Device tree for dummies" for basic information. I still don't know how to enable building the .dts and .dtsi to .dtb, though.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2015-09-19 at 20:12.
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#18
Originally Posted by filip.pz View Post
I'm unsure what can be used to debug this kind of behaviour apart from using working serial console.
That's the usual way to go. Having said that, Fremantle (and I think Harmattan too) provides a mechanism for logging kernel messages to one of the mtd partitions on the NAND flash. I haven't looked into how this works but it might be possible to use this to log the kernel messages during boot up in order to debug the boot process without a serial console.

Originally Posted by marmistrz View Post
Well, I haven't build anything yet. I was waiting for some replies about the config to use. (see #13).
Unless Filip has a better suggestion, I would just take the config file from 3.5.3 as you suggested. The config options have changed since then but it should serve as a starting point. When you build the kernel it will prompt you set any new options.

Originally Posted by marmistrz View Post
I still don't know how to enable building the .dts and .dtsi to .dtb, though.
The N900 DT Compilation instructions should help you with that.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 2 Users Say Thank You to wicket For This Useful Post:
filip.pz's Avatar
Posts: 108 | Thanked: 579 times | Joined on Feb 2013 @ Požega, Croatia
#19
I managed to get logs http://pastie.org/10433050, but I'm AFK right now. If anyone sees something obvious just let me know. I'll be able to continue later today.
 

The Following 3 Users Say Thank You to filip.pz For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#20
Originally Posted by filip.pz View Post
I managed to get logs http://pastie.org/10433050, but I'm AFK right now. If anyone sees something obvious just let me know. I'll be able to continue later today.
It looks like switch_root is being called with incompatible arguments, probably due to the previous mount errors.

Make sure you have CONFIG_BLK_DEV_LOOP enabled. That should hopefully fix the /dev/loop0 errors.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 2 Users Say Thank You to wicket For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:46.