openpowerbot | [mattermost] <lkcl> folks hi i'm currently working to be able to do a microwatt-verilator command-line boot of linux. https://git.libre-soc.org/?p=microwatt.git;a=shortlog;h=refs/heads/verilator_trace | 14:34 |
---|---|---|
openpowerbot | [mattermost] <lkcl> the basic principle is to take these instructions and morph them to be able to do "make microwatt-verilator; ./microwatt-verilator dtbImage.microwatt" | 14:35 |
openpowerbot | [mattermost] <lkcl> i've just run into the hilarious situation where because i bypassed the sdram_init loader, the udbg early-boot console was set to a UART divider clock frequency that would output one character every 3 days :) | 14:36 |
openpowerbot | [mattermost] <lkcl> the sdram_init.c loader runs console_init() which of course sets the right divider frequency but the corresponding linux kernel source *does not do that* (whoops) | 14:38 |
openpowerbot | [mattermost] <lkcl> what i am currently doing is allowing microwatt_verilator.c to load *two* binaries - sdram_init and dtbImage.microwatt | 14:39 |
openpowerbot | [mattermost] <lkcl> i will also modify SYSCON so that rather than the fall-through position (no SDRAM, no FLASH ==> BRAM-boot) to jump to address 0x0, a SYSCON_BRAM_BOOT_ADDR parameter is available | 14:41 |
openpowerbot | [mattermost] <lkcl> calling sdram_init.c "sdram_init" is at this point slightly misleading: it's actually now a "mini BIOS loader" similar to all the other early boot loaders such as u-boot-spl.bin, Berkely Bootloader (BBL) etc. etc. | 14:43 |
openpowerbot | [mattermost] <lkcl> can i make the recommendation of actually calling it what it is? :) | 14:43 |
openpowerbot | [mattermost] <lkcl> hmmmm variables.mak is preventing sdram_init.c from being compiled stand-alone, investigating how to work around that | 14:55 |
openpowerbot | [mattermost] <lkcl> okaaay, that's functional | 15:35 |
openpowerbot | [mattermost] <lkcl> https://twitter.com/lkcl/status/1477663451204005893 | 15:35 |
openpowerbot | [mattermost] <lkcl> ahh that's more like it. i switched from ben's original kernel to joel's microwatt-5.7 and the udbg issue goes away, i now have early console messages | 16:32 |
openpowerbot | [mattermost] <lkcl> https://twitter.com/lkcl/status/1477678851954257921 | 16:32 |
openpowerbot | [mattermost] <lkcl> ha! i'm getting verilator booting microwatt-5.7! | 19:05 |
openpowerbot | [mattermost] <lkcl> am seeing linux kernel debug messages | 19:05 |
*** ibot` <ibot`!~supybot@libre-soc.org> has joined #microwatt | 20:09 | |
*** ibot_ <ibot_!~supybot@libre-soc.org> has joined #microwatt | 20:13 | |
*** ibot <ibot!~supybot@libre-soc.org> has quit IRC | 20:13 | |
*** ibot` <ibot`!~supybot@libre-soc.org> has quit IRC | 20:15 | |
*** pietrushnic <pietrushnic!~pietrushn@2001:470:69fc:105::1:69c> has joined #microwatt | 21:51 | |
*** pietrushnic <pietrushnic!~pietrushn@2001:470:69fc:105::1:69c> has quit IRC | 22:16 | |
openpowerbot | [mattermost] <lkcl> oleee! https://twitter.com/lkcl/status/1477784365363044352 | 23:50 |
openpowerbot | [mattermost] <lkcl> https://ftp.libre-soc.org/microwatt-linux-5.7-verilator-2022-01-02_23-24.png | 23:51 |
openpowerbot | [mattermost] <lkcl> that's... deep breath: microwatt VHDL compiled to microwatt.v compiled to c++ with verilator that then loads two binaries, sdram_init.bin and dtbImage.microwatt into 512mb of c++-simulated BRAM that then executes and runs linux buildroot entirely from a simulated in-memory initramfs | 23:52 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!