raise kernel load addr and slip stack under kernel on both 32bit and 64bit #8305
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
while using circuitpython on a pi-zero, i discovered that the stack code code was broken
32bit was operating in dynamic stack mode, but reporting entirely wrong addresses for things
but i noticed, aarch64 on the broadcom port, puts the stack below the kernel load addr
so i just used
kernel_address=0x100000
to change the load addr, for both 32bit and 64bit, raising it up a bit moreand made both 32bit and 64bit both have the stack below the kernel, allowing for the code to be simpler
edit:
confirmed the raspberrypi_zero_w build works on a zero-w
the raspberrypi_zero_w build also partially works on a pi1b, but the usb-hub blocks usb-device mode
the raspberrypi_zero2w build works on the zero2w
but hangs mid-boot on a pi3b (same SoC, but with a usb hub)
the raspberrypi_pi4b build boots on a pi4, but no usb-device or hdmi
repl works in hw uart