Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uboot SPL updates #197

Merged
merged 10 commits into from
May 9, 2024
Merged

uboot SPL updates #197

merged 10 commits into from
May 9, 2024

Conversation

svenrademakers
Copy link
Collaborator

This commit adds logic to read the EEPROM inside SPL. This is used to
early initialize the correct hardware and load the correct hardware
device tree.

Secondly, moved from vanilla uboot repostory + patches to a
turing-machines fork of u-boot (patches are applied on top). This is an
attempt to have a more tight integration with git.

@svenrademakers svenrademakers force-pushed the feature/legacy_i2c branch 3 times, most recently from b39a9e9 to f9d2d08 Compare April 29, 2024 08:18
@svenrademakers svenrademakers marked this pull request as ready for review May 3, 2024 10:54
@svenrademakers svenrademakers force-pushed the feature/legacy_i2c branch 4 times, most recently from a58bb7b to 890fc3f Compare May 8, 2024 17:12
v2.5.1 dts
* changed RTC from twi0 to twi2 (compared to v2.5.0)
* processed the change in traces for power latches node 2 and 3 (compared to v2.5.0)

v2.5.0 =>
* doubled the ubi partition
* removed the usb-otg traces for nodes 2-4. Node 2, 3, and 4’s USB0 interface is connected directly to the USB hub which means the USB host/client mode switching does not make sense anymore.
This commit adds logic to read the EEPROM inside SPL. This is used to
early initialize the correct hardware and load the correct hardware
device tree.

Secondly, moved from vanilla uboot repostory + patches to a
turing-machines fork of u-boot (patches are applied on top). This is an
attempt to have a more tight integration with git.
This enables us to re-use the same bootloader for both 2.4 and 2.5
boards. The significant difference between the two, as far as the
bootloader is concerned, is the size difference of the flash.
Booting with FIT inamge turing-pi2-istall.its results in a magic error,
when the kernel tries to read the initramfs. Revert back to legacy
booting until issue is resolved
added a uboot variable that can be used to write a given eeprom version
in the EEPROM. This variable is to be used as a last resort to change the contents of the
eeprom.

first set the correct version inside the `eeprom_ver` variable before
calling `run burn_eeprom`.

Other content in the eeprom is untouched. Except the first 2 bytes
that will be set to 0xFF.

Crc gets recalculated and written as well.
enabling a second i2c bus causes initialization errors for the i2c
driver in uboot. disabling external rtc declaration in uboot for now
We dont have eth switch management yet in Linux. However move the reset
out of the uboot environment so that we can cleanly patch it out later.

Added a condition to assert to correct reset pin depending on the hw
version.
@svenrademakers svenrademakers merged commit fff523d into master May 9, 2024
1 check passed
@svenrademakers svenrademakers deleted the feature/legacy_i2c branch May 9, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant