[syslinux] pxelinux cmdline preparation for klibc kinit

Jim Cromie jim.cromie at gmail.com
Fri May 19 08:21:55 PDT 2006


Im trying to get 2.6.17-rc4-mm1 (which includes klibc) working on an 
nfs-root setup.
Its not working, so I started adding printf()s  (not printk()s !)

1st thing I notice is arg5 is empty, but arg 6 is real
I could imagine this unexpected situation confusing kinit (will check..)
Or is that empty arg intentional, so that it marks the beginning of 
pxelinux addons ?

kinit:main:
init-arg 0: /init
cmd-arg 0: /init
cmd-arg 1: console=ttyS0,115200n81
cmd-arg 2: root=/dev/nfs
cmd-arg 3: ip=::::soekris:eth0
cmd-arg 4: panic=5
cmd-arg 5:
cmd-arg 6:  BOOT_IMAGE=vm[   28.428147] eth0: DSPCFG accepted after 0 usec.
[   28.433724] eth0: link up.
[   28.436495] eth0: Setting full-duplex based on negotiated link 
capability.
linuz-2.6.17-rc4-mm1-sk
Running ipconfig


OK, I just did another test, introducing  extra whitespaces int APPEND 
string.
result is not good.  Whitespace ended up as lead char in 2 args
so  ' ip=<stuff>' was not recognized


LABEL   H 2.6.17-rc4-mm1-sk
  MENU LABEL    ^h.  2.6.17-rc4-mm1-sk
  KERNEL        vmlinuz-2.6.17-rc4-mm1-sk
  APPEND        console=ttyS0,115200n81 root=/dev/nfs  
ip=::::soekris:eth0  panic=5


kinit:main:
init-arg 0: /init
cmd-arg 0: /init
cmd-arg 1: console=ttyS0,115200n81
cmd-arg 2: root=/dev/nfs
cmd-arg 3:  ip=::::soekris:eth0
cmd-arg 4:  panic=5
cmd-arg 5:
cmd-arg 6:  BOOT_IMAGE=vmlinuz-2.6.17-rc4-mm1-sk
Running ipconfig
IP-Config: argc == 2
  argv[1]: '-n'
IP-Config: no devices to configure
kinit: do_mounts
kinit: name_to_dev_t(/dev/nfs) = dev(0,255)
kinit: root_dev = dev(0,255)
Ro[   25.030001] Kernel panic - not syncing: Attempted to kill init!
ot-NFS: no serve[   25.037537]  r defined
<0>Rebooting in 5 seconds..


I think this qualifies as a bug; its not what folks expect.
A docpatch WITH LARGE LETTERS would rectify it, if you want to preserve 
this behavior.
Also, APPEND doc should probably say that stanza-specific APPENDs
dont append to global APPENDs, they overrride it.
I'll write the docpatch if you like.

tia
-jimc




More information about the Syslinux mailing list