Hi Yinghai,

On Tuesday 30 May 2006 18:28, Lu, Yinghai wrote:
> mkelfImage

thank you very much. You point me to the right direction. It was a simple 
pointer error in convert_parameters.c from the mkelfimage package. Now my 
kernel starts up (currently it fails when it tries to get ip configuration 
data through DHCP).

Patch attached.

Regards

Juergen
--- mkelfImage-2.7/linux-i386/convert_params.c	2006-03-28 01:44:59.000000000 +0200
+++ mkelfImage-2.7-my/linux-i386/convert_params.c	2006-05-30 22:28:39.000000000 +0200
@@ -962,22 +962,22 @@
 			return head;
 		}
 	};
-	return 0;
+	return (void*)-1;
 }
 
 static int find_lb_table(struct param_info *info)
 {
 	struct lb_header *head;
-	head = 0;
-	if (!head) {
+	head = (void*)-1;
+	if (head == (void*)-1) {
 		/* First try at address 0 */
 		head = __find_lb_table((void *)0x00000, (void *)0x1000);
 	}
-	if (!head) {
+	if (head == (void*)-1) {
 		/* Then try at address 0xf0000 */
 		head = __find_lb_table((void *)0xf0000, (void *)0x100000);
 	}
-	if (head) {
+	if (head != (void*)-1) {
 		info->has_linuxbios = 1;
 		info->lb_table = head;
 		return 1;
-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.openbios.org/mailman/listinfo/linuxbios

Reply via email to