Wednesday, 2020-04-22

*** tpb has joined #litex00:00
*** Degi_ has joined #litex00:11
*** Degi has quit IRC00:13
*** Degi_ is now known as Degi00:13
*** daniellimws has joined #litex00:30
*** CarlFK has quit IRC00:38
*** CarlFK has joined #litex01:46
*** futarisIRCcloud has joined #litex01:48
*** tcal has joined #litex01:59
*** Skip has quit IRC03:16
*** _whitelogger has quit IRC06:03
*** _whitelogger has joined #litex06:05
*** CarlFK has quit IRC06:15
*** HoloIRCUser has joined #litex06:32
*** HoloIRCUser2 has quit IRC06:34
*** HoloIRCUser1 has joined #litex07:27
*** HoloIRCUser has quit IRC07:29
futarisIRCcloudhttps://groups.google.com/forum/#!msg/linux-litex/f0NaNtXYCds/f4R75jeWAgAJ07:43
tpbTitle: Google Groups (at groups.google.com)07:43
*** CarlFK has joined #litex08:04
*** CarlFK has quit IRC08:08
*** borisnotes has joined #litex08:15
*** borisnotes has quit IRC08:45
*** futarisIRCcloud has quit IRC09:56
*** rohitksingh has quit IRC12:17
*** rohitksingh has joined #litex12:18
*** Skip has joined #litex14:04
*** palmer has quit IRC14:40
*** tcal has quit IRC16:10
*** tcal has joined #litex16:27
*** HoloIRCUser has joined #litex16:35
*** HoloIRCUser1 has quit IRC16:37
*** futarisIRCcloud has joined #litex18:10
*** CarlFK has joined #litex18:29
*** Skip has quit IRC18:50
*** Skip has joined #litex18:50
SkipWhat is the status of liteeth supprort in linux-on-litex-vexriscv?  I'm adding liteeth to the pano_logic_g2 target in litex-buildenv and it's working in the BIOS, but I don't see any new network devices in linux.18:53
daveshahSomeone else can help with the details as I'm not up to date with the latest linux-on-litex-vexriscv19:08
daveshahbut you need to make sure the liteeth driver is included in the kernel19:09
daveshahand there is a correct liteeth ethernet entry in the dts19:09
daveshahI think the kernel should include liteeth by default, so the issue is probably on the dts side19:09
Skipthanks for the pointer, I'll have a look.  I'm just using the build-linux.sh from litex-buildenv, I haven't even looked at it.19:39
somloSkip: check out https://github.com/gsomlo/riscv-pk/blob/gls-litex-devel/machine/litex_rocket.dts for an example of a DT entry for liteeth20:51
tpbTitle: riscv-pk/litex_rocket.dts at gls-litex-devel · gsomlo/riscv-pk · GitHub (at github.com)20:51
*** acathla has quit IRC21:45
*** Xesxen has quit IRC21:45
*** acathla has joined #litex21:46
*** Xesxen has joined #litex21:46
*** tcal has quit IRC21:47
*** somlo has quit IRC21:47
*** tcal has joined #litex21:51
*** somlo has joined #litex21:51
*** tmbinc has joined #litex22:03
tcaldaveshah: I recently played around with ethernet on arty a7 35T, had DNS running, could do a "traceroute amazon.com" from the linux prompt from the board.22:03
tmbincI was following https://github.com/timvideos/litex-buildenv/wiki/HowTo-Linux-on-Pano-Logic-G2 and it seems the memory map for image.json at the end is incorrect. Before doing a stupid edit, for me SDRAM memory ends up at 0x40000000, not 0xC0000000.  Did that recently change, or am  I missing something else?22:03
tpbTitle: HowTo Linux on Pano Logic G2 · timvideos/litex-buildenv Wiki · GitHub (at github.com)22:04
tmbincWith the right offsets, it boots into linux fine (on XC6SLX100)With the right offsets, it boots into linux fine (on XC6SLX100)22:04
tcaldaveshah: I made some config changes to my wifi router.   Let me send a pointer to a little writeup I did, if it's useful22:04
tcalskip: I'll try to find the info for you22:05
tcalSorry I can't figure out how to make the doc shareable and I need to run.   But, it does work!22:15
*** HoloIRCUser1 has joined #litex22:15
*** HoloIRCUser has quit IRC22:18
*** HoloIRCUser has joined #litex22:19
mithrotmbinc: I think the values may have changed recently22:21
*** Guest16974 has joined #litex22:21
*** HoloIRCUser1 has quit IRC22:22
*** Guest16974 has quit IRC22:27
tmbincwhere is emulator.bin supposed to reside? In main ram? I don't see linux leaving a hole for it here22:27
Skip@tmbinc Good to know!  I hadn't tried that yet.  I didn't realized that the device type could be overridden when I added "Currently only the XC6SLX150 based versions are supported.22:28
SkipBut there isn't enough flash so it will be serial boot or netboot.22:28
SkipI used the json from https://github.com/timvideos/litex-buildenv/wiki/HowTo-Linux-on-Pano-Logic-G2 successfully without any changes.22:29
tpbTitle: HowTo Linux on Pano Logic G2 · timvideos/litex-buildenv Wiki · GitHub (at github.com)22:29
SkipThanks @somio, looking at it now.22:31
tmbincSkip: may depend on the litex version then? i'm on litex-buildenv fc8799adbc9 (litex 2d018826532e486)22:34
mithrotmbinc: The hole for emulator.bin is only a new thing too22:37
tmbincHm it's not here apparently - I'm loading the emulator to 41100000, which seems fine, but then linux crash once I use sufficient memory22:41
tmbinc(which may or may not be related)22:41
Skip@tmbinc according to build/pano_logic_g2_base_vexriscv.linux/test/csr.json:22:41
Skip        "emulator_ram": {22:41
Skipi.e. 0x5000000022:42
tmbincHm I don't have this.22:43
tmbincwhich litex/litex-buildenv version are you on?22:43
tmbincand 0x50000000, is that sram?22:43
tmbincI feel I'm missing something here22:43
tmbincah, wait: 78ee1e26d53add79eefdf349d9be57616bfc843d "After updating to the newer LiteX, emulator binary is located in the main ram and does not need a separate memory segment"22:44
SkipI'm on a dirty branch derived from a0cb5fdf212350be92c53d16f293d4349b738d6022:44
tmbincok, 78ee is newer than that22:44
SkipI've added SPI support for the Pano and Ethernet.22:45
tmbincethernet, nice!22:45
SkipUnfortunately it needed changes to liteeth22:46
SkipThere s BUFGMUX in .../gmii.py which drove me nuts.  It causes an routing errors on the Pano.22:47
SkipI'll try 78ee  as soon as I get some bits locked down.22:49
SkipLinux isn't seeing the Ethernet, I'm just starting to dig into the dts.22:50
tmbinccan you boot from it already?22:51
SkipLinux boots currently boots from SPI flash, power cycle the Pano (wait forever...) ... lInux prompt.22:52
SkipThere's a PR for it: https://github.com/timvideos/litex-buildenv/pull/41022:53
tpbTitle: Panologic: Added SPI flash support. Successfully boots Linux from flash. by skiphansen · Pull Request #410 · timvideos/litex-buildenv · GitHub (at github.com)22:53
tmbincAh, I thought the SPI flash was too small. Is that just for the XC6SLX100 version?22:54
SkipIt's too small on the LX100 version, it's fine on the LX150 version.  There's even 3MB "spare" ... I'm going to try to do an overlay fw with it like OpenWRT "someday".22:58
SkipThe current bit file is uncompressed, some flash space can be free'ed by compressing it.22:59
SkipIf nothing else it'll load faster.22:59
Skiphttps://github.com/skiphansen/pano_progfpga/blob/master/Series2.md#series-2-rev-ab-spi-memory-map23:00
tpbTitle: pano_progfpga/Series2.md at master · skiphansen/pano_progfpga · GitHub (at github.com)23:00
SkipThat's the SPI memory map for the original Pano image.23:01

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!