Skip to content

Instantly share code, notes, and snippets.

@cyyself
Last active April 7, 2024 01:26
Show Gist options
  • Save cyyself/b9445f38cc3ba1094924bd41c9086176 to your computer and use it in GitHub Desktop.
Save cyyself/b9445f38cc3ba1094924bd41c9086176 to your computer and use it in GitHub Desktop.
U-Boot SPL 2022.10 (Nov 28 2023 - 21:45:06 +0800)
imge: uboot load to 0 compress =1 src a500254 len=4cf2a
imge: uboot load to 0 compress =1 src a500254 len=9a710
U-Boot 2022.10 (Nov 28 2023 - 21:45:06 +0800)
CPU: rv64imafdcvsu
Model: kendryte k230 evb
DRAM: 512 MiB
Core: 23 devices, 15 uclasses, devicetree: embed
MMC: mmc0@91580000: 0, mmc1@91581000: 1
Loading Environment from MMC... OK
In: serial@91400000
Out: serial@91400000
Err: serial@91400000
Net: No ethernet found.
Hit any key to stop autoboot: 0
K230# usb start
starting USB...
Bus usb-otg@91500000: dwc2_usb usb-otg@91500000: Core Release: 4.30a
USB DWC2
Bus usb-otg@91540000: dwc2_usb usb-otg@91540000: Core Release: 4.30a
USB DWC2
scanning bus usb-otg@91500000 for devices... 2 USB Device(s) found
scanning bus usb-otg@91540000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
K230# setenv ipaddr 10.12.2.108
K230# setenv serverip 10.12.2.195
K230# tftpboot 0x0 fw_payload.bin
Using r8152_eth device
TFTP from server 10.12.2.195; our IP address is 10.12.2.108
Filename 'fw_payload.bin'.
Load address: 0x0
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################
1.8 MiB/s
done
Bytes transferred = 24153608 (1708e08 hex)
K230# go 0
## Starting application at 0x00000000 ...
OpenSBI v1.0-588-g4328952
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : Kendryte K230 EVB
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 27000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : thead,c900-pmu
Platform Reboot Device : ---
Platform Shutdown Device : ---
Platform Suspend Device : ---
Platform CPPC Device : ---
Firmware Base : 0x0
Firmware Size : 323 KB
Firmware RW Offset : 0x40000
Firmware RW Size : 67 KB
Firmware Heap Offset : 0x48000
Firmware Heap Size : 35 KB (total), 2 KB (reserved), 10 KB (used), 22 KB (free)
Firmware Scratch Size : 4096 B (total), 336 B (used), 3760 B (free)
Runtime SBI Version : 2.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000091400000-0x0000000091400fff M: (I,R,W) S/U: (R,W)
Domain0 Region01 : 0x0000000f04008000-0x0000000f0400bfff M: (I,R,W) S/U: ()
Domain0 Region02 : 0x0000000f04000000-0x0000000f04007fff M: (I,R,W) S/U: ()
Domain0 Region03 : 0x0000000000040000-0x000000000005ffff M: (R,W) S/U: ()
Domain0 Region04 : 0x0000000000000000-0x000000000003ffff M: (R,X) S/U: ()
Domain0 Region05 : 0x0000000f00000000-0x0000000f03ffffff M: (I,R,W) S/U: (R,W)
Domain0 Region06 : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address : 0x0000000000200000
Domain0 Next Arg1 : 0x0000000002200000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Domain0 SysSuspend : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.12
Boot HART Base ISA : rv64imafdcbvx
Boot HART ISA Extensions : sstc,zicntr,zihpm,zicboz,zicbom,svpbmt,sdtrig
Boot HART PMP Reserved : 2
Boot HART PMP Count : 64
Boot HART PMP Granularity : 12 bits
Boot HART PMP Address Bits: 38
Boot HART MHPM Info : 16 (0x0007fff8)
Boot HART Debug Triggers : 3 triggers
Boot HART MIDELEG : 0x0000000000020222
Boot HART MEDELEG : 0x000000000000b109
[ 0.000000] Linux version 6.9.0-rc1-00012-g298181dc04b4 (cyy@cyy-pc) (riscv64-linux-gnu-gcc (Debian 13.2.0-12) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #94 SMP Sun Apr 7 09:22:53 CST 2024
[ 0.000000] Machine model: Kendryte K230 EVB
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000003ffff (256 KiB) nomap non-reusable mmode_resv1@0
[ 0.000000] OF: reserved mem: 0x0000000000040000..0x000000000005ffff (128 KiB) nomap non-reusable mmode_resv0@40000
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000000000000-0x000000001fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000005ffff]
[ 0.000000] node 0: [mem 0x0000000000060000-0x000000001fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfimv
[ 0.000000] riscv: ELF capabilities acdfimv
[ 0.000000] percpu: Embedded 21 pages/cpu s48568 r8192 d29256 u86016
[ 0.000000] Kernel command line: console=ttyS0,115200 rdinit=/sbin/init
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129024
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] fixmap : 0xffffffc6fea00000 - 0xffffffc6ff000000 (6144 kB)
[ 0.000000] pci io : 0xffffffc6ff000000 - 0xffffffc700000000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffc700000000 - 0xffffffc800000000 (4096 MB)
[ 0.000000] vmalloc : 0xffffffc800000000 - 0xffffffd800000000 ( 64 GB)
[ 0.000000] modules : 0xffffffff01586000 - 0xffffffff80000000 (2026 MB)
[ 0.000000] lowmem : 0xffffffd800000000 - 0xffffffd820000000 ( 512 MB)
[ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB)
[ 0.000000] Memory: 475896K/524288K available (9793K kernel code, 3166K rwdata, 4096K rodata, 4037K init, 499K bss, 48392K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] riscv: providing IPIs using SBI IPI extension
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns
[ 0.000000] sched_clock: 64 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns
[ 0.000126] Console: colour dummy device 80x25
[ 0.000169] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=108000)
[ 0.000179] pid_max: default: 32768 minimum: 301
[ 0.000237] LSM: initializing lsm=capability
[ 0.000311] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.000320] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.001999] riscv: ELF compat mode supported
[ 0.002046] ASID allocator using 16 bits (65536 entries)
[ 0.002158] rcu: Hierarchical SRCU implementation.
[ 0.002163] rcu: Max phase no-delay instances is 1000.
[ 0.002484] EFI services will not be available.
[ 0.002612] smp: Bringing up secondary CPUs ...
[ 0.002629] smp: Brought up 1 node, 1 CPU
[ 0.003132] devtmpfs: initialized
[ 0.004322] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.004342] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.004486] pinctrl core: initialized pinctrl subsystem
[ 0.005252] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.005698] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.005741] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.005791] audit: initializing netlink subsys (disabled)
[ 0.006452] thermal_sys: Registered thermal governor 'step_wise'
[ 0.006494] audit: type=2000 audit(0.004:1): state=initialized audit_enabled=0 res=1
[ 0.006522] cpuidle: using governor menu
[ 0.028091] cpu0: Ratio of byte access time to unaligned word access is 6.34, unaligned accesses are fast
[ 0.028548] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@f00000000
[ 0.028681] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@f00000000
[ 0.029624] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.029634] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.030086] ACPI: Interpreter disabled.
[ 0.030189] iommu: Default domain type: Translated
[ 0.030193] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.030631] SCSI subsystem initialized
[ 0.030982] usbcore: registered new interface driver usbfs
[ 0.031007] usbcore: registered new interface driver hub
[ 0.031040] usbcore: registered new device driver usb
[ 0.031298] Advanced Linux Sound Architecture Driver Initialized.
[ 0.031932] vgaarb: loaded
[ 0.032273] clocksource: Switched to clocksource riscv_clocksource
[ 0.032627] pnp: PnP ACPI: disabled
[ 0.039415] NET: Registered PF_INET protocol family
[ 0.039538] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.040331] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.040361] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.040372] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.040400] TCP bind hash table entries: 4096 (order: 6, 262144 bytes, linear)
[ 0.041117] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.041218] UDP hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.041278] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.041467] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.042012] RPC: Registered named UNIX socket transport module.
[ 0.042022] RPC: Registered udp transport module.
[ 0.042025] RPC: Registered tcp transport module.
[ 0.042028] RPC: Registered tcp-with-tls transport module.
[ 0.042031] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.042044] PCI: CLS 0 bytes, default 64
[ 0.052548] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[ 0.053183] NFS: Registering the id_resolver key type
[ 0.053215] Key type id_resolver registered
[ 0.053220] Key type id_legacy registered
[ 0.053242] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.053247] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.056505] 9p: Installing v9fs 9p2000 file system support
[ 0.056738] NET: Registered PF_ALG protocol family
[ 0.056795] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.056805] io scheduler mq-deadline registered
[ 0.056810] io scheduler kyber registered
[ 0.056835] io scheduler bfq registered
[ 0.057151] riscv-plic f00000000.interrupt-controller: mapped 208 interrupts with 1 handlers for 2 contexts.
[ 0.057995] SBI CPPC extension NOT detected!!
[ 0.149182] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.150966] printk: legacy console [ttyS0] disabled
[ 0.171327] 91400000.serial: ttyS0 at MMIO 0x91400000 (irq = 12, base_baud = 3125000) is a 16550A
[ 0.171359] printk: legacy console [ttyS0] enabled
[ 0.936414] SuperH (H)SCI(F) driver initialized
[ 0.945950] loop: module loaded
[ 0.950821] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.955836] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.962187] usbcore: registered new interface driver uas
[ 0.967558] usbcore: registered new interface driver usb-storage
[ 0.973778] mousedev: PS/2 mouse device common for all mice
[ 0.979930] sdhci: Secure Digital Host Controller Interface driver
[ 0.986160] sdhci: Copyright(c) Pierre Ossman
[ 0.990591] Synopsys Designware Multimedia Card Interface Driver
[ 0.996686] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.002544] usbcore: registered new interface driver usbhid
[ 1.008141] usbhid: USB HID core driver
[ 1.012175] riscv-pmu-sbi: SBI PMU extension is available
[ 1.017620] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[ 1.023549] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[ 1.033805] NET: Registered PF_INET6 protocol family
[ 1.039647] Segment Routing with IPv6
[ 1.043420] In-situ OAM (IOAM) with IPv6
[ 1.047413] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.053794] NET: Registered PF_PACKET protocol family
[ 1.058955] 9pnet: Installing 9P2000 support
[ 1.063303] Key type dns_resolver registered
[ 1.081377] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 1.091176] clk: Disabling unused clocks
[ 1.095165] PM: genpd: Disabling unused power domains
[ 1.100242] ALSA device list:
[ 1.103224] No soundcards found.
[ 1.108232] Freeing unused kernel image (initmem) memory: 4036K
[ 1.114226] Run /sbin/init as init process
Please press Enter to activate this console.
~ # cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdcv_zicbom_zicboz_zicntr_zicsr_zifencei_zihpm_zba_zbb_zbc_zbs_svpbmt
mmu : sv39
uarch : thead,c908
mvendorid : 0x5b7
marchid : 0x8000000009140d00
mimpid : 0x50000
hart isa : rv64imafdcv_zicbom_zicboz_zicntr_zicsr_zifencei_zihpm_zba_zbb_zbc_zbs_svpbmt
~ # cat /proc/interrupts
CPU0
10: 305 RISC-V INTC 5 Edge riscv-timer
12: 82 SiFive PLIC 16 Level ttyS0
IPI0: 0 Rescheduling interrupts
IPI1: 0 Function call interrupts
IPI2: 0 CPU stop interrupts
IPI3: 0 CPU stop (for crash dump) interrupts
IPI4: 0 IRQ work interrupts
IPI5: 0 Timer broadcast interrupts
~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment