mips32 kexec failed, bug?
Subsystems (2)
mips32 board:
I used kexec to reboot a new kernel, but I found that , the second kernel stopped when calling 'prom_getenv("memsize") ' in booting.
That is , kernel: setup_arch-->prom_init-->'prom_getenv("memsize")' failed
So I checked the code in kexec-tool , and I found that ,in mips-simple-setup.S, register a2 was set to 0, which was passed to the second kernel as envirment variable address.
I guess here a2 should not be set to 0 , is it a BUG in kexec-tool , when dealing with mips?
ps: I don't have mail address of the authors who wrote mips support for kexec , Francesco Chiechi, Alessandro Rubini , Tvblob s.r.l.
So I wrote directly to this maillist to search for help.
Thank you
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
I know that code can be somewhat imprecise, it used to work for me on a job Alessandro and I made for Tvblob
Actually I don't remember much about it, I contributed it in the hope it could be useful for othes, but once accepted I never had time to review it
If you feel you can improve it please do it
bye
Francesco
Quoted 30 lines · On Sunday 11 October 2009 16:32:39 wilbur.chan wrote:
mips32 board:
I used kexec to reboot a new kernel, but I found that , the second kernel stopped when calling '
prom_getenv("memsize")' in booting.That is , kernel: setup_arch-->prom_init-->'prom_getenv("memsize")' failed
So I checked the code in kexec-tool , and I found that ,in
mips-simple-setup.S, register a2 was set to 0, which was passed to the second kernel as envirment variable address.I guess here a2 should not be set to 0 , is it a BUG in kexec-tool , when dealing with mips?
ps: I don't have mail address of the authors who wrote mips support for kexec , Francesco Chiechi, Alessandro Rubini , Tvblob s.r.l.
So I wrote directly to this maillist to search for help.
Thank you
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Signature · 11 lines
Francesco Chiechi Studio Associato Colibre - Consulenze GNU/Linux via Tesio, 7 20151 Milano fax 02 40910358 mobile 320 4730333 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec