Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help] K210 serial port has no output #350

Open
TheDead2000 opened this issue Mar 31, 2024 · 1 comment
Open

[help] K210 serial port has no output #350

TheDead2000 opened this issue Mar 31, 2024 · 1 comment

Comments

@TheDead2000
Copy link

TheDead2000 commented Mar 31, 2024

i make the fw_payload.bin
make CROSS_COMPILE=riscv64-unknown-elf- PLATFORM=kendryte/k210 PLATFORM_RISCV_XLEN=64
CC lib/sbi/riscv_asm.o
CC lib/sbi/riscv_atomic.o
AS lib/sbi/riscv_hardfp.o
CC lib/sbi/riscv_locks.o
CC lib/sbi/sbi_ecall.o
CC lib/sbi/sbi_ecall_exts.o
CC lib/sbi/sbi_ecall_time.o
CC lib/sbi/sbi_ecall_rfence.o
CC lib/sbi/sbi_ecall_ipi.o
CC lib/sbi/sbi_ecall_base.o
CC lib/sbi/sbi_ecall_hsm.o
CC lib/sbi/sbi_ecall_srst.o
CC lib/sbi/sbi_ecall_susp.o
CC lib/sbi/sbi_ecall_pmu.o
CC lib/sbi/sbi_ecall_dbcn.o
CC lib/sbi/sbi_ecall_cppc.o
CC lib/sbi/sbi_ecall_legacy.o
CC lib/sbi/sbi_ecall_vendor.o
CC lib/sbi/sbi_ecall_dbtr.o
CC lib/sbi/sbi_bitmap.o
CC lib/sbi/sbi_bitops.o
CC lib/sbi/sbi_console.o
CC lib/sbi/sbi_domain_context.o
CC lib/sbi/sbi_domain.o
CC lib/sbi/sbi_emulate_csr.o
CC lib/sbi/sbi_fifo.o
CC lib/sbi/sbi_hart.o
CC lib/sbi/sbi_heap.o
CC lib/sbi/sbi_math.o
AS lib/sbi/sbi_hfence.o
CC lib/sbi/sbi_hsm.o
CC lib/sbi/sbi_illegal_insn.o
CC lib/sbi/sbi_init.o
CC lib/sbi/sbi_ipi.o
CC lib/sbi/sbi_irqchip.o
CC lib/sbi/sbi_platform.o
CC lib/sbi/sbi_pmu.o
CC lib/sbi/sbi_dbtr.o
CC lib/sbi/sbi_scratch.o
CC lib/sbi/sbi_string.o
CC lib/sbi/sbi_system.o
CC lib/sbi/sbi_timer.o
CC lib/sbi/sbi_tlb.o
CC lib/sbi/sbi_trap.o
CC lib/sbi/sbi_trap_ldst.o
CC lib/sbi/sbi_unpriv.o
AS lib/sbi/sbi_expected_trap.o
CC lib/sbi/sbi_cppc.o
AR lib/libsbi.a
CC platform/kendryte/k210/lib/utils/timer/aclint_mtimer.o
CC platform/kendryte/k210/lib/utils/timer/fdt_timer.o
CC platform/kendryte/k210/lib/utils/timer/fdt_timer_drivers.o
CC platform/kendryte/k210/lib/utils/serial/sifive-uart.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_addresses.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_check.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_empty_tree.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_ro.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_rw.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_strerror.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_sw.o
CC platform/kendryte/k210/lib/utils/libfdt/fdt_wip.o
CC platform/kendryte/k210/lib/utils/irqchip/plic.o
CC platform/kendryte/k210/lib/utils/ipi/aclint_mswi.o
CC platform/kendryte/k210/lib/utils/fdt/fdt_helper.o
CC platform/kendryte/k210/lib/utils/fdt/fdt_fixup.o
CC platform/kendryte/k210/platform.o
CC platform/kendryte/k210/k210.o
AR platform/kendryte/k210/lib/libplatsbi.a
AS platform/kendryte/k210/firmware/payloads/test_head.o
CC platform/kendryte/k210/firmware/payloads/test_main.o
MERGE platform/kendryte/k210/firmware/payloads/test.o
ELF platform/kendryte/k210/firmware/payloads/test.elf
OBJCOPY platform/kendryte/k210/firmware/payloads/test.bin
AS platform/kendryte/k210/firmware/fw_payload.o
ELF platform/kendryte/k210/firmware/fw_payload.elf
OBJCOPY platform/kendryte/k210/firmware/fw_payload.bin

and then
sudo python3 ~/xv6-k210/tools/kflash.py -p /dev/ttyUSB0 -b 1500000 -t build/platform/kendryte/k210/firmware/fw_payload.bin

[INFO] COM Port Selected Manually: /dev/ttyUSB0
[INFO] Default baudrate is 115200 , later it may be changed to the value you set.
[INFO] Trying to Enter the ISP Mode...
._
[INFO] Automatically detected goE/kd233

[INFO] Greeting Message Detected, Start Downloading ISP
Downloading ISP: |==============================================================================| 100.0% 10kiB/s
[INFO] Booting From 0x80000000
[INFO] Wait For 0.1 second for ISP to Boot
[INFO] Boot to Flashmode Successfully
[INFO] Selected Baudrate: 1500000
[INFO] Baudrate changed, greeting with ISP again ...
[INFO] Boot to Flashmode Successfully
[INFO] Selected Flash: On-Board
[INFO] Initialization flash Successfully
Programming BIN: |==============================================================================| 100.0% 25kiB/s
[INFO] Rebooting...
--- forcing DTR inactive
--- forcing RTS inactive
--- Miniterm on /dev/ttyUSB0 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

屏幕截图 2024-03-31 192243

This problem has been bothering me for a long time. Thank you for your help

@TheDead2000
Copy link
Author

TheDead2000 commented Apr 1, 2024

here is .config

Platform Options

CONFIG_PLATFORM_KENDRYTE_K210=y

end of Platform Options

SBI Extension Support

CONFIG_SBI_ECALL_TIME=y
CONFIG_SBI_ECALL_RFENCE=y
CONFIG_SBI_ECALL_IPI=y
CONFIG_SBI_ECALL_HSM=y
CONFIG_SBI_ECALL_SRST=y
CONFIG_SBI_ECALL_SUSP=y
CONFIG_SBI_ECALL_PMU=y
CONFIG_SBI_ECALL_DBCN=y
CONFIG_SBI_ECALL_CPPC=y
CONFIG_SBI_ECALL_LEGACY=y
CONFIG_SBI_ECALL_VENDOR=y
CONFIG_SBI_ECALL_DBTR=y
CONFIG_SBIUNIT is not set

end of SBI Extension Support

Utils and Drivers Support

CONFIG_FDT=y
CONFIG_FDT_DOMAIN is not set
CONFIG_FDT_PMU is not set

GPIO Support

CONFIG_FDT_GPIO is not set
CONFIG_GPIO is not set

end of GPIO Support

I2C Support

CONFIG_FDT_I2C is not set
CONFIG_I2C_DW is not set
CONFIG_I2C is not set

end of I2C Support

IPI Device Support

CONFIG_FDT_IPI is not set
CONFIG_IPI_MSWI=y
CONFIG_IPI_PLICSW is not set

end of IPI Device Support

Interrupt Controller Support

CONFIG_FDT_IRQCHIP is not set
CONFIG_IRQCHIP_APLIC is not set
CONFIG_IRQCHIP_IMSIC is not set
CONFIG_IRQCHIP_PLIC=y

end of Interrupt Controller Support

CONFIG_LIBFDT=y

Regmap Support

CONFIG_FDT_REGMAP is not set
CONFIG_REGMAP is not set

end of Regmap Support

System Reset Support

CONFIG_FDT_RESET is not set# end of System Reset Support

#Serial Device Support

CONFIG_FDT_SERIAL is not set
CONFIG_SERIAL_CADENCE is not set
CONFIG_SERIAL_GAISLER is not set
CONFIG_SERIAL_RENESAS_SCIF is not set
CONFIG_SERIAL_SHAKTI is not set
CONFIG_SERIAL_SIFIVE=y
CONFIG_SERIAL_LITEX is not set
CONFIG_SERIAL_UART8250 is not set
CONFIG_SERIAL_XILINX_UARTLITE is not set
CONFIG_SERIAL_SEMIHOSTING is not set
#end of Serial Device Support

#System Device Support

CONFIG_SYS_ATCSMU is not set
CONFIG_SYS_HTIF is not set
#end of System Device Support

#Timer Device Support

CONFIG_FDT_TIMER is not set
CONFIG_FDT_TIMER_MTIMER is not set
CONFIG_FDT_TIMER_PLMT is not set
CONFIG_TIMER_MTIMER=y
CONFIG_TIMER_PLMT is not set
#end of Timer Device Support
#end of Utils and Drivers Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant