[Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread mugginsac
I rebuilt the uSD with an ext2 filesystem.

At first I got a bunch of messages related to the initialization. Then a 
bunch of characters seem to scroll down the right side of the "terminal" 
screen in a single column.

Then after awhile, I got a login prompt in minicom, but I couldn't get it 
to accept enough characters to be able to login.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread Charles Steinkuehler
On 8/20/2017 6:38 PM, mugginsac wrote:
> OK, my face is red. Yes I was plugging into the wrong port. It is running 
> u-boot-with-spl but it is looking for an ext2 partition instead of an ext4. 
> So 
> after a while it starts looking for a USB device.

With the three different USB ports, it's easy to do.  I've done this
myself, which is one reason I know what the symptoms are!  ;-)

Now that you can see the boot messages, hopefully you will be able to
get the board to boot properly.  If not, post details about the next
problem you run into.

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


[Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread mugginsac
OK, my face is red. Yes I was plugging into the wrong port. It is running 
u-boot-with-spl but it is looking for an ext2 partition instead of an ext4. 
So after a while it starts looking for a USB device.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread Charles Steinkuehler
On 8/20/2017 4:35 PM, Charles Steinkuehler wrote:
> On 8/20/2017 4:03 PM, mugginsac wrote:
>> Well it appears that the not so fun situation is the case. When I unplug 
>> power 
>> from the DE10-Nano the ftdi chip disappears. I also tried plugging DE10 
>> cable 
>> into a powered hub instead of directly into the desktop box but same result.
>>
>> How about if I plug in the DE10, get the ttyUSB0 and then press and release 
>> the 
>> HPS reset?
> 
> That works, but at the risk of corrupting any mounted filesystems if
> Linux has already booted.  If you can't get Linux booted, resetting
> the HPS to watch the serial boot messages is fine, there's no
> potential to corrupt filesystems if they aren't mounted!  :)

I just looked over the schematic for the DE10-Nano and pulled my DE10
out of the box for testing.  If I connect just a USB cable to the
board, a new USB serial port shows up on my workstation.  If I connect
to this port (115200 baud, 8n1) and apply power to the board, I get
the expected boot messages (see below) when using the uSD card
supplied with the board.

Are you perhaps connecting to the USB-Blaster II port (J13, next to
the HDMI connector) and not the USB-UART port (J4, next to the
Ethernet port)?


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
=>



-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread Charles Steinkuehler
On 8/20/2017 4:03 PM, mugginsac wrote:
> Well it appears that the not so fun situation is the case. When I unplug 
> power 
> from the DE10-Nano the ftdi chip disappears. I also tried plugging DE10 cable 
> into a powered hub instead of directly into the desktop box but same result.
> 
> How about if I plug in the DE10, get the ttyUSB0 and then press and release 
> the 
> HPS reset?

That works, but at the risk of corrupting any mounted filesystems if
Linux has already booted.  If you can't get Linux booted, resetting
the HPS to watch the serial boot messages is fine, there's no
potential to corrupt filesystems if they aren't mounted!  :)

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread mugginsac
Well it appears that the not so fun situation is the case. When I unplug 
power from the DE10-Nano the ftdi chip disappears. I also tried plugging 
DE10 cable into a powered hub instead of directly into the desktop box but 
same result. 

How about if I plug in the DE10, get the ttyUSB0 and then press and release 
the HPS reset?

Alan


-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] Re: Will DE0-Nano image work on a DE10-Nano board?

2017-08-20 Thread Charles Steinkuehler
On 8/19/2017 4:51 PM, mugginsac wrote:
> OK, I can now get a /dev/ttyUSB0. I had to add altera vendor id 0x09fb and 
> DE10 
> product id 0x6810 to ftdi_sio. I have to plug in the USB cable from the DE10 
> to 
> get ftdi_sio to load. Then by the time I get it plugged in and putty loaded 
> there is nothing coming over the console. If I try to start putty before 
> plugging in the DE10 I get no /dev/ttyUSB0 found.

If the DE10 is like the DE0, you should be able to leave the USB cable
plugged in, which will keep the FTDI chip powered so you have a USB
serial connection even without 5V power applied to the DE10.  Then
apply power to the DE10 and you can see the boot messages.

Otherwise if it's like the early SoC boards (like the SoCKIT), the
FTDI chip "disappears" if you don't have system power applied so to
see all the boot messages you have to hold the HPS in reset while
applying power, get the USB port to show up and connect it to a
terminal program (using the one hand that isn't pressing the reset
button), then release the HPS reset.  Lots of fun (not!).  :)

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.