<somlo>
_florent_, sajattack[m]: how do you guys format your sdcard? I used parted on linux to create a 2G fat16, then `mkdosfs -F 16 /dev/sdb1` to create the filesystem, then I copied two files (top.bit and boot.bin) to it (64bit rocket only needs one file, the BBL, which contains dt, kernel, and everything). Here's what I get when I try to boot it: https://pastebin.com/qmWzFGDX
<rjeschmi>
looking for some help with examples of dual LiteEthPHYRGMIIs (if it is even possible)
<rjeschmi>
I don't really need them to do anything right now, but litex seems to rename the conflicting clock domains automatically
<rjeschmi>
I worked around that, but it failed at the very end anyway (shared cell issue, or something I can probably reproduce it, but I'm not sure it was a sane thing to do anyway)
<somlo>
sajattack[m]: what size partition ?
<sajattack[m]>
4G
<somlo>
wait, does fat16 support that?
<sajattack[m]>
Yeah
scanakci has joined #litex
<somlo>
sajattack[m]: turns out the FAT datastructures were using 'unsigned long' to mean 4 bytes, which is only true on 32-bit CPUs (should be 'unsigned int' for portability to 64bit Rocket) -- see https://github.com/enjoy-digital/litex/pull/433
<tpb>
Title: Support SPI-mode SDCard booting on Litex+Rocket (64bit) configuration by gsomlo · Pull Request #433 · enjoy-digital/litex · GitHub (at github.com)
<sajattack[m]>
oh interestin
<sajattack[m]>
good ol' C variable width types
<somlo>
got it booting on 64-bit Rocket Chip enabled Litex -- \o/ :)
<sajattack[m]>
sweet
Degi_ has joined #litex
Degi has quit [Ping timeout: 264 seconds]
Degi_ is now known as Degi
CarlFK has quit [Ping timeout: 250 seconds]
<rjeschmi>
somlo: sounds cool
bubble_buster has joined #litex
CarlFK has joined #litex
gregdavill has joined #litex
Xark has quit [Ping timeout: 265 seconds]
Xark has joined #litex
_whitelogger has joined #litex
_whitelogger has joined #litex
HoloIRCUser has joined #litex
dasdgw42 has quit [Ping timeout: 272 seconds]
gregdavill has quit [Quit: Leaving]
RaYmAn_ is now known as RaYmAn
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
peeps[zen] has joined #litex
peepsalot has quit [Ping timeout: 264 seconds]
peepsalot has joined #litex
peeps[zen] has quit [Ping timeout: 240 seconds]
<rjeschmi>
_florent_: sure I'll do that when I wake up. Thanks. I don't really know litex or migen well.
<rjeschmi>
The only code I found kind of interesting was a dual HDMI in hdmi2usb
scanakci has quit [Quit: Connection closed for inactivity]
<rjeschmi>
_florent_: it seems like my problem is that they have a shared RESET pin, but are in two different clock domains
<rjeschmi>
ERROR: Cell 'eth0_rst_n$tr_io' cannot be bound to bel 'X0/Y47/PIOD' since it is already bound to cell 'eth1_rst_n$tr_io'
<rjeschmi>
I'll keep poking at it though
<daveshah>
Sounds like it is creating two resets with the same physical pin