[U-Boot] u-boot problem - Unknown commands

Dennis Jacobs dennis.jacobs2 at prodrive-technologies.com
Thu May 3 10:55:37 UTC 2018


Dear u-boot mailing list,

Recently I am working on a graduation project at Prodrive Technologies including the development of firmware for a Marvell Ethernet switch chip: 98DX3235. For parallel hardware/software development, I got access to another Marvell Ethernet switch chip 98DX3336 placed in a Marvell RD-XC3-24G4XG-B switching unit. To prepare a u-boot bootloader I am using the following components

U-boot version:                               2013.01
Marvell u-boot configurations:                 2013.01-2016_T1.0.eng_drop_v6
Cross compiler:                                armv7-marvell-linux-gnueabi-softfp-4.6.4_64K_i686_20160226

I also have got a working u-boot binary files from Marvell. Because I need to make changes to the u-boot configuration I need to compile my own u-boot binary files. I was able to compile a UART binary file and load it through UART using TeraTerm. At the u-boot commandline I got stuck. No commands are recognized by u-boot. See my terminal feedback below:

------------------- START TERMINAL WINDOW-------------------

BootROM 1.41

__   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
** LOADER **


U-Boot 2013.01 (May 03 2018 - 11:22:30) Marvell version: 2016_T1.0.eng_drop_v6

Board: RD-XC3-24G-4SFP
SoC:   Alleycat3 Rev A1
       running 2 CPUs
CPU:   Marvell PJ4B (584) v7 (Rev 2) LE
       CPU 0
       CPU    @ 800 [MHz]
       L2     @ 200 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 400 [MHz]
       DDR 16Bit Width, FastPath Memory Access, DLB Enabled
       DDR ECC Disabled
DRAM:  512 MiB
NAND:  1024 MiB
SF: Detected MX25L25735E with page size 64 KiB, total 32 MiB
PCI-e 0: Detected No Link.
FPU initialized to Run Fast Mode.
USB2.0 0: Host Mode

Map:   Code:                    0x1fede000:0x1ff95a4c
       BSS:                     0x1ffefbe8
       Stack:                   0x1f9cdef0
       Heap:                    0x1f9ce000:0x1fede000
       U-Boot Environment:      0x00100000:0x00110000 (SPI)

Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |   In-Band    |
| egiga1 |   SGMII   |   In-Band    |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> >
Unknown command '>' - try 'help'
Marvell>> ?
Unknown command '?' - try 'help'
Marvell>> help
Unknown command 'help' - try 'help'
Marvell>> fli
Unknown command 'fli' - try 'help'
Marvell>> conin
Unknown command 'conin' - try 'help'
Marvell>>

-------------------END TERMINAL WINDOW-------------------

As you can see U-boot is loaded, hardware configurations are done, the serial interface works fine and unfortunately no commands are recognized by the u-boot. This got me thinking. My first thought was that the terminal in some way adds invisible characters to the commands. I tested this by printing all command characters separately before the Unknown command print function in u-boot. I saw that there were no other segments added to the command. I also tried using putty without any results. The binary file obtained by Marvell works fine but mine does not.

I also tried to compile and execute using 7 other cross compilers without any results.

The original Marvell UART binary file differs 24 bytes from my own compiled UART binary file. Apart from the Unknown command lines in the previously shown terminal window, both UART binary files print exactly the same information.

The only thing I can think of now is that my configuration in include/configs/<configurationfile.h>. is not well configured. A Part of the configuration file is shown below. Does someone know what is going wrong here? Do I have to change/add configurations or do I have to search somewhere else.

----------/include/configs/configfile---------

160 /*************************************/
161 /* High Level Configuration Options  */
162 /* (easy to change)                  */
163 /*************************************/
164 #define CONFIG_MARVELL
165 #define CONFIG_SYS_64BIT_VSPRINTF
166 #define CONFIG_SYS_64BIT_STRTOUL
167 #define CONFIG_API
168
169 /* commands */
170 #define CONFIG_BOOTP_DEFAULT    (CONFIG_BOOTP_MASK | CONFIG_BOOTP_BOOTFILESIZE)
171 #define CONFIG_CMD_DHCP
172 #define CONFIG_CMD_ELF
173 #define CONFIG_CMD_I2C
174 #define CONFIG_CMD_EEPROM
175 #define CONFIG_CMD_NET
176 #define CONFIG_CMD_PING
177 //#define CONFIG_CMD_DATE
178 #define CONFIG_CMD_LOADS
179 #define CONFIG_CMD_BSP
180 #define CONFIG_CMD_MEMORY
181 #define CONFIG_CMD_BOOTD
182 #define CONFIG_CMD_BOOTZ
183 #define CONFIG_CMD_CONSOLE
184 #define CONFIG_CMD_RUN
185 #define CONFIG_CMD_MISC
186 #define CONFIG_CMD_IDE
187 #define CONFIG_CMD_SCSI
188 #define CONFIG_CMD_SAR
189 #define CONFIG_CMD_STAGE_BOOT
190 #define CONFIG_CMD_RCVR
191 #define CONFIG_CMD_BOOT_MENU
192
193 #define CONFIG_ENV_MIN_ENTRIES 128
194
195 #if (defined(MV_INCLUDE_PEX) || defined(MV_INCLUDE_PCI))
196         #define CONFIG_PCI
197         #define CONFIG_CMD_PCI
198 #endif
199
200 /* Pre eXecution Environment (PXE) support*/
201 #define CONFIG_CMD_PXE
202 #define CONFIG_BOOTP_PXE
203 #define CONFIG_MENU
204 #define CONFIG_BOOTP_PXE_CLIENTARCH     0x100
205 #define CONFIG_BOOTP_VCI_STRING         "U-boot.armv7.armada_xp"

Kind regards,

Dennis Jacobs
Designer

[Prodrive B.V.]<http://www.prodrive-technologies.com/>
Mobile

+31 62 57 28 194

Phone

+31 40 26 76 200


www.prodrive-technologies.com<http://www.prodrive-technologies.com>

[cid:image002.png at 01D3E2D5.2820B560]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 3431 bytes
Desc: image001.gif
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180503/f820d5c0/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 51820 bytes
Desc: image002.png
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180503/f820d5c0/attachment.png>


More information about the U-Boot mailing list