[U-Boot] u-boot Marvell ethernet switch development

Dear U-boot mailing list,
Its the first time I make use of this U-boot mailing list. I am here for a problem I am having recently with u-boot which is part of my graduation project.
I am developing firmware for a Marvell Ethernet switch chip (98DX3336) on the RD-XC3-24G4XG-B (Marvell Ethernet switch). Marvell has provided me with U-boot binary files for UART, SPI etc. I managed to load the U-boot UART binary file trough the UART interface. Showing:
[cid:image003.png@01D3E22C.D21A6560]
Ok so that is good... now I need to set up my own u-boot environment to add some changes. So I did. I Downloaded u-boot 2013.01 and added marvell configurations. I was able to compile and load the U-boot Uart binary trough the UART interface. The terminal is showing the following:
[cid:image004.png@01D3E22D.C73E7040]
So ok its loads! But now... I can not perform any commands. All commands are Unknown... So what I did was checking the configurations and I found out that I have set the CMD configurations. Like CMD_NET etc etc
[cid:image005.png@01D3E22E.7D8A6070]
Anny one that could help me here? I would really appreciate it. I am struggling with this problem for almost 2 full days now. Actions I have been taken
- Tested if help command was realy executed and no other invisible fragments where added.
- Tested the compilation with 7 different armv7-marvell cross compilers
Left binary is the working one the second binary is mine. It only differs 26 bytes. I noticed that a different cross compiler also changes the size. Sometime more sometimes less. All of the binarys I compiled where executing correctly but not reacting on anny commands
[cid:image006.png@01D3E22F.61EE8C00]
Please help me.
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.comhttp://www.prodrive-technologies.com
[cid:image002.png@01D3E22B.A33384D0]
Disclaimer: The content of this e-mail is intended solely for the use of the Individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. If you have received this communication in error, please notify the author by replying to this e-mail immediately.

Hi Dennis,
On Thu, May 3, 2018 at 3:21 AM Dennis Jacobs < dennis.jacobs2@prodrive-technologies.com> wrote:
Dear U-boot mailing list,
Its the first time I make use of this U-boot mailing list. I am here for
a problem I am having recently with u-boot which is part of my graduation project.
Welcome.
A couple of minor nit-pick things to start.
If you can please try to send email as plain text and rather that images paste console output and code snippets directly in-line.
Many people on this list prefer reading it in a text-base MUA like alpine or mutt so messages with HTML and images tend to get ignored, which cuts you off from people that may be able to help. Plain text also works best for the mailing list archive which really helps people when searching.
I am developing firmware for a Marvell Ethernet switch chip (98DX3336) on
the RD-XC3-24G4XG-B (Marvell Ethernet switch). Marvell has provided me with U-boot binary files for UART, SPI etc.
Technically speaking you should be directing your questions to Marvell since this board doesn't exist upstream and they're shipping a modified u-boot. But you're in luck because I happen to have one of those boards as well and I think I might know what's going on.
I managed to load the U-boot UART binary file trough the UART interface.
Showing:
[cid:image003.png@01D3E22C.D21A6560]
Ok so that is good... now I need to set up my own u-boot environment to
add some changes. So I did. I Downloaded u-boot 2013.01 and added marvell configurations. I was able to compile and load the U-boot Uart binary trough the UART interface. The terminal is showing the following:
[cid:image004.png@01D3E22D.C73E7040]
So ok its loads! But now... I can not perform any commands. All commands
are Unknown...
So what I did was checking the configurations and I found out that I have
set the CMD configurations. Like CMD_NET etc etc
[cid:image005.png@01D3E22E.7D8A6070]
Anny one that could help me here? I would really appreciate it. I am
struggling with this problem for almost 2 full days now.
Actions I have been taken
Tested if help command was realy executed and no other
invisible fragments where added.
I think it is actually this.
Are you using hyperterm by any chance? I hit a problem a while back where hyperterm worked fine for a while but then started adding other invisible characters to my input which in-turn caused every command to be rejected. Particularly if I'd used the uart boot. My primary environment is Linux so I'm not sure what people are using for a terminal emulator on Windows these days. When I last used a windows box for work teraterm https://ttssh2.osdn.jp/index.html.en was the terminal emulator we used.
The uart tx/rx lines on the RD-XC3 board don't appear to be well controlled, there always seems to be a bit of junk captured around reset due to the lines floating. So even if it's not your terminal emulator getting confused your host UART driver might be.
The fact that you've proven your built image boots over uart means the spi version should work. So I'd recommend just updating what's on the board (make sure you feed it the spi.bin not the spi-uart.bin). If it all goes catastrophically wrong you can still recover the system over uart.
Tested the compilation with 7 different armv7-marvell cross
compilers
Left binary is the working one the second binary is mine. It only differs
26 bytes. I noticed that a different cross compiler also changes the size. Sometime more sometimes less. All of the binarys I compiled where executing correctly but not reacting on anny commands
[cid:image006.png@01D3E22F.61EE8C00]
Please help me.
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.comhttp://www.prodrive-technologies.com
[cid:image002.png@01D3E22B.A33384D0]
Disclaimer: The content of this e-mail is intended solely for the use of
the Individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. If you have received this communication in error, please notify the author by replying to this e-mail immediately.
Also if you have any ability to do so, remove this. This is a public mailing list so by it's very nature every recipient is violating this.

Hello Dennis, I am looking for a RD-XC3-24G4XG-B dev board and possibly someone to help develop code for the switch. Thanks, --Rob
-- Sent from: http://u-boot.10912.n7.nabble.com/
participants (3)
-
Chris Packham
-
Dennis Jacobs
-
Rob Nino