From: aavan@263.net
Date: Sat Jul 14 2001 - 02:29:27 EDT
Hi, I download the new binfmt_flat.c and flat.h from cvx.uclinux.org and repleace the old ones. I followed rebuild kernel, it's no problem. So, I uploaded the new kernel image to the RAM of ucDimm and type 'goram' to execute kernel from RAM. The ucDimm is downed before displaying the 'Welcome and login' information. I could not execute the kernel by using the new binfmt_flat.c, why? Regards & thanks Aavan ******************************************************************************* Jivin aavan@263.net lays it down ... > Hi, all > > I had ported microwindows to uClinux by using m68k-elf-gcc successfully. > I followed upload the demos named mtest ann mtest2 of microwindows to > ucDimm and executed it. But I encountered a problem when executing, > like this: > > bad magic/rev (16908544, need 2) > bad magic/rev (16908544, need 2) > .ELF...: not found > > For testing, I wrote a simple "Hello, world" application and built it > by using m68k-elf-gcc. The instruction and parameters are: > > m68k-elf-gcc -m68000 -msep-data -o hello hello.c -lc > > I got the same error when executing the "Hello, world" app. > > The kernel version is 2.0.38-1pre10. I built it by using m68k-coff-gcc. > > Can you give me a hint? Thanks in advance. You kernel does not support the flat format used by the elf tools. You should be able to replace the following files in your kernel source with the ones from cvs.uclinux.org: fs/binfmt_flat.c include/linux/flat.h You can get the files on the following links: http://cvs.uclinux.org/cgi-bin/cvsweb/~checkout~/uClinux-2.0.x/fs/binfmt_flat.c?rev=1.7 http://cvs.uclinux.org/cgi-bin/cvsweb/~checkout~/uClinux-2.0.x/include/linux/flat.h?rev=1.2 I have *NOT* confirmed that this works so you will have to try it and see. If you have built the tools yourself then you may have built them with the wrong flat.h file as well, although I don't think they would build with out the new flat.h. Cheers, Davidm -- David McCullough: Ph: +61 7 3435 2815 Lineo (Where Open Meets Smart) davidm@lineo.com Fx: +61 7 3891 3630 825 Stanley St., W'gabba QLD 4102, Oz This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/ 欢迎使用263天下邮免费信箱 --Boundary-=_sVEHGDFMBKlWKifmLfeOkxaSMabX Content-Type: Text/HTML Content-Transfer-Encoding: 8bit Hi,<br><br>I download the new binfmt_flat.c and flat.h from cvx.uclinux.org and repleace the old ones. I followed rebuild kernel, it's no problem. So, I uploaded the new kernel image to the RAM of ucDimm and type 'goram' to execute kernel from RAM. The ucDimm is downed before displaying the 'Welcome and login' information.<br><br>I could not execute the kernel by using the new binfmt_flat.c, why?<br><br>Regards & thanks<br><br>Aavan<br><br><br><br>*******************************************************************************<br><br>Jivin aavan@263.net lays it down ...<br>> Hi, all<br>> <br>> I had ported microwindows to uClinux by using m68k-elf-gcc successfully.<br>> I followed upload the demos named mtest ann mtest2 of microwindows to<br>> ucDimm and executed it. But I encountered a problem when executing,<br>> like this:<br>> <br>> bad magic/rev (16908544, need 2)<br>> bad magic/rev (16908544, need 2)<br>> .ELF...: not found<br>> <br>> For testing, I wrote a simple "Hell! o, world" application and built it<br>> by using m68k-elf-gcc. The instruction and parameters are: <br>> <br>> m68k-elf-gcc -m68000 -msep-data -o hello hello.c -lc<br>> <br>> I got the same error when executing the "Hello, world" app. <br>> <br>> The kernel version is 2.0.38-1pre10. I built it by using m68k-coff-gcc.<br>> <br>> Can you give me a hint? Thanks in advance.<br><br>You kernel does not support the flat format used by the elf tools.<br><br>You should be able to replace the following files in your kernel source<br>with the ones from cvs.uclinux.org:<br><br> fs/binfmt_flat.c<br> include/linux/flat.h<br><br>You can get the files on the following links:<br><br> http://cvs.uclinux.org/cgi-bin/cvsweb/~checkout~/uClinux-2.0.x/fs/binfmt_flat.c?rev=1.7
> http://cvs.uclinux.org/cgi-bin/cvsweb/~checkout~/uClinux-2.0.x/include/linux/flat.h?rev=1.2
><br>I have *NOT* confirmed that this works so you will have to try it and see.<br>If you have built the tools yourself then y! ou may have built them with the<br>wrong flat.h file as well, althoug h I don't think they would build with<br>out the new flat.h.<br><br>Cheers,<br>Davidm<br><br>-- <br>David McCullough: Ph: +61 7 3435 2815 Lineo (Where Open Meets Smart)<br>davidm@lineo.com Fx: +61 7 3891 3630 825 Stanley St., W'gabba QLD 4102, Oz<br>This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
><br><br><font color=blue>欢迎使用263天下邮免费信箱</font><br><br><br><br><br><br><br><br> --Boundary-=_sVEHGDFMBKlWKifmLfeOkxaSMabX-- This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:56 EDT