rockchip-linux / u-boot

U-Boot tree for pending commits
115 stars 79 forks source link

Fireprime RK3128 doesn’t boot #17

Open harsszegi opened 6 years ago

harsszegi commented 6 years ago

Hello,

compiled system.img for Fireprime RK3128, but not even uboot starts (Minicom shows nothing) Please advise. Thanks,

keveryang commented 6 years ago

There is no SPL support for RK3128, you need to use rockchip miniloader instead. and U-Boot proper should be work for rk3128.

harsszegi commented 6 years ago

Can you be a bit more detailed what needs to be done? i have built the image with build/mk*.sh scripts and the endresult system.img didn’t boot.

harsszegi commented 6 years ago

Hello, this is what I get

U-Boot 2017.09 (Mar 10 2018 - 12:23:47 +0100)

Model: Rockchip RK3128 Evaluation board DRAM: rk3128_dmc_probe: grf=20008000 1010 MiB MMC: dwmmc@1021c000: 0 Using default environment

In: serial2@20068000 Out: serial2@20068000 Err: serial2@20068000 Model: Rockchip RK3128 Evaluation board rockchip_dnl_key_pressed adc_channel_single_shot fail! Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 2  1  0 Card did not respond to voltage select! mmc_init: -95, time 13 Unknown command 'rknand' - try 'help' Unknown command 'boot_android' - try 'help' Unknown command 'bootrkp' - try 'help'

keveryang commented 6 years ago

U-Boot works, but not able to boot into kernel, what kind of image do you need to boot? You may need to revert below patch for linux distro boot: 5059d29 rockchip: config: add a bootcmd for rkimg

harsszegi commented 6 years ago

uboot started only after I fixed the build/mk-uboot.sh and build/mk-image.sh. Will try your patch.

harsszegi commented 6 years ago

DDR Version 2.04 20150121 In 1A1A292B 0 1A1A2829 3 LPDDR2 29292829 F Bus Width=32 Col=10 Bank=8 Row=14 CS=2 Die Bus-Width=32 Size=1024MB mach:14 OUT Boot1 Release Time: 2015-05-25, version: 2.25 ChipType = a 1374 No.1 FLASH ID:ad de 14 a7 42 4a ECC:60 *V«k%¹¥Ñõ0 20 StorageInit ok = 727166 theLoader 60000000 894400

U-Boot 2017.09 (Mar 12 2018 - 07:13:41 +0100)

Model: Rockchip RK3128 Evaluation board DRAM: rk3128_dmc_probe: grf=20008000 1010 MiB MMC: dwmmc@1021c000: 0 Using default environment

In: serial2@20068000 Out: serial2@20068000 Err: serial2@20068000 Model: Rockchip RK3128 Evaluation board rockchip_dnl_key_pressed adc_channel_single_shot fail! Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 2  1  0 Card did not respond to voltage select! mmc_init: -95, time 12 MMC Device 1 not found no mmc device at slot 1 starting USB... USB0: Core Release: 2.91a USB1: USB EHCI 1.00 USB2: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device 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.

Call me lame, but isn't the whole problem, that the NAND is not recognized? Or? What do I see wrong? Thanks,

harsszegi commented 6 years ago

Most of the issues are resolved with the latest version. a.) rockusb is properly working via old update_tool b.) bootrkp fixed. However nandc is still not enabled in DTSI, CONFIG_RKNAND is not enabled so I'd say the current config can only boot via EMMC, USB or network