-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix the uboot for rock-3a #3271
Conversation
This was fixed with the patch for source command but now the patch is removed from Armbian because Radxa incorporated it in their sources. Seeing this error now is odd as it seems your local u-boot sources were not updated. |
Thanks for the tip, let me look into it |
862f684
to
dd7e6ad
Compare
@piter75 I confirmed and the correct line is there. I even tried this: catalinii@dd7e6ad#diff-b5be43512e74a30c65e79d6af8395b6febb45bf93f593637372c7d4de03afa87 but without much luck. What I can see is: Device 0: unknown device Booting FIT Image FIT: No fit blobFIT: No FIT image Is this expected? |
5dc2c0a
to
83d036b
Compare
Trying to see what is going on, so it seems that the actual image in the memory is not the right format. I get the following: Executing script at 00c00000--> start xxd boot/boot.scr | head -100000000: 2705 1956 ecf4 5dd6 61b5 6741 0000 0c31 '..V..].a.gA...1 So I am assuming at that location is not the correct content. |
0bd7352
to
59da606
Compare
@piter75 @igorpecovnik it seems that the issue is that the partition (mmc 1:1) has for some reason the size set as 1048576 blocks as here: By disabling that check the boot works as expected, but still not sure where that size comes from. The partition name is set to "boot" if that helps. |
@piter75 @igorpecovnik I have fixed the issue by preventing the EFI partition from being read before the DOS ones. The PR has been tested and works good on both focal and hirsute. |
Nice work @catalinii I have received a confirmation that this image works from your PR https://armbian.lane-fu.com/Armbian_21.11.0-trunk_Rock-3a_bullseye_legacy_4.19.193.img.xz |
@piter75 @igorpecovnik gentle ping for review |
Fine to merge |
add ssv6051 driver for kernel 5.10 and 5.15 (cherry picked from commit f3388b9) Add upstream patches (armbian#3380) (cherry picked from commit d7794cc) Fixes for Github Actions (armbian#3379) * Update build-beta-images.yml * Update build-kernel-on-merge-request.yml * Update build-train.yml (cherry picked from commit 6bfc83b) Refactor armbian-bsp-cli package creation (armbian#3378) * Refactor armbian-bsp-cli package creation - added general distro status for all in separate file inside BSP - remove branch and distro specifics * Looking for prebuild pack * Small fixes (cherry picked from commit 310495d) Cleanup. Remove deprecated build targets (armbian#3148) * Update targets.conf * Update targets-desktop-beta.conf * Update targets-cli-beta.conf * Update targets.conf Update targets according ot current status of maintainer list reduce userspaces to Focal reduce to xfce default desktop keep one minimal and one edge to check if they build at least. * adjust support status according current maintainer sheet * Readd pbp * Readd pbp * Readd C2 Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com> (cherry picked from commit 9d8a424) prepare_host: Installing packages with the install_pkg_deb function (armbian#3374) * separate joint and own lists for architecture Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Remove duplicate selection * Final add Installing build dependencies * libncurses: Do not use transitional package Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * add arch i386: Remove duplicate selection * lib32ncurses-dev: Dependency only for amd64 * install_pkg_deb: parameter verbose to log (cherry picked from commit 0282567) Improve fist login UX (armbian#3375) * Improve 1st login script * Update packages/bsp/common/usr/lib/armbian/armbian-firstlogin Co-authored-by: Manuel Rüger <manuel@rueg.eu> * Address accessibility issue Co-authored-by: Manuel Rüger <manuel@rueg.eu> (cherry picked from commit e76a5b0) fixes the manual launch of the installation script from USB media (armbian#3377) (cherry picked from commit 3f8da05) Bugfix - legacy kernels doesn't want to play nice with kernel options When NFSD is enabled as module, kernel does not compile. But it works as build in. Since its pretty pointless to fix in the code, lets use this workaround. FYI @patrickbkr (cherry picked from commit 2b4e9e6) Unify NFS configuration (armbian#3376) * Unify NFS configuration * Fix rk35xx kernel Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com> (cherry picked from commit 7698848) Limit sunxi-tools install to Allwinner family only Close armbian#2941 (cherry picked from commit 181d0e2) Re-enable rock-3a building now that it works (armbian#3373) Revert a change in bddce2c now that rock-3a building succeeds and provides a usable image (armbian#3271) (cherry picked from commit 32dc244) sun50iw9 - bugfix - change phy driver to build-in since it breaks compilation when added as module (cherry picked from commit 5a6b9b2) Install debian packages using a special function (armbian#3368) * Add new function install_pkg_deb Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Use the install_pkg_deb function Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * sunxi-tools: Calculate build dependencies Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * hostapd, hostapd-realtek: Calculate build dependencies Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Clean Environment for building as default * upgrading: Repack a clean Environment archive Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> (cherry picked from commit fedc9c1) fix kernel legacy for firefly-rk3399 (armbian#3369) (cherry picked from commit e453e4d) add station m2\p2 (armbian#3352) (cherry picked from commit 08568a6) Bump version to proceed on 22.02 Armbian Ratel (cherry picked from commit 483c055) Assemble needed runs into a GH Actions build train (armbian#3366) (cherry picked from commit 7f556dc) helios64: fix udev rules to let fancontrol work again (armbian#3367) (cherry picked from commit 37662d8) Fix the uboot for rock-3a (armbian#3271) * Sync kernel config with radxa and remove packaging patch * Merge the rockchip64 legacy config as well * Lower priority of EFI partitioning against DOS partitioning which is used by Armbian Co-authored-by: Catalin Toda <catalinii@yahoo.com> (cherry picked from commit f6143ef)
* Sync kernel config with radxa and remove packaging patch * Merge the rockchip64 legacy config as well * Lower priority of EFI partitioning against DOS partitioning which is used by Armbian Co-authored-by: Catalin Toda <catalinii@yahoo.com>
Revert a change in bddce2c now that rock-3a building succeeds and provides a usable image (armbian#3271)
* Sync kernel config with radxa and remove packaging patch * Merge the rockchip64 legacy config as well * Lower priority of EFI partitioning against DOS partitioning which is used by Armbian Co-authored-by: Catalin Toda <catalinii@yahoo.com>
Revert a change in bddce2c now that rock-3a building succeeds and provides a usable image (armbian#3271)
@catalinii hello, I'm working on |
@amazingfate please see this patch: https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rk35xx/board_rock-3a/0001-Lower-the-priority-of-EFI-to-be-after-DOS-partition.patch . This patch was added because of EFI vs DOS first partition size mismatch and the first EFI partition was too small for the uboot to load the kernel/dtb. |
Root cause of this issue is rockchip legacy u-boot has bad support for ext4 filesystem. Neither EFI nor DOS would make u-boot load kernel successfully. Your patch disabling the EFI mode will make rockchip_set_ethaddr not work, which is responsible for generating ethernet mac address in the uboot vnvm partition. If it doesn't work, every boot will have a random ethernet mac address. |
If you can think of a another workaround for sd card u-boot I think we can remove the patch. |
I build a image with mainline kernel and burn it to my SD card, but I can't reproduce your issue. Here is log:
|
We can remove it then.. |
@catalinii here is the root cause: https://forum.armbian.com/topic/12352-orange-pi-4/page/3/#comment-94322 |
Thanks I noticed that something is off trying to switch between android and armbian for rock 3a, but this explains it. Last time I used wipefs which did the trick but I think this post explains it. I am assuming more people will trip over this. |
IMO for start at least adding some warning / known issue / link to this conversation at the download pages. |
Do you know where the source of the download page is? I could add so the message to u-boot... |
WP, have sent you to email. |
@piter75 is the code restoring the gpt part of u-boot? If yes can you point out where? |
@catalinii for rk3399 the GPT restoration was part of the Rockchip's proprietary loader blob IIRC. |
Thx for the pointer |
Description
This PR improves the kernel configuration for radxa rock pi 3A by adding more modules.
Additionally, it consolidates the packaging patch into 1 locations to ensure it accounts for the custom patches added to the radxa 4.19 kernel.
I am currently experiencing what seems to be u-boot issues
Found U-Boot script /boot/boot.scr
fs_devread read outside partition 2640856
Executing script at 00c00000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
MMC error: The cmd index is 0, ret is -110
mmc_init: -110, time 4
starting USB...
**** This issue has been fixed by preventing EFI partitions from being read in U-boot ******
How Has This Been Tested?
Focal and Hirsute images
Checklist: