FireFly RK3288 not booting

Hi,

I have build image for FireFly-RK3288, i have referred asus tinker board S, Since both uses same SOC. But the image is not booting. it keeps restarting after few seconds of “Starting Kernel …”
Advice plz…

Pleas find the serial logs below

U-Boot SPL 2017.07 (Apr 08 2020 - 20:25:24)
Returning to boot ROM...

U-Boot 2017.07 (Apr 08 2020 - 20:25:24 +0000)

Model: Firefly-RK3288
DRAM:  2 GiB
MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Firefly-RK3288
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Scanning mmc devices 0 1 2
reading resin-image-flasher
** Unable to read file resin-image-flasher **
reading resin-image
24 bytes read in 4 ms (5.9 KiB/s)
Card did not respond to voltage select!
mmc_init: -95, time 119
** Bad device mmc 1 **
** Bad device mmc 2 **
Found resin image on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 1
reading resinOS_uEnv.txt
** Unable to read file resinOS_uEnv.txt **
reading zImage
11772744 bytes read in 1291 ms (8.7 MiB/s)
reading firefly-rk3288.dtb
37798 bytes read in 9 ms (4 MiB/s)
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 0fff3000, end 0ffff3a5 ... OK

Starting kernel ...


U-Boot SPL 2017.07 (Apr 08 2020 - 20:25:24)
Returning to boot ROM...

U-Boot 2017.07 (Apr 08 2020 - 20:25:24 +0000)

Model: Firefly-RK3288
DRAM:  2 GiB
MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Firefly-RK3288
Net:   No ethernet found.
Hit any key to stop autoboot:  0
=> printenv
arch=arm
autoload=no
base_os_cmdline=console=null quiet splash vt.global_cursor_default=0 consoleblank=0
baudrate=115200
board=firefly-rk3288
board_name=firefly-rk3288
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/overlays
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc0 mmc1 usb0 pxe dhcp
bootcmd=setenv resin_kernel_load_addr ${kernel_addr_r};run resin_set_kernel_root;setenv bootargs ${resin_kernel_root} rw rootfstype=ext4 rootwait console=tty1 console=ttyS3,115200n8;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} zImage;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${fdt_addr_r} firefly-rk3288.dtb;bootz ${resin_kernel_load_addr} - ${fdt_addr_r}
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_mmc1=setenv devnum 1; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; env set bootfile;dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=5
cpu=armv7
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr_r=0x01f00000
fdt_high=0x0fffffff
fdt_overlay_addr_r=0x01e00000
fdtcontroladdr=7cf65788
hw_conf_addr_r=0x00700000
initrd_high=0x0fffffff
kernel_addr_r=0x02000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
partitions=uuid_disk=${uuid_gpt_disk};name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};name=reserved1,size=64K,uuid=${uuid_gpt_reserved1};name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};name=loader2,size=4MB,uuid=${uuid_gpt_loader2};name=atf,size=4M,uuid=${uuid_gpt_atf};name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};name=rootfs,size=-,uuid=69DAD710-2CE4-4E3C-B16C-21A1D49ABED3;
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x04000000
resin_boot_part=1
resin_check_altroot=setexpr resin_roota ${resin_boot_part} + 1; setexpr resin_rootb ${resin_boot_part} + 2; if test -n ${bootlimit}; then if test ${bootcount} -gt ${bootlimit}; then echo WARNING! BOOTLIMIT EXCEEDED. SWITCHING TO PREVIOUS ROOTFS; if test ${resin_root_part} -eq ${resin_roota}; then env set resin_root_part ${resin_rootb}; else; env set resin_root_part ${resin_roota}; fi;fi;fi;
resin_env_file=resinOS_uEnv.txt
resin_find_root_part_uuid=part uuid ${resin_dev_type} ${resin_dev_index}:${resin_root_part} resin_root_part_uuid
resin_flasher_detect=if test "${resin_scan_dev_type}" = usb ; then usb start ; fi; fatload ${resin_scan_dev_type} ${resin_scan_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_flasher_flag_file};
resin_flasher_flag_file=resin-image-flasher
resin_flasher_skip=0
resin_image_detect=if test "${resin_scan_dev_type}" = usb ; then usb start ; fi; fatload ${resin_scan_dev_type} ${resin_scan_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_image_flag_file};
resin_image_flag_file=resin-image
resin_import_env_file=echo Import ${resin_env_file} in environment;env import -t ${resin_kernel_load_addr} ${filesize}
resin_inject_env_file=if run resin_load_env_file; then run resin_import_env_file;fi;
resin_load_env_file=echo Loading ${resin_env_file} from ${resin_dev_type} device ${resin_dev_index} partition ${resin_boot_part};fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_env_file};
resin_root_part=2
resin_scan_devs=echo Scanning ${resin_uboot_device_types} devices ${resin_uboot_devices}; for resin_scan_dev_type in ${resin_uboot_device_types}; do for resin_scan_dev_index in ${resin_uboot_devices}; do if test ${resin_flasher_skip} = 0 && run resin_flasher_detect; then setenv resin_flasher_dev_index ${resin_scan_dev_index}; setenv resin_dev_type ${resin_scan_dev_type}; exit; else; if test -n "${resin_image_dev_index}"; then ;else if run resin_image_detect; then setenv resin_image_dev_index ${resin_scan_dev_index}; setenv resin_dev_type ${resin_scan_dev_type}; fi; fi; fi; done;done;
resin_set_dev_index=run resin_scan_devs; if test -n ${resin_flasher_dev_index}; then echo Found resin flasher on ${resin_dev_type} ${resin_flasher_dev_index}; setenv bootparam_flasher flasher; setenv resin_dev_index ${resin_flasher_dev_index}; else; if test -n "${resin_image_dev_index}"; then echo Found resin image on ${resin_dev_type} ${resin_image_dev_index}; setenv resin_dev_index ${resin_image_dev_index}; else; echo ERROR: Could not find a resin image of any sort.; fi; fi;
resin_set_kernel_root=run resin_set_dev_index;run resin_inject_env_file;run resin_check_altroot;run resin_find_root_part_uuid;setenv resin_kernel_root root=PARTUUID=${resin_root_part_uuid}
resin_uboot_device_types=mmc
resin_uboot_devices=0 1 2
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x00000000
set_os_cmdline=setenv os_cmdline ${base_os_cmdline} ${bootparam_flasher};
soc=rockchip
stderr=serial,vidconsole
stdin=serial,cros-ec-keyb
stdout=serial,vidconsole
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
vendor=firefly

I’m not sure if this is helpful, but this seems to suggest that it can’t access the internal SD card?

hi @ErikHH,

I have flashed the eMMC. which is mmc 0

Thanks

Hi, what hardware exactly are you working with?

Hi @floion

Firefly Rk3288 - http://wiki.t-firefly.com/en/Firefly-RK3288/started.html
AIO 3288C - http://wiki.t-firefly.com/en/AIO-3288C/started.html

I have both which is based out of RockChip 3288 SoC

So you would need to do a separate build for these boards as the Asus Tinkerboard image may not be suited for it as you can see. Did you build the specific kernel and u-boot that the hardware vendor supplies for these boards? Did you use a yocto bsp layer?

HI @floion,

I have used have setup yocto for this board (I just used ASUS Tinker S as reference ).
u-Boot :

SRCREV = "0cbcc0181abe8bccdf371941382e977412b5c71b"
SRC_URI = " \
    git://github.com/FireflyTeam/u-boot.git;branch=rk3288/firefly;\
    "  

Kernel :
LINUX_VERSION = “4.4.194”

SRC_URI = " \
    git://github.com/FireflyTeam/kernel.git;branch=rk3288/firefly; \
    "

SRCREV = "9f933a098512041f4105e112b81e88b0ff18b0bf"

thanks

In this case you would need to know more details on the board boot-up procedure. Where does the generated u-boot need to be located in order to boot from the SD card?

Hi I have set it to eMMC, I am flashing emmc directly.

Hi, from the U-Boot output it seems to be reading a zImage kernel and a firefly-rk3288.dtb device tree. Assuming you have modified U-Boot bootscript to boot the correct kernel image and device tree, it might be that the serial console is not correctly configured for your board.
From the U-Boot environment I see this is probably set to console=ttyS3,115200n8. If the serial console is not correctly passed to the kernel, it might be booting but not outputting anything. The first step to debug further would be to get some serial output from the kernel.

HI @alexgg,
thanks its was ttyS2,

Now it keeps restarting after

Welcome to balenaOS 2.38.3+rev7!

[    6.705139] systemd[1]: No hostname configured.
[    6.710214] systemd[1]: Set hostname to <localhost>.
[    6.719805] systemd[1]:

Hi, as it seems systemd is booting, you can try to enable debug output by adding the following to your kernel command line:

systemd.log_level=debug systemd.log_target=console

Or launch into a debug shell with:

systemd.debug-shell=1

HI @alexgg

After setting above in kernel cmd line ,I don’t see more logs, It keeps restarting after “Welcome to balenaOS 2.38.3+rev7!” continuously

[    5.884171] systemd[1]: System time before build time, advancing clock.
[    5.901788] cgroup: cgroup2: unknown option "nsdelegate"
[    5.919610] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    5.944461] systemd[1]: Detected architecture arm.

Welcome to balenaOS 2.38.3+rev7!

[    5.985201] systemd[1]: No hostname configured.
[    5.990278] systemd[1]: Set hostname to <localhost>.
[    5.999871] systemd[1]:
U-Boot SPL 2017.07 (Apr 09 2020 - 16:23:58)
Returning to boot ROM...

U-Boot 2017.07 (Apr 09 2020 - 16:23:58 +0000)

Hi, could you paste the kernel command line as printed in the kernel boot log please?

Hi @alexgg,

Kernel Cmd:

Hit any key to stop autoboot:  0
=> printenv
arch=arm
autoload=no
base_os_cmdline=console=null quiet splash vt.global_cursor_default=0 consoleblank=0
baudrate=115200
board=firefly-rk3288
board_name=firefly-rk3288
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/overlays
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc0 mmc1 usb0 pxe dhcp
bootcmd=setenv resin_kernel_load_addr ${kernel_addr_r};run resin_set_kernel_root;setenv bootargs ${resin_kernel_root} rw rootfstype=ext4 rootwait console=tty1 console=ttyS2,115200n8;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} zImage;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${fdt_addr_r} firefly-rk3288.dtb;bootz ${resin_kernel_load_addr} - ${fdt_addr_r}
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_mmc1=setenv devnum 1; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; env set bootfile;dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=1
cpu=armv7
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr_r=0x01f00000
fdt_high=0x0fffffff
fdt_overlay_addr_r=0x01e00000
fdtcontroladdr=7cf65788
hw_conf_addr_r=0x00700000
initrd_high=0x0fffffff
kernel_addr_r=0x02000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
partitions=uuid_disk=${uuid_gpt_disk};name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};name=reserved1,size=64K,uuid=${uuid_gpt_reserved1};name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};name=loader2,size=4MB,uuid=${uuid_gpt_loader2};name=atf,size=4M,uuid=${uuid_gpt_atf};name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};name=rootfs,size=-,uuid=69DAD710-2CE4-4E3C-B16C-21A1D49ABED3;
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x04000000
resin_boot_part=1
resin_check_altroot=setexpr resin_roota ${resin_boot_part} + 1; setexpr resin_rootb ${resin_boot_part} + 2; if test -n ${bootlimit}; then if test ${bootcount} -gt ${bootlimit}; then echo WARNING! BOOTLIMIT EXCEEDED. SWITCHING TO PREVIOUS ROOTFS; if test ${resin_root_part} -eq ${resin_roota}; then env set resin_root_part ${resin_rootb}; else; env set resin_root_part ${resin_roota}; fi;fi;fi;
resin_env_file=resinOS_uEnv.txt
resin_find_root_part_uuid=part uuid ${resin_dev_type} ${resin_dev_index}:${resin_root_part} resin_root_part_uuid
resin_flasher_detect=if test "${resin_scan_dev_type}" = usb ; then usb start ; fi; fatload ${resin_scan_dev_type} ${resin_scan_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_flasher_flag_file};
resin_flasher_flag_file=resin-image-flasher
resin_flasher_skip=0
resin_image_detect=if test "${resin_scan_dev_type}" = usb ; then usb start ; fi; fatload ${resin_scan_dev_type} ${resin_scan_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_image_flag_file};
resin_image_flag_file=resin-image
resin_import_env_file=echo Import ${resin_env_file} in environment;env import -t ${resin_kernel_load_addr} ${filesize}
resin_inject_env_file=if run resin_load_env_file; then run resin_import_env_file;fi;
resin_load_env_file=echo Loading ${resin_env_file} from ${resin_dev_type} device ${resin_dev_index} partition ${resin_boot_part};fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} ${resin_env_file};
resin_root_part=2
resin_scan_devs=echo Scanning ${resin_uboot_device_types} devices ${resin_uboot_devices}; for resin_scan_dev_type in ${resin_uboot_device_types}; do for resin_scan_dev_index in ${resin_uboot_devices}; do if test ${resin_flasher_skip} = 0 && run resin_flasher_detect; then setenv resin_flasher_dev_index ${resin_scan_dev_index}; setenv resin_dev_type ${resin_scan_dev_type}; exit; else; if test -n "${resin_image_dev_index}"; then ;else if run resin_image_detect; then setenv resin_image_dev_index ${resin_scan_dev_index}; setenv resin_dev_type ${resin_scan_dev_type}; fi; fi; fi; done;done;
resin_set_dev_index=run resin_scan_devs; if test -n ${resin_flasher_dev_index}; then echo Found resin flasher on ${resin_dev_type} ${resin_flasher_dev_index}; setenv bootparam_flasher flasher; setenv resin_dev_index ${resin_flasher_dev_index}; else; if test -n "${resin_image_dev_index}"; then echo Found resin image on ${resin_dev_type} ${resin_image_dev_index}; setenv resin_dev_index ${resin_image_dev_index}; else; echo ERROR: Could not find a resin image of any sort.; fi; fi;
resin_set_kernel_root=run resin_set_dev_index;run resin_inject_env_file;run resin_check_altroot;run resin_find_root_part_uuid;setenv resin_kernel_root root=PARTUUID=${resin_root_part_uuid}
resin_uboot_device_types=mmc
resin_uboot_devices=0 1 2
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x00000000
set_os_cmdline=setenv os_cmdline ${base_os_cmdline} ${bootparam_flasher};
soc=rockchip
stderr=serial,vidconsole
stdin=serial,cros-ec-keyb
stdout=serial,vidconsole
systemd.debug-shell=1
systemd.log_level=debug
systemd.log_target=console
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
vendor=firefly

Environment size: 7837/8188 bytes
=>

@alexgg cont …

Boot Log :

    U-Boot SPL 2017.07 (Apr 09 2020 - 16:23:58)
    Returning to boot ROM...

    U-Boot 2017.07 (Apr 09 2020 - 16:23:58 +0000)

    Model: Firefly-RK3288
    DRAM:  2 GiB
    MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
    In:    serial
    Out:   serial
    Err:   serial
    Model: Firefly-RK3288
    Net:   No ethernet found.
    Hit any key to stop autoboot:  0
    Scanning mmc devices 0 1 2
    reading resin-image-flasher
    ** Unable to read file resin-image-flasher **
    reading resin-image
    24 bytes read in 4 ms (5.9 KiB/s)
    Card did not respond to voltage select!
    mmc_init: -95, time 119
    ** Bad device mmc 1 **
    ** Bad device mmc 2 **
    Found resin image on mmc 0
    Loading resinOS_uEnv.txt from mmc device 0 partition 1
    reading resinOS_uEnv.txt
    ** Unable to read file resinOS_uEnv.txt **
    reading zImage
    11771280 bytes read in 1291 ms (8.7 MiB/s)
    reading firefly-rk3288.dtb
    37798 bytes read in 9 ms (4 MiB/s)
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Device Tree to 0fff3000, end 0ffff3a5 ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x500
    [    0.000000] Linux version 4.12.0-yocto-standard (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 SMP Thu Apr 9 14:42:03 UTC 2020
    [    0.000000] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: Firefly-RK3288
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 64 MiB at 0x7c000000
    [    0.000000] percpu: Embedded 17 pages/cpu @eed94000 s39116 r8192 d22324 u69632
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522560
    [    0.000000] Kernel command line: root=PARTUUID=e004965c-02 rw rootfstype=ext4 rootwait console=tty1 console=ttyS2,115200n8
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1984340K/2097152K available (11264K kernel code, 1522K rwdata, 4248K rodata, 9216K init, 416K bss, 47276K reserved, 65536K cma-reserved, 1245184K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0208000 - 0xc0e00000   (12256 kB)
    [    0.000000]       .init : 0xc1300000 - 0xc1c00000   (9216 kB)
    [    0.000000]       .data : 0xc1c00000 - 0xc1d7caf0   (1523 kB)
    [    0.000000]        .bss : 0xc1d862bc - 0xc1dee3a0   ( 417 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]  RCU debugfs-based tracing is enabled.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
    [    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    [    0.000022] Switching to timer-based delay loop, resolution 41ns
    [    0.004729] Console: colour dummy device 80x30
    [    0.005303] console [tty1] enabled
    [    0.005347] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    [    0.005396] pid_max: default: 32768 minimum: 301
    [    0.005530] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.005562] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.006229] CPU: Testing write buffer coherency: ok
    [    0.006507] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
    [    0.007072] Setting up static identity map for 0x300000 - 0x3000a0
    [    0.011466] EFI services will not be available.
    [    0.011780] smp: Bringing up secondary CPUs ...
    [    0.013466] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
    [    0.015220] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
    [    0.016969] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
    [    0.017070] smp: Brought up 1 node, 4 CPUs
    [    0.017161] SMP: Total of 4 processors activated (192.00 BogoMIPS).
    [    0.017185] CPU: All CPU(s) started in SVC mode.
    [    0.018588] devtmpfs: initialized
    [    0.028952] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
    [    0.029364] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.029419] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.031471] pinctrl core: initialized pinctrl subsystem
    [    0.033454] NET: Registered protocol family 16
    [    0.035735] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.038093] cpuidle: using governor menu
    [    0.038771] No ATAGs?
    [    0.038905] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.038966] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.041762] Serial: AMBA PL011 UART driver
    [    0.100948] AT91: Could not find identification node
    [    0.102627] vcc_5v: supplied by vcc_sys
    [    0.103174] vcc_host_5v: supplied by vcc_5v
    [    0.103678] vcc_otg_5v: supplied by vcc_5v
    [    0.107718] iommu: Adding device ff930000.vop to group 0
    [    0.107827] iommu: Adding device ff940000.vop to group 1
    [    0.108845] vgaarb: loaded
    [    0.109789] SCSI subsystem initialized
    [    0.110317] usbcore: registered new interface driver usbfs
    [    0.110408] usbcore: registered new interface driver hub
    [    0.110531] usbcore: registered new device driver usb
    [    0.112279] pps_core: LinuxPPS API ver. 1 registered
    [    0.112307] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.112366] PTP clock support registered
    [    0.112600] EDAC MC: Ver: 3.0.0
    [    0.115090] clocksource: Switched to clocksource arch_sys_counter
    [    0.178512] NET: Registered protocol family 2
    [    0.179113] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.179225] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.179434] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.179545] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.179612] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.179809] NET: Registered protocol family 1
    [    0.180196] RPC: Registered named UNIX socket transport module.
    [    0.180226] RPC: Registered udp transport module.
    [    0.180251] RPC: Registered tcp transport module.
    [    0.180274] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.236409] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
    [    0.238817] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.249278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.249869] NFS: Registering the id_resolver key type
    [    0.249912] Key type id_resolver registered
    [    0.249937] Key type id_legacy registered
    [    0.251856] bounce: pool size: 64 pages
    [    0.251926] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    0.251967] io scheduler noop registered
    [    0.251992] io scheduler deadline registered
    [    0.252046] io scheduler cfq registered (default)
    [    0.252073] io scheduler mq-deadline registered
    [    0.252097] io scheduler kyber registered
    [    0.280370] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
    [    0.280421] dma-pl330 ff250000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
    [    0.281229] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
    [    0.281278] dma-pl330 ffb20000.dma-controller:       DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
    [    0.349485] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    0.351965] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 38, base_baud = 1500000) is a 16550A
    [    0.353010] ff190000.serial: ttyS1 at MMIO 0xff190000 (irq = 39, base_baud = 1500000) is a 16550A
    [    0.354096] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 40, base_baud = 1500000) is a 16550A
    [    1.113688] console [ttyS2] enabled
    [    1.118636] ff1b0000.serial: ttyS3 at MMIO 0xff1b0000 (irq = 41, base_baud = 1500000) is a 16550A
    [    1.130421] SuperH (H)SCI(F) driver initialized
    [    1.136804] msm_serial: driver initialized
    [    1.141648] STMicroelectronics ASC driver initialized
    [    1.168203] brd: module loaded
    [    1.179760] loop: module loaded
    [    1.194108] libphy: Fixed MDIO Bus: probed
    [    1.199999] tun: Universal TUN/TAP device driver, 1.6
    [    1.205892] CAN device driver interface
    [    1.211317] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
    [    1.219400] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
    [    1.225972] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    1.232669] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
    [    1.240487] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    1.249838] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
    [    1.256640] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available yet, deferred probing
    [    1.271125] dwc2 ff540000.usb: ff540000.usb supply vusb_d not found, using dummy regulator
    [    1.280476] dwc2 ff540000.usb: ff540000.usb supply vusb_a not found, using dummy regulator
    [    1.425273] dwc2 ff540000.usb: DWC OTG Controller
    [    1.430578] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
    [    1.438536] dwc2 ff540000.usb: irq 45, io mem 0xff540000
    [    1.445405] hub 1-0:1.0: USB hub found
    [    1.449660] hub 1-0:1.0: 1 port detected
    [    1.454580] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
    [    1.463963] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
    [    1.835131] dwc2 ff580000.usb: dwc2_check_param_tx_fifo_sizes: Invalid parameter g-tx-fifo-size, setting to default average
    [    1.847665] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
    [    1.856108] dwc2 ff580000.usb: DWC OTG Controller
    [    1.861409] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
    [    1.869363] dwc2 ff580000.usb: irq 46, io mem 0xff580000
    [    1.876126] hub 2-0:1.0: USB hub found
    [    1.880381] hub 2-0:1.0: 1 port detected
    [    1.885955] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.893274] ehci-pci: EHCI PCI platform driver
    [    1.898339] ehci-platform: EHCI generic platform driver
    [    1.904465] ehci-orion: EHCI orion driver
    [    1.909191] SPEAr-ehci: EHCI SPEAr driver
    [    1.913865] ehci-st: EHCI STMicroelectronics driver
    [    1.919541] ehci-exynos: EHCI EXYNOS driver
    [    1.924442] ehci-atmel: EHCI Atmel driver
    [    1.929134] tegra-ehci: Tegra EHCI driver
    [    1.933844] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.940801] ohci-pci: OHCI PCI platform driver
    [    1.945855] ohci-platform: OHCI generic platform driver
    [    1.951929] ohci-omap3: OHCI OMAP3 driver
    [    1.956638] SPEAr-ohci: OHCI SPEAr driver
    [    1.961321] ohci-st: OHCI STMicroelectronics driver
    [    1.966982] ohci-atmel: OHCI Atmel driver
    [    1.972467] usbcore: registered new interface driver usb-storage
    [    1.984909] i2c /dev entries driver
    [    1.991098] rk3x-i2c ff140000.i2c: Initialized RK3xxx I2C bus at f0a87000
    [    1.999419] rk3x-i2c ff160000.i2c: Initialized RK3xxx I2C bus at f0a89000
    [    2.007725] rk3x-i2c ff170000.i2c: Initialized RK3xxx I2C bus at f0a8b000
    [    2.016601] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
    [    2.024370] fan53555-reg: supplied by vcc_sys
    [    2.031647] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
    [    2.039439] fan53555-reg: supplied by vcc_sys
    [    2.046352] REG1: supplied by vcc_sys
    [    2.051397] REG2: supplied by vcc_sys
    [    2.056435] REG3: supplied by vcc_sys
    [    2.061423] REG4: supplied by vcc_sys
    [    2.066476] REG5: supplied by vcc_sys
    [    2.071463] REG6: supplied by vcc_sys
    [    2.076533] REG7: supplied by vcc_sys
    [    2.080965] vcca_18: Bringing 3300000uV into 1800000-1800000uV
    [    2.088643] REG8: supplied by vcc_sys
    [    2.093496] REG9: supplied by vcc_sys
    [    2.098403] REG10: supplied by vcc_20
    [    2.103526] REG11: supplied by vcc_20
    [    2.108710] REG12: supplied by vcc_20
    [    2.113861] rk3x-i2c ff650000.i2c: Initialized RK3xxx I2C bus at f0a8d000
    [    2.122145] rk3x-i2c ff660000.i2c: Initialized RK3xxx I2C bus at f0a8f000
    [    2.133292] vcc28_dvp: supplied by vcc_io
    [    2.138007] dovdd_1v8: supplied by vcc28_dvp
    [    2.142948] vcc_flash: supplied by vcc_io
    [    2.154119] rockchip-thermal ff280000.tsadc: Missing rockchip,grf property
    [    2.168595] random: fast init done
    [    2.173786] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
    [    2.182278] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
    [    2.194175] sdhci: Secure Digital Host Controller Interface driver
    [    2.201093] sdhci: Copyright(c) Pierre Ossman
    [    2.206578] Synopsys Designware Multimedia Card Interface Driver
    [    2.213759] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
    [    2.221880] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
    [    2.229476] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
    [    2.235917] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
    [    2.246841] vcc_sd: supplied by vcc_io
    [    2.395118] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
    [    2.435129] dwmmc_rockchip ff0c0000.dwmmc: 1 slots initialized
    [    2.443100] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
    [    2.451257] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
    [    2.458880] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
    [    2.465365] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
    [    2.477491] dwmmc_rockchip ff0d0000.dwmmc: Failed getting OCR mask: 0
    [    2.484717] mmc_host mmc1: card is non-removable.
    [    2.490061] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
    [    2.497967] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
    [    2.535127] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
    [    2.575265] dwmmc_rockchip ff0d0000.dwmmc: 1 slots initialized
    [    2.582266] dwmmc_rockchip ff0f0000.dwmmc: IDMAC supports 32-bit address mode.
    [    2.590475] dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
    [    2.598105] dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
    [    2.604567] dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
    [    2.615846] mmc_host mmc2: card is non-removable.
    [    2.633593] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
    [    2.641505] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
    [    2.649277] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
    [    2.685118] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
    [    2.695606] dwmmc_rockchip ff0f0000.dwmmc: 1 slots initialized
    [    2.702894] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.711614] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.718620] hidraw: raw HID events driver (C) Jiri Kosina
    [    2.724780] usbcore: registered new interface driver usbhid
    [    2.731041] usbhid: USB HID core driver
    [    2.737166] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [    2.744225] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.750441] NET: Registered protocol family 10
    [    2.755836] Segment Routing with IPv6
    [    2.759971] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.766881] NET: Registered protocol family 17
    [    2.771863] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    2.786367] can: controller area network core (rev 20170425 abi 9)
    [    2.793300] NET: Registered protocol family 29
    [    2.798273] can: raw protocol (rev 20170425)
    [    2.803044] can: broadcast manager protocol (rev 20170425 t)
    [    2.809378] can: netlink gateway (rev 20170425) max_hops=1
    [    2.815694] Key type dns_resolver registered
    [    2.820557] ThumbEE CPU extension supported.
    [    2.825341] Registering SWP/SWPB emulation handler
    [    2.836282] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
    [    2.843041] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
    [    2.848327] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
    [    2.848330] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
    [    2.866502] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
    [    2.872827] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
    [    2.875101] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
    [    2.878945] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
    [    2.879050] mmc2: new high speed MMC card at address 0001
    [    2.879272] mmcblk2: mmc2:0001 8GTF4R 7.28 GiB
    [    2.879351] mmcblk2boot0: mmc2:0001 8GTF4R partition 1 4.00 MiB
    [    2.879428] mmcblk2boot1: mmc2:0001 8GTF4R partition 2 4.00 MiB
    [    2.879498] mmcblk2rpmb: mmc2:0001 8GTF4R partition 3 512 KiB
    [    2.890370]  mmcblk2: p1 p2 p3 p4 < p5 p6 >
    [    2.935835] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
    [    2.938777] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
    [    2.938780] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
    [    2.963212] rk_gmac-dwmac ff290000.ethernet: init for RGMII
    [    2.969588] stmmac - user ID: 0x10, Synopsys ID: 0x35
    [    2.975102] mmc_host mmc1: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
    [    2.985463] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
    [    2.991981] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register supported
    [    3.000353] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
    [    3.006974] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine supported
    [    3.015345] rk_gmac-dwmac ff290000.ethernet: COE Type 2
    [    3.021183] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
    [    3.029065] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
    [    3.036277] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW Watchdog Timer
    [    4.199912] libphy: stmmac: probed
    [    4.203866] rk_gmac-dwmac ff290000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
    [    4.217467] rk_gmac-dwmac ff290000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
    [    4.235948] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    4.245039] hctosys: unable to open rtc device (rtc0)
    [    4.251138] dovdd_1v8: disabling
    [    4.254751] vcc_sd: disabling
    [    4.258607] ttyS2 - failed to request DMA
    [    4.270405] Freeing unused kernel memory: 9216K
    starting version 237
    [    4.858910] CP437: Invalid argument
    [    4.873801] fsck.fat 4.1 (2017-01-24)
    [    4.873801] /dev/disk/by-label/resin-boot: 15 files, 6060/20431 clusters
    [    4.891507] resin-rootA: recovering journal
    [    4.901344] resin-rootA: clean, 4461/39936 files, 222825/319488 blocks
    [    4.901351]
    [    4.931350] resin-rootB: clean, 11/39936 files, 15349/319488 blocks
    [    4.931358]
    [    4.950309] resin-state: recovering journal
    [    4.980240] resin-state: clean, 12/5136 files, 1850/20480 blocks
    [    4.980252]
    [    5.169610]  mmcblk2: p1 p2 p3 p4 < p5 p6 >
    [    6.339962] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
    [    6.370905] EXT4-fs (mmcblk2p5): mounted filesystem with ordered data mode. Opts: (null)
    [    6.622965] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
    [    6.828618] systemd[1]: System time before build time, advancing clock.
    [    6.846189] cgroup: cgroup2: unknown option "nsdelegate"
    [    6.864086] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    6.888996] systemd[1]: Detected architecture arm.

    Welcome to balenaOS 2.38.3+rev7!

    [    6.925401] systemd[1]: No hostname configured.
    [    6.930487] systemd[1]: Set hostname to <localhost>.
    [    6.940056] systemd[1]:
    U-Boot SPL 2017.07 (Apr 09 2020 - 16:23:58)
    Returning to boot ROM...

    U-Boot 2017.07 (Apr 09 2020 - 16:23:58 +0000)

    Model: Firefly-RK3288
    DRAM:  2 GiB
    MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
    In:    serial

Hi,
The command line is:

Kernel command line: root=PARTUUID=e004965c-02 rw rootfstype=ext4 rootwait console=tty1 console=ttyS2,115200n8

There is none of the systemd arguments I mentioned above.

Sorry @alexgg , I have not set it properly,
I have set only systemd.log_target=console, After setting this its not rebooting

boot_net_usb_start=usb start
boot_prefixes=/ /boot/overlays
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc0 mmc1 usb0 pxe dhcp
bootcmd=setenv resin_kernel_load_addr ${kernel_addr_r};run resin_set_kernel_root;setenv bootargs ${resin_kernel_root} rw rootfstype=ext4 rootwait console=tty1 console=ttyS2,115200n8 systemd.log_target=console;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} zImage;fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${fdt_addr_r} firefly-rk3288.dtb;bootz ${resin_kernel_load_addr} - ${fdt_addr_r}
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_mmc1=setenv devnum 1; run mmc_boot

Boot Logs:

Welcome to balenaOS 2.38.3+rev7!

No hostname configured.
Set hostname to <localhost>.
Hardware watchdog 'Synopsys DesignWare Watchdog', version 0
Set hardware watchdog to 10s.
File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Set up automount mnt-sysroot-inactive partition.
[  OK  ] Reached target Swap.
[  OK  ] Created slice System Slice.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Syslog Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Journal Socket.
         Starting Resin state partition mount service...
         Starting udev Coldplug all Devices...
         Mounting Kernel Debug File System...
         Starting Setup Virtual Console...
         Starting Journal Service...
         Mounting POSIX Message Queue File System...
         Mounting Temporary Directory (/tmp)...
         Starting Resin active root partition mount service...
         Starting Remount Root and Kernel File Systems...
         Starting Resin boot partition mount service...
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Resin state partition mount service.
[  OK  ] Started Journal Service.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
[  OK  ] Reached target Containers.
[  OK  ] Mounted /var/volatile.
         Starting Bind mount volatile /srv...
         Starting Bind mount volatile /var/lib...
         Starting Bind mount volatile /var/spool...
         Starting Bind mount volatile /var/cache...
[  OK  ] Started Resin boot partition mount service.
[  OK  ] Started Bind mount volatile /srv.
[  OK  ] Started Bind mount volatile /var/lib.
[  OK  ] Started Bind mount volatile /var/spool.
[  OK  ] Started Bind mount volatile /var/cache.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Expand resin-data partition...
         Starting OS configuration device key service...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Bind mount for /var/lib/systemd...
         Starting Bind mount for /etc/docker...
         Starting Bind mount for /etc/openvpn...
         Starting Bind mount for /etc/udev/rules.d...
         Starting Bind mount for /etc/hostname...
         Starting Update UTMP about System Boot/Shutdown...
         Starting Bind mount for /etc/ssh/hostkeys...
         Starting Bind mount for /etc/NetworkManager/conf.d...
         Starting Bind mount for /etc/resin-supervisor...
         Starting Bind mount for /var/lib/bluetooth...
         Starting Bind mount for /etc/NetworkManager/system-connections...
         Starting Bind mount for /home/root/.rnd...
         Starting Bind mount for /home/root/.docker...
         Starting Bind mount for /var/lib/NetworkManager...
         Starting Bind mount for /home/root/.ssh...
         Starting Bind mount for /var/lib/chrony...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started OS configuration device key service.
[  OK  ] Started Bind mount for /var/lib/systemd.
[  OK  ] Started Bind mount for /etc/docker.
[  OK  ] Started Bind mount for /etc/openvpn.
[  OK  ] Started Bind mount for /etc/udev/rules.d.
[  OK  ] Started Bind mount for /etc/hostname.
[  OK  ] Started Bind mount for /etc/ssh/hostkeys.
[  OK  ] Started Bind mount for /etc/NetworkManager/conf.d.
[  OK  ] Started Bind mount for /etc/resin-supervisor.
[  OK  ] Started Bind mount for /var/lib/b[    7.412075] EXT4-fs (mmcblk2p6): mounted filesystem with ordered data mode. Opts: (null)
luetooth.
[  OK  ] Started Bind mount for /etc/NetworkManager/system-connections.
[  OK  ] Started Bind mount for /home/root/.rnd.
[  OK  ] Started Bind mount for /home/root/.docker.
[  OK  ] Started Bind mount for /var/lib/NetworkManager.
[  OK  ] Started Bind mount for /home/root/.ssh.
[  OK  ] Started Bind mount for /var/lib/chrony.
         Starting udev Kernel Device Manager...
         Starting Load/Save Random Seed...
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Expand resin-data partition.
         Starting Resin data partition mount service...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Resin data partition mount service.
         Mounting resin-data bind mount...
         Mounting Docker data mountpoint...
[  OK  ] Mounted resin-data bind mount.
[  OK  ] Mounted Docker data mountpoint.
[    7.624785] rockchip-drm display-subsystem: bound ff930000.vop (ops vop_component_ops [rockchipdrm])
[    7.640808] rockchip-drm display-subsystem: bound ff940000.vop (ops vop_component_ops [rockchipdrm])
[    7.651185] dwhdmi-rockchip ff980000.hdmi: DWC HDMI 2.0 TX PHY requires platform support
[    7.665011] rockchip-drm display-subsystem: failed to bind ff980000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm]): -19
[    7.677987] rockchip-drm display-subsystem: master bind failed: -19
[    7.690783] rtc-hym8563 0-0051: rtc core: registered hym8563 as rtc0
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    7.775009] rk3288-crypto ff8a0000.cypto-controller: Crypto Accelerator successfully registered
[  OK  ] Started udev Wait for Complete Device Initialization.
[  OK  ] Started Resin active root partition mount service.
[  OK  ] Reached target System Initialization.
         Starting sshd.socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Config.json path watch.
[  OK  ] Started Daily Cleanup of Temporary Directories.
         Starting Docker Socket for the API.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Resin supervisor updater timer.
[  OK  ] Reached target Timers.
         Starting Docker Socket for the API.
         Starting Show Plymouth Boot Screen...
         Starting Initialize system clock from RTC...
[  OK  ] Listening on sshd.socket.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Started Initialize system clock from RTC.
         Starting Initialize system clock from build timestamp...
[  OK  ] Reached target Sockets.
[    9.353513] random: crng init done
[    9.487627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.494664] rk_gmac-dwmac ff290000.ethernet eth0: device MAC address e6:81:86:82:d4:34
[    9.504053] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1)
[    9.519324] rk_gmac-dwmac ff290000.ethernet eth0: PTP not supported by HW
[    9.527071] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.236621] Bridge firewalling registered
[   10.498471] Netfilter messages via NETLINK v0.30.
[   10.647552] IPv6: ADDRCONF(NETDEV_UP): balena0: link is not ready
[   10.783002] IPv6: ADDRCONF(NETDEV_UP): supervisor0: link is not ready
[   13.676446] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.686306] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.717422] ip6_tables: (C) 2000-2006 Netfilter Core Team

Hello,

This might be because the log_target default wasn’t suitable for the board, and ensuring it gets mapped to the console has allowed systemd to not block on whatever that default was. Can you confirm that the board is now running balenaOS as expected, or are you still seeing problems?

Best regards,

Heds

thanks for your support @alexgg @hedss . The device is functional now.