From: Jonathan Gray Date: Tue, 24 Sep 2019 00:19:25 +1000 Subject: [U-Boot] =?utf-8?q?rk3288_=28Tinkerboard=29_not_booting=E3=80=90?= =?utf-8?b?6K+35rOo5oSP77yM6YKu5Lu255SxdS1ib290LWJvdW5jZXNAbGlzdHMuZGVu?= =?utf-8?b?eC5kZeS7o+WPkeOAkQ==?= In-Reply-To: References: <20190923133134.GA39507@largo.jsg.id.au> <20190923053422.GA37062@largo.jsg.id.au> <8f3b3fc8-0ddf-ffbb-d18e-29092541db24@rock-chips.com> <266c5f804b792ce038315ebe49ad667d@unixzen.com> <718d9a0495c3d940e4f00038cbdd495e@unixzen.com> <5f3823eccbce1b4338ed6aef4d1d6a7f@unixzen.com> <0f0bc15accbea5a9ee0f027e7edf95b3@unixzen.com> Message-ID: <20190923141925.GB39507@largo.jsg.id.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 23, 2019 at 01:55:32PM +0000, Alexander von Gluck IV wrote: > Oh, a difference: > > $ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ > cat spl/u-boot-spl-dtb.bin >> idbloader.img > > I'm using the idbloader.img that u-boot automatically spits out. > > $ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img > Image Type: Rockchip RK32 (SD/MMC) boot image > Data Size: 20480 bytes > $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img > > However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img > that u-boot produces compared with md5sum. > > > Are you writing the following? > > sudo dd if=idbloader.img of=/dev/sdd seek=64 > sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384 those files/offsets yes > > (where /dev/sdd is a MicroSD card) > > These should be enough to get into u-boot at startup... correct? yes I am using uart2 https://www.asus.com/us/Single-Board-Computer/Tinker-Board/ 32 UART2TX_PWM3 33 UART2RX_PWM2 and 30 for ground > > I'm not missing some requirement of u-boot.bin on a FAT32 partition or something? the tpl/spl and u-boot proper are at raw offsets in this case > > -- Alex > > September 23, 2019 8:31 AM, "Jonathan Gray" wrote: > > > On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote: > > > >> Ok, looking for differences now.. > >> > >> * Older Tinker Board? (I'm not using the Tinker Board S) > > > > yes, the original one > > > >> * Same steps? > > > > along the lines of > > > > gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig > > gmake CROSS_COMPILE="arm-none-eabi-" all > > tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ > > cat spl/u-boot-spl-dtb.bin >> idbloader.img > > > >> * Same config? tinker-rk3288_defconfig? > > > > yes > > > >> * Uart 115200? > > > > yes > > > >> * Any HDMI Video output? > > > > no hdmi connected only serial > > > >> * GCC version? > > > > gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target > > > >> September 23, 2019 12:34 AM, "Jonathan Gray" wrote: > >> > >> On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote: > >> > >> Hello! > >> > >> There is no uart output and no video with u-boot master. > >> The board works as expected booting the Asus Armbian image on an SD. > >> > >> At this point i'd be happy to get some u-boot uart output :-) > >> > >> -- Alex > >> > >> uart output works here with the latest master > >> (780a17e814503f71d1b51d578b32bc9c89933183) > >> > >> U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) > >> Trying to boot from BOOTROM > >> Returning to boot ROM... > >> > >> U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) > >> Trying to boot from MMC1 > >> > >> U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) > >> > >> Model: Tinker-RK3288 > >> DRAM: 2 GiB > >> MMC: dwmmc at ff0c0000: 1 > >> Loading Environment from MMC... *** Warning - bad CRC, using default environment > >> > >> In: serial > >> Out: serial > >> Err: serial > >> Model: Tinker-RK3288 > >> rockchip_dnl_key_pressed: adc_channel_single_shot fail! > >> Net: eth0: ethernet at ff290000 > >> Hit any key to stop autoboot: 0 > >> switch to partitions #0, OK > >> mmc1 is current device > >> Scanning mmc 1:1... > >> Found EFI removable media binary efi/boot/bootarm.efi > >> libfdt fdt_check_header(): FDT_ERR_BADMAGIC > >> Scanning disk dwmmc at ff0c0000.blk... > >> Found 3 disks > >> BootOrder not defined > >> EFI boot manager: Cannot load any image > >> 88176 bytes read in 9 ms (9.3 MiB/s) > >> libfdt fdt_check_header(): FDT_ERR_BADMAGIC > >> OpenBSD/armv7 BOOTARM 1.6 > >> > >> boot> > >> _______________________________________________ > >> U-Boot mailing list > >> U-Boot at lists.denx.de > >> https://lists.denx.de/listinfo/u-boot