Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    emard
    @emard
    GP1 - MISO
    GP2 - MOSI
    GP3 - SCK
    etc.
    Lawrie Griffiths
    @lawrie
    I added an Ethernet section to the README with the pin mapping - https://github.com/lawrie/saxonsoc-ulx3s-bin/blob/master/linux/u-boot/README.md
    Lawrie Griffiths
    @lawrie
    You can use a Pmod in the opposite corner (GP0 etc.) for connecting an external JTAG device for debugging etc.
    Lawrie Griffiths
    @lawrie
    I also added a GPIO section to the README.
    And a link to the instructions for building from source.
    Goran Mahovlic
    @goran-mahovlic
    Not routed and did not place resistors at place, but schematics and pinout is done ...
    Lawrie Griffiths
    @lawrie
    You have the pins in the opposite order to me, as GP/GN14 is the one closest to GND and I have that as CS/SI.
    Goran Mahovlic
    @goran-mahovlic
    Tnx, will check again and change then
    Goran Mahovlic
    @goran-mahovlic
    That part should be better now
    Goran Mahovlic
    @goran-mahovlic
    I will switch to ENC28J60 QFN
    Goran Mahovlic
    @goran-mahovlic
    PMOD.png
    This one looks better
    emard
    @emard
    @lawrie great for the pinout, but to minimize dummy brain usage, I prefer to have list with identical pin names written on the module so instead of MISO there's let's say written "SO" and also it's better to mention what to do with rest of the module's pins for example NC - WOL, NC - INT, NC - CLK, GND - GND, 3.3V - VCC instead of let users random guess
    emard
    @emard
    https://www.ebay.co.uk/itm/New-ENC28J60-Ethernet-LAN-Network-Module-For-Arduino-SPI-AVR-PIC-LPC-STM32/141976891928 hey I ordered different module, it has 5V and 3.3V - will it work if powered only from 3.3V and 5V NC ?
    Lawrie Griffiths
    @lawrie
    Yes, mine has 5V, and I have left the 5V and GND at that end unconnected, and am powering it from 3.3V and GND at the other end. CLK and WOL are not connected. Note that INT is connected (see my description) - that is used. I have RST connected to 3.3V, but I expect that can be left unconnected. I will update the description.
    Lawrie Griffiths
    @lawrie
    I have also updated the ebay link to the exact one that I bought. Although the one in the picture says 16/02 and mine says 18/10.
    Goran Mahovlic
    @goran-mahovlic
    should I add holes for screws and make board bigger? Or this one is good enough?
    Lawrie Griffiths
    @lawrie
    Looks good enough to me, but the cable can apply some twisting force to it, so anyone who was using it more than just casually might appreciate a way of fixing it more firmly. But that applies to a lot of Pmods.
    Goran Mahovlic
    @goran-mahovlic
    I can add "ears" for screws and check out how it looks :)
    emard
    @emard
    For USB and ETH board to be properly put in a box, screw holes must be there for mechanical strength.
    Goran Mahovlic
    @goran-mahovlic
    Thanks to Drew we just got sponsorship for PMODs
    So I will accept wishes for next next PMODs
    Lawrie Griffiths
    @lawrie
    It that Drew Fustini of OSHPark?
    Goran Mahovlic
    @goran-mahovlic
    Yes :)
    Lawrie Griffiths
    @lawrie
    I have implemented @Dolu1990's flash access on the ulx3s, if anyone is interested. You can do things like:
    oot@buildroot:~# hexdump -C -n 100 /dev/mtd3
    00000000  93 06 10 00 13 06 00 00  93 05 09 00 13 05 0a 00  |................|
    00000010  ef f0 8f f8 6f f0 5f b4  03 a5 89 00 b7 e5 56 c0  |....o._.......V.|
    00000020  93 85 45 fb 13 05 85 10  ef 00 0b 8e 93 04 05 00  |..E.............|
    00000030  e3 00 05 c4 03 a5 89 00  b7 15 54 c0 13 86 04 00  |..........T.....|
    00000040  93 85 45 5b 13 05 85 10  ef 10 0b ef 13 8c 04 00  |..E[............|
    00000050  6f f0 df e8 03 a5 89 00  b7 15 54 c0 13 06 00 00  |o.........T.....|
    00000060  93 85 85 57                                       |...W|
    00000064
    root@buildroot:~# flash_erase /dev/mtd3 0 1
    Erasing 4 Kibyte @ 0 -- 100 % complete 
    root@buildroot:~# echo "Hello" >/dev/m
    mem               mmcblk0p1         mtd1              mtd2ro
    memory_bandwidth  mtd0              mtd1ro            mtd3
    mmcblk0           mtd0ro            mtd2              mtd3ro
    root@buildroot:~# echo "Hello" >/dev/mtd3
    root@buildroot:~# hexdump -C -n 100 /dev/mtd3
    00000000  48 65 6c 6c 6f 0a ff ff  ff ff ff ff ff ff ff ff  |Hello...........|
    00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
    *
    00000060
    emard
    @emard
    I'm interested, please release updated stuff :))
    Lawrie Griffiths
    @lawrie
    You just need to use sdimagef or sdimagef64 to get the versions with linux flash support. I have copied the dts as well as the dtb to /boot so you can see what dts is being used.
    emard
    @emard
    wonderful!
    Lawrie Griffiths
    @lawrie
    If you flash uboot-env-bin@0x310000, you should get a u-boot environment that you can save with saveenv. It currently saves to /boot/uboot.env in partition1, which must be ext2 or ext4.
    I could produce a version for you that uses partition2.
    You then need to override the kernel bootargs to make linux use partition 2. I have not tried that. You can see the existing bootargs in the dts.
    Lawrie Griffiths
    @lawrie
    There is now a version of u-boot in uboot-env2.bin@0x310000 that uses partition 2. That is it stores the environment in partition 2 and gets uImage and dtb from partition 2. You still need to override bootargs to make linux use partition 2 as the root partition.
    emard
    @emard
    saving environment works, wow this are developing fast!! I should download new stuff and try
    Lawrie Griffiths
    @lawrie
    Has anyone used the Ulx3s with an LCD screen. I would quite like to use it with this screen, which a few of use developed for the TinyFPGA BX - https://discourse.tinyfpga.com/t/bx-portable-game-console-project-collaboration/553/124
    Goran Mahovlic
    @goran-mahovlic
    Do you have some link for this screen?
    We did use some SPI screen but from Arduino
    It could be driven by a double Pmod. If it could be mounted in such a way that the buttons were accessible, it could make a self-contained portable gaming device .
    We used the 8080 8-bit interface and no touch screen option.
    Lawrie Griffiths
    @lawrie
    I believe @daveshah1 produced an LCD Pmod. Has that been used with the Ulx3s?
    Goran Mahovlic
    @goran-mahovlic
    yes, we have @daveshah1 LCD supported and next one should be https://www.tme.eu/hr/details/rfe43bh-aiw-dns/displeji-tft/raystar-optronics/
    That is used in envox BB3
    Lawrie Griffiths
    @lawrie
    I have Verilog and SpinalHDL drivers for that 320x240 8-bit interface LCD. We used it with PicoSoC on the TinyFPGA BX, but I have also used it from SaxonSoc (but not SaxonSoc Linux).
    Goran Mahovlic
    @goran-mahovlic
    would be so cool to have SaxonSoc Linux display
    Lawrie Griffiths
    @lawrie
    Yes, In was looking into what would be involved with that when I thought about supporting that 320x240 display.
    There is a @daveshah1 tweet (about the LiteX Linux version) that said that supporting a 320x240 display using a frame buffer console driver should not be too hard. That could either drive HDMI or use an LCD display. Not on our immediate roadmap, but I was interested in seeing what it would involve doing.
    emard
    @emard
    @daveshah1 made a double PMOD PCB for this I think 320x240 display, it is directly pluggable to ULX3S, it has VGA compatible timing and signals so core effort is very small. For a good framebuffer burst capable read of SDRAM is required. Tiled text graphics would be much faster than framebuffer. If we have linux-side developer then my c2 acceleation 2D video can be supported used also....
    Lawrie Griffiths
    @lawrie
    Yes, I have seen @daveshah1's PMOD and I saw Matt Venn's version of it he used on the iCEBreaker board - https://github.com/daveshah1/pmods
    I am not too keen on making one myself as my surface mount soldering skills are not very good, and I am not sure which LCD to use , or how to mount it. I have not seen anywhere where an assembled one can be bought.