Do you have the old bootloader on emmc? This causes sd is not booted and fails in atf…but as far as i understood you can boot into sd linux without maskrom or any other tricks.
Strange that you need to change boot to emmc…sdboot is working dor me after kernel-ci add the itb in the bpi-r2pro tarball. So if this can be booted you should have the right version.
Changed the fstab too as sdcard is mmcblk0 in image build script. Also changed systemd files abot so that lan should be up on bootup (when link detected, not forced up).
@ericwoud end0 is gmac for mt7531 switch. Wan on r2pro is other mac on soc and renamed from ethX to wan. Also added the cmdline param to uboots builtin env so mac is not renamed to end0
thanks adding extlinux/ to the files worked…thought the kernel-files have to be in extlinux-folder (relatively to the conf)…works now…need to find older card where i have older uboot and change either my buildimg or the kernel-script
edit: yes my old bootchain have looked for files in extlinux folder…my initrd is defined as “initrd /rootfs.cpio.lz4” because it is located in root…so i change the extlinux in the buildimg.sh
Do you have the old bootloader on emmc? This causes sd is not booted and fails in atf…but as far as i understood you can boot into sd linux without maskrom or any other tricks.
Strange that you need to change boot to emmc…sdboot is working dor me after kernel-ci add the itb in the bpi-r2pro tarball. So if this can be booted you should have the right version.
I can’t read from/see an SD card as soon as the Linux kernel is loaded, so if I try to boot off the SD card (with rootfs on SD) it hangs waiting for the rootfs. Even if I boot into Linux off of the emmc and then insert an SD card, mmcblk0 doesn’t appear in /dev. The only time I can read the SD card is in u-boot (e.g., fatls works from the u-boot console).
To confirm that it wasn’t something on the emmc, I wiped the emmc with:
# dd if=/dev/zero of=/dev/mmcblk1 status=progress
but the kernel still won’t detect the SD card. So I can load u-boot and a kernel off the SD card, but my rootfs needs to be on the emmc or on a SATA drive to boot the system.
Very strange…maybe something is broken on your board…was it working anytime before? Strange that it works in uboot but not in linux. And with my board it works now…
@sinovoip is something changed on r2pro with wan-port and mmc in newer hw revisions (after my v1.1 r2ro)?
@technocratik can you post full bootlog (txt file or pastebin)?
Very strange…maybe something is broken on your board…was it working anytime before?
Nope, I’ve never been able to boot off a rootfs on the SD card. And yes, I’m also starting to think I have an issue with my board.
Comparing with your boot log, I notice that the kernel can’t communicate with the RK809:
[ 3.459708] rk808 0-0020: failed to read the chip id at 0x17
I’m not sure if this is relevant, but if there is an issue with the PMIC, to my mind it could explain the sundry issues I’ve been having (kernel panics with the sinovoip images, SD card issues, etc.).
It is posssible that you have a pmic problem,but then it should stay in uboot-settings,but maybe uboot does not use uhs mode and kernel switches to it and fails. Ethernet is not usable in uboot because of missing rockchip/designware driver. Afair there is a separate iodomain for the wan-port which has to be raised voltage (default is 3v3 for all supplies and uboot does not initialize it).
You could try to read the i2c-bus (i2cdetect) and look for address of pmic,but i do not know how to get further.
edit: the uboot-extlinux path issue was fixed in 2023.07-rc5 with this commit
It is posssible that you have a pmic problem,but then it should stay in uboot-settings,but maybe uboot does not use uhs mode and kernel switches to it and fails. Ethernet is not usable in uboot because of missing rockchip/designware driver. Afair there is a separate iodomain for the wan-port which has to be raised voltage (default is 3v3 for all supplies and uboot does not initialize it).
I do get these errors right after u-boot loads:
can't get vref-supply: -121
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
so I will investigate the PMIC further, because it looks like it is the most likely culprit.
You could try to read the i2c-bus (i2cdetect) and look for address of pmic,but i do not know how to get further.
I did this, and i2c-0 showed no devices. So I probed I2C0_SCL_PMIC and I2C0_SDA_PMIC on my oscilloscope:
ID 0x17 yields no acknowledge on the I2C, but also it looks like I2C0_SDA_PMIC (in purple) is only being pulled up to ~1.2V, whereas I would expect its high voltage to be 3.3V like I2C0_SCL_PMIC (though I’m no expert). Can someone confirm that this is indicative of a fault?