2008-01-15 15:42:35 network info at boot
ketan bhardwaj (INDIA)
Message: 49613 hello all,
Can we automate passing of network info such as IP, DNS, GW from uboot to kernel?
or how can we ensure that the previous settings remain after re booting also.
ketan
QuoteReplyEditDelete
2008-01-15 15:46:51 Re: network info at boot
Bill Fassler (UNITED STATES)
Message: 49614 Try perhaps:
'run addip'
Bill
QuoteReplyEditDelete
2008-01-15 16:15:50 Re: network info at boot
Mike Frysinger (UNITED STATES)
Message: 49618 yep, that is the default behavior in all ADI u-boot versions and works great
QuoteReplyEditDelete
2008-01-15 23:26:13 Re: network info at boot
ketan bhardwaj (INDIA)
Message: 49633 I have already tried addip but it some times works and some times doesnt.
can we automate this process on every boot?
can you tell me its proper usage and can it be used in .cshrc script to run on boot up?
QuoteReplyEditDelete
2008-01-16 00:16:26 Re: network info at boot
Mike Frysinger (UNITED STATES)
Message: 49636 if it's failing, it's most likely another problem in the system or you're not using it correctly. addip merely adds ip= to the bootargs variable which gets passed as the kernel commandline. you can do whatever you like with your automatic u-boot settings.
i dont know what ".cshrc" script you're referring to as u-boot has no shell in the general sense and the C shell does not work on no-mmu systems (and isnt included in the default distribution).
QuoteReplyEditDelete
2008-01-16 11:15:40 Re: network info at boot
ketan bhardwaj (INDIA)
Message: 49673 hi,
Thanks for the feedback.
by .cshrc i am referring to the first script that is run when the linux kernel boots like autoexec.bat of windows.
in desktop linux is used to configure various options or auto login facility etc.
if it is possible to just put the commands to set network parameters in that script.
Can you please confirm that shell scripts can be run on uClinux as they are run on desktop.
I have tried doin it and there is some problem.
if this is possible then cshrc thing can be done.
ketan
QuoteReplyEditDelete
2008-01-16 14:49:20 Re: network info at boot
Mike Frysinger (UNITED STATES)
Message: 49681 the script is not named ".cshrc", it is named "/etc/rc". and this is determined by the init version used. the default simpleinit will execute "/etc/rc".
you're free of course to place whatever you want into that file.
of course shell scripts work under Linux regardless of the MMU. it's merely a kernel exec format.