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

introduce support for the SolidRun clearfog #250

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Artox
Copy link

@Artox Artox commented May 13, 2018

Initial support for the SolidRun Clearfog laned in FreeBSD with r319914.
The board has acceptable support in mainline U-Boot, as well as a
vendor fork based on 2018.01.
For now an MBR partition table is used, with a fat partition to load
DTB and ubldr from, reserved space covering the first 1M of the disk
to make sure installing u-boot later doesn't destroy the boot partition.

Note: this currently depends on issue #249

This is a first draft, let me know what you think, and if some things can be done differently.
Especially the reserved partition looks very hacky. My point was to reserve exactly the space that U-Boot may use. The vendor u-boot is configured to store the environment right before 1M into the block device that it is running from. So I made a partition that starts as early as possible, and spans up to sector 2047.
Maybe there could be a helper function for such task? Or, considering that nobody uses the disk_reserved_create function, maybe it could made to not align?

@Artox Artox force-pushed the pr-clearfog branch 3 times, most recently from 076f16c to 4d2d216 Compare May 15, 2018 21:28
Initial support for the SolidRun Clearfog laned in FreeBSD with r319914.
The board has acceptable support in mainline U-Boot, as well as a
vendor fork based on 2018.01.
For now an MBR partition table is used, with a fat partition to load
DTB and ubldr from, reserved space covering the first 1M of the disk
to make sure installing u-boot later doesn't destroy the boot partition.

Signed-off-by: Josua Mayer <[email protected]>
The Helios-4 uses the same SoM as the Clearfog and can share all of
the clearfog specific configuration.

The DTB has been copied from the Helios-4 linux fork on github.com:
https://github.com/helios-4/linux-marvell/blob/linux-marvell-4.4/arch/arm/boot/dts/armada-388-helios4.dts

Signed-off-by: Josua Mayer <[email protected]>
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