Reply
Thread Tools
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#21
Originally Posted by tama View Post
The tar in /temp-tar/ is GNU tar.
yes, just make sure you are actually using it when copying :-)
Originally Posted by tama View Post
Should the /dev/mmcblk0p2 be mounted to /media/mmc2 before the last reboot (for boot from patition 2) or not ?
No, anything you mounted by hand should be unmounted before reboot.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#22
While doing /tar-temp/bin/tar ...., xterm died. dmesg has an error
Code:
Out of memory: kill process 1195 (osso-xterm) score 4586 and and children.
Out of memory: Killed process 1261 (sh)
/opt has only following dirs (bin dev etc lib lost+found mnt opt srv sys tmp usr var) where as /floppy has many more. So looks like tar didn't do it job fully. It is breaking somewhere in 'usr' dir as that appears last in 'ls -altr /opt/*'.

Or is there any solution to out of memory ?

EDIT:

Now my n770 is continuously rebooting. It asks fro for from where to boot, I select flash then it shows white screen and then reboots and ask for where to boot from and is in continuous loop. Looks like I screwed something. I will reflash it with original 49.2 image and start again :-(

Last edited by tama; 2007-07-26 at 17:33.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#23
Fanoush,

I flashed with original 49.2 image and it started boot fine. I re did everything (applications etc). I am currently cloning the system using /tar-temp/. I did skip initfs though.

Can I do the initfs
Code:
	# tar zxvf initfs_flasher.tgz
	# cd initfs_flasher/
	# ./initfs_flash
after I did cloning ?

Thanks.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#24
Fanoush,

My tar died again. Here is dump of dmesg
Code:
ering down
[ 3200.311828] aic23 powering up
[ 3200.316070] aic23_init_power() done
[ 3208.997833] aic23 powering down
[ 3209.322631] aic23 powering up
[ 3209.326873] aic23_init_power() done
[ 3211.695098] aic23 powering down
[ 3243.409942] aic23 powering up
[ 3243.414886] aic23_init_power() done
[ 3245.782409] aic23 powering down
[ 3277.041839] aic23 powering up
[ 3277.047027] aic23_init_power() done
[ 3279.411773] aic23 powering down
[ 3311.503082] aic23 powering up
[ 3311.508056] aic23_init_power() done
[ 3313.876190] aic23 powering down
[ 3345.151672] aic23 powering up
[ 3345.156707] aic23_init_power() done
[ 3347.528198] aic23 powering down
[ 3354.991271] aic23 powering up
[ 3354.995544] aic23_init_power() done
[ 3357.466339] aic23 powering down
[ 3415.075927] hwa742: setting update mode to disabled
[ 3415.075958] omapfb_notifier_cb(): event = DISABLED
[ 3422.865936] hwa742: setting update mode to manual
[ 3422.865997] omapfb_notifier_cb(): event = READY
[ 3425.973937] aic23 powering up
[ 3425.978637] aic23_init_power() done
[ 3428.346710] aic23 powering down
[ 3455.814788] aic23 powering up
[ 3455.819427] aic23_init_power() done
[ 3458.185638] aic23 powering down
[ 3499.690307] aic23 powering up
[ 3499.695312] aic23_init_power() done
[ 3502.060638] aic23 powering down
[ 3559.773101] hwa742: setting update mode to disabled
[ 3559.773162] omapfb_notifier_cb(): event = DISABLED
[ 3769.414642] hwa742: setting update mode to manual
[ 3769.414733] omapfb_notifier_cb(): event = READY
[ 3771.053741] aic23 powering up
[ 3771.058013] aic23_init_power() done
[ 3773.426696] aic23 powering down
[ 3829.489898] hwa742: setting update mode to disabled
[ 3829.489959] omapfb_notifier_cb(): event = DISABLED
[ 3924.717163] hwa742: setting update mode to manual
[ 3924.717254] omapfb_notifier_cb(): event = READY
[ 3928.424713] aic23 powering up
[ 3928.429443] aic23_init_power() done
[ 3930.794555] aic23 powering down
[ 3961.356597] aic23 powering up
[ 3961.361206] aic23_init_power() done
[ 3963.728424] aic23 powering down
[ 4021.288879] hwa742: setting update mode to disabled
[ 4021.288940] omapfb_notifier_cb(): event = DISABLED
[ 4072.375213] hwa742: setting update mode to manual
[ 4072.375305] omapfb_notifier_cb(): event = READY
[ 4072.769927] aic23 powering up
[ 4072.774566] aic23_init_power() done
[ 4077.247711] aic23 powering down
[ 4124.802917] oom-killer: gfp_mask=0x200d2, order=0
[ 4124.802978] [<c0025890>] (dump_stack+0x0/0x14) from [<c0070910>] (out_of_memory+0x40/0x1d8)
[ 4124.803161] [<c00708d0>] (out_of_memory+0x0/0x1d8) from [<c0071e10>] (__alloc_pages+0x240/0x2c4)
[ 4124.803344] [<c0071bd0>] (__alloc_pages+0x0/0x2c4) from [<c009d404>] (pipe_writev+0x1c4/0x390)
[ 4124.803497] [<c009d240>] (pipe_writev+0x0/0x390) from [<c009d5f4>] (pipe_write+0x24/0x2c)
[ 4124.803649] [<c009d5d0>] (pipe_write+0x0/0x2c) from [<c008ec50>] (vfs_write+0xe8/0x1a8)
[ 4124.803802] [<c008eb68>] (vfs_write+0x0/0x1a8) from [<c008edcc>] (sys_write+0x48/0x74)
[ 4124.803955] [<c008ed84>] (sys_write+0x0/0x74) from [<c001fde0>] (ret_fast_syscall+0x0/0x2c)
[ 4124.804107]  r6 = 00002800  r5 = 00033000  r4 = 00002800 
[ 4124.804168] Mem-info:
[ 4124.804229] DMA per-cpu:
[ 4124.804290] cpu 0 hot: high 18, batch 3 used:1
[ 4124.804351] cpu 0 cold: high 6, batch 1 used:5
[ 4124.804412] DMA32 per-cpu: empty
[ 4124.804443] Normal per-cpu: empty
[ 4124.804504] HighMem per-cpu: empty
[ 4124.804565] Free pages:        1368kB (0kB HighMem)
[ 4124.804656] Active:5302 inactive:5377 dirty:5175 writeback:178 unstable:0 free:342 slab:2432 mapped:5242 pagetables:228
[ 4124.804840] DMA free:1368kB min:1024kB low:1280kB high:1536kB active:21208kB inactive:21508kB present:65536kB pages_scanned:12348 all_unreclaimable? no
[ 4124.804962] lowmem_reserve[]: 0 0 0 0
[ 4124.805053] DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
[ 4124.805175] lowmem_reserve[]: 0 0 0 0
[ 4124.805267] Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
[ 4124.805389] lowmem_reserve[]: 0 0 0 0
[ 4124.805511] HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
[ 4124.805633] lowmem_reserve[]: 0 0 0 0
[ 4124.805694] DMA: 82*4kB 8*8kB 5*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1368kB
[ 4124.805908] DMA32: empty
[ 4124.805938] Normal: empty
[ 4124.805999] HighMem: empty
[ 4124.806060] Swap cache: add 0, delete 0, find 0/0, race 0+0
[ 4124.806121] Free swap  = 0kB
[ 4124.806182] Total swap = 0kB
[ 4124.806213] Free swap:            0kB
[ 4124.810424] 16384 pages of RAM
[ 4124.810485] 575 free pages
[ 4124.810546] 1991 reserved pages
[ 4124.810577] 2432 slab pages
[ 4124.810638] 6542 pages shared
[ 4124.810668] 0 pages swap cached
[ 4124.810882] Out of Memory: Kill process 937 (maemo-launcher) score 5789 and children.
[ 4124.810974] Out of memory: Killed process 937 (maemo-launcher).
[ 4124.811096] Out of memory: Killed process 934 (maemo-launcher).
[ 4124.811187] Out of memory: Killed process 939 (maemo-launcher).
[ 4131.292816] aic23 powering up
[ 4131.297424] aic23_init_power() done
[ 4132.452545] hwa742: setting update mode to disabled
[ 4132.452606] omapfb_notifier_cb(): event = DISABLED
[ 4134.622741] aic23 powering down
[ 4160.250091] hwa742: setting update mode to manual
[ 4160.250152] omapfb_notifier_cb(): event = READY
[ 4160.718322] aic23 powering up
[ 4160.722869] aic23_init_power() done
[ 4163.085968] aic23 powering down
[ 4166.827423] aic23 powering up
[ 4166.831634] aic23_init_power() done
[ 4171.521148] aic23 powering down
[ 4185.240722] aic23 powering up
[ 4185.245239] aic23_init_power() done
[ 4188.295043] aic23 powering down
[ 4189.009674] aic23 powering up
[ 4189.014709] aic23_init_power() done
[ 4192.606658] aic23 powering down
[ 4194.390197] aic23 powering up
[ 4194.395050] aic23_init_power() done
[ 4196.755615] aic23 powering down
[ 4197.780975] aic23 powering up
[ 4197.785186] aic23_init_power() done
[ 4203.186187] aic23 powering down
[ 4204.751556] aic23 powering up
[ 4204.756500] aic23_init_power() done
[ 4207.122802] aic23 powering down
[ 4212.114166] aic23 powering up
[ 4212.118438] aic23_init_power() done
[ 4216.021850] aic23 powering down
[ 4217.626739] aic23 powering up
[ 4217.631530] aic23_init_power() done
[ 4220.000274] aic23 powering down
[ 4220.434051] aic23 powering up
[ 4220.438323] aic23_init_power() done
[ 4222.802520] aic23 powering down
[ 4225.430480] aic23 powering up
[ 4225.434692] aic23_init_power() done
[ 4227.795379] aic23 powering down
[ 4228.585815] aic23 powering up
[ 4228.590118] aic23_init_power() done
[ 4230.950897] aic23 powering down
[ 4231.455139] aic23 powering up
[ 4231.460327] aic23_init_power() done
[ 4233.829650] aic23 powering down
[ 4234.717834] aic23 powering up
[ 4234.722076] aic23_init_power() done
[ 4238.258453] aic23 powering down
[ 4238.781951] aic23 powering up
[ 4238.786163] aic23_init_power() done
[ 4241.146789] aic23 powering down
[ 4244.384399] aic23 powering up
[ 4244.389343] aic23_init_power() done
[ 4246.756408] aic23 powering down
[ 4253.853820] aic23 powering up
[ 4253.858337] aic23_init_power() done
[ 4256.224426] aic23 powering down
[ 4259.151611] aic23 powering up
[ 4259.155853] aic23_init_power() done
[ 4261.525390] aic23 powering down
[ 4267.280334] aic23 powering up
[ 4267.284576] aic23_init_power() done
[ 4269.646240] aic23 powering down
[ 4281.851562] aic23 powering up
[ 4281.855804] aic23_init_power() done
[ 4299.216644] aic23 powering down
[ 4301.670471] aic23 powering up
[ 4301.674682] aic23_init_power() done
Q1. Any idea how do I fix this ?
Q2. Can I do Initfs_flasher after doing tar ? (I want to make sure that I am able to clone the system before I make tablet as dula boot) ?

Note: I am running your kernel zImage-yuv420.

Thanks and appreciate all your help.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#25
Originally Posted by tama View Post
Q1. Any idea how do I fix this ?
There is not enough free memory and oom-killer kills your xterm before the job is done. You may enable swap file or close unneeded applications. You may also try it over ssh so osso-xterm does not take memory. I'd start with enabling swap - control panel->Memory->Virtual. You may also just try second time in a row and hope oom killer will pick something else or memory is not that tight second time (strange but possible).

Originally Posted by tama View Post
Q2. Can I do Initfs_flasher after doing tar ? (I want to make sure that I am able to clone the system before I make tablet as dula boot) ?
You can do it anytime it is not related to the cloning. It won't be much useful without system on mmc but it won't hurt.

As for the corrupted flash and reboot loop you mentioned - did you unmount both /floppy and /opt before reboot? Anything you mounted by hand should be unmounted before reboot.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#26
Thanks fanoush,

First thing first. I enabled virtual memory to 64 MB and tar went fine. I booted from block 2 ext 2 and it boot just fine. Success at last. Thanks to your patiently answering my questions.

Originally Posted by fanoush View Post
I'd start with enabling swap - control panel->Memory->Virtual.
Q1. I saw following error in dmesg after tar was successful.
Code:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mckblk0p
Q2. Do you know what it is ? Should I do anything about it ?

Originally Posted by fanoush View Post
As for the corrupted flash and reboot loop you mentioned - did you unmount both /floppy and /opt before reboot? Anything you mounted by hand should be unmounted before reboot.
I did.


Q3. I didn't even give following command '# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2' and still I am able to dual boot. Do I need to give command ? Or can I just forget it ?

Thanks.

Last edited by tama; 2007-07-27 at 14:33.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#27
Originally Posted by tama View Post
Thanks to your patiently answering my questions.
Well each time I hope it is the last one and everything is clear so this helps me to stay calm and answer again ;-)

Originally Posted by tama View Post

Q1. I saw following error in dmesg after tar was successful.
Code:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mckblk0p
Q2. Do you know what it is ? Should I do anything about it ?
You tried to mount something as FAT filesystem but it is not FAT formatted. It is harmless.

Originally Posted by tama View Post
Q3. I didn't even give following command '# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2' and still I am able to dual boot. Do I need to give command ? Or can I just forget it ?
It shows boot menu on each boot, sets mmc2 as default option and after timeout boots it automatically. It may be the best setup some people want.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#28
Thank Fanoush for all your answers.
 
Posts: 57 | Thanked: 4 times | Joined on May 2007
#29
I forgot to run the initfs update before cloning the whole system, now i cannot boot into the mmc card. anything can be done to help? I'M thinking to reclone the /mnt/initfs directory only. any suggestions?Thanks.
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#30
Originally Posted by chyang View Post
I forgot to run the initfs update before cloning the whole system, now i cannot boot into the mmc card. anything can be done to help? I'M thinking to reclone the /mnt/initfs directory only. any suggestions?Thanks.
Chyang. When I did the whole process second time, I intestionally did initfs_flash thingy after I cloned the whole system. Just boot from internal flash (anyway you have no choice yet). Then do Initfs_flah thingy and do shoutdown -r now . During boot now you will choice to boot from external mmc.
 
Reply


 
Forum Jump


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