Wednesday, 2021-10-20

openpowerbot[slack] <Matt Johnston> hooray, orangecrab dram seems going after updating to latest litedram07:53
openpowerbot[slack] <Matt Johnston> ```Initializing SDRAM @0x40000000...07:53
openpowerbot[slack] <Matt Johnston> Switching SDRAM to software control.07:53
openpowerbot[slack] <Matt Johnston> Read leveling:07:53
openpowerbot[slack] <Matt Johnston>   m0, b00: |01110000| delays: 02+-0107:53
openpowerbot[slack] <Matt Johnston>   m0, b01: |00000000| delays: -07:53
openpowerbot[slack] <Matt Johnston>   m0, b02: |00000000| delays: -07:53
openpowerbot[slack] <Matt Johnston>   m0, b03: |00000000| delays: -07:53
openpowerbot[slack] <Matt Johnston>   best: m0, b00 delays: 02+-0107:53
*** openpowerbot <openpowerbot!~openpower@94-226-186-169.access.telenet.be> has quit IRC07:53
*** openpowerbot <openpowerbot!~openpower@94-226-186-169.access.telenet.be> has joined #microwatt07:54
openpowerbot[slack] <Matt Johnston> on the arty are you poking things into dram to boot, or booting from flash?08:03
openpowerbot[slack] <Matt Johnston> on the arty are you (anyone?) poking things into dram to boot, or booting from flash?08:03
openpowerbot[slack] <Jeremy Kerr> Anton Blanchard just types the instructions in08:03
openpowerbot[slack] <joel> @Matt Johnston some people use mw_debug to poke things into dram, yep. I personally was flashing kernels to SPI NOR, but I've recently switched to using u-boot.12:28
openpowerbot[slack] <joel> 12:28
openpowerbot[slack] <joel> Paul did a u-boot port, and I added networking support, so now I grab the kernel over tftp12:28
openpowerbot[slack] <joel> Here are some instructions I wrote up for Amitay the other day:12:28
openpowerbot[slack] <joel> 12:28
openpowerbot[slack] <joel> If you're planning on running Linux I'd run this instead:12:28
openpowerbot[slack] <joel> ```fusesoc run --target=arty_a7-100 microwatt --no_bram --memory_size=0 --has_short_mult```12:28
openpowerbot[slack] <joel> By default it will load it onto the FPGA in volatile memory. You can flash it to the board with:12:28
openpowerbot[slack] <joel> ```microwatt/openocd/flash-arty -f a100 build/microwatt_0/arty_a7-100-vivado/microwatt_0.bit```12:28
openpowerbot[slack] <joel> I load Linux over the network using u-boot. If you put an ELF on the SPI flash at 0x400000, it will load and jump to it:12:28
openpowerbot[slack] <joel> ```wget http://ozlabs.org/~joel/microwatt/u-boot12:28
openpowerbot[slack] <joel> microwatt/openocd/flash-arty -f a100 u-boot -t bin -a 0x400000```12:28
openpowerbot[slack] <joel> Set up a tftp server on your network, and configure u-boot to point to it. You can get the MAC address of your Arty from the sticker on the Ethernet port. Software doesn't know anything about it, so save it into the flash:12:28
openpowerbot[slack] <joel> ```setenv serverip 192.168.x.x (your tftp server)12:28
openpowerbot[slack] <joel> setenv ethaddr MA:CA:DD:RE:SS12:28
openpowerbot[slack] <joel> saveenv```12:28
openpowerbot[slack] <joel> Here's a prebuilt kernel+initramfs: http://ozlabs.org/~joel/microwatt/dtbImage.microwatt.elf12:29
openpowerbot[slack] <joel> I guess that is less helpful for the OC, where you lack networking12:32
openpowerbot[slack] <joel> Time to write a USB gadget device so you can suck the image down over serial? or usb netwok?12:33
openpowerbot[slack] <Matt Johnston> serial seems like the simplest option for now. I've got a separate board attached to the uart pins13:10
openpowerbot[slack] <Matt Johnston> it isn't happy copying my EXTRA_PAYLOAD into dram and running that yet though13:11
lkclMatt: litex is, i believe, already designed so that during the early UART boot process it can detect "firmware upload"15:02
lkclsimilar to kermit, if you remember that :)15:02
lkclalthough a USB gadget would be cool15:03

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