normaly that should only be about properly configuring u-boot
also, i made some additions (on Arty7) to get the SPI flash read/write access from linux itself, and it worked, so should be easy to do with u-boot
todo
Lawrie Griffiths
@lawrie
@Dolu1990 I think u-boot has options for either using the sd card or SPI flash for storing the environment.
emard
@emard
I want sdcard's 1st partition mmcblk0p1=msdos, 2nd mmcblk0p2=linux. If uboot can get it working great - msdos can contain commandline parameters...
Lawrie Griffiths
@lawrie
@emard Why do you want to change the partition? On the Arty7, @Dolu1990 is using multple partitions. He has the u-boot files in p1 and linux in p2, both ext2. I could build an sdcard, the way you want it.
Dolu1990
@Dolu1990
Hoo then i would prefer sdcard to store the env, if possible
I thinkg having multiple partitions is the good way to go, especialy if we want :
p1 : u-boot
p2 : regular linux
p3 : Linux used to update P1 and P2 + serial flash
emard
@emard
I want same SD card to hold content for DOS and amiga and linux. Amiga wants to mount only 1st partition. Even ESP32 ftp> site mount is picky on partition sizes, in some special cases it will mount msdos which is not on 1st partition but in general it can also refuse
Lawrie Griffiths
@lawrie
Currently the dtb specifies the partition that linux uses for its rootfs, and u-boot.bin has the default boot command built in, and that specifies where uImage and dtb are loaded from. It is not too hard to rebuild them using the building from source description - https://github.com/SpinalHDL/SaxonSoc/tree/dev/bsp/Ulx3sLinuxUboot
emard
@emard
Well to make things super simple - can we make this: have dtb on SPI flash and few options for boot partition: p1,p2,p3. Or If I can somehow find and replace in hex editor mmcblk0p1 with mmcblk0p2 and flash it to spi, that is also ok
Lawrie Griffiths
@lawrie
I think getting the environment working with a uEnv.txt file is probably the best solution. But u-boot.bin would still probably specify which partition and directory that file was in.
We would have to change things in the bootloader to allow the dtb in flash, and that is not sufficient as u-boot.bin also needs to change.
@emard I too would like an sd card that supports multiple applications including Amiga and Linux.
emard
@emard
OK let it all be some TODO, and perhaps good serial port would get pretty high bang for the byte :)
emard
@emard
I have ordered compatible spi-eth module from ebay but ETA is jan-feb next year
Lawrie Griffiths
@lawrie
@Dolu1990 has a W5500 module working as well on other boards, but I couldn't get my one to work.
emard
@emard
I ordered ENC28J60 Ethernet LAN Network module, saw its driver in kernel, I dont care about the performance just that it works
Lawrie Griffiths
@lawrie
He also has a Microchip wilc1000 Wifi module working.
Yes, the ENC28J60 works for me, is easy to connect, and is fast enough for such a small linux system.
Dolu1990
@Dolu1990
@lawrie Normaly, today i will put in service my one on Arty7, will let's you know how it goes
Also, will likely work on some scripts to update the images from the network
Goran Mahovlic
@goran-mahovlic
@lawrie is there any ENC28J60 PMOD? or I need to make one?
Lawrie Griffiths
@lawrie
A Pmod would be useful. What I do is wire the breakout board for the ENC28J60 to a Diglient TPH2 Testpoint Pmod with breaboard wire and then I can plug it in and take it out like a Pmod.
_
emard
@emard
In the readme have some pins list which GP/GN to connect to ENC, something like:
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
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
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: