Mailing List Archive

extlinux can't find extlinux.conf file?
When I try to boot my system using extlinux I get the error:

EXTLINUX 3.51 2007-06-10 EBIOS Copyright (C) 1994-2007 H. Peter Anvin
Could not find kernel image: linux
boot: ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕ

I've searched the archives and it would appear that extlinux can't find
the extlinux.conf file.... Is there something glaring that I am missing?

TIA - Phil



I have a 32MB CF card partitioned like this:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 245 31344 83 Linux

I created the filesystem
"mke2fs /dev/sda1"

Mounted it
"mount /dev/sda1 /mount/sda1"

Created the MBR
"cat /root/syslinux-3.51/mbr/mbr.bin > /dev/sda"

Installed extlinux
"/root/syslinux-3.51/extlinux -i /mount/sda1"

I created the extlinux.conf file in /mount/sda1, it contains:

root@pnewl01:/mount/sda1# cat extlinux.conf
DISPLAY hello

LABEL 1
KERNEL bzImage.phil

Here's the directory listing of my /dev/sda1 (mounted on /mount/sda1)
directory:

root@pnewl01:/mount/sda1# ls -lt
total 2216
-rw-r--r-- 1 root root 674260 2007-09-11 11:48 System.map
-rw-r--r-- 1 root root 1570040 2007-09-11 11:48 bzImage.phil
-rw-r--r-- 1 root root 45 2007-09-11 11:48 extlinux.conf
-r--r--r-- 1 root root 10771 2007-09-11 11:46 extlinux.sys




_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
UPDATE:

- Changed "DISPLAY" to "SAY" (I started using a file to display a message,
just wanted to say "hello" so I knew extlinux found the config file,
didn't change the command to SAY)
- Saw that "hello" was being displayed, so I knew extlinux was finding the
.conf file.
- Copied "bzImage.phil" to "linux"
- Changed "KERNEL bzImage.phil" to "KERNEL linux", now it loads.

Why does extlinux ignore my "KERNEL bzImage.phil" command, but likes
"KERNEL linux"?

TIA (again) Phil








Phil Newlon/Corporate/Wendys
09/11/2007 12:10 PM

To
syslinux@zytor.com
cc

Subject
extlinux can't find extlinux.conf file?






When I try to boot my system using extlinux I get the error:

EXTLINUX 3.51 2007-06-10 EBIOS Copyright (C) 1994-2007 H. Peter Anvin
Could not find kernel image: linux
boot: ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕ

I've searched the archives and it would appear that extlinux can't find
the extlinux.conf file.... Is there something glaring that I am missing?

TIA - Phil



I have a 32MB CF card partitioned like this:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 245 31344 83 Linux

I created the filesystem
"mke2fs /dev/sda1"

Mounted it
"mount /dev/sda1 /mount/sda1"

Created the MBR
"cat /root/syslinux-3.51/mbr/mbr.bin > /dev/sda"

Installed extlinux
"/root/syslinux-3.51/extlinux -i /mount/sda1"

I created the extlinux.conf file in /mount/sda1, it contains:

root@pnewl01:/mount/sda1# cat extlinux.conf
DISPLAY hello

LABEL 1
KERNEL bzImage.phil

Here's the directory listing of my /dev/sda1 (mounted on /mount/sda1)
directory:

root@pnewl01:/mount/sda1# ls -lt
total 2216
-rw-r--r-- 1 root root 674260 2007-09-11 11:48 System.map
-rw-r--r-- 1 root root 1570040 2007-09-11 11:48 bzImage.phil
-rw-r--r-- 1 root root 45 2007-09-11 11:48 extlinux.conf
-r--r--r-- 1 root root 10771 2007-09-11 11:46 extlinux.sys





_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
Phil_Newlon@wendys.com wrote:
> UPDATE:
>
> - Changed "DISPLAY" to "SAY" (I started using a file to display a message,
> just wanted to say "hello" so I knew extlinux found the config file,
> didn't change the command to SAY)
> - Saw that "hello" was being displayed, so I knew extlinux was finding the
> .conf file.
> - Copied "bzImage.phil" to "linux"
> - Changed "KERNEL bzImage.phil" to "KERNEL linux", now it loads.
>
> Why does extlinux ignore my "KERNEL bzImage.phil" command, but likes
> "KERNEL linux"?
>

That is very odd! Do you have anything on the "append" line, and if so,
does it pick it up?

-hpa

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
There is no append line.

Phil

> Why does extlinux ignore my "KERNEL bzImage.phil" command, but likes
> "KERNEL linux"?
>

That is very odd! Do you have anything on the "append" line, and if so,
does it pick it up?

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
Phil_Newlon@wendys.com wrote:
> There is no append line.
>
> Phil
>
>> Why does extlinux ignore my "KERNEL bzImage.phil" command, but likes
>> "KERNEL linux"?
>>
>
> That is very odd! Do you have anything on the "append" line, and if so,
> does it pick it up?
>

Could you put one in (say "append foo=bar") and see if that appears in
/proc/cmdline after booting?

-hpa

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
Phil_Newlon@wendys.com wrote:
> UPDATE:
> - Copied "bzImage.phil" to "linux"
> - Changed "KERNEL bzImage.phil" to "KERNEL linux", now it loads.
>
> Why does extlinux ignore my "KERNEL bzImage.phil" command, but likes
> "KERNEL linux"?
>
> TIA (again) Phil
>

Can you try renaming bzImage.phil to bzImage and changing the KERNEL
line as well? pxelinux treats files with extensions differently if I
remember correctly. It may be possible that it doesn't recognize the
extension and thus refuses to run it?!?

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
Phil_Newlon@wendys.com wrote:
>
> root@pnewl01:/mount/sda1# cat extlinux.conf
> DISPLAY hello
>
> LABEL 1
> KERNEL bzImage.phil
>

I just now looked at this again, and realized what you're trying to do
here. You need "PROMPT 1" in order for it to stop. You have a label,
which means if someone enters "1" they will get "bzImage.phil".

However, there is nothing in the above file which tells it what to do if
the user doesn't enter a command, and since it doesn't have a PROMPT, it
won't stop and ask the user what to do, either. Instead it will boot
the default command, which is "linux". Since "linux" doesn't match your
label (which is just "1"), it will be considered a filename.

So you can add either "DEFAULT 1" or "PROMPT 1" (or both) to the above;
"DEFAULT 1" would set the default command to "1", which matches your
label. "PROMPT 1" (the '1' here is just a boolean flag, 0 or 1, it
doesn't have anything to do with your label string) tells it to stop and
ask the user for input.

-hpa

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
Re: extlinux can't find extlinux.conf file? [ In reply to ]
Ah ha, that makes sense!




----- Original Message -----
From: "H. Peter Anvin" [hpa@zytor.com]
Sent: 09/14/2007 05:56 PM
To: For discussion of SYSLINUX and tftp-hpa <syslinux@zytor.com>
Subject: Re: [syslinux] extlinux can't find extlinux.conf file?



Phil_Newlon@wendys.com wrote:
>
> root@pnewl01:/mount/sda1# cat extlinux.conf
> DISPLAY hello
>
> LABEL 1
> KERNEL bzImage.phil
>

I just now looked at this again, and realized what you're trying to do
here. You need "PROMPT 1" in order for it to stop. You have a label,
which means if someone enters "1" they will get "bzImage.phil".

However, there is nothing in the above file which tells it what to do if
the user doesn't enter a command, and since it doesn't have a PROMPT, it
won't stop and ask the user what to do, either. Instead it will boot
the default command, which is "linux". Since "linux" doesn't match your
label (which is just "1"), it will be considered a filename.

So you can add either "DEFAULT 1" or "PROMPT 1" (or both) to the above;
"DEFAULT 1" would set the default command to "1", which matches your
label. "PROMPT 1" (the '1' here is just a boolean flag, 0 or 1, it
doesn't have anything to do with your label string) tells it to stop and
ask the user for input.

-hpa

_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.


_______________________________________________
SYSLINUX mailing list
Submissions to SYSLINUX@zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.