页次: 1
│ │ --- Ethernet driver support │ │
│ │ [*] Alacritech devices │ │
│ │ [*] Allwinner devices │ │
│ │ < > Allwinner A10 EMAC support │ │
│ │ < > Altera Triple-Speed Ethernet MAC support │ │
│ │ [*] Amazon Devices │ │
│ │ [*] aQuantia devices
找不到教程说的sun8i emac support ,不知道如何打sun8i-emac补丁
qiushan@ubuntu:~/linux/licheepi_zero/licheepi_zero_linux_ethernet$ arm-linux-gnueabihf-gcc -v
使用内建 specs。
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/local/arm/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/6.3.1/lto-wrapper
目标:arm-linux-gnueabihf
配置为:/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/snapshots/gcc-linaro-6.3-2017.02/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
线程模型:posix
gcc 版本 6.3.1 20170109 (Linaro GCC 6.3-2017.02)
qiushan@ubuntu:~/linux/licheepi_zero/licheepi_zero_linux_ethernet$ sudo make modules_install NSTALL_MOD_PATH=/lib/modules/4.12.0-rc1-g19e52b79
./scripts/gcc-version.sh: 行 25: arm-linux-gnueabihf-gcc:未找到命令
./scripts/gcc-version.sh: 行 26: arm-linux-gnueabihf-gcc:未找到命令
make: arm-linux-gnueabihf-gcc: Command not found
make: arm-linux-gnueabihf-gcc: Command not found
INSTALL crypto/drbg.ko
INSTALL crypto/echainiv.ko
INSTALL crypto/hmac.ko
INSTALL crypto/jitterentropy_rng.ko
INSTALL crypto/sha256_generic.ko
make: arm-linux-gnueabihf-gcc: Command not found
DEPMOD 4.12.0-rc1-g19e52b79-dirty
参考: https://whycan.cn/t_2996.html#p24793
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make modules_install INSTALL_MOD_PATH=/opt/buildroot-2018.08.2/output/target/
我没想把它们打包,就是打算放在根文件系统里,然后加载一下这个驱动
[ 109.925015] VFS: Unable to mount root fs via NFS, trying floppy.
[ 109.931869] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[ 109.939215] Please append a correct "root=" boot option; here are the available partitions:
[ 109.947607] b300 15558144 mmcblk0
[ 109.947614] driver: mmcblk
[ 109.954439] b301 32768 mmcblk0p1 d85b0d94-01
[ 109.954441]
[ 109.961244] b302 15523840 mmcblk0p2 d85b0d94-02
[ 109.961246]
[ 109.968066] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 109.976332] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.14-licheepi-zero+ #1
[ 109.983637] Hardware name: Allwinner sun8i Family
[ 109.988380] [<c010e894>] (unwind_backtrace) from [<c010b548>] (show_stack+0x10/0x14)
[ 109.996135] [<c010b548>] (show_stack) from [<c06732e8>] (dump_stack+0x88/0x9c)
[ 110.003367] [<c06732e8>] (dump_stack) from [<c011b848>] (panic+0xdc/0x248)
[ 110.010249] [<c011b848>] (panic) from [<c09011dc>] (mount_block_root+0x18c/0x260)
[ 110.017736] [<c09011dc>] (mount_block_root) from [<c09013d0>] (mount_root+0x120/0x128)
[ 110.025655] [<c09013d0>] (mount_root) from [<c0901528>] (prepare_namespace+0x150/0x194)
[ 110.033661] [<c0901528>] (prepare_namespace) from [<c0900e28>] (kernel_init_freeable+0x1c4/0x1d4)
[ 110.042537] [<c0900e28>] (kernel_init_freeable) from [<c06854a0>] (kernel_init+0x8/0x108)
[ 110.050719] [<c06854a0>] (kernel_init) from [<c0107868>] (ret_from_fork+0x14/0x2c)
[ 110.058301] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
我的bootargs
setenv bootargs 'console=tty1 console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.3.3:/home/qiushan/linux/nfs/ubuntu_rootfs ip=192.168.3.4:192.168.3.3:192.168.3.1:255.255.255.0::eth0:off'
Toolchain type (External toolchain) --->
*** Toolchain External Options ***
Toolchain (Custom toolchain) --->
Toolchain origin (Pre-installed toolchain) --->
(/usr/local/arm/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf) Toolchain path
($(ARCH)-linux-gnueabihf) Toolchain prefix
External toolchain gcc version (7.x) --->
External toolchain kernel headers series (4.12.x) --->
External toolchain C library (glibc/eglibc) --->
倒数第二行应该怎么填
我用的f1c100s,Linux4.14,otg口用不了是什么原因呢
=> usb start
starting USB...
No controllers found
在linux下也没有反应
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-nano+ (qiushan@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 Thu Jan 9 17:54:44 PST 2020
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Nano
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 root=/dev/mmcblk0p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Memory: 23768K/32768K available (5120K kernel code, 208K rwdata, 1284K rodata, 1024K init, 218K bss, 9000K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[ 0.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000123] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000636] Console: colour dummy device 80x30
[ 0.000728] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070239] pid_max: default: 32768 minimum: 301
[ 0.070666] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070704] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072302] CPU: Testing write buffer coherency: ok
[ 0.074297] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076530] devtmpfs: initialized
[ 0.081513] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.081567] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.081859] pinctrl core: initialized pinctrl subsystem
[ 0.084518] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.086579] cpuidle: using governor menu
[ 0.134502] SCSI subsystem initialized
[ 0.134860] usbcore: registered new interface driver usbfs
[ 0.135008] usbcore: registered new interface driver hub
[ 0.135183] usbcore: registered new device driver usb
[ 0.135648] pps_core: LinuxPPS API ver. 1 registered
[ 0.135670] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.136174] Advanced Linux Sound Architecture Driver Initialized.
[ 0.136492] clocksource: Switched to clocksource timer
[ 0.165955] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.168148] Initialise system trusted keyrings
[ 0.168715] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.192872] Key type asymmetric registered
[ 0.192910] Asymmetric key parser 'x509' registered
[ 0.193074] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.193099] io scheduler mq-deadline registered
[ 0.193116] io scheduler kyber registered
[ 0.205163] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.386251] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.391932] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.393668] printk: console [ttyS0] disabled
[ 0.413927] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[ 0.732376] printk: console [ttyS0] enabled
[ 0.740266] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.757939] SCSI Media Changer driver v0.25
[ 0.763334] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.769985] ehci-platform: EHCI generic platform driver
[ 0.775458] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.781760] ohci-platform: OHCI generic platform driver
[ 0.787449] usbcore: registered new interface driver usb-storage
[ 0.794037] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[ 0.803037] i2c /dev entries driver
[ 0.808252] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 0.846270] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 0.855489] usbcore: registered new interface driver usbhid
[ 0.861182] usbhid: USB HID core driver
[ 0.882619] Loading compiled-in X.509 certificates
[ 0.897197] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.908580] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[ 0.919459] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc06374b4)
[ 0.928534] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc063610c)
[ 0.936195] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.942915] [drm] No driver support for vblank timestamp query.
[ 0.950224] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.175591] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.179030] mmc0: new high speed SDHC card at address aaaa
[ 1.184333] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.206306] Console: switching to colour frame buffer device 100x30
[ 1.213828] mmcblk0: p1 p2
[ 1.266035] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[ 1.274035] ALSA device list:
[ 1.277177] #0: Loopback 1
[ 1.305470] random: fast init done
[ 1.323104] EXT4-fs (mmcblk0p2): recovery complete
[ 1.328068] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.336340] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.348037] devtmpfs: mounted
[ 1.357484] Freeing unused kernel memory: 1024K
[ 1.362149] Run /sbin/init as init process
[ 1.394262] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.401936] CPU: 0 PID: 1 Comm: init Not tainted 5.2.0-licheepi-nano+ #2
[ 1.408618] Hardware name: Allwinner suniv Family
[ 1.413407] [<c010e3f8>] (unwind_backtrace) from [<c010b9dc>] (show_stack+0x10/0x14)
[ 1.421166] [<c010b9dc>] (show_stack) from [<c0116db4>] (panic+0xe8/0x2e4)
[ 1.428045] [<c0116db4>] (panic) from [<c01185e8>] (do_exit+0x9dc/0xa18)
[ 1.434743] [<c01185e8>] (do_exit) from [<c0119184>] (do_group_exit+0x3c/0xb4)
[ 1.441964] [<c0119184>] (do_group_exit) from [<c0122d3c>] (get_signal+0x10c/0x7bc)
[ 1.449621] [<c0122d3c>] (get_signal) from [<c010af4c>] (do_work_pending+0x1a8/0x558)
[ 1.457453] [<c010af4c>] (do_work_pending) from [<c0101068>] (slow_work_pending+0xc/0x20)
[ 1.465607] Exception stack(0xc1831fb0 to 0xc1831ff8)
[ 1.470656] 1fa0: be8bcf10 00000000 00000000 00000000
[ 1.478824] 1fc0: 00000940 00000000 00000000 00000000 00000000 00000000 000275e4 00000000
[ 1.486987] 1fe0: 00000000 be8bcf10 b6fa1b53 b6fa2000 00000030 ffffffff
[ 1.493597] Rebooting in 5 seconds..
[ 7.472830] Reboot failed -- System halted
页次: 1