-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Rockpis family #7382
Rockpis family #7382
Conversation
Also removed some obsolete board specific boot script tweaks
@JohnTheCoolingFan: Thank you for correcting the base branch! |
You should probably also update U-Boot for Rock Pi S, since v2024.07 and u-boot/u-boot@3149925 SDNAND boot should work without use of loader images. Recommend you to update to U-Boot v2024.10 for improved Rock Pi S v1.5 support and drop the use of sdnand loader. |
@Kwiboo Thanks for that tip. Could you please add it as a new issue in Jira or a Git task? |
Sorry, this is something you will have to do, I am not an Armbian user, just wanted to let you know about the fixed upstream version. |
I opened the jira ticket for u-boot v2024.10: https://armbian.atlassian.net/browse/AR-2514 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fail to see why boot-rock-s0.cmd
has been renamed to boot-rockchip64-ttyS0.cmd
.
It looks to me it has no references to the serial debug port, just received those $bootpart_distro
upgrades.
You could have kept the original name or boot-rockpi-s.cmd
if it requires specific customizations to boot a soc/board.
@paolosabatino if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyS2,1500000 ${consoleargs}"; fi Note that ttyS2 is changed to ttyS0 in boot-rockchip64-ttyS0.cmd Changing the file name from boot-rockpi-s.cmd seemed to make sense, as there is nothing rockpi-s specific in this file. It is just the standard boot script with the console redirected to ttyS0. It's currently used for the rockpi-s and rock-s0, but could just as well be used for any other rockchip64 based board. Another reason for changing the name was to make clear that this boot script should be kept updated with any changes made to boot-rockchip64.cmd. It had been getting out of date. The u-boot console on the RK3308 boards was moved to ttyS0 for two reasons:
|
@paolosabatino |
I wonder if we could make this board config and remove the hard definition from the boot commands entirely...
You're assuming a level of maturity and organization that I'm afraid you won't find here
I have no issues with this change. If I don't see anything to the contrary and no one else approves by tomorrow I'll give it a last look and approve. |
Making consoleargs board config sounds like a great idea. I'll look into it -- for a new PR... |
@brentr thanks for pointing out the ttyS2/ttyS0 change; I admit I could have paid more attention... more about the default console: isn't it possible to just add I thought the main reason for the alternative bootscript presence was the limited amount of memory on those rk3308 devices and thus juggling with load addresses; but if the main reason is the default console, then armbianEnv.txt just does the trick. By the way, moving to recent u-boot (>= v2024.07) would also solve any potential issues coming from load address because of the various fixes and proper relocation (see #6855 and #6731 for some past references) edit: mmh, it looks that A small change that would be backward compatible would be to treat
|
@paolosabatino I'll be happy to investigate this for another PR. I really do think providing a means to override consoleargs in the board config and updating the u-boot for the RK3308 devices are both good ideas! This PR was intended to address the issues raised in its description. I rather not expand it. Could someone please review it in that context? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it's pretty ok for me, just don't like the idea of having more pending files that will be forgotten there in the long run.
I approve this PR, then open a Jira ticket for some things I have noticed that can be enhanced on rockpi-s.
The consoleargs
thing would require some more bit of discussion, because it has the potential to be an inter-family feature and consistence across the families would be a nice thing.
edit: BTW, just for the sake of knowledge, hacking armbianEnv with:
console=none
consoleargs=console=ttyS0,1500000
accomplishes the task with the regular rockchip64 bootscript
…ian#7382) Also removed some obsolete board specific boot script tweaks
When RK3308 boards run SPL from eMMC and fail to load FIT from eMMC due to it being missing or checksum validation fails there can be a fallback to read FIT from SD-card. However, without proper pinctrl configuration reading FIT from SD-card may fail: U-Boot SPL 2024.04-rc4 (Mar 16 2024 - 12:36:12 +0000) Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 Card did not respond to voltage select! : -110 mmc_init: -95, time 12 spl: mmc init failed with error: -95 Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices (err=-6) ### ERROR ### Please RESET the board ### Fix this by tagging related emmc and sdmmc pinctrl nodes with bootph props. Also sort and move common nodes shared by all boards to the SoC u-boot.dtsi. Imply SPL_PINCTRL and SPL_DM_SEQ_ALIAS to apply correct pinconf before trying to load FIT from a device. Move u-boot,spl-boot-order to soc u-boot.dtsi and define both sdmmc and emmc nodes as fallback. Also fix boot from eMMC (SD NAND) on ROCK Pi S by using correct pinctrl. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
…ian#7382) Also removed some obsolete board specific boot script tweaks
Description
Removed families for RockPI 3308 based boards (RockPI-S and Rock-S0)
GitHub issue reference:
#6904
Jira reference number [AR-9999]
Jira ticket: AR-2409
Documentation summary for feature / change
None needed -- Only changing internal config files.
How Has This Been Tested?
Built and tested new Current and Edge images for both effected boards.
(4 images in total)
Checklist:
Please delete options that are not relevant.