![]() |
2009-01-26
, 17:19
|
Posts: 607 |
Thanked: 296 times |
Joined on Jun 2008
@ Finland
|
#62
|
![]() |
2009-01-27
, 02:08
|
|
Posts: 17 |
Thanked: 5 times |
Joined on Jul 2008
@ Brno
|
#63
|
![]() |
2009-01-27
, 03:40
|
Posts: 12 |
Thanked: 1 time |
Joined on Apr 2008
|
#64
|
![]() |
2009-01-27
, 14:06
|
|
Posts: 1,671 |
Thanked: 11,478 times |
Joined on Jun 2008
@ Warsaw, Poland
|
#65
|
On IRC they say no wireless for 770 at this time. What is missing? A quick overview of the state of 770 wireless, which pieces (kernel, userspace, calibration).
![]() |
2009-01-27
, 17:46
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#66
|
#! /bin/sh /usr/local/sbin/kexec -l /boot/zImage "--append=root=1f03 rootfstype=jffs2 ro console=t chvt 1 || true killall5 -15 sleep 2 killall5 -9 umount -r /mnt/initfs umount -r / /usr/local/sbin/kexec -e
PID Uid VSZ Stat Command 1 root 1888 RW /bin/sh /sbin/init 2 2 root SWN [ksoftirqd/0] 3 root SW [watchdog/0] 4 root SW< [events/0] 5 root SW< [khelper] 6 root SW< [kthread] 14 root SW< [dvfs/0] 66 root SW< [kblockd/0] 67 root SW< [kseriod] 79 root SW< [OMAP McSPI/0] 86 root SW< [ksuspend_usbd] 89 root SW< [khubd] 113 root SW [pdflush] 114 root SW [pdflush] 115 root SW< [kswapd0] 116 root SW< [aio/0] 119 root SW< [mipid_esd] 238 root SW [mtdblockd] 280 root SW< [kondemand/0] 281 root SW< [kmmcd] 292 root SW< [krfcommd] 307 root SW< [mmcqd] 343 root SW< [mmcqd] 350 root 1072 SW< dsme -d -l syslog -v 4 -p /usr/lib/dsme/libstartup.so 358 root 804 SW /usr/bin/bme_RX-34 360 root 564 SW /usr/sbin/kicker 494 root SW< [cx3110x] 539 root 1960 RW ps
![]() |
2009-01-27
, 18:13
|
|
Posts: 1,671 |
Thanked: 11,478 times |
Joined on Jun 2008
@ Warsaw, Poland
|
#67
|
![]() |
2009-01-27
, 21:51
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#68
|
My experiment failed.
...
But because of the active kexec development since 2.6.21, I'm less-than-skeptical that patching a 2.6.21 kernel is the right way to go.
If Nokia is serious about minimal mid-term support of n8x0 hardware, they need to release the NoLo secondary code. Much time, energy and resources could be saved.
![]() |
2009-01-27
, 22:55
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#69
|
![]() |
2009-01-28
, 01:26
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#70
|
IMO you're too pesimistic. kexec was working on arm on other devices even with earlier kernels. I doubt there was any big development except keeping up with kernel changes. So you did expect success on first try?
Well, even if solca was luckier with recent kernel, it may still be something trivial or relatively easy. And even kexecing 2.6.21 from 2.6.27 is not much worse as long as diablo kernel runs and system boots.
It may be safer to run it right after boot, not at shutdown time. At boot time less hardware is initialized to unknown state. But anyway I tried similar experiment directly from linuxrc in initfs even before dsme bme etc is started but with same result, it hangs and powers off after some time.
would be really nice for many reasons but I'm not sure it is strictly needed and would do miracles. I doubt NOLO could load kernel from mmc (or jffs2) anyway. And BTW if linux kernel/kexec is too heavy one could always replace the kernel with something easier (like uboot?), linux kernel entry point is documented so one can start there.
Here are my speculations why it doesn't work with diablo 2.6.21 kernel:
- newer kexec userspace loader is incompatible with older kexec kernel code, going to earlier versions could help
- hardware is not initialized to same state so drivers in second kernel get confused, stripping drivers from first kernel could help. Also if kexec calls drivers in first kernel to stop the hardware before jumping into second kernel there may be some bugs there since this may not be used in normal situation at all. Or it may stop too much, one example is video driver, framebuffer is initialized in bootloader and linux does not mess with it too much at startup time to not to disturb boot logo but the driver shutdown code may turn off too much.
But since solca got success with recent kernel we may be quite lucky and it is not so bad. My first random guess is the DSP since it is most probably not touched by recent kernels at all (unlike with 2.6.21). At least I think dspgateway is not present/enabled/working in recent kernels (?). But it can be anything else too.
Anyway, the point of my post is that there is a lot of ideas to try before giving up.
As for watchdog, there should be plenty of time. I takes long time before it powers itself off. IIRC the retu watchdog is set to ~60 seconds and is kicked every 5 seconds or so.
$ lshal | grep "Internal keyboard"
If yes, can you paste the Xorg.0.log ?