00:00
tpb has quit [Remote host closed the connection]
00:00
tpb has joined #litex
00:02
mikek_DE1SOC has joined #litex
00:06
<
mikek_DE1SOC >
hello all: Looking for HELP!! I have mu DE1SOC board working with Linux, booted over serial. But Trying to toggle LEDs, as per here!
00:07
<
mikek_DE1SOC >
But, The Class and GPIO do not seem to exist? Are they located somewhere else? Any help is eternally greatful!
00:22
<
tpb >
Title: Oh hey, I was just playing with this... it's really cool! There's a "Linux on Li... | Hacker News (at news.ycombinator.com)
00:23
<
mikek_DE1SOC >
Also Tried above, but did not work...
01:50
<
openpowerwtf >
may be dependent on platform definition, where physical pins are assigned
02:16
<
mikek_DE1SOC >
The Platform is the DE1SoC
02:17
<
mikek_DE1SOC >
here's what I have for /sys/class
02:17
<
mikek_DE1SOC >
oot@buildroot:/sys/class# ls -lrt
02:17
<
mikek_DE1SOC >
total 0
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 vtconsole
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:00 net
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 vc
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 tty
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 spidev
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 spi_master
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 pwm
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 mtd
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 mmc_host
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 misc
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 mem
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 mdio_bus
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 input
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 i2c-dev
02:17
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 i2c-adapter
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 hwmon
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 graphics
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 fpga_manager
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 drm
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 devlink
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 bsg
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 block
02:18
<
mikek_DE1SOC >
drwxr-xr-x 2 root root 0 Jan 1 00:07 bdi
02:18
<
mikek_DE1SOC >
The other issue is that the memory location of the CSR are not the same, from the gateware to the Linux sys.. :(
02:19
<
mikek_DE1SOC >
the CSR output from my DE1SoC build...
02:20
<
mikek_DE1SOC >
#--------------------------------------------------------------------------------
02:20
<
mikek_DE1SOC >
#--------------------------------------------------------------------------------
02:20
<
mikek_DE1SOC >
# Auto-generated by Migen (a5bc262) & LiteX (46cd9c5a) on 2021-11-13 20:43:27
02:20
<
mikek_DE1SOC >
csr_base,ctrl,0xf0000000,,
02:20
<
mikek_DE1SOC >
csr_base,identifier_mem,0xf0000800,,
02:20
<
mikek_DE1SOC >
csr_base,uart,0xf0001000,,
02:20
<
mikek_DE1SOC >
csr_base,timer0,0xf0001800,,
02:20
<
mikek_DE1SOC >
csr_base,led,0xf0002000,,
02:20
<
mikek_DE1SOC >
csr_base,sdram,0xf0002800,,
02:20
<
mikek_DE1SOC >
csr_base,switches,0xf0003000,,
02:20
<
mikek_DE1SOC >
csr_register,ctrl_reset,0xf0000000,1,rw
02:20
<
mikek_DE1SOC >
csr_register,ctrl_scratch,0xf0000004,1,rw
02:20
<
mikek_DE1SOC >
csr_register,ctrl_bus_errors,0xf0000008,1,ro
02:20
<
mikek_DE1SOC >
csr_register,uart_rxtx,0xf0001000,1,rw
02:20
<
mikek_DE1SOC >
csr_register,uart_txfull,0xf0001004,1,ro
02:20
<
mikek_DE1SOC >
csr_register,uart_rxempty,0xf0001008,1,ro
02:20
<
mikek_DE1SOC >
csr_register,uart_ev_status,0xf000100c,1,ro
02:20
<
mikek_DE1SOC >
csr_register,uart_ev_pending,0xf0001010,1,rw
02:20
<
mikek_DE1SOC >
csr_register,uart_ev_enable,0xf0001014,1,rw
02:20
<
mikek_DE1SOC >
csr_register,uart_txempty,0xf0001018,1,ro
02:20
<
mikek_DE1SOC >
csr_register,uart_rxfull,0xf000101c,1,ro
02:20
<
mikek_DE1SOC >
csr_register,timer0_load,0xf0001800,1,rw
02:20
<
mikek_DE1SOC >
csr_register,timer0_reload,0xf0001804,1,rw
02:20
<
mikek_DE1SOC >
csr_register,timer0_en,0xf0001808,1,rw
02:20
<
mikek_DE1SOC >
csr_register,timer0_update_value,0xf000180c,1,rw
02:20
<
mikek_DE1SOC >
csr_register,timer0_value,0xf0001810,1,ro
02:20
<
mikek_DE1SOC >
csr_register,timer0_ev_status,0xf0001814,1,ro
02:20
<
mikek_DE1SOC >
csr_register,timer0_ev_pending,0xf0001818,1,rw
02:20
<
mikek_DE1SOC >
csr_register,timer0_ev_enable,0xf000181c,1,rw
02:20
<
mikek_DE1SOC >
csr_register,led_out,0xf0002000,1,rw
02:21
<
mikek_DE1SOC >
But in the Linux system it points to a different Address location????
02:21
<
mikek_DE1SOC >
root@buildroot:/sys/bus/gpio/devices# ls -rlt
02:21
<
mikek_DE1SOC >
total 0
02:21
<
mikek_DE1SOC >
lrwxrwxrwx 1 root root 0 Jan 1 00:31 gpiochip0 -> ../../../devices/platform/soc/f0003000.gpio/gpiochip0
02:21
<
mikek_DE1SOC >
root@buildroot:/sys/bus/gpio/devices#
02:28
<
openpowerwtf >
do the verilog i/o look ok? serial, led, etc. pins are there?
02:29
<
mikek_DE1SOC >
yup.
02:29
<
mikek_DE1SOC >
LED are flashing right now... But with baremetal...
02:32
<
openpowerwtf >
ahhh, good...but i haven't gone the distance to linux yet :)
02:45
Degi has quit [Ping timeout: 245 seconds]
02:47
Degi has joined #litex
03:03
nereye has joined #litex
03:12
peepsalot has joined #litex
03:13
peeps[zen] has quit [Ping timeout: 268 seconds]
03:20
<
mikek_DE1SOC >
thanks for your help
03:20
<
mikek_DE1SOC >
Night...
03:20
mikek_DE1SOC has quit [Quit: Leaving]
03:39
peeps[zen] has joined #litex
03:41
peepsalot has quit [Ping timeout: 264 seconds]
03:54
peepsalot has joined #litex
03:55
peeps[zen] has quit [Ping timeout: 245 seconds]
06:39
nereye has quit [Quit: Client closed]
07:01
TMM_ has joined #litex
09:09
jeffdi has quit [Remote host closed the connection]
12:59
MartoniQuiNaQuUn has joined #litex
12:59
Martoni42 has joined #litex
15:14
peeps[zen] has joined #litex
15:15
peepsalot has quit [Ping timeout: 256 seconds]
16:18
jeffdi has joined #litex
18:12
SMB784 has quit [Ping timeout: 260 seconds]
18:13
SMB784 has joined #litex
18:22
SMB784 has quit [Remote host closed the connection]
18:25
MartoniQuiNaQuUn has quit [Quit: Leaving]
18:28
jeffdi has joined #litex
18:33
<
jeffdi >
Hello. This is Jeff DiCorpo from Efabless.com. We are working on a project to utilize Litex to generate the management SoC block as part of a full ASIC design used by the Google sponsor Open MPW program. The repo can be found here…
https://github.com/efabless/caravel_mgmt_soc_litex .
18:49
shalan has joined #litex
19:07
<
openpowerwtf >
would the user area then be a module also?
19:33
shalan has quit [Quit: Leaving.]
19:33
shalan has joined #litex
19:34
shalan has quit [Client Quit]
20:03
<
_florent_ >
Hi jeffdi, nice, thanks for sharing. Happy to help if you have questions/issues or just want to discuss specific points
20:17
Martoni42 has quit [Ping timeout: 268 seconds]
20:22
<
sajattack[m] >
_florent_: any ideas why I'm having issues with crossover uart after a litex update?
21:21
<
DerekKozel[m] >
Is Sean Blakley in the chat? I'd enjoy chatting about Thunderbolt. I have a udev script that could be useful for him.
23:26
TMM_ has joined #litex