[U-Boot-Users] 1.3.0-rc1 rootpath not set

Below you'll see the verbatim output of the serial line; but the setup basically is this:
The config file of the board defines a bad default value for rootpath and bootfile; these values should be retrieved from the dhcp reply. In the 1.2.0 bootloader, this is done correctly, in the 1.3.0-rc1; the bootfile is set correctly, but the rootpath fails.
This is the output of 1.2.0
U-Boot 1.2.0 (Sep 18 2007 - 13:57:03) MPC83XX
Clock configuration: Coherent System Bus: 266 MHz Core: 399 MHz Local Bus Controller: 266 MHz Local Bus: 33 MHz DDR: 266 MHz SEC: 88 MHz I2C1: 88 MHz I2C2: 266 MHz TSEC1: 88 MHz TSEC2: 88 MHz USB MPH: 88 MHz USB DR: 88 MHz CPU: MPC8347E, Rev: 11 at 399.999 MHz Board: Barco BARCO8347NGS103 Platform I2C: ready DRAM: Initializing SDRAM on Local Bus is NOT available! DDR RAM: 64 MB FLASH: 16 MB PCI1: 32-bit on PMC1 PCI2: 32-bit on PMC2, PMC3 PCI: Bus Dev VenId DevId Class Int 00 13 1172 0005 ff00 00 In: serial Out: serial Err: serial Net: TSEC0, TSEC1
Type run net_nfs to get kernel via tftpboot and mount root filesystem over NFS use dhcp_nfs to get an IP and boot over NFS
Hit any key to stop autoboot: 0 => printenv bootfile bootfile=_bad_non_dhcp_default_value_bootfile_ => printenv rootpath rootpath=_bad_non_dhcp_default_value_rootpath_ => dhcp Speed: 100, full duplex BOOTP broadcast 1 DHCP client bound to address 10.2.4.41 Using TSEC0 device TFTP from server 10.0.0.6; our IP address is 10.2.4.41 Filename '/home/services/tftpboot/kernels/mleeman/targets/ngs103/nightly/kernel.ngs103.2.6.continuous.img'. Load address: 0x200000 Loading: ################################################################# ################################################################# ################################################################# # done Bytes transferred = 1002956 (f4dcc hex) => printenv bootfile bootfile=/home/services/tftpboot/kernels/mleeman/targets/ngs103/nightly/kernel.ngs103.2.6.continuous.img => printenv rootpath rootpath=/home/firmware/mleeman/targets/ngs103/nightly
This is the output for the 1.3.0-rc1 (the version tag is still wrong).
U-Boot 1.2.0 (Sep 18 2007 - 13:21:35) MPC83XX
Reset Status: Software Hard, External/Internal Soft, External/Internal Hard
CPU: e300c1, MPC8347E, Rev: 11 at 399.999 MHz, CSB: 266 MHz Board: Barco BARCO8347NGS103 Platform I2C: ready DRAM: 64 MB FLASH: 16 MB PCI1: 32-bit on PMC1 PCI2: 32-bit on PMC2, PMC3 PCI: Bus Dev VenId DevId Class Int 00 13 1172 0005 ff00 00 In: serial Out: serial Err: serial Net: TSEC0, TSEC1
Type run net_nfs to get kernel via tftpboot and mount root filesystem over NFS use dhcp_nfs to get an IP and boot over NFS
Hit any key to stop autoboot: 0 => print bootfile bootfile=_bad_non_dhcp_default_value_bootfile_ => print rootpath rootpath=_bad_non_dhcp_default_value_rootpath_ => dhcp Speed: 100, full duplex BOOTP broadcast 1 DHCP client bound to address 10.2.4.41 Using TSEC0 device TFTP from server 10.0.0.6; our IP address is 10.2.4.41 Filename '/home/services/tftpboot/kernels/mleeman/targets/ngs103/nightly/kernel.ngs103.2.6.continuous.img'. Load address: 0x200000 Loading: ################################################################# #### done Bytes transferred = 1002956 (f4dcc hex) => print bootfile bootfile=/home/services/tftpboot/kernels/mleeman/targets/ngs103/nightly/kernel.ngs103.2.6.continuous.img => print rootpath rootpath=_bad_non_dhcp_default_value_rootpath_

Bytes transferred = 1002956 (f4dcc hex) => print bootfile bootfile=/home/services/tftpboot/kernels/mleeman/targets/ngs103/nightly/kernel.ngs103.2.6.continuous.img => print rootpath rootpath=_bad_non_dhcp_default_value_rootpath_
Setting "CONFIG_BOOTP_BOOTPATH" in the config file solved it.
I messed up or CONFIG_BOOTP_DEFAULT doesn't include it any longer (in include/cmd_confdefs.h).
participants (1)
-
Marc Leeman