* [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd
@ 2018-08-31 11:58 Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel Lukasz Majewski
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Lukasz Majewski @ 2018-08-31 11:58 UTC (permalink / raw)
To: u-boot
The 'rootpath' can be provided by DHCP server. Removing this line prevents
from overwriting it.
To do that on the DHCP server side (isc-dhcp-server) modify dhcpd.conf
and add 'option root-path "192.168.X.Y:/srv/tftp/rootfs";'
Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
board/k+p/bootscripts/tpcboot.cmd | 1 -
1 file changed, 1 deletion(-)
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd
index 16b93ebe3f..9290317730 100644
--- a/board/k+p/bootscripts/tpcboot.cmd
+++ b/board/k+p/bootscripts/tpcboot.cmd
@@ -65,7 +65,6 @@ fi"
#
# Provide 'boot_nfs' command
#------------------------------------------------------------
-setenv rootpath "/srv/tftp/KP/rootfs"
setenv nfsargs "setenv bootargs root=/dev/nfs rw \
nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
setenv addip "setenv bootargs ${bootargs} \
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel
2018-08-31 11:58 [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
@ 2018-08-31 11:58 ` Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 3/4] ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd Lukasz Majewski
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Lukasz Majewski @ 2018-08-31 11:58 UTC (permalink / raw)
To: u-boot
The 'dhcp' command is more versatile as it allows working with the DHCP
server to obtain serverip, ipaddress and other network parameters.
The configuration necessary to obtain the serverip (dhcpd.conf):
option option-150 code 150 = ip-address;
and in the subnet definition:
option option-150 192.168.X.Y;
Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
board/k+p/bootscripts/tpcboot.cmd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd
index 9290317730..ebd2d4ec2a 100644
--- a/board/k+p/bootscripts/tpcboot.cmd
+++ b/board/k+p/bootscripts/tpcboot.cmd
@@ -52,7 +52,7 @@ fi;"
#
# Provide 'boot_tftp_kernel' command
#------------------------------------------------------------
-setenv download_kernel "tftpboot ${loadaddr} ${kernel_file}"
+setenv download_kernel "dhcp ${loadaddr} ${kernel_file}"
setenv boot_tftp_kernel "
if run download_kernel; then
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 3/4] ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd
2018-08-31 11:58 [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel Lukasz Majewski
@ 2018-08-31 11:58 ` Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 4/4] ARM: bootscript: For nfsargs only use rootpath (and remove not needed serverip) Lukasz Majewski
2018-09-06 22:53 ` [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
3 siblings, 0 replies; 7+ messages in thread
From: Lukasz Majewski @ 2018-08-31 11:58 UTC (permalink / raw)
To: u-boot
The quotes around ${bootargs} were missing as we elaborate those variables
twice - once when we "setenv" the command and secondly when we "run" it.
Without quotes we have just empty string in the second call.
Moreover there is an issue with line breaks - as the original commands
got truncated.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
board/k+p/bootscripts/tpcboot.cmd | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd
index ebd2d4ec2a..e26fd72825 100644
--- a/board/k+p/bootscripts/tpcboot.cmd
+++ b/board/k+p/bootscripts/tpcboot.cmd
@@ -65,17 +65,14 @@ fi"
#
# Provide 'boot_nfs' command
#------------------------------------------------------------
-setenv nfsargs "setenv bootargs root=/dev/nfs rw \
- nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
-setenv addip "setenv bootargs ${bootargs} \
- ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:\
- ${hostname}:eth0:on"
+setenv nfsargs "setenv bootargs root=/dev/nfs rw nfsroot='${serverip}':'${rootpath}',nolock,nfsvers=3"
+setenv addip "setenv bootargs '${bootargs}' ip='${ipaddr}':'${serverip}':'${gatewayip}':'${netmask}':'${hostname}':eth0:on"
setenv boot_nfs "
if run download_kernel; then
run nfsargs;
run addip;
- setenv bootargs ${bootargs} console=${console};
+ setenv bootargs '${bootargs}' console=${console};
run boot_fitImage;
fi"
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 4/4] ARM: bootscript: For nfsargs only use rootpath (and remove not needed serverip)
2018-08-31 11:58 [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 3/4] ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd Lukasz Majewski
@ 2018-08-31 11:58 ` Lukasz Majewski
2018-09-06 22:53 ` [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
3 siblings, 0 replies; 7+ messages in thread
From: Lukasz Majewski @ 2018-08-31 11:58 UTC (permalink / raw)
To: u-boot
The serverip part is provided from DHCP server with
'option root-path "192.168.3.1:/srv/tftp/rootfs";' parameter in dhcpd.conf
Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
board/k+p/bootscripts/tpcboot.cmd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd
index e26fd72825..0576e81140 100644
--- a/board/k+p/bootscripts/tpcboot.cmd
+++ b/board/k+p/bootscripts/tpcboot.cmd
@@ -65,7 +65,7 @@ fi"
#
# Provide 'boot_nfs' command
#------------------------------------------------------------
-setenv nfsargs "setenv bootargs root=/dev/nfs rw nfsroot='${serverip}':'${rootpath}',nolock,nfsvers=3"
+setenv nfsargs "setenv bootargs root=/dev/nfs rw nfsroot='${rootpath}',nolock,nfsvers=3"
setenv addip "setenv bootargs '${bootargs}' ip='${ipaddr}':'${serverip}':'${gatewayip}':'${netmask}':'${hostname}':eth0:on"
setenv boot_nfs "
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd
2018-08-31 11:58 [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
` (2 preceding siblings ...)
2018-08-31 11:58 ` [U-Boot] [PATCH 4/4] ARM: bootscript: For nfsargs only use rootpath (and remove not needed serverip) Lukasz Majewski
@ 2018-09-06 22:53 ` Lukasz Majewski
2018-09-07 10:39 ` Stefano Babic
3 siblings, 1 reply; 7+ messages in thread
From: Lukasz Majewski @ 2018-09-06 22:53 UTC (permalink / raw)
To: u-boot
Dear Tom, Stefano,
> The 'rootpath' can be provided by DHCP server. Removing this line
> prevents from overwriting it.
>
> To do that on the DHCP server side (isc-dhcp-server) modify dhcpd.conf
> and add 'option root-path "192.168.X.Y:/srv/tftp/rootfs";'
>
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> ---
>
> board/k+p/bootscripts/tpcboot.cmd | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/board/k+p/bootscripts/tpcboot.cmd
> b/board/k+p/bootscripts/tpcboot.cmd index 16b93ebe3f..9290317730
> 100644 --- a/board/k+p/bootscripts/tpcboot.cmd
> +++ b/board/k+p/bootscripts/tpcboot.cmd
> @@ -65,7 +65,6 @@ fi"
> #
> # Provide 'boot_nfs' command
> #------------------------------------------------------------
> -setenv rootpath "/srv/tftp/KP/rootfs"
> setenv nfsargs "setenv bootargs root=/dev/nfs rw \
> nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
> setenv addip "setenv bootargs ${bootargs} \
Is there any chance that this series would be applied before v2018.09
release?
Those are fixes related to a particular board(s), which I do maintain.
Thanks in advance.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180907/0cfefe9a/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd
2018-09-06 22:53 ` [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
@ 2018-09-07 10:39 ` Stefano Babic
2018-09-07 10:59 ` Lukasz Majewski
0 siblings, 1 reply; 7+ messages in thread
From: Stefano Babic @ 2018-09-07 10:39 UTC (permalink / raw)
To: u-boot
Hi Lukasz,
On 07/09/2018 00:53, Lukasz Majewski wrote:
> Dear Tom, Stefano,
>
>> The 'rootpath' can be provided by DHCP server. Removing this line
>> prevents from overwriting it.
>>
>> To do that on the DHCP server side (isc-dhcp-server) modify dhcpd.conf
>> and add 'option root-path "192.168.X.Y:/srv/tftp/rootfs";'
>>
>> Signed-off-by: Lukasz Majewski <lukma@denx.de>
>> ---
>>
>> board/k+p/bootscripts/tpcboot.cmd | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/board/k+p/bootscripts/tpcboot.cmd
>> b/board/k+p/bootscripts/tpcboot.cmd index 16b93ebe3f..9290317730
>> 100644 --- a/board/k+p/bootscripts/tpcboot.cmd
>> +++ b/board/k+p/bootscripts/tpcboot.cmd
>> @@ -65,7 +65,6 @@ fi"
>> #
>> # Provide 'boot_nfs' command
>> #------------------------------------------------------------
>> -setenv rootpath "/srv/tftp/KP/rootfs"
>> setenv nfsargs "setenv bootargs root=/dev/nfs rw \
>> nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
>> setenv addip "setenv bootargs ${bootargs} \
>
> Is there any chance that this series would be applied before v2018.09
> release?
>
> Those are fixes related to a particular board(s), which I do maintain.
>
Patches were sent just a week ago, merge window was closed. This is the
same case as Otavio's and I will merge them after release.
Best regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd
2018-09-07 10:39 ` Stefano Babic
@ 2018-09-07 10:59 ` Lukasz Majewski
0 siblings, 0 replies; 7+ messages in thread
From: Lukasz Majewski @ 2018-09-07 10:59 UTC (permalink / raw)
To: u-boot
Hi Stefano,
> Hi Lukasz,
>
> On 07/09/2018 00:53, Lukasz Majewski wrote:
> > Dear Tom, Stefano,
> >
> >> The 'rootpath' can be provided by DHCP server. Removing this line
> >> prevents from overwriting it.
> >>
> >> To do that on the DHCP server side (isc-dhcp-server) modify
> >> dhcpd.conf and add 'option root-path
> >> "192.168.X.Y:/srv/tftp/rootfs";'
> >>
> >> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> >> ---
> >>
> >> board/k+p/bootscripts/tpcboot.cmd | 1 -
> >> 1 file changed, 1 deletion(-)
> >>
> >> diff --git a/board/k+p/bootscripts/tpcboot.cmd
> >> b/board/k+p/bootscripts/tpcboot.cmd index 16b93ebe3f..9290317730
> >> 100644 --- a/board/k+p/bootscripts/tpcboot.cmd
> >> +++ b/board/k+p/bootscripts/tpcboot.cmd
> >> @@ -65,7 +65,6 @@ fi"
> >> #
> >> # Provide 'boot_nfs' command
> >> #------------------------------------------------------------
> >> -setenv rootpath "/srv/tftp/KP/rootfs"
> >> setenv nfsargs "setenv bootargs root=/dev/nfs rw \
> >> nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
> >> setenv addip "setenv bootargs ${bootargs} \
> >
> > Is there any chance that this series would be applied before
> > v2018.09 release?
> >
> > Those are fixes related to a particular board(s), which I do
> > maintain.
>
> Patches were sent just a week ago, merge window was closed. This is
> the same case as Otavio's and I will merge them after release.
Ok. No problem :-)
>
> Best regards,
> Stefano
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180907/94712559/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-09-07 10:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-31 11:58 [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 3/4] ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd Lukasz Majewski
2018-08-31 11:58 ` [U-Boot] [PATCH 4/4] ARM: bootscript: For nfsargs only use rootpath (and remove not needed serverip) Lukasz Majewski
2018-09-06 22:53 ` [U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd Lukasz Majewski
2018-09-07 10:39 ` Stefano Babic
2018-09-07 10:59 ` Lukasz Majewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox