Code Monkey home page Code Monkey logo

nuc970_buildroot's Introduction

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make nuvoton_nuc972_defconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

If users need to modiy buildroot parameters, user can run 'make menuconfig'
to modify buildroot parameters.

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

If users need to install nuc970_bsp , user need to be root to run 
'./install_bsp.sh' to install nuc970_bsp.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: [email protected]
You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches

nuc970_buildroot's People

Contributors

jsdelivrbot avatar mjchen1 avatar schung1218 avatar ttnwosay avatar ychuang3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuc970_buildroot's Issues

Bad data crc when booting kernel Nuvoton tomato

Hi,

I have built a kernel using the defconfig at configs/nuvoton_nuc976_tomato_defconfig for the nuvoton tomato, I am trying to load it from an sd card but get an error verifying the checksum

image

Issue with building image for NUC980

I seem to be getting an issue when I am building an image for the NUC980 using the nuvoton_nuc980_defconfig.
Building the image without creating an image build to the end, but when "ext2/3/4 root filesystem" is enabled, it fails.

make[4]: Nothing to be done for 'all'.
making all in lib/ss
make[4]: Nothing to be done for 'all'.
making all in lib/e2p
make[4]: Nothing to be done for 'all'.
making all in lib/uuid
make[4]: Nothing to be done for 'all'.
making all in lib/blkid
make[4]: Nothing to be done for 'all'.
making all in lib/support
make[4]: Nothing to be done for 'all'.
making all in lib/ext2fs
make[4]: Nothing to be done for 'all'.
making all in intl
make[4]: Nothing to be done for 'all'.
making all in e2fsck
	LD e2fsck
/usr/bin/ld: ../lib/libext2fs.a(ismounted.o): in function `check_mntent_file':
ismounted.c:(.text+0x23d): undefined reference to `major'
/usr/bin/ld: ../lib/libblkid.a(devname.o): in function `probe_all':
devname.c:(.text+0x888): undefined reference to `makedev'
/usr/bin/ld: devname.c:(.text+0xb7e): undefined reference to `makedev'
/usr/bin/ld: devname.c:(.text+0xc5b): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:426: e2fsck] Error 1
make[3]: *** [Makefile:405: all-progs-recursive] Error 1
make[2]: *** [Makefile:341: all] Error 2
make[1]: *** [package/pkg-generic.mk:219: /home/bbd/Desktop/NUC970_Buildroot/output/build/host-e2fsprogs-1.43.3/.stamp_built] Error 2
make: *** [Makefile:76: _all] Error 2

Please help out here. Thank you

NUC977 kernel can not boot

Hi ,
I use 977 mcu,below is my step
1.make nuvoton_nuc977_defconfig
2.make and generate uImage
3.I burn in board ,I can see boot kernel can occurpt some error

linux_977error

U-Boot Device Tree Blob Error

Hi,

~/build/uboot-master/arch/arm/dts

Screenshot 2022-04-04 222117

U-Boot Configuration

Screenshot 2022-04-04 221929

Error ;

LD u-boot common/built-in.o: In functionshow_board_info':
/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/common/board_info.c:24: undefined reference to fdt_getprop' lib/built-in.o: In function fdtdec_get_int':
/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/lib/fdtdec_common.c:29: undefined reference to fdt_getprop' lib/built-in.o: In function fdtdec_prepare_fdt':
/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/lib/fdtdec.c:593: undefined reference to fdt_check_header' lib/built-in.o: In function fdtdec_get_config_int':
/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/lib/fdtdec.c:875: undefined reference to fdt_path_offset' lib/built-in.o: In function fdtdec_get_config_string':
/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/lib/fdtdec.c:902: undefined reference to fdt_path_offset' /home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/lib/fdtdec.c:906: undefined reference to fdt_getprop'
/home/xxx/NuvotonWorkspace/output-sd-ext4/host/usr/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd: BFD (GNU Binutils) 2.26.1 assertion fail elf32-arm.c:8437
/home/xxx/NuvotonWorkspace/output-sd-ext4/host/usr/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd: BFD (GNU Binutils) 2.26.1 assertion fail elf32-arm.c:8437
/home/xxx/NuvotonWorkspace/output-sd-ext4/host/usr/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd: BFD (GNU Binutils) 2.26.1 assertion fail elf32-arm.c:8437
/home/xxx/NuvotonWorkspace/output-sd-ext4/host/usr/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script
/home/xxx/NuvotonWorkspace/output-sd-ext4/host/usr/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd: final link failed: Invalid operation
Makefile:1210: recipe for target 'u-boot' failed
make[2]: *** [u-boot] Error 1
package/pkg-generic.mk:216: recipe for target '/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/.stamp_built' failed
make[1]: *** [/home/xxx/NuvotonWorkspace/output-sd-ext4/build/uboot-master/.stamp_built] Error 2
Makefile:76: recipe for target '_all' failed
make: *** [_all] Error 2`

NUC970 - I cant use CAN bus

Hello Everyone, Please help mee

  • I activate CAN0 Pins, IP route2 and CANUTILS from the kernel. I boot the device and turn it on. but when I do Candump can0 the message does not come. The cansend command does not work either. I examined it with an oscilloscope. There is no hardware problem.
    T.Y

Build Error and need help

git clone https://github.com/OpenNuvoton/NUC970_Buildroot
make nuvoton_nuc980_chili_defconfig
make -j8

lib/fseterr.c: In function 'fseterr':
lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
77 | #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
| ^~~~~

Not mount, because I must be root

Hello,
I built file system using Buildroot. And I've uploaded it to SD card. Rootfs started working but I don't have any users. And I can't log in to user-root.
Why couldn't System log in to user-root?
And How do I log in to any user?

[ 3.626208] mmcblk0: p1 p2
[ 3.737491] EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem
[ 3.811858] EXT4-fs (mmcblk0p1): recovery complete
[ 3.818208] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 3.826508] VFS: Mounted root (ext3 filesystem) on device 179:1.
[ 3.851166] devtmpfs: mounted
[ 3.856049] Freeing unused kernel memory: 152K
mount: you must be root
mount: you must be root
mkdir: can't create directory '/dev/pts': Permission denied
mkdir: can't create directory '/dev/shm': Permission denied
mount: you must be root
hostname: sethostname: Operation not permitted
Starting logging: OK
Starting mdev...
/etc/init.d/S10mdev: line 21: can't create /proc/sys/kernel/hotplug: nonexistent directory
mdev: /sys/class: No such file or directory
modprobe: can't change directory to '4.4.207+': No such file or directory
Initializing random number generator... [ 4.580533] random: dd: uninitialized urandom read (512 bytes read, 8 bits of entropy available)
done.
Starting network: ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Operation not permitted
FAIL
$ [ 229.753341] random: nonblocking pool is initialized

$
$ whoami
whoami: unknown uid 1000
$ su -
su: can't set groups: Operation not permitted
$

Missing configs for NUC980 boards

Buildroot is missing defconfig files for individual NUC980 boards. It looks like different dev boards have different boot strategies, requiring u-boot to be built on a per-board basis. None of this is documented anywhere, and there's only one "nuvoton_nuc980_defconfig" file that's not clear about which board (IoT? EVK? Serial server?) it supports since it only uses the "nuc980" u-boot config, which (I think?) targets parallel NAND flash booting.

Linux kernel does not detect SD card

I have 2 partitions on the sd card, 1 with the uImage (formatted fat32) and one with the rootfs (ext4). But when i do

fatload mmc 0:1 0x7fc0 uImage 
bootm 0x7fc0

The kernel panics because it can't load the rootfs. When i supply bootargs set bootargs root=/dev/mmcplk0p2 console=ttyS0,115200n8 rootfs=ext4 the boot process hangs and I don't see any output on the console. The mmc drivers are enabled in linux-menuconfig
image

If I boot from a kernel with initramfs I don't see any mmcblk device under /dev/

uboot (2016.11-g5deddd) could not

Hi,
I wana upgrade my nuc972 project so I cloned uboot and kernel from this.
I used default configuration on uboot and kernel.
I made uImage by below script

#!/bin/bash
MKIMAGE_TOOL=$UBOOT_DIR/tools/mkimage
$MKIMAGE_TOOL -A arm -O linux -T kernel -a 0x7FC0 -e 0x8000 -d 970image 970image.ub

I tried to run it on nuc970-evb.
It hang when starting kernel.

캡처

what's wrong?

can we have ubifs defconfig?

Hi,

It would be great if we could have one defconfig which could generate ubi image so that we do not need to make the ubi img manually by mkfs.ubi and uninize.

I am trying to do it but met some problems.

Regards
Tibalt

Could you add NUC97x flash image generator

Dear team,

I am using buildroot for new product in our company, all things solved successfully with a "make" command, but currently, we want to the buildroot generate a MP flash image directly without using WINDOWS MP application. Could you add this feature to buildroot or leave a NUC97x Flash image format with us?

Thanks!

Br,
Xiangyu

Failing to build with glibc >2.28?

When Buildroot tries to build package host-m4-1.4.17 I get this error:

fseeko.c: In function 'rpl_fseeko':
/usr/bin/gcc  -I.   -I/home/jay/NUC970_Buildroot/output/host/usr/include  -O2 -I/home/jay/NUC970_Buildroot/output/host/usr/include -c -o vasprintf.o vasprintf.c
fseeko.c:109:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
  109 |   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
      |    ^~~~~

This looks similar to this issue:
sifive/freedom-u-sdk#74

I have glibc version 2.29 installed.

NuMaker-HMI-N9H30 - w25q256(QT)

hi nuvoton

NuMaker-HMI-N9H30

Added QT in make menuconfig .
When I run the QT program on the board

line 1: syntax error: unexpected word (expecting ")")

How can I make the QT program work?
please help

thank you

Make file not work.

Makefile present this error..

make[1]: Entering directory '/home/user/NUC970_Buildroot/output/build/applications-1.0.0/demos/CAN'
arm-linux-gcc -static can.c -o can_demo -lpthread -lc -lgcc
/usr/local/arm_linux_4.8/usr/bin/../libexec/gcc/arm-nuvoton-linux-uclibcgnueabi/4.8.5/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/user/NUC970_Buildroot/output/build/applications-1.0.0/demos/CAN'
package/pkg-generic.mk:216: recipe for target '/home/user/NUC970_Buildroot/output/build/applications-1.0.0/.stamp_built' failed
make: *** [/home/user/NUC970_Buildroot/output/build/applications-1.0.0/.stamp_built] Error 1

Any possible solutions ?

can you add openvpn and libopenssl in buildroot

I took the latest configuration OpenVPN 2.5.0 and libopenssl 1.1.1i from the original image of GitHub buidlroot, and found a problem. After OpenVPN is started, when run to TLS_ctx_client_ new(new_ctx); in SSL. C file, it will be stuck ,Sometimes it takes 5 minutes or 20 minutes to get out, sometimes it takes an hour, and then it runs normally. I find that this function goes into libopenssl to do initialization work. I don't know why it's stuck.
In addition, I think the above lib may not use the encryption hardware acceleration of nuc972. What should I do if I want to use it?
who can help me?
Look at the time in bold below. There's a difference of 17 minutes。

cat /tmp/messages | grep "openvpn"

Jan 11 08:39:05 FTGateway daemon.warn openvpn[672]: WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
Jan 11 08:39:05 FTGateway daemon.warn openvpn[672]: WARNING: file '/etc/openvpn/client/gateway1.key' is group or others accessible
Jan 11 08:39:05 FTGateway daemon.notice openvpn[672]: OpenVPN 2.5.0 arm-nuvoton-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 8 2021
Jan 11 08:39:05 FTGateway daemon.notice openvpn[672]: library versions: OpenSSL 1.1.1i 8 Dec 2020, LZO 2.10
Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication

Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: TCP/UDP: Preserving recently used remote address: [AF_INET]113.98.62.141:1194
Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: Socket Buffers: R=[163840->163840] S=[163840->163840]
Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: UDP link local: (not bound)
Jan 11 08:56:11 FTGateway daemon.notice openvpn[758]: UDP link remote: [AF_INET]113.98.62.141:1194

Issue building with initramfs disabled

/usr/bin/make -j1 O=/build/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
make[1]: Entering directory '/build'
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/build/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/build/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/build/output/build/buildroot-config/tristate.config BR2_CONFIG=/build/.config HOST_GCC_VERSION="9" BUILD_DIR=/build/output/build SKIP_LEGACY= /build/output/build/buildroot-config/conf --silentoldconfig Config.in
make[1]: Leaving directory '/build'
>>> linux master Building
make[1]: Entering directory '/build/output/build/linux-master'
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  CC      scripts/mod/devicetable-offsets.s
make[2]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
  /build/output/build/linux-master/scripts/gen_initramfs_list.sh: Cannot open '../../images/rootfs.cpio'
make[2]: *** [/build/output/build/linux-master/usr/Makefile:67: usr/initramfs_data.cpio.gz] Error 1
make[1]: *** [Makefile:800: usr] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      init/main.o
  CHK     include/generated/compile.h
  CC      arch/arm/nwfpe/fpmodule.o
  CC      init/do_mounts.o
  AS      arch/arm/nwfpe/entry.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/initramfs.o
  CC      init/init_task.o
  CC      arch/arm/kernel/elf.o
  AS      arch/arm/kernel/entry-armv.o
  AS      arch/arm/kernel/entry-common.o
  CC      init/version.o
  CC      arch/arm/kernel/irq.o
  CC      arch/arm/kernel/opcodes.o
  CC      arch/arm/kernel/process.o
  CC      arch/arm/kernel/ptrace.o
  CC      arch/arm/kernel/return_address.o
  CC      arch/arm/kernel/sched_clock.o
  CC      arch/arm/kernel/setup.o
  CC      arch/arm/kernel/signal.o
  LD      arch/arm/nwfpe/nwfpe.o
  LD      arch/arm/nwfpe/built-in.o
  CC      arch/arm/kernel/sys_arm.o
  CC      arch/arm/kernel/stacktrace.o
  CC      arch/arm/kernel/time.o
  CC      arch/arm/kernel/traps.o
  CC      arch/arm/kernel/atags_proc.o
  CC      arch/arm/kernel/armksyms.o
  CC      arch/arm/kernel/module.o
  CC      arch/arm/kernel/machine_kexec.o
  CC      arch/arm/kernel/sys_oabi-compat.o
  AS      arch/arm/kernel/head.o
  LD      init/mounts.o
  LD      init/built-in.o
  LD      arch/arm/kernel/built-in.o
make[1]: Leaving directory '/build/output/build/linux-master'
make: *** [package/pkg-generic.mk:219: /build/output/build/linux-master/.stamp_built] Error 2

I'm trying to build for the tomato (using nuvoton_nuc976_tomato_defconfig) with initramfs disabled. the build progresses for a while before failing. Not sure what this error means

Unable to Complile QEMU

I'm trying to make use of the QEMU library to run some pre-compiled binaries on the NUC980, but I keep running into the below error when I try to make use of any Linux user-land emulation.

/home/ryan/gitrepos/NUC970_Buildroot/output/build/qemu-2.7.0/user-exec.c: In function ‘cpu_x86_signal_handler’:
/home/ryan/gitrepos/NUC970_Buildroot/output/build/qemu-2.7.0/user-exec.c:410:25: error: ‘mcontext_t’ has no member named ‘gregs’
     pc = uc->uc_mcontext.gregs[R15];
                         ^
/home/ryan/gitrepos/NUC970_Buildroot/output/build/qemu-2.7.0/rules.mak:59: recipe for target 'user-exec.o' failed
make[3]: *** [user-exec.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:204: recipe for target 'subdir-i386-linux-user' failed
make[2]: *** [subdir-i386-linux-user] Error 2
package/pkg-generic.mk:216: recipe for target '/home/ryan/gitrepos/NUC970_Buildroot/output/build/qemu-2.7.0/.stamp_built' failed
make[1]: *** [/home/ryan/gitrepos/NUC970_Buildroot/output/build/qemu-2.7.0/.stamp_built] Error 2
Makefile:76: recipe for target '_all' failed
make: *** [_all] Error 2

The kernel compiles and boots successfully when QEMU systems emulation is enabled instead. Has anyone encountered a similar issue? Is there another module or library which needs to be compiled to enable this feature?

Kernel doesn't start - tomato

Following on from #20 the kernel doesn't start.

A fresh flash of uboot causes the first attempt at booting to cause this repeating message

Capture

After resetting the board it then hangs after detecting the flash

Capture1

Command to make the image:

mkimage -A arm -O linux -T kernel -S sha1 -a 8000 -e 8000 -d linux.bin.gz uImage

Unescaped left brace in regex is illegal here in regex

When building alsa in Buildroot, automake fails with the error: "Unescaped left brace in regex is illegal here in regex"

This is because recent versions of Perl (I'm on 5.26) don't support unescaped braces. The solution is to modify line 3936 of automake from this:
$text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
to this:
$text =~ s/\$\{([^ \t=:+\{\}]+)\}/substitute_ac_subst_variables_worker ($1)/ge;

Boot stuck at "NET: Registered protocol family 1" when connman is enabled

I've added connman package to the build so i can get ethernet working but the Tomato doesn't boot and is stuck.

NUC970 IBR 20151008.1735
No Key
-�X�X�XX��{{�&6�F�&��;�&f��6��&��
CPU: NUC976
DRAM:  64 MiB
MMC:   mmc: 0, mmc: 1
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  0 
reading selftest.sha
** Unable to read file selftest.sha **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
reading uImage
15013680 bytes read in 1343 ms (10.7 MiB/s)
## Booting kernel from Legacy Image at 00007fc0 ...
   Image Name:   Linux-3.10.108
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    15013616 Bytes = 14.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
SF: DeviceBooting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.108 (root@01c2233b70d6) (gcc version 4.8.5 (Buildroot 2016.11.1-g7116cea) ) #2 PREEMPT Sun Oct 3 12:08:35 MDT 2021
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC970
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 47732k/47732k available, 17804k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc03fdf5c   (4056 kB)
      .init : 0xc03fe000 - 0xc105cdd4   (12668 kB)
      .data : 0xc105e000 - 0xc1095a40   ( 223 kB)
       .bss : 0xc1095a40 - 0xc10c69c8   ( 196 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:625
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc032d9f0 - 0xc032da2c
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1

Boot does not proceed after this. Without connman boot works fine.

eMMC / MMC Support

Hello,

I am developing software on NUC980 series microprocessors on embedded linux software. I want to request technical support from you. I want to boot via eMMC/MMC with Buildroot available in your Github account. Can I get technical support from you for this?

I'm having a few issues downloading mmc support from device drivers via u-boot. Could it be a problem with the U-Boot version or the Linux Version?

Rootfs error of Buildroot for nuc980

Dear sir:
I am using buildroot to generate rootfs image for a 980 dev board. The 980 MPU boot from a spi nor flash w25q256. The uboot and kernel seem to be ok from the message printed. But the rootfs from buildroot seem to be wrong."**devtmpfs: error mounting -2". It puzzled me for a long time. And I tried several version of buildroot, no one worked on the board. Please give me some advice on this issue. Thank you very much!

NUC980 IBR 20180813
Boot from SPI-NOR
DDR-OK
fK�皀-�F{籹
NUC980 IBR 20180813
Boot from SPI-NOR
DDR-OK
finish SPI dow頪#S

U-Boot 2016.11 (Apr 21 2023 - 02:09:10 -0700)

CPU: NUC980
Board: NUC980
DRAM: 64 MiB
SF: Detected W25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 2 ��� 1 ��� 0
SF: Detected W25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
device 0 offset 0x200000, size 0x760000
SF: 7733248 bytes @ 0x200000 Read: OK

Booting kernel from Legacy Image at 00007fc0 ...

Image Name: Linux-4.4.289
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2147264 Bytes = 2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
XIP Kernel Image ... OK

Starting kernel ...

SF: Detected W25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Device\0Booting Linux on physical CPU 0x0
Linux version 4.4.289 (root@yang-Inspiron-3137) (gcc version 4.6.4 (crosstool-NG hg+unknown-20130521.154019 - tc0002) ) #21 PREEMPT Wed May 3 21:13:48 CST 2023
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC980
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/mtdblock1 console=ttyS0,115200n8 rdinit=/sbin/init rootfstype=jffs2 mem=64M)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60264K/65536K available (3182K kernel code, 183K rwdata, 892K rodata, 148K init, 205K bss, 5272K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc4800000 - 0xff800000 ( 944 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0402d64 (4076 kB)
.init : 0xc0403000 - 0xc0428000 ( 148 kB)
.data : 0xc0428000 - 0xc0455f60 ( 184 kB)
.bss : 0xc0455f60 - 0xc04894f4 ( 206 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
NR_IRQS:545
clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns
sched_clock: 24 bits at 120kHz, resolution 8333ns, wraps every 69905062489ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x8400 - 0x843c
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
PTP clock support registered
clocksource: Switched to clocksource nuc980-timer5
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
io scheduler noop registered (default)
nuc980_gpio_probe - pdev = nuc980-gpio
nuc980_dma_probe - pdev = nuc980-dma
nuc980-dma nuc980-dma: NUC980 DMA ready
nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980
brd: module loaded
SCSI Media Changer driver v0.25
m25p80 spi0.0: w25q256 (32768 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000800000 : "kernel"
0x000000800000-0x000001000000 : "rootfs"
RX nuc980_spi0_probe: dma0chan0 module removed
TX nuc980_spi0_probe: dma0chan1 module removed
m25p80 spi1.0: unrecognized JEDEC id bytes: ff, ff, ff
libphy: nuc980_rmii0: probed
libphy: nuc980_rmii1: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller
nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1
nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000
nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0, 0
nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller
nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2
nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1, 0
usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2, 0
usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3, 0
usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4, 0
usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5, 0
usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6, 0
usbcore: registered new interface driver usb-storage
nuc980-rtc nuc980-rtc: rtc core: registered nuc980-rtc as rtc0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
nuc980-rtc nuc980-rtc: setting system clock to 2005-01-01 00:00:00 UTC (1104537600)
VFS: Mounted root (jffs2 filesystem) on device 31:1.
//////////////////////////////////////////////////////////////////////////////seem to be wrong from here//////////////////////////////
devtmpfs: error mounting -2
Freeing unused kernel memory: 148K
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.289 #21
Hardware name: NUC980
Backtrace:
[] (dump_backtrace) from [] (show_stack+0x18/0x1c)
r6:00000000 r5:c031d91c r4:c0456208 r3:00000000
[] (show_stack) from [] (dump_stack+0x20/0x28)
[] (dump_stack) from [] (panic+0xac/0x23c)
[] (panic) from [] (kernel_init+0xc8/0xec)
r3:c3840000 r2:c3f6e0b0 r1:60000013 r0:c03ad014
r7:00000000
[] (kernel_init) from [] (ret_from_fork+0x14/0x3c)
r4:00000000 r3:ffffffff
---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

Chili board use ifconfig to show RX dropped too large

image

Hi, My Chili board is using the following kernel version

Linux (none) 4.4.289 #7 PREEMPT Thu Mar 21 14:54:56 CST 2024 armv5tejl GNU/Linux
And I type in ifconfig will find RX dropped too large, I think this is a problem. How can I solve this to avoid this isseus happening?
Do I need to update the network driver?
attached boot log
chili-boot-up-log.txt

Thanks

build error

Hi,
HI,
below is my error message,can you help me fix? thanks

Connecting to sources.buildroot.net (sources.buildroot.net)|104.25.211.19|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-08-19 07:22:27 ERROR 404: Not Found.

package/pkg-generic.mk:128: recipe for target '/home/eric/CY_NUC97/nuc970bsp-release-20170901/nuc970bsp-release-20170901/BSP/nuc970bsp/buildroot/output/build/applications-1.0.0/.stamp_downloaded' failed
make: *** [/home/eric/CY_NUC97/nuc970bsp-release-20170901/nuc970bsp-release-20170901/BSP/nuc970bsp/buildroot/output/build/applications-1.0.0/.stamp_downloaded] Error 1

RTL8188 build error

I try to build a new image with realtek 8188 wifi support, but i get some errors.
Then try to build a more complex realtek chipset RTL8821, and this is builded without errors. I like to use 8188. Any suggestion to build?

TI Ethernet PHY RMII with the NUC980... Compatibility

Hi there. I have a custom board with the TLK110PT PHY chip and am having trouble getting things running.

I am using the iot defconfig to build, and I've enabled the default TI PHY drivers. Is there anything else you would suggest?

How do I enable MDIO tools to debug?
Thanks.
1
2

kernel panic on ubi filesystem issue.

Hi,
I change nand flash from S34ML01G1(ECC-1) to S34ML01G2(ECC-4).

I test bad block on u-boot, no bad block.

nand bad

but when booting kenel, it faces pannic on ubi filesystem.
i made ubi image by buildroot.
this is config view.

buildroot

this is ubinize.cfg

ubinize

this is kernel booting log

=> run bootcmd

Loading from nand0, offset 0x200000
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5417184 Bytes = 5.2 MiB
Load Address: 00008000
Entry Point: 00008000

Booting kernel from Legacy Image at 00007fc0 ...

Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5417184 Bytes = 5.2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
XIP Kernel Image ... OK

StartiBooting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.108+ (david@DavidSrv) (gcc version 4.8.5 (Buildroot 2016.11.1-gcb79d5a) ) #3 PREEMPT Tue Jun 2 16:45:52 KST 2020
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC970
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: noinitrd ubi.mtd=2 root=ubi0:system rw rootfstype=ubifs console=ttyS0,115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user) ethaddr0=00:50:D4:00:00:02
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 59376k/59376k available, 6160k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc04d0f1c (4900 kB)
.init : 0xc04d1000 - 0xc04f1c90 ( 132 kB)
.data : 0xc04f2000 - 0xc05328e0 ( 259 kB)
.bss : 0xc05328e0 - 0xc0567520 ( 212 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:625
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc03cc190 - 0xc03cc1cc
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 115
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
[nuc970fb_probe] 20
fb0: nuc970fb frame buffer device
nuc970-dma nuc970-dma-m2m: NUC970/N9H30 M2M DMA ready
nuc970-uart.0: ttyS0 at I/O 0x0 (irq = 36) is a NUC970
brd: module loaded
nuc970_ebi_probe - pdev = nuc970-ebi
nuc970 mtd nand driver version: 20160331
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
nand: SMRA size 64, 32
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
3 cmdlinepart partitions found on MTD device nand0
Creating 3 MTD partitions on "nand0":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000001600000 : "kernel"
0x000001600000-0x000008000000 : "user"
fmi-sm: registered successfully! mtdid=nand0
libphy: nuc970_rmii0: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_nuc970_probe() - name: nuc970-ehci
nuc970-ehci nuc970-ehci: Nuvoton NUC970/N9H30 EHCI Host Controller
nuc970-ehci nuc970-ehci: new USB bus registered, assigned bus number 1
nuc970-ehci nuc970-ehci: irq 23, io mem 0xb0005000
nuc970-ehci nuc970-ehci: USB 2.0 started, EHCI 0.95
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
nuc970-ohci nuc970-ohci: Nuvoton NUC970/N9H30 OHCI Host Controller
nuc970-ohci nuc970-ohci: new USB bus registered, assigned bus number 2
nuc970-ohci nuc970-ohci: irq 24, io mem 0xb0007000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver usbserial
nuc970adc_probe - pdev = nuc970-adc
input: NUC970/N9H30 TouchScreen(ADC) as /devices/platform/nuc970-adc/input/input0
input: NUC970/N9H30 Keypad(ADC) as /devices/platform/nuc970-adc/input/input1
input: nuc970-kpi as /devices/virtual/input/input2
nuc970-rtc nuc970-rtc: rtc core: registered nuc970-rtc as rtc0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
ios->clock=400000
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
nuc970-audio nuc970-audio: ASoC: CODEC nau8822.0-001a not registered
nuc970-audio nuc970-audio: snd_soc_register_card() failed: -517
platform nuc970-audio: Driver nuc970-audio requests probe deferral
TCP: cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
nuc970-audio nuc970-audio: ASoC: CODEC nau8822.0-001a not registered
nuc970-audio nuc970-audio: snd_soc_register_card() failed: -517
platform nuc970-audio: Driver nuc970-audio requests probe deferral
UBI: attaching mtd2 to ubi0
UBI: scanning is finished
UBI: attached mtd2 (name "user", size 106 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 844, bad PEBs: 4, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1055162966
UBI: available PEBs: 0, total reserved PEBs: 844, PEBs reserved for bad PEB handling: 16
UBI: background thread "ubi_bgt0d" started, PID 519
nuc970-rtc nuc970-rtc: setting system clock to 2005-01-03 19:44:08 UTC (1104781448)
ALSA device list:
No soundcards found.
UBIFS: background thread "ubifs_bgt0_0" started, PID 521
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read only 126976 bytes, retry
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.108+ #3
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (show_stack+0x18/0x1c)
r6:00000000 r5:0001f000 r4:ffffffb6 r3:00000000
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x28)
[] (dump_stack+0x0/0x28) from [] (ubi_io_read+0x118/0x2e4)
[] (ubi_io_read+0x0/0x2e4) from [] (ubi_eba_read_leb+0x1a8/0x440)
[] (ubi_eba_read_leb+0x0/0x440) from [] (ubi_leb_read+0xac/0x134)
[] (ubi_leb_read+0x0/0x134) from [] (ubifs_leb_read+0x2c/0x90)
r8:c3ba3000 r7:00000001 r6:00000000 r5:0001f000 r4:c30f68a0
[] (ubifs_leb_read+0x0/0x90) from [] (ubifs_start_scan+0x74/0xec)
r7:00000001 r6:c4b35000 r5:00000000 r4:c30f68a0
[] (ubifs_start_scan+0x0/0xec) from [] (ubifs_scan+0x30/0x32c)
r8:00000001 r7:c3ba3000 r6:c4b35000 r5:00000000 r4:0001f000
[] (ubifs_scan+0x0/0x32c) from [] (ubifs_read_master+0x48/0xd34)
[] (ubifs_read_master+0x0/0xd34) from [] (ubifs_mount+0xcd8/0x16b4)
[] (ubifs_mount+0x0/0x16b4) from [] (mount_fs+0x1c/0xd8)
[] (mount_fs+0x0/0xd8) from [] (vfs_kern_mount+0x50/0xcc)
r6:00008000 r5:c30f6740 r4:c3824c80
[] (vfs_kern_mount+0x0/0xcc) from [] (do_mount+0x1c0/0x940)
r8:00008000 r7:c30f6740 r6:00000000 r5:c0500b50 r4:c051924c
r3:00000000
[] (do_mount+0x0/0x940) from [] (SyS_mount+0x8c/0xc0)
[] (SyS_mount+0x0/0xc0) from [] (mount_block_root+0x13c/0x2d8)
r7:c04ed61c r6:c04ed62c r5:00008000 r4:c3972000
[] (mount_block_root+0x0/0x2d8) from [] (prepare_namespace+0x98/0x1c0)
[] (prepare_namespace+0x0/0x1c0) from [] (kernel_init_freeable+0x1d8/0x220)
r6:c05328e0 r5:00000007 r4:c04f1c88
[] (kernel_init_freeable+0x0/0x220) from [] (kernel_init+0x10/0x158)
[] (kernel_init+0x0/0x158) from [] (ret_from_fork+0x14/0x3c)
r5:c03c5b54 r4:00000000
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read only 126976 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read only 126976 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read only 126976 bytes, retry
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read 126976 bytes
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.108+ #3
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (show_stack+0x18/0x1c)
r6:00000000 r5:0001f000 r4:ffffffb6 r3:00000000
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x28)
[] (dump_stack+0x0/0x28) from [] (ubi_io_read+0x118/0x2e4)
[] (ubi_io_read+0x0/0x2e4) from [] (ubi_eba_read_leb+0x1a8/0x440)
[] (ubi_eba_read_leb+0x0/0x440) from [] (ubi_leb_read+0xac/0x134)
[] (ubi_leb_read+0x0/0x134) from [] (ubifs_leb_read+0x2c/0x90)
r8:c3ba3000 r7:00000002 r6:00000000 r5:0001f000 r4:c30f68a0
[] (ubifs_leb_read+0x0/0x90) from [] (ubifs_start_scan+0x74/0xec)
r7:00000002 r6:c4b35000 r5:00000000 r4:c30f68a0
[] (ubifs_start_scan+0x0/0xec) from [] (ubifs_scan+0x30/0x32c)
r8:00000001 r7:c3ba3000 r6:c4b35000 r5:00000000 r4:0001f000
[] (ubifs_scan+0x0/0x32c) from [] (ubifs_read_master+0xa8/0xd34)
[] (ubifs_read_master+0x0/0xd34) from [] (ubifs_mount+0xcd8/0x16b4)
[] (ubifs_mount+0x0/0x16b4) from [] (mount_fs+0x1c/0xd8)
[] (mount_fs+0x0/0xd8) from [] (vfs_kern_mount+0x50/0xcc)
r6:00008000 r5:c30f6740 r4:c3824c80
[] (vfs_kern_mount+0x0/0xcc) from [] (do_mount+0x1c0/0x940)
r8:00008000 r7:c30f6740 r6:00000000 r5:c0500b50 r4:c051924c
r3:00000000
[] (do_mount+0x0/0x940) from [] (SyS_mount+0x8c/0xc0)
[] (SyS_mount+0x0/0xc0) from [] (mount_block_root+0x13c/0x2d8)
r7:c04ed61c r6:c04ed62c r5:00008000 r4:c3972000
[] (mount_block_root+0x0/0x2d8) from [] (prepare_namespace+0x98/0x1c0)
[] (prepare_namespace+0x0/0x1c0) from [] (kernel_init_freeable+0x1d8/0x220)
r6:c05328e0 r5:00000007 r4:c04f1c88
[] (kernel_init_freeable+0x0/0x220) from [] (kernel_init+0x10/0x158)
[] (kernel_init+0x0/0x158) from [] (ret_from_fork+0x14/0x3c)
r5:c03c5b54 r4:00000000
UBI warning: ubi_io_read: error -74 (ECC error) while reading 68 bytes from PEB 36:86536, read only 68 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 68 bytes from PEB 36:86536, read only 68 bytes, retry
UBI warning: ubi_io_read: error -74 (ECC error) while reading 68 bytes from PEB 36:86536, read only 68 bytes, retry
UBI error: ubi_io_read: error -74 (ECC error) while reading 68 bytes from PEB 36:86536, read 68 bytes
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.108+ #3
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (show_stack+0x18/0x1c)
r6:00000000 r5:00000044 r4:ffffffb6 r3:00000000
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x28)
[] (dump_stack+0x0/0x28) from [] (ubi_io_read+0x118/0x2e4)
[] (ubi_io_read+0x0/0x2e4) from [] (ubi_eba_read_leb+0x1a8/0x440)
[] (ubi_eba_read_leb+0x0/0x440) from [] (ubi_leb_read+0xac/0x134)
[] (ubi_leb_read+0x0/0x134) from [] (ubifs_leb_read+0x2c/0x90)
r8:00000044 r7:00000022 r6:00014208 r5:00000044 r4:00014208
[] (ubifs_leb_read+0x0/0x90) from [] (ubifs_read_node+0xa0/0x2ac)
r7:00000022 r6:c3ba3000 r5:c30d30c0 r4:00014208
[] (ubifs_read_node+0x0/0x2ac) from [] (dbg_old_index_check_init+0x6c/0xe4)
[] (dbg_old_index_check_init+0x0/0xe4) from [] (ubifs_read_master+0xb18/0xd34)
r9:00000008 r8:c3ba3000 r7:00000000 r6:00000000 r5:00000000
r4:0497ce18
[] (ubifs_read_master+0x0/0xd34) from [] (ubifs_mount+0xcd8/0x16b4)
[] (ubifs_mount+0x0/0x16b4) from [] (mount_fs+0x1c/0xd8)
[] (mount_fs+0x0/0xd8) from [] (vfs_kern_mount+0x50/0xcc)
r6:00008000 r5:c30f6740 r4:c3824c80
[] (vfs_kern_mount+0x0/0xcc) from [] (do_mount+0x1c0/0x940)
r8:00008000 r7:c30f6740 r6:00000000 r5:c0500b50 r4:c051924c
r3:00000000
[] (do_mount+0x0/0x940) from [] (SyS_mount+0x8c/0xc0)
[] (SyS_mount+0x0/0xc0) from [] (mount_block_root+0x13c/0x2d8)
r7:c04ed61c r6:c04ed62c r5:00008000 r4:c3972000
[] (mount_block_root+0x0/0x2d8) from [] (prepare_namespace+0x98/0x1c0)
[] (prepare_namespace+0x0/0x1c0) from [] (kernel_init_freeable+0x1d8/0x220)
r6:c05328e0 r5:00000007 r4:c04f1c88
[] (kernel_init_freeable+0x0/0x220) from [] (kernel_init+0x10/0x158)
[] (kernel_init+0x0/0x158) from [] (ret_from_fork+0x14/0x3c)
r5:c03c5b54 r4:00000000
UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 9)
UBIFS error (pid 1): ubifs_read_node: bad node at LEB 34:82440, LEB mapping status 1
Not a node, first 24 bytes:
00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........................
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.108+ #3
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (show_stack+0x18/0x1c)
r6:c3ba3000 r5:c30d30c0 r4:00014208 r3:00000000
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x28)
[] (dump_stack+0x0/0x28) from [] (ubifs_read_node+0x22c/0x2ac)
[] (ubifs_read_node+0x0/0x2ac) from [] (dbg_old_index_check_init+0x6c/0xe4)
[] (dbg_old_index_check_init+0x0/0xe4) from [] (ubifs_read_master+0xb18/0xd34)
r9:00000008 r8:c3ba3000 r7:00000000 r6:00000000 r5:00000000
r4:0497ce18
[] (ubifs_read_master+0x0/0xd34) from [] (ubifs_mount+0xcd8/0x16b4)
[] (ubifs_mount+0x0/0x16b4) from [] (mount_fs+0x1c/0xd8)
[] (mount_fs+0x0/0xd8) from [] (vfs_kern_mount+0x50/0xcc)
r6:00008000 r5:c30f6740 r4:c3824c80
[] (vfs_kern_mount+0x0/0xcc) from [] (do_mount+0x1c0/0x940)
r8:00008000 r7:c30f6740 r6:00000000 r5:c0500b50 r4:c051924c
r3:00000000
[] (do_mount+0x0/0x940) from [] (SyS_mount+0x8c/0xc0)
[] (SyS_mount+0x0/0xc0) from [] (mount_block_root+0x13c/0x2d8)
r7:c04ed61c r6:c04ed62c r5:00008000 r4:c3972000
[] (mount_block_root+0x0/0x2d8) from [] (prepare_namespace+0x98/0x1c0)
[] (prepare_namespace+0x0/0x1c0) from [] (kernel_init_freeable+0x1d8/0x220)
r6:c05328e0 r5:00000007 r4:c04f1c88
[] (kernel_init_freeable+0x0/0x220) from [] (kernel_init+0x10/0x158)
[] (kernel_init+0x0/0x158) from [] (ret_from_fork+0x14/0x3c)
r5:c03c5b54 r4:00000000
UBIFS: background thread "ubifs_bgt0_0" stops
List of all partitions:
1f00 2048 mtdblock0 (driver?)
1f01 20480 mtdblock1 (driver?)
1f02 108544 mtdblock2 (driver?)
No filesystem could mount root, tried: ubifs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.108+ #3
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (show_stack+0x18/0x1c)
r6:c04ed62c r5:00008000 r4:c0461ea0 r3:00000000
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x28)
[] (dump_stack+0x0/0x28) from [] (panic+0xa4/0x1fc)
[] (panic+0x0/0x1fc) from [] (mount_block_root+0x294/0x2d8)
r3:c3843ea4 r2:00000020 r1:c3843ed8 r0:c0461ea0
r7:c04ed61c
[] (mount_block_root+0x0/0x2d8) from [] (prepare_namespace+0x98/0x1c0)
[] (prepare_namespace+0x0/0x1c0) from [] (kernel_init_freeable+0x1d8/0x220)
r6:c05328e0 r5:00000007 r4:c04f1c88
[] (kernel_init_freeable+0x0/0x220) from [] (kernel_init+0x10/0x158)
[] (kernel_init+0x0/0x158) from [] (ret_from_fork+0x14/0x3c)
r5:c03c5b54 r4:00000000

What's wrong? make ubi image?

使用c++11标准中的std::tuple编译报错

`auto print_ten = [](char c, int ms) {
for (int i = 0; i < 10; i++) {
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
std::cout << c;
}
};
std::cout << "with lanuch::async:\n";
auto foo = std::async(std::launch::async, print_ten, '*', 100);
std::future bar = std::async(std::launch::async, print_ten, '@', 200);
//foo.get();
bar.get();
std::cout << "\n\n";

std::cout << "with lanuch::deferred:\n";
std::future<void> foo2 = std::async(std::launch::deferred, print_ten, '*', 100);
std::future<void> bar2 = std::async(std::launch::deferred, print_ten, '@', 200);
//foo2.get();
bar2.get();
std::cout << "\n";`

使用arm-linux-g++编译报错
[build] /home/workdir/hello/hello.cpp:58:66: 错误:对不完全的类型‘class std::future’的非法使用
[build] auto foo = std::async(std::launch::async, print_ten, '*', 100);
[build] ^
[build] In file included from /home/workdir/hello/hello.cpp:3:0:
[build] /usr/local/arm_linux_4.8/arm-nuvoton-linux-uclibceabi/include/c++/4.8.4/future:113:11: 错误:‘class std::future’的声明
[build] class future;
[build] ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.