Using DNS for serverip parameter
Hello all,
I've been looking in the web all day for this, still no answer ... I want to set the 'serverip' kernel command-line parameter to be of the form 'MyLinux' instead of the usual 192.168.x.x form. How do I go about that? In the u-boot environment I set the dnsip variable properly, and currently my bootargs looks like:
bootargs=mem=120M console=ttyS0,115200n8 root=/dev/nfs rw 'nameserver=${dnsip} nfsroot=${serverip}:${rootpath}' ip=dhcp noinitrd
Is this the right way to go (probably isn't, as it doesn't really work)? Is there a special format for 'serverip' which is not an IP address? Regards,
Avishai.
Quoted 6 lines · In message <[email protected]> you wrote:
I've been looking in the web all day for this, still no answer ... I want to set the 'serverip' kernel command-line parameter to be of the form 'MyLinux' instead of the usual 192.168.x.x form. How do I go about that? In the u-boot environment I set the dnsip variable properly, and currently my bootargs looks like:
There is no DNS resolution in U-Boot.
Quoted 5 lines
bootargs=mem=120M console=ttyS0,115200n8 root=/dev/nfs rw 'nameserver=${dnsip} nfsroot=${serverip}:${rootpath}' ip=dhcp noinitrd
Is this the right way to go (probably isn't, as it doesn't really work)? Is there a special format for 'serverip' which is not an IP address?
No.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
[Doctors and Bartenders], We both get the same two kinds of customers
-- the living and the dying.
-- Dr. Boyce, "The Menagerie" ("The Cage"), stardate unknownQuoted 1 line · Wolfgang Denk
There is no DNS resolution in U-Boot.
There is no DNS resolution in the kernel, either,
where this string will ultimately get passed for
processing.
-- Dan