mainline u-boot on radxarock (rockchip rk3188) from SDcard
Hello,
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader from
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01 it doesn't seem to be able to find or boot from the SDcard:
U-Boot SPL 2018.01-dirty (Apr 29 2018 - 05:19:18) Returning to boot ROM...
U-Boot 2018.01-dirty (Apr 29 2018 - 05:19:18 +0000)
Model: Radxa Rock
DRAM: 2 GiB
MMC:
MMC Device 0 not found
*** Warning - No MMC card found, using default environment
In: serial at 20064000
Out: serial at 20064000
Err: serial at 20064000
Model: Radxa Rock
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
No MMC device available
No MMC device available
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
=>
Any thoughts?
Best regards,
Trevor
Quoted 4 lines · Trevor Woerner
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader from
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01
I was looking though the mailing list and was happy to see lots of recent activity with rk3188! Maybe there's a chance I'll get this working :-)
As such, I moved from 2018.01 to the most latest (i.e. 8c84287a0f225e29b688bda848e49a555c68a442)
Unfortunately I'm not seeing much of a change:
U-Boot SPL 2018.05-rc2-00145-g8c84287a0f-dirty (Apr 29 2018 - 23:06:29 +0000) Returning to boot ROM...
U-Boot 2018.05-rc2-00145-g8c84287a0f-dirty (Apr 29 2018 - 23:06:29 +0000)
Model: Radxa Rock
DRAM: 2 GiB
MMC:
Loading Environment from MMC... MMC Device 0 not found *** Warning - No MMC card found, using default environment
Failed (-5)
In: serial at 20064000
Out: serial at 20064000
Err: serial at 20064000
Model: Radxa Rock
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
No MMC device available
No MMC device available
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
=>
Anything else I can try testing?
Best regards,
Trevor
Hi Trevor,
It looks like the mmc driver does not work correctly, and no emmc/sdcard found.
Maybe you can enable 'DEBUG' and get more detail about what happen.
Thanks,
- Kever
Quoted 77 lines · Trevor Woerner
Hello,
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader from
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01 it doesn't seem to be able to find or boot from the SDcard:U-Boot SPL 2018.01-dirty (Apr 29 2018 - 05:19:18) Returning to boot ROM...
U-Boot 2018.01-dirty (Apr 29 2018 - 05:19:18 +0000)
Model: Radxa Rock
DRAM: 2 GiB
MMC:
MMC Device 0 not found
*** Warning - No MMC card found, using default environmentIn: serial at 20064000
Out: serial at 20064000
Err: serial at 20064000
Model: Radxa Rock
rockchip_dnl_key_pressed:adc_channel_single_shotfail!
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
No MMC device available
No MMC device available
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
=>Any thoughts?
Best regards,
Trevor
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
Hi,
Quoted 5 lines · Kever Yang
Hi Trevor,
It looks like the mmc driver does not work correctly, and no emmc/sdcard found.
Quoted 12 lines
Maybe you can enable 'DEBUG' and get more detail about what happen.
Thanks,
- KeverQuoted 6 lines · Trevor Woerner
Hello,
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader from
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01 it doesn't seem to be able to find or boot from the SDcard:
Do you use the dwmmc driver? or which driver are you using? And Could you share which defconfig is used?
Plz, CC'd me.
Best Regards,
Jaehoon Chung
Quoted 78 lines
Quoted 63 lines
U-Boot SPL 2018.01-dirty (Apr 29 2018 - 05:19:18) Returning to boot ROM...
U-Boot 2018.01-dirty (Apr 29 2018 - 05:19:18 +0000)
Model: Radxa Rock
DRAM: 2 GiB
MMC:
MMC Device 0 not found
*** Warning - No MMC card found, using default environmentIn: serial at 20064000
Out: serial at 20064000
Err: serial at 20064000
Model: Radxa Rock
rockchip_dnl_key_pressed:adc_channel_single_shotfail!
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
No MMC device available
No MMC device available
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
=>Quoted 8 lines
Any thoughts?
Best regards,
Trevor
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
Hi Jaehoon and Kever,
Quoted 10 lines · Jaehoon Chung
Hi,
Quoted 6 lines · Kever Yang
Hi Trevor,
It looks like the mmc driver does not work correctly, and no
emmc/sdcard found.Maybe you can enable 'DEBUG' and get more detail about what happen.
Is enabling DEBUG just a matter of increasing the logging levels (CONFIG_LOGLEVEL and CONFIG_LOG_MAX_LEVEL) to 7, or is something else required?
Quoted 10 lines
Quoted 9 lines
Thanks,
- KeverQuoted 4 lines · Trevor Woerner
Hello,
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader
from
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01 it doesn't seem to be able to find or boot from the
SDcard:
Do you use the dwmmc driver? or which driver are you using? And Could you share which defconfig is used?
Plz, CC'd me.
I'm using rock_defconfig, currently without any changes, as such MMC_DW_ROCKCHIP is enabled.
Dear Trevor,
Quoted 13 lines · Trevor Woerner
Hi Jaehoon and Kever,
Quoted 8 lines · Jaehoon Chung
Hi,
Quoted 5 lines · Kever Yang
Hi Trevor,
It looks like the mmc driver does not work correctly, and no
emmc/sdcard found.
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
Maybe you can enable 'DEBUG' and get more detail about what happen.
Is enabling DEBUG just a matter of increasing the logging levels (
CONFIG_LOGLEVELandCONFIG_LOG_MAX_LEVEL) to 7, or is something else required?
I think you can just add the CONFIG_MMC_TRACE in include/configs/<your haeder>.h Then we can see the command sequence. It's helpful to debug.
Quoted 16 lines
Quoted 16 lines
Quoted 11 lines
Thanks,
- KeverQuoted 4 lines · Trevor Woerner
Hello,
I am able to generate a bootable image (bootloader, parameter, kernel, filesystem) for my radxarock (pro) on an SDcard if I use the bootloader
from
Quoted 2 lines
Quoted 2 lines
https://github.com/radxa/u-boot-rockchip. When I try to use mainline u-boot_2008.01 it doesn't seem to be able to find or boot from the
SDcard:
Quoted 8 lines
Quoted 6 lines
Do you use the dwmmc driver? or which driver are you using? And Could you share which defconfig is used?
Plz, CC'd me.
I'm using
rock_defconfig, currently without any changes, as suchMMC_DW_ROCKCHIPis enabled.
Did you try to check v2018.03? Your log seems that "didn't initialize any card." You didn't any change? Your bootloader added "-dirty"
U-Boot 2018.01-dirty (Apr 29 2018 - 05:19:18 +0000)
When i didn't work SD-card or eMMC, i follow the below sequence.
1. Check the correct gpio and power.
2. Check the device tree.
3. Check the clock.
4. And then check the device driver.
5. Check the mmc core.
Now. I need to get your information more.
dt file, board name, etc...
If you have a version that it's working fine, then you can try to find a trouble patch with git bisect command.
Best Regards,
Jaehoon Chung
Quoted 1 line
Hi Trevor,
Am Mittwoch, 2. Mai 2018, 09:10:49 CEST schrieb Kever Yang:
Quoted 4 lines
Hi Trevor,
It looks like the mmc driver does not work correctly, and no
emmc/sdcard found.
I just sent off a series adding mmc support for rk3188 in u-boot, so maybe you could try that.
Heiko