Page 1 of 1

Can't get past square 1 !

Posted: Thu Jul 04, 2024 3:11 pm
by monaco87

OK I bought a DE-10 about 18 months ago and am only now trying to get it set up for Mister. I thought I'd try the basic DE-10 with the supplied SD card with its Linux image to make sure everything was OK.... it doesn't seem to be. With the supplied Terasic card it starts, orange LED lights then nothing on the screen. After much tinkering I connected the serial console and I am getting the following:

Code: Select all

U-Boot SPL 2017.03-rc2 (Mar 30 2017 - 19:07:16)
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: Preparing to start memory calibration
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: CALIBRATION PASSED
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: Calibration complete
Trying to boot from MMC1


U-Boot 2017.03-rc2 (Mar 30 2017 - 19:07:16 -0700)

CPU:   Altera SoCFPGA Platform
FPGA:  Altera Cyclone V, SE/A6 or SX/C6 or ST/D6, version 0x0
BOOT:  SD/MMC Internal Transceiver (3.0V)
       Watchdog enabled
I2C:   ready
DRAM:  1 GiB                                                                                                                                                                                                                                           
MMC: dwmmc0@ff704000: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Model: Terasic DE10-Nano
Net:
Error: ethernet@ff702000 address not set.
No ethernet found.
Hit any key to stop autoboot: 0
reading de10-nano.rbf
3368700 bytes read in 231 ms (13.9 MiB/s)
Setting bus to 2
reading STARTUP.BMP
** Unable to read file STARTUP.BMP **
reading de10_nano_hdmi_config.bin
72872 bytes read in 10 ms (6.9 MiB/s) ## Starting application at 0x0C100001 ... HDMI WARNING: No HDMI display detected
HDMI WARNING: no valid timing found, setting 1024x768 default
HDMI_vld_tmng_fnd = 0
HDMI_h_active_pix = 1024
HDMI_h_blank_pix = 320
HDMI_h_sync_off = 24
HDMI_h_sync_width = 136
HDMI_v_active_lin = 768
HDMI_v_blank_lin = 38
HDMI_v_sync_off = 3
HDMI_v_sync_width = 6
HDMI_pll_freq = 65000000
HDMI_pll_m = 9
HDMI_pll_c = 7
HDMI_pll_k = 429496724
HDMI_stride = 4096
HDMI_milestones = 1044607
HDMI INFO: bad BMP signature ## Application terminated, rc = 0x10 reading socfpga_cyclone5_de10_nano.dtb
29940 bytes read in 8 ms (3.6 MiB/s)
switch to partitions #0, OK
mmc0 is current device
Unknown command 'part' - try 'help'
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
187 bytes read in 5 ms (36.1 KiB/s)
1: Linux Default
Retrieving file: /extlinux/../zImage
reading /extlinux/../zImage
8077048 bytes read in 544 ms (14.2 MiB/s)
append: root=/dev/mmcblk0p2 rootwait mem=0x3F000000 memmap=16M$0x3F000000 ttyS0,115200 ## Flattened Device Tree blob at 00000100 Booting using the fdt blob at 0x000100
reserving fdt memory region: addr=0 size=1000
reserving fdt memory region: addr=100 size=7f00
Loading Device Tree to 03ff5000, end 03fffeff ... OK
Starting kernel ...

The board then repeatedly cycles endlessly through the following:

Code: Select all

                                                                                                                                                                                                                                            
U-Boot SPL 2017.03-rc2 (Mar 30 2017 - 19:07:16)
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: Preparing to start memory calibration
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: CALIBRATION PASSED
/data/de10-nano/release-build-2017.03.31/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/u-boot-socfpga/v2017.03+gitAUTOINC+d03450606b-r0/git/drivers/ddr/altera/sequencer.c: Calibration complete
Trying to boot from MMC1

I have done nothing to the board except verify the switches, insert the supplied SD card and apply power, any ideas?

Thanks


Re: Can't get past square 1 !

Posted: Thu Jul 04, 2024 8:50 pm
by dickhardpill

You need Mr Fusion?

https://github.com/MiSTer-devel/mr-fusion

edit to correct name.


Re: Can't get past square 1 !

Posted: Thu Jul 04, 2024 11:15 pm
by aberu

Contact Terasic, don't install any MiSTer hardware onto it yet.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 10:26 am
by Vic20-Ian

https://github.com/MiSTer-devel/Wiki_Mi ... etup-Guide

I would install the MiSTer image on the SD card and try that.

I have a USB board underneath, memory board, a bluetooth dongle and wifi dongle fitted.

All 4 switches on my board are UP next to the black connector near them.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 12:15 pm
by FPGA64

As Aberu said dont try and run Mister on it. Use the Terrasic supplied image. If that isnt working its the DE10 and you should contact terassic. As soon as you start trying to use Mister on it you will cause extra issues when you contact terassic for the return.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 1:11 pm
by Vic20-Ian
FPGA64 wrote: Sat Jul 06, 2024 12:15 pm

As Aberu said dont try and run Mister on it. Use the Terrasic supplied image. If that isnt working its the DE10 and you should contact terassic. As soon as you start trying to use Mister on it you will cause extra issues when you contact terassic for the return.

Get a different SD card and put MiSTer on that and try it.

If that boots fine then it was the supplied SD card at fault which you don't need afterwards anyway.

If it doesn't boot MiSTer then return the DE10 with the original SD card.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 1:38 pm
by dickhardpill

Running mr fusion on a completely separate SD card and attempting to boot will not hurt the DE10-nano and will not void any warranty.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 1:42 pm
by FPGA64
Vic20-Ian wrote: Sat Jul 06, 2024 1:11 pm
FPGA64 wrote: Sat Jul 06, 2024 12:15 pm

As Aberu said dont try and run Mister on it. Use the Terrasic supplied image. If that isnt working its the DE10 and you should contact terassic. As soon as you start trying to use Mister on it you will cause extra issues when you contact terassic for the return.

Get a different SD card and put MiSTer on that and try it.

If that boots fine then it was the supplied SD card at fault which you don't need afterwards anyway.

If it doesn't boot MiSTer then return the DE10 with the original SD card.

Terrasic have had issues with Mister returns in the past so best if you do it to never mention Mister and just say you used the supplied image and it failed


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 4:33 pm
by Vic20-Ian
FPGA64 wrote: Sat Jul 06, 2024 1:42 pm
Vic20-Ian wrote: Sat Jul 06, 2024 1:11 pm
FPGA64 wrote: Sat Jul 06, 2024 12:15 pm

As Aberu said dont try and run Mister on it. Use the Terrasic supplied image. If that isnt working its the DE10 and you should contact terassic. As soon as you start trying to use Mister on it you will cause extra issues when you contact terassic for the return.

Get a different SD card and put MiSTer on that and try it.

If that boots fine then it was the supplied SD card at fault which you don't need afterwards anyway.

If it doesn't boot MiSTer then return the DE10 with the original SD card.

Terrasic have had issues with Mister returns in the past so best if you do it to never mention Mister and just say you used the supplied image and it failed

It is a consumer retail unit. The end user can check if is is working and use it for their purpose.

This includes using it with a new SD card configured with MiSTer software.

Turn the DE10 so the writing is correctly oriented.

Check the SW10 dip switches. Mine are 1,3,5,6 On (up) and 2,4 down (Off)

Check the four larger switches are down (Away from main chip and next to the 2 edge connector sockets)

If the unit boots with a new SD card formatted and setup for MiSTer then the supplied SD card was at fault and the user has a working MiSTer.

If the unit does not boot with a new SD card formatted and setup for MiSTer then the DE10 Nano is at fault and can be returned with the original SD card.

Running the MiSTer Software on the DE10 is not an issue to test the unit and return it if faulty.

Plugging in accessory boards incorrectly or using the wrong power supply and damaging it would be an issue.


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 7:38 pm
by monaco87

Thanks for all the replies. I contacted Terasic first, I've heard nothing since. MrFusion image produces the same results. Tried multiple uSD cards also created using different method (etcher, rufus Linux dd etc.) all produce the same result.

Nothing seems to be broken as I can interrogate the uSD card from the uBoot prompt using

Code: Select all

mmc part, mmc info

and other commands. I notice that the boot process says "Trying to boot from MMC1" whilst the uBoot commands identify the uSD card as MMC0. Not sure if that's relevant.

Is there any way to reinitialise the DE-10 card to stock (which it should have already!) using JTAG, or is the ARM boot hard coded?

Can't return to Terasic as the card is 18 months old, that's what I get for buying it and then leaving it for so long!

Thanks for all the replies


Re: Can't get past square 1 !

Posted: Sat Jul 06, 2024 9:37 pm
by Vic20-Ian

Here is the boot image and start-up

de10-nano.terasic.com/cd

or here

https://www.terasic.com.tw/cgi-bin/page ... 6&PartNo=4

The source may also be there to recompile the image.


Re: Can't get past square 1 !

Posted: Tue Jul 09, 2024 6:20 pm
by monaco87

Ok did a lot more digging regarding the boot process. The issue seems to be related to run hdmi_cfg issued by the boot process via run hdmi_init. This seems to loop until it gets sucessfull I2C comms via HDMI - however I'm seeing :

Code: Select all

HDMI ERROR: reading I2C

I think the Analog Devices ADV7513 may be kaput, maybe I did it plugging in the HDMI cable, maybe it was faulty from Terasic.

Will try and replace it and see.


Re: Can't get past square 1 !

Posted: Tue Jul 09, 2024 10:55 pm
by aberu

Re: Can't get past square 1 !

Posted: Wed Jul 10, 2024 6:02 pm
by monaco87
aberu wrote: Tue Jul 09, 2024 10:55 pm

Check your DIP switches

https://mister-devel.github.io/MkDocs_M ... -de10-nano

I checked the DIP switches are correct early on, even checked switch continuity with a meter.