Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lupyuen/fff5242cf77a3f52d81f3effb9aa402f to your computer and use it in GitHub Desktop.
Save lupyuen/fff5242cf77a3f52d81f3effb9aa402f to your computer and use it in GitHub Desktop.
##########################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. #################################################################
. ############################################################
. 1.2 MiB/s
done
Bytes transferred = 14227032 (d91658 hex)
Speed: 100, full duplex
Using ethernet@4070000 device
TFTP from server 192.168.31.10; our IP address is 192.168.31.245
Filename 'jh7110-star64-pine64.dtb'.
Load address: 0x81200000
Loading: ####
. 1.2 MiB/s
done
Bytes transferred = 50235 (c43b hex)
## Flattened Device Tree blob at 81200000
Booting using the fdt blob at 0x81200000
Loading Device Tree to 000000009f26e000, end 000000009f27d43a ... OK
Starting kernel ...
123ABCnx_start: Entry
uart_register: Registering /dev/console
uart_register: Registering /dev/ttyS0
work_start_lowpri: Starting low-priority kernel worker thread(s)
nxtask_activate: lpwork pid=1,TCB=0x80409130
nxtask_activate: AppBringUp pid=2,TCB=0x80409740
nx_start_application: Starting init task: /system/bin/init
elf_symname: Symbol has no name
elf_symvalue: SHN_UNDEF: Failed to get symbol name: -3
elf_relocateadd: Section 2 reloc 2: Undefined symbol[0] has no name: -3
nxtask_activate: /system/bin/init pid=3,TCB=0x8040b730
nxtask_exit: AppBringUp pid=2,TCB=0x80409740
NuttShell (NSH) NuttX-12.4.0
nsh> nx_start: CPU0: Beginning Idle Loop
nsh>
nsh> usleep 5
posix_spawn: pid=0xc0202968 path=usleep file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
exec_internal: ERROR: Failed to load program 'usleep': -2
nxposix_spawn_exec: ERROR: exec failed: 2
nsh>
nsh> sleep 5
posix_spawn: pid=0xc0202968 path=sleep file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
exec_internal: ERROR: Failed to load program 'sleep': -2
nxposix_spawn_exec: ERROR: exec failed: 2
nsh>
nsh> help
posix_spawn: pid=0xc0202968 path=help file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
exec_internal: ERROR: Failed to load program 'help': -2
nxposix_spawn_exec: ERROR: exec failed: 2
help usage: help [-v] [<cmd>]
. cp exit mkdir rmdir umount
[ cmp expr mkrd set unset
? dirname false mount sleep uptime
alias dd fdinfo mv source usleep
unalias df free pidof test xd
basename dmesg help printf time
break echo hexdump ps true
cat env kill pwd truncate
cd exec ls rm uname
nsh>
nsh> sleep 10
posix_spawn: pid=0xc0202968 path=sleep file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
exec_internal: ERROR: Failed to load program 'sleep': -2
nxposix_spawn_exec: ERROR: exec failed: 2
nsh>
nsh> sleep 100
posix_spawn: pid=0xc0202968 path=sleep file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
exec_internal: ERROR: Failed to load program 'sleep': -2
nxposix_spawn_exec: ERROR: exec failed: 2
nsh>
nsh> ostest
posix_spawn: pid=0xc0202968 path=ostest file_actions=0xc0202970 attr=0xc0202978 argv=0xc0202a18
elf_symname: Symbol has no name
elf_symvalue: SHN_UNDEF: Failed to get symbol name: -3
elf_relocateadd: Section 2 reloc 2: Undefined symbol[0] has no name: -3
nxtask_activate: ostest pid=6,TCB=0x804097c0
stdio_test: write fd=1
stdio_test: Standard I/O Check: printf
stdio_test: write fd=2
stdio_test: Standard I/O Check: fprintf to stderr
ostest_main: putenv(Variable1=BadValue3)
ostest_main: setenv(Variable1, GoodValue1, TRUE)
ostest_main: setenv(Variable2, BadValue1, FALSE)
ostest_main: setenv(Variable2, GoodValue2, TRUE)
ostest_main: setenv(Variable3, GoodValue3, FALSE)
ostest_main: setenv(Variable3, BadValue2, FALSE)
show_variable: Variable=Variable1 has value=GoodValue1
show_variable: Variable=Variable2 has value=GoodValue2
show_variable: Variable=Variable3 has value=GoodValue3
posix_spawn: pid=0xc020276c path=ostest file_actions=0 attr=0xc0202770 argv=0xc0202788
elf_symname: Symbol has no name
elf_symvalue: SHN_UNDEF: Failed to get symbol name: -3
elf_relocateadd: Section 2 reloc 2: Undefined symbol[0] has no name: -3
nxtask_activate: ostest pid=7,TCB=0x8040c6a0
ostest_main: Started user_main at PID=7
user_main: Begin argument test
user_main: Started with argc=5
user_main: argv[0]="user_main"
user_main: argv[1]="Arg1"
user_main: argv[2]="Arg2"
user_main: argv[3]="Arg3"
user_main: argv[4]="Arg4"
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 2
mxordblk 7cff0 7cff0
uordblks 2688 2688
fordblks 7e970 7e970
user_main: getopt() test
getopt(): Simple test
getopt(): Invalid argument
getopt(): Missing optional argument
getopt_long(): Simple test
getopt_long(): No short options
getopt_long(): Argument for --option=argument
getopt_long(): Invalid long option
getopt_long(): Mixed long and short options
getopt_long(): Invalid short option
getopt_long(): Missing optional arguments
getopt_long_only(): Mixed long and short options
getopt_long_only(): Single hyphen long options
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 2
mxordblk 7cff0 7cff0
uordblks 2688 2688
fordblks 7e970 7e970
user_main: libc tests
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 2
mxordblk 7cff0 7cff0
uordblks 2688 2688
fordblks 7e970 7e970
show_variable: Variable=Variable1 has value=GoodValue1
show_variable: Variable=Variable2 has value=GoodValue2
show_variable: Variable=Variable3 has value=GoodValue3
show_variable: Variable=Variable1 has no value
show_variable: Variable=Variable2 has value=GoodValue2
show_variable: Variable=Variable3 has value=GoodValue3
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 3
mxordblk 7cff0 7cff0
uordblks 2688 2668
fordblks 7e970 7e990
show_variable: Variable=Variable1 has no value
show_variable: Variable=Variable2 has no value
show_variable: Variable=Variable3 has no value
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 3 2
mxordblk 7cff0 7cff0
uordblks 2668 2588
fordblks 7e990 7ea70
user_main: setvbuf test
setvbuf_test: Test NO buffering
setvbuf_test: Using NO buffering
setvbuf_test: Test default FULL buffering
setvbuf_test: Using default FULL buffering
setvbuf_test: Test FULL buffering, buffer size 64
setvbuf_test: Using FULL buffering, buffer size 64
setvbuf_test: Test FULL buffering, pre-allocated buffer
setvbuf_test: Using FULL buffering, pre-allocated buffer
setvbuf_test: Test LINE buffering, buffer size 64
setvbuf_test: Using LINE buffering, buffer size 64
setvbuf_test: Test FULL buffering, pre-allocated buffer
setvbuf_test: Using FULL buffering, pre-allocated buffer
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 2
mxordblk 7cff0 7cff0
uordblks 2588 2588
fordblks 7ea70 7ea70
user_main: /dev/null test
dev_null: Read 0 bytes from /dev/null
dev_null: Wrote 1024 bytes to /dev/null
End of test memory usage:
VARIABLE BEFORE AFTER
======== ======== ========
arena 80ff8 80ff8
ordblks 2 2
mxordblk 7cff0 7cff0
uordblks 2588 2588
fordblks 7ea70 7ea70
user_main: mutex test
Initializing mutex
pthread_mutex_init: mutex=0xc0101578 attr=0
pthread_mutex_init: Returning 0
Starting thread 1
nxtask_activate: ostest pid=10,TCB=0x80409be0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
Starting thread 2
nxtask_activate: ostest pid=12,TCB=0x8040e220
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc01pthrea01578
d_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101pthread_mutex_timedlock: Returning 0
578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returningpthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returningpthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returningpthread_mutex_timedlock: mutex=0xc0101578
0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc01pt01578
hread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xcpthread_mutex_timedlock: Returning 0
0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning pthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returpthread_mutex_timedlock: Returning 0
ning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returpthread_mutex_timedlock: mutex=0xc0101578
ning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0pthread_mutex_timedlock: Returning 0
xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning pthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returpthread_mutex_timedlock: Returning 0
ning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returpthread_mutex_timedlock: mutex=0xc0101578
ning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0pthread_mutex_timedlock: Returning 0
xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returningpthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returpthread_mutex_timedlock: Returning 0
ning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returpthread_mutex_timedlock: mutex=0xc0101578
ning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0pthread_mutex_timedlock: Returning 0
xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_timedlock: Returning 0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returningpthread_mutex_timedlock: Returning 0
0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returnipthread_mutex_timedlock: Returning ng 0
pthread_mutex_timedlock: mutex=0xc0101578
0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returningpthread_mutex_timedlock: mutex=0xc0101578
0
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
pthread_mutex_timedlock: Returning 0
pthread_mutex_timedlock: mutex=0xc0101578
pthread_mutex_unlock: mutex=0xc0101578
pthread_mutex_unlock: Returning 0
nx_pthread_exit: exit_value=0
pthread_completejoin: pid=10 exit_value=0
pthread_mutex_timedriscv_exception: EXCEPTION: Load access fault. MCAUSE: 0000000000000005, EPC: 00000000802189ce, MTVAL: 0000000000000000
riscv_exception: Segmentation fault in PID 7: ostest
lock: Returning 0
nxtask_exit: pthread_completejoin: pid=12 exit_value=0xffffffffffffffff
ostest pid=10,TCB=0x80409be0
nxtask_exit: ostest pid=7,TCB=0x8040c6a0
ostest_main: Exiting with status -1
nxtask_exit: ostest pid=6,TCB=0x804097c0
nsh>
nsh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment