Function Test RAM #28

Open
opened 5 years ago by jebba · 9 comments
jebba commented 5 years ago
Owner

Function Test RAM

Function Test RAM
jebba added this to the 1.0 milestone 5 years ago
jebba self-assigned this 5 years ago
jebba added the Function label 5 years ago
jebba added a new dependency 5 years ago
jebba commented 5 years ago
Poster
Owner

System boots into Linux with 256M at present.

System boots into Linux with 256M at present.
jebba commented 5 years ago
Poster
Owner

Add TrellisBoard, 1GB hack

linux-on-litex-vexriscv daveshah1:

4bb8cd9a06

Add TrellisBoard, 1GB hack linux-on-litex-vexriscv daveshah1: https://github.com/daveshah1/linux-on-litex-vexriscv/commit/4bb8cd9a06565b34470dd5fc4b6b07a914dbcf56
jebba commented 5 years ago
Poster
Owner

Add TrellisBoard, 1GB hack

LiteX daveshah1:

cade9717bb

Add TrellisBoard, 1GB hack LiteX daveshah1: https://github.com/daveshah1/litex/commit/cade9717bb8c00a888133a18bcf71759f65e43ca
jebba commented 5 years ago
Poster
Owner
litedram daveshah1: https://github.com/daveshah1/litedram/commits/ecp5_75MHz
jebba commented 5 years ago
Poster
Owner
https://github.com/daveshah1/versa_ecp5_dram/commits/trellis2
jebba commented 5 years ago
Poster
Owner

LiteX is getting set up with 512M:

--============ SoC info ================--
CPU:       VexRiscv @ 75MHz
ROM:       32KB
SRAM:      4KB
L2:        8KB
MAIN-RAM:  524288KB

But Linux only gets 256M:

root@buildroot:~# free -m
              total        used        free      shared  buff/cache   available
Mem:            241           2         233           0           5         230
Swap:             0           0           0

This can likely be increased just by changing the Linux boot line (from dmesg):

[    0.000000] Kernel command line: mem=256M@0xc0000000 rootwait console=liteuart earlycon=sbi root=/dev/ram0 init=/sbin/init swiotlb=32
LiteX is getting set up with 512M: <pre> --============ SoC info ================-- CPU: VexRiscv @ 75MHz ROM: 32KB SRAM: 4KB L2: 8KB MAIN-RAM: 524288KB </pre> But Linux only gets 256M: <pre> root@buildroot:~# free -m total used free shared buff/cache available Mem: 241 2 233 0 5 230 Swap: 0 0 0 </pre> This can likely be increased just by changing the Linux boot line (from dmesg): <pre> [ 0.000000] Kernel command line: mem=256M@0xc0000000 rootwait console=liteuart earlycon=sbi root=/dev/ram0 init=/sbin/init swiotlb=32 </pre>
jebba commented 5 years ago
Poster
Owner

https://twitter.com/enjoy_digital/status/1176730658057654272

Enjoy Digital
@enjoy_digital
Replying to
@mithro

@realForkSand
and 5 others
To remove the limitation (https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc_sdram.py#L85
), the mapping needs to be modified (https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/soc_linux.py#L45-L53) as @fpga_dave
did to have 1gB address space.

https://twitter.com/enjoy_digital/status/1176730658057654272 Enjoy Digital @enjoy_digital Replying to @mithro @realForkSand and 5 others To remove the limitation (https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc_sdram.py#L85 ), the mapping needs to be modified (https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/soc_linux.py#L45-L53) as @fpga_dave did to have 1gB address space.
jebba commented 5 years ago
Poster
Owner

Now at 512M

[    0.000000] Kernel command line: mem=512M@0xc0000000 rootwait console=liteuart earlycon=sbi root=/dev/ram0 init=/sbin/init swiotlb=32
root@buildroot:~# free 
              total        used        free      shared  buff/cache   available
Mem:         507272        3288      498688           0        5296      494692
Swap:             0           0           0
Now at 512M <pre> [ 0.000000] Kernel command line: mem=512M@0xc0000000 rootwait console=liteuart earlycon=sbi root=/dev/ram0 init=/sbin/init swiotlb=32 </pre> <pre> root@buildroot:~# free total used free shared buff/cache available Mem: 507272 3288 498688 0 5296 494692 Swap: 0 0 0 </pre>
jebba commented 5 years ago
Poster
Owner

I think it is now line 65 not 85 that should be linked in the tweet above:

https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc_sdram.py#L65

I think it is now line 65 not 85 that should be linked in the tweet above: https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc_sdram.py#L65
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Blocks
#20 Function Tests
forksand/fs-TrellisBoard
Reference: forksand/fs-TrellisBoard#28
Loading…
There is no content yet.