- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Comparing changes
Open a pull request
base repository: micropython/micropython
base: master
head repository: fupy/micropython
compare: master
Commits on Aug 8, 2019
-
Take a copy of the minimal target
Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 0cfa609 - Browse repository at this point
Copy the full SHA 0cfa609View commit details -
lm32: Basic port to the litex SoC with a lm32 CPU
This port requires a lm32 cross compiler with libgcc enabled. I built a GCC 6.2 toolchain with newlib by doing the following: $ ls binutils-2.27 gcc-6.2.0 mpc-1.0.2 newlib-2.4.0.20161025 gmp-6.1.1 mpfr-3.1.5 $ mkdir build $ cd build $ ../gcc-6.2.0/configure --prefix=/opt/lm32 --enable-languages=c --target=lm32-elf $ make $ mkdir /opt/lm32 && chown $USER /opt/lm32 $ make install Then build a litex Qemu with the following: $ git clone https://github.com/shenki/qemu-litex $ cd qemu-litex $ ./configure --target-list=lm32-softmmu $ make To build Micropython: $ cd micropython/lm32 $ CROSS_COMPILE=/opt/lm32/bin/lm32-elf- make deploy This produces an elf at lm32/build/firmware.elf. To run it: ./lm32-softmmu/qemu-system-lm32 -M litex -nographic -nodefaults \ -serial stdio -kernel ~/dev/micropython/lm32/build/firmware.elf MicroPython v1.8.6-12-g674efbf5680a on 2016-11-20; litex with lm32 Type "help()" for more information. >>> To debug it: ./lm32-softmmu/qemu-system-lm32 -M litex -nographic -nodefaults \ -serial stdio -kernel ~/dev/micropython/lm32/build/firmware.elf \ -S -s -monitor pty char device redirected to /dev/pts/12 (label compat_monitor0) This requires a lm32 GDB: $ conda/bin/lm32-elf-gdb build/firmware.elf -ex 'target remote localhost:1234' Reading symbols from build/firmware.elf...done. Remote debugging using localhost:1234 0x40000000 in _start () (gdb) c Continuing. You can attach to the monitor to view the lm32 registers that are not exposed by qemu: screen /dev/pts/12 (qemu) QEMU 2.7.50 monitor - type 'help' for more information (qemu) info registers IN: PC=40000000 ie=00000000 (IE=0 EIE=0 BIE=0) im=00000000 ip=00000000 eba=00000000 deba=00000000 The port currently assumes you are running on the opsis-soc, targeted for the minispartan6. You can adjust this by replacing the include/generated directories with the ones from your litex soc in both Qemu and Micropython. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f41bf29 - Browse repository at this point
Copy the full SHA f41bf29View commit details -
lm32: Build .bin as default target
Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b4ea4ba - Browse repository at this point
Copy the full SHA b4ea4baView commit details -
lm32: Update generated headers
Updated to use mimasv2 using headers from HDMI2USB build at commit cbd1e31b3a9f88e0d1ecb682b51f6d41454766de
Configuration menu - View commit details
-
Copy full SHA for 89863dc - Browse repository at this point
Copy the full SHA 89863dcView commit details -
lm32: include generated memory regions linker script
We were hardcoding the memory regions in the micropython linker script (lm32.ld). This way we pull in the correct definitions whenever we update the generated files. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e986102 - Browse repository at this point
Copy the full SHA e986102View commit details -
lm32: remove unused code from main
This follows what other ports do here. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4b74d77 - Browse repository at this point
Copy the full SHA 4b74d77View commit details -
lm32: Attempt to implement ctrl+c interrupt
Doesn't work. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 27c469a - Browse repository at this point
Copy the full SHA 27c469aView commit details -
lm32: Fix exception keystroke handling
ctrl+c can now interrupt execution. >>> while True: ... pass ... Traceback (most recent call last): File "<stdin>", in <module> KeyboardInterrupt: >>> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 5ad8bda - Browse repository at this point
Copy the full SHA 5ad8bdaView commit details -
Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for caa159f - Browse repository at this point
Copy the full SHA caa159fView commit details -
lm32: Don't build in frozen modules yet
We don't have any, and this was breaking building. It can be added back later when we need it. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 0ddc239 - Browse repository at this point
Copy the full SHA 0ddc239View commit details -
This does change some flags passed to the compiler, but for the most part should not result in any functional change. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9947b51 - Browse repository at this point
Copy the full SHA 9947b51View commit details -
lm32: Add longint implementation
Adds about 12k to the code size. Most ports MPZ over the LONGLONG version, which was my criteria for picking it. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 58519ec - Browse repository at this point
Copy the full SHA 58519ecView commit details -
This is the first module we've enabled. With these changes in place we it should't be much effort to add modules. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f1a653a - Browse repository at this point
Copy the full SHA f1a653aView commit details -
gitignore: add vim .un~ undo files to ignore
Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 7ddfe04 - Browse repository at this point
Copy the full SHA 7ddfe04View commit details -
Doesn't do anything yet. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 277b347 - Browse repository at this point
Copy the full SHA 277b347View commit details -
lm32: Update generated headers
Only change is the addition of the CAS module for allowing software access to the push buttons and LEDs Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e341311 - Browse repository at this point
Copy the full SHA e341311View commit details -
This lets micropython control the LEDs >>> import litex >>> led1 = litex.LED(1) >>> led1 LED(1) >>> led1.on() >>> led1.off() >>> led1.read() False >>> led1.on() >>> led1.read() False Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f6dfed0 - Browse repository at this point
Copy the full SHA f6dfed0View commit details -
lm32: point to latest gcc directory
This should not be hardcoded. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 692046e - Browse repository at this point
Copy the full SHA 692046eView commit details -
lm32: link with GCC and remove hardcoded paths
Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 67a419b - Browse repository at this point
Copy the full SHA 67a419bView commit details -
lm32: update generated directory
Generated from https://github.com/timvideos/HDMI2USB-litex-firmware cba56bb65db62a4ee25bb66f5858349f8b043b9b. Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4edb711 - Browse repository at this point
Copy the full SHA 4edb711View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a8aad4 - Browse repository at this point
Copy the full SHA 5a8aad4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7897471 - Browse repository at this point
Copy the full SHA 7897471View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07cc426 - Browse repository at this point
Copy the full SHA 07cc426View commit details -
Configuration menu - View commit details
-
Copy full SHA for f52efdd - Browse repository at this point
Copy the full SHA f52efddView commit details -
Allow litex leds to build with out cas
This is needed for opsis. Created issue to get cas enabled on opsis timvideos/HDMI2USB-litex-firmware#344
Configuration menu - View commit details
-
Copy full SHA for f07e051 - Browse repository at this point
Copy the full SHA f07e051View commit details -
Fixed read function for cas leds
litex_led_read now returns the correct value based on the state of the led.
Configuration menu - View commit details
-
Copy full SHA for 1cd8571 - Browse repository at this point
Copy the full SHA 1cd8571View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f59d08 - Browse repository at this point
Copy the full SHA 1f59d08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ef348f - Browse repository at this point
Copy the full SHA 7ef348fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b1cb82 - Browse repository at this point
Copy the full SHA 5b1cb82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c7bfee - Browse repository at this point
Copy the full SHA 4c7bfeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35110cf - Browse repository at this point
Copy the full SHA 35110cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 470a72b - Browse repository at this point
Copy the full SHA 470a72bView commit details -
Update crt0 name and build rules to track LiteX changes. Copying crt0…
… no longer needed.
Configuration menu - View commit details
-
Copy full SHA for edb89e1 - Browse repository at this point
Copy the full SHA edb89e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47bd489 - Browse repository at this point
Copy the full SHA 47bd489View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13a55a9 - Browse repository at this point
Copy the full SHA 13a55a9View commit details -
Files come from the following revision; ``` commit 537b0e9058e6a5b77f434f46f3a56849c82064bd Merge: 9c6f76f1 5c83c881 Author: enjoy-digital <florent@enjoy-digital.fr> Date: Tue Sep 18 08:19:09 2018 +0200 Merge pull request #101 from cr1901/icestorm-migen-pull Icestorm Improvements ```
Configuration menu - View commit details
-
Copy full SHA for 0a3e016 - Browse repository at this point
Copy the full SHA 0a3e016View commit details -
Added switch support for MimasV2.
Added a switch object to the litex module based off the led object.
Configuration menu - View commit details
-
Copy full SHA for 03b18aa - Browse repository at this point
Copy the full SHA 03b18aaView commit details -
Fixed function header for cas_switches_in_read to match real definition.
Configuration menu - View commit details
-
Copy full SHA for be0af15 - Browse repository at this point
Copy the full SHA be0af15View commit details -
Configuration menu - View commit details
-
Copy full SHA for f020cd4 - Browse repository at this point
Copy the full SHA f020cd4View commit details -
Improve include guards for boards which are missing some components o…
…f ControlAndStatus module.
Configuration menu - View commit details
-
Copy full SHA for 405b1f7 - Browse repository at this point
Copy the full SHA 405b1f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for cebb385 - Browse repository at this point
Copy the full SHA cebb385View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24065ed - Browse repository at this point
Copy the full SHA 24065edView commit details -
fupy/litex.ld: Account for .srodata.* sections which may be generated…
… by RISCV backends.
Configuration menu - View commit details
-
Copy full SHA for 6024305 - Browse repository at this point
Copy the full SHA 6024305View commit details -
Configuration menu - View commit details
-
Copy full SHA for b856c7a - Browse repository at this point
Copy the full SHA b856c7aView commit details
Commits on Mar 13, 2020
-
ports/fupy: Remove hw includes (use litex upstream)
ports/fupy/hw were cached copies of the litex software includes; however these change from time to time, which has caused the CSR access includes to be out of date. Instead of just caching a new version, remove the "hw" directory, and build with an environment that has a symlink to the litex includes.
Configuration menu - View commit details
-
Copy full SHA for e23216b - Browse repository at this point
Copy the full SHA e23216bView commit details
Commits on Apr 7, 2020
-
Merge pull request #58 from ewenmcneill/modern-litex
ports/fupy: Remove hw includes (use litex upstream)
Configuration menu - View commit details
-
Copy full SHA for a6b259a - Browse repository at this point
Copy the full SHA a6b259aView commit details
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.