Active Topics

 


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#61
So,

finally found enough time to sit back and try booting the upstream kernel with DebiaN900 on N950.

This is the ubiboot.log (or rather its tail)

Code:
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/1
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/2
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/3
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/4
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/5
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/6
Oct 12 18:51:52 (none) user.notice root: Umounting /mnt/7
Oct 12 18:51:52 (none) user.notice root: Display Text:   Try 1 (0)
Oct 12 18:51:53 (none) user.notice root: Display Text:   Partitons exported successifully via USB
Oct 12 18:51:53 (none) user.notice root: Display Text:   Configured 192.168.2.15 on USB
Oct 12 18:51:53 (none) user.notice root: Not starting DHCP server (mini)
Oct 12 18:51:53 (none) user.notice root: Display Text:   Not starting DHCP server (mini)
Oct 12 18:51:53 (none) user.notice root: Starting TELNET server
Oct 12 18:51:53 (none) user.notice root: Display Text:   Starting TELNET server
Oct 12 18:51:53 (none) user.notice root: Not starting SSH server (mini)
Oct 12 18:51:53 (none) user.notice root: Display Text:   Not starting SSH server (mini)
Oct 12 18:52:36 (none) user.notice root: Exit maintanance mode
Oct 12 18:52:36 (none) user.notice root: Mounted /dev/mmcblk0p1 on /mnt/1 as VFAT
Oct 12 18:52:36 (none) user.notice root: Mounted /dev/mmcblk0p2 on /mnt/2 as EXT4
Oct 12 18:52:36 (none) user.notice root: Mounted /dev/mmcblk0p3 on /mnt/3 as EXT4
Oct 12 18:52:37 (none) user.notice root: Mounted /dev/mmcblk0p4 on /mnt/4 as EXT4
Oct 12 18:52:37 (none) user.notice root: Could not mount /dev/mmcblk0p5 on /mnt/5
Oct 12 18:52:37 (none) user.notice root: Could not mount /dev/mmcblk0p6 on /mnt/6
Oct 12 18:52:37 (none) user.notice root: Could not mount /dev/mmcblk0p7 on /mnt/7
Oct 12 18:52:38 (none) user.notice root: Starting menu launcher
Oct 12 18:52:38 (none) user.notice root: Reached end of init!
Oct 12 18:52:38 (none) user.notice root: Loading animation control file
Oct 12 18:52:38 (none) user.notice root: touchdevice: /dev/input/event3
Oct 12 18:52:38 (none) user.notice root: O_COMMAND_LINE:  init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config
Oct 12 18:52:38 (none) user.notice root: Started animated OS selection menu
Oct 12 18:52:50 (none) user.notice root: Selecting defaults due to timeout in main menu
Oct 12 18:52:50 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix
Oct 12 18:52:52 (none) user.notice root: Loading kernel /boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix
Oct 12 18:52:52 (none) user.notice root: kexec_load() successful
Oct 12 18:52:52 (none) user.notice root: Restarting to selected OS
Oct 12 18:52:52 (none) user.notice root: Saving ubiboot log files

Oct 15 18:33:43 (none) syslog.info syslogd started: BusyBox v1.19.4
Oct 15 18:33:43 (none) user.notice root: N9 ubiboot ver. 0.3.6
Oct 15 18:33:43 (none) user.notice root: kernel Linux (none) 2.6.32.54-ubiboot-02-b #3 PREEMPT Fri Jan 3 13:32:27 EET 2014 armv7l GNU/Linux
Oct 15 18:33:43 (none) user.notice root: Rootfs build info: ROOTFS created by juice@osiris on Fri Jan  3 13:32:12 EET 2014 (svn rev. 79M)
Oct 15 18:33:43 (none) user.notice root: Mounted /dev/mmcblk0p1 on /mnt/1 as VFAT
Oct 15 18:33:43 (none) user.notice root: Mounted /dev/mmcblk0p2 on /mnt/2 as EXT4
Oct 15 18:33:43 (none) user.notice root: Mounted /dev/mmcblk0p3 on /mnt/3 as EXT4
Oct 15 18:33:43 (none) user.notice root: Mounted /dev/mmcblk0p4 on /mnt/4 as EXT4
Oct 15 18:33:44 (none) user.notice root: Could not mount /dev/mmcblk0p5 on /mnt/5
Oct 15 18:33:44 (none) user.notice root: Could not mount /dev/mmcblk0p6 on /mnt/6
Oct 15 18:33:44 (none) user.notice root: Could not mount /dev/mmcblk0p7 on /mnt/7
Oct 15 18:33:44 (none) user.notice root: Found /mnt/1/boot/ubiboot.conf
Oct 15 18:33:44 (none) user.notice root: Copied archive /mnt/1/boot/ubiboot-02.menus.cpio (md5sum=d1e1a6eb6d877f53a01e946a5ccf5017)
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/1
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/2
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/3
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/4
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/5
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/6
Oct 15 18:33:44 (none) user.notice root: Umounting /mnt/7
Oct 15 18:33:44 (none) user.notice root: Config version is 3
Oct 15 18:33:44 (none) user.notice root: Archive cpio version is 3
Oct 15 18:33:44 (none) user.notice root: Archive cpio build info: CPIO packed by juice@osiris on Tue Oct 29 23:54:26 EET 2013 (svn rev. 65)
Oct 15 18:33:44 (none) user.notice root: bootreason: sw_rst
Oct 15 18:33:44 (none) user.notice root: bootmode: normal
Oct 15 18:33:44 (none) user.notice root: Mounted /dev/mmcblk0p1 on /mnt/1 as VFAT
Oct 15 18:33:44 (none) user.notice root: Mounted /dev/mmcblk0p2 on /mnt/2 as EXT4
Oct 15 18:33:44 (none) user.notice root: Mounted /dev/mmcblk0p3 on /mnt/3 as EXT4
Oct 15 18:33:44 (none) user.notice root: Mounted /dev/mmcblk0p4 on /mnt/4 as EXT4
Oct 15 18:33:44 (none) user.notice root: Could not mount /dev/mmcblk0p5 on /mnt/5
Oct 15 18:33:44 (none) user.notice root: Could not mount /dev/mmcblk0p6 on /mnt/6
Oct 15 18:33:45 (none) user.notice root: Could not mount /dev/mmcblk0p7 on /mnt/7
Oct 15 18:33:46 (none) user.notice root: Started watchdog kicker
Oct 15 18:33:46 (none) user.notice root: Starting menu launcher
Oct 15 18:33:46 (none) user.notice root: Reached end of init!
Oct 15 18:33:46 (none) user.notice root: Loading animation control file
Oct 15 18:33:46 (none) user.notice root: touchdevice: /dev/input/event3
Oct 15 18:33:46 (none) user.notice root: O_COMMAND_LINE:  init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config
Oct 15 18:33:46 (none) user.notice root: Started animated OS selection menu
Oct 15 18:33:48 (none) user.notice root: Selected second level menu for OS5
Oct 15 18:33:49 (none) user.notice root: Autobooting OS5 with kernel line 1
Oct 15 18:33:49 (none) user.notice root: Selecting Debian OS, running kernel /boot/zImage-4.3.0-rc2-gd4a748a
Oct 15 18:33:50 (none) user.notice root: Appending options to CMDLINE: rootwait ro console=tty0 vram=12M
Oct 15 18:33:50 (none) user.notice root: Cannot load Debian kernel /boot/zImage-4.3.0-rc2-gd4a748a
Oct 15 18:33:50 (none) user.notice root: Boot OS/kernel selection failed
Oct 15 18:33:50 (none) user.notice root: Saving ubiboot log files
And my ubiboot.conf
http://paste.ubuntu.com/12792793/

Notice one thing: although I specify partition 4 in ubiboot.conf (Debian is on /dev/mmcblk0p4), the log states

Code:
root=/dev/mmcblk0p2
which is the Harmattan rootfs.

Still, I have absolutely no idea why it happens. Or maybe it's the default command line? Do you have any ideas?
__________________
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-10-15 at 20:49.
 

The Following 4 Users Say Thank You to marmistrz For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#62
Hi marmistrz,
yes 'ubiboot' is a big thing with some challenges.
As second kernel needs to be loaded from first kernel (with his root) from any location on any partition you need to specify the full partition path.
You gave full path inside your new rootfs only (/boot/kernel.name)
but you need to specify the partition also. And as juiceme (HUGE thanks to him, cannot stop to do so ) created it like OS names instead partition numbers, you will have to specify
/boot/Debian/boot/kernel.name
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 5 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#63
So the path should be in general:

Code:
/boot/$OS_NAME/boot/$KERNEL_NAME
shouldn't it?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#64
Yes, if you got the new kernel to load in the new partition under '/boot'.
(default ubiboot assumption)

You may have that kernel anywhere. On any partition on any place.
But that mount points '/boot/$(OSNAME)/' should make it easier for not so experienced people (and make it harder for people like you ).
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post:
filip.pz's Avatar
Posts: 108 | Thanked: 579 times | Joined on Feb 2013 @ Požega, Croatia
#65
Working PVR drivers under 4.3.0-rc5:
https://www.dropbox.com/s/y6fnt79r6x..._2255.JPG?dl=0

I almost forgot how great glacier looks

As expected, some hacks are required: I had to change ubiboot parameters, and issue fbset in userspace, but the biggest obstacle seems problematic display panel drivers. I get warnings from kernel and "Framedone not received for 250ms!" after those warnings. I'll have to spend some more time to figure this one out...
 

The Following 11 Users Say Thank You to filip.pz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#66
Originally Posted by filip.pz View Post
Working PVR drivers under 4.3.0-rc5:
https://www.dropbox.com/s/y6fnt79r6x..._2255.JPG?dl=0

I almost forgot how great glacier looks

As expected, some hacks are required: I had to change ubiboot parameters, and issue fbset in userspace, but the biggest obstacle seems problematic display panel drivers. I get warnings from kernel and "Framedone not received for 250ms!" after those warnings. I'll have to spend some more time to figure this one out...
Hooray!
_______________

On the other hand, I've just managed to boot the stock kernel on Debian (sort of). I mean: the system starts up, shows a black screen and dies. But it's still progress anyway.

So without a possibility of logging without hardware hacks I won't be able to do anything further. But, Filip, is your PVR ready to show me the boot log?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 5 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
#67
Originally Posted by marmistrz View Post
On the other hand, I've just managed to boot the stock kernel on Debian (sort of). I mean: the system starts up, shows a black screen and dies. But it's still progress anyway.
In my experience only thing that causes N9 to "die" is the twl5031 (drivers are called twl4030..., and it's not really twl5031 but seems to be some custom made part with ACI/ECI) It does so when twl4030-wdt watchdog doesn't get kicked for 30s (see here: http://talk.maemo.org/showpost.php?p=1485818&postcount=20). You can't use flasher to disable that, because ubiboot starts kicking both watchdogs (essentially starting them if flasher had set them not to be started automatically) - so something has to kick them until shutdown.

Originally Posted by marmistrz View Post
So without a possibility of logging without hardware hacks I won't be able to do anything further. But, Filip, is your PVR ready to show me the boot log?
If your are running "the stock kernel" (2.6 I presume) then the kernel is not to blame here - as we know that kernel is working OK. I would suggest you try the mentioned watchdog "thing" which may be enough to get some logs saved.

If you're interested I can post details on how to make serial cable without opening/damaging the device (that small cardboard piece with two wires sticking out in pictures is just inserted instead of SIM tray). - that might save you a lot of trouble.

Here is Nemo booting 4.3.0-rc5 captured with it: http://pastebin.com/raw.php?i=mZkmscN9 - as you see it's quite "informative"
 

The Following 4 Users Say Thank You to filip.pz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#68
There's one problem: the N950 doesn't have a SIM tray! One simply pushes the card inside the slot (and it's and ordinary SIM slot, just like the N900 one, not microSIM)

I'm not using 2.6. I'm using 4.3 from the start.
__________________
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
#69
Originally Posted by marmistrz View Post
There's one problem: the N950 doesn't have a SIM tray! One simply pushes the card inside the slot (and it's and ordinary SIM slot, just like the N900 one, not microSIM)

I'm not using 2.6. I'm using 4.3 from the start.
Hm, I wonder if anyone knows where FBUS TX pin is on N950 (we need just that one, second is GND that can be found everywhere)? In any case on N950 dispaly panel is not the same as the one on N9 so I doubt that anything related to display would work with the patches I've made. I'll try to see if we can get USB to work and bring SSH into the game over USB. In the meantime you could try using 3.5 while we get 4.3 into shape.
 

The Following 4 Users Say Thank You to filip.pz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#70
And what about redirecting dmesg to a file? I can freely access the filesystem after the boot fails. This may be easier to do. Of course SSH is a much better way out, but this would be a temporary measure

/edit: found this: http://unix.stackexchange.com/questi...ed-into-a-file
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

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


 
Forum Jump


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