您尚未登录。

#1 Re: 全志 SOC » 淘宝20元A20行车记录仪主板运行主线u-boot & 主线Linux(Q群 1164615798) » 2021-07-29 16:03:56

这样的话。。
USB还是用不了,

[   33.768624] vcc3v0: disabling
[   33.771622] vcc5v0: disabling
[   33.774689] ldo3: disabling
[   33.778564] ldo4: disabling
[   33.782594] ahci-5v: disabling
[   33.785853] usb0-vbus: disabling
[   33.789164] usb1-vbus: disabling
[   33.792412] usb2-vbus: disabling

#2 Re: 全志 SOC » 淘了一个a20行车记录仪主板,并编译lichee » 2020-09-03 18:13:12

哇酷小二 说:

感谢楼主分享! 因为本站钱包功能还在开发中, 麻烦加下我的微信 whycan_cn, 发个小红包感谢一下。

不用了,人人为我我为人人,我这里还有坑等着大家一起解决呢。。

#4 Re: 全志 SOC » 淘了一个a20行车记录仪主板,并编译lichee » 2020-09-03 17:08:55

CPU已经非常烫了,
而且这个板子的DRAM也不是256MB,而是128MB

#5 Re: 全志 SOC » 淘了一个a20行车记录仪主板,并编译lichee » 2020-09-03 17:05:28

但是遇到的问题是,第一次启动的log如下

HELLO! BOOT0 is starting!
boot0 version : 2.0.0▒
read dram para.
dram driver version: 1.15
dram size =256MB
0xffffffff
super_standby_flag = 0
Succeed in opening nand flash.
block from 2 to 6
deal block 2
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00068000.
The file stored in 0x00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[       0.147] boot1 version : 2.0.0
[       0.147] script installed early ok
[       0.148] pmu type = 3
[       0.253] bat vol = 1936 mv
[       0.266] axi:ahb:apb=4:2:2
[       0.266] set dcdc2=1400mv, clock=912M successed
[       0.269] key
[       0.281] no key found
[       0.281] flash init start
[       0.281] NB1 : enter NFB_Init
[       0.284] NB1 : enter phy init
[       0.287] [NAND] nand driver(A20) version: 0x0x00000002, 0x0x00000012, data: 0x426fff64 1111692733
[       0.296] get the good blk ratio from hwscan : 870
[       0.301] NB1 : nand phy init ok
[       0.359] NB1 : init ok
[       0.359] flash init finish
[       0.361] fs init ok
[       0.362] fattype FAT16
[       0.364] fs mount ok
[       0.368] nand good_block_ratio=870
[       0.370] storage_type=0
[       0.383] 0
[       0.383] set pc
[       0.383] usbdc_vol = 4000, usbdc_cur = 0
[       0.385] usbpc_vol = 4200, usbpc_cur = 0
[       0.389] init to usb pc
[       0.392] set pc
[       0.475] battery enough
[       0.475] power_start=0x00000000
[       0.475] power trigger
[       0.795] power start detect
[       0.795] power enter detect
[       0.797] vbus insert
[       0.798] usb start detect
[       0.801] usb enter detect
[       0.804] USB Device!!
[       0.806] usb start detect
[       0.932] base bat_cal = 0
[       1.204] usb set dc
[       1.204] set dc
[       5.267] extenal power low go high startup
[       5.267] usb start detect
[       5.268] usb enter detect
[       5.271] USB Device!!
[       5.671] usb set dc
[       5.671] set dc
[       5.875] usb exit detect
[       5.875] power exit detect
[       5.875] usb exit detect
[       5.878] enter standby

卡在这里不会动了,按一下板子上的reset键,又卡在了Starting kernel ...

HELLO! BOOT0 is starting!
boot0 version : 2.0.0▒
read dram para.
dram driver version: 1.15
dram size =256MB
0xffffffff
super_standby_flag = 0
Succeed in opening nand flash.
block from 2 to 6
deal block 2
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00068000.
The file stored in 0x00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[       0.147] boot1 version : 2.0.0
[       0.147] script installed early ok
[       0.148] pmu type = 3
[       0.252] bat vol = 0 mv
[       0.265] axi:ahb:apb=4:2:2
[       0.265] set dcdc2=1400mv, clock=912M successed
[       0.267] key
[       0.280] no key found
[       0.280] flash init start
[       0.280] NB1 : enter NFB_Init
[       0.283] NB1 : enter phy init
[       0.286] [NAND] nand driver(A20) version: 0x0x00000002, 0x0x00000012, data: 0x426fff64 1111692733
[       0.295] get the good blk ratio from hwscan : 870
[       0.300] NB1 : nand phy init ok
[       0.358] NB1 : init ok
[       0.358] flash init finish
[       0.360] fs init ok
[       0.361] fattype FAT16
[       0.363] fs mount ok
[       0.367] nand good_block_ratio=870
[       0.369] storage_type=0
[       0.382] 0
[       0.382] set pc
[       0.382] usbdc_vol = 4000, usbdc_cur = 0
[       0.384] usbpc_vol = 4200, usbpc_cur = 0
[       0.388] init to usb pc
[       0.391] set pc
[       0.473] battery enough
[       0.474] power_start=0x00000000
[       0.474] pre boot mode
[       0.794] power start detect
[       0.794] power enter detect
[       0.795] usb start detect
[       0.797] usb enter detect
[       0.800] USB Device!!
[       0.923] no battery exist
[       0.923] power exit detect
[       0.924] usb exit detect
[       0.927] key value = 0
[       0.929] recovery key high 40, low 4
[       1.032] show pic finish
[       1.032] load kernel start
[       1.051] load kernel successed
[       1.051] start address = 0x4a000000
[       1.679] power exit detect
[       1.679] usb exit detect
[       1.679

U-Boot 2011.09-rc1-00000-g556d5c7-dirty (Sep 03 2020 - 03:52:29) Allwinner Technology

CPU:   SUNXI Family
Board: SUN7I-EVB
DRAM:  256 MiB
NAND:  NB1 : enter NFB_Init
[NAND] nand driver(A20) version: 0x2, 0x12, data: 12 1207571896
[NAND] set nand_good_block_ratio 870
NB1 : nand phy init ok
NB1 : init ok
2864 MiB
MMC:   SUNXI SD/MMC: 0
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-
bootloader  : 8000          10000
env         : 18000         8000
boot        : 20000         8000
rootfs      : 28000         100000
UDISK       : 128000        470000
-----------------------------------
no misc partition is found
Card did not respond to voltage select!
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **

** Unable to use mmc 0:0 for fatload **
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **

** Unable to use mmc 0:1 for fatload **
Hit any key to stop autoboot:  0
[NAND]dumy read,chip 0

Starting kernel ...

#6 全志 SOC » 淘了一个a20行车记录仪主板,并编译lichee » 2020-09-03 17:03:26

chainsx
回复: 20

偶然间在淘宝上发现了20块钱的a20行车记录仪的主板,
淘宝链接:https://item.taobao.com/item.htm?spm=a230r.1.14.91.6de65a756h4Fsi&id=594462933314&ns=1&abbucket=8#detail
到手后发现运行camdroid,通过bootlogo来看是凌度的机子,

先将bananapi的官方系统写入,成功启动,但是无法使用usb,
bananian系统下载地址:
https://mirrors.tuna.tsinghua.edu.cn/bananian/releases/bananian-latest.zip

从原系统无法获取到scripts.bin,
于是就想编译a20的lichee来使用usb。
全志官方下载地址:http://dl.linux-sunxi.org/SDK/A20-SDK-2.0/aw.tar.bz2
有5个G,但是真正使用的是里面的lichee-2.0.tar.gz,
但是在github上找到了相应项目,https://github.com/dwlinux/Armcore_a20_V30_lichee

参考晕哥的这篇教程:https://whycan.cn/t_1522.html

注意,一定要使用ubuntu-14.04,不然的话遇到的坑是无法填的,
首先安装依赖

sudo apt-get install -y libncurses-dev lib32z1 lib32ncurses5 lib32stdc++6 u-boot-tools make g++ gettext python unzip fakeroot bison texinfo bc flex gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf
cd /opt
git clone --depth=1 https://github.com/dwlinux/Armcore_a20_V30_lichee

这里可以将github.com换成github.com.cnpmjs.org提高克隆速度。

然后直接编译就行了

cd Armcore_a20_V30_lichee
./build.sh -m all

其中会遇到几个坑,
1.host-m4-1.4.15

In file includedfrom clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:456:1:error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE(gets, "gets is a security hole - use fgets instead");

对host-m4-1.4.15/lib/stdio.in.h文件根据补丁内容自行修改

<span style="font-family:Arial;font-size:12px;"># Begin patch
=== modified file 'grub-core/gnulib/stdio.in.h'
--- grub-core/gnulib/stdio.in.h	2010-09-20 10:35:33 +0000
+++ grub-core/gnulib/stdio.in.h	2012-07-04 15:18:15 +0000
@@ -140,8 +140,10 @@
 /* It is very rare that the developer ever has full control of stdin,
    so any use of gets warrants an unconditional warning.  Assume it is
    always declared, since it is required by C89.  */
+#if defined gets
 #undef gets
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif

2.host-autoconf-2.65

conftest.c:14625:must be after `@defmac' to use `@defmacx'
make[3]: ***[autoconf.info] Error 1
make[3]: Leavingdirectory`/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-autoconf-2.65/doc'
make[2]: ***[install-recursive] Error 1
make[2]: Leavingdirectory`/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-autoconf-2.65'
make[1]: ***[install] Error 2
make[1]: Leavingdirectory`/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-autoconf-2.65'
make: ***[/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-autoconf-2.65/.stamp_host_installed]Error 2

应用以下补丁

--- autoconf-2.65/doc/autoconf.texi	2009-11-05 10:42:15.000000000 +0800
+++ autoconf-2.65/doc/autoconf.texi.new	2013-05-28 05:41:09.243770263 +0800
@@ -15,7 +15,7 @@
 @c The ARG is an optional argument.  To be used for macro arguments in
 @c their documentation (@defmac).
 @macro ovar{varname}
-@r{[}@var{\varname\}@r{]}@c
+@r{[}@var{\varname\}@r{]}
 @end macro
 
 @c @dvar(ARG, DEFAULT)
@@ -23,7 +23,7 @@
 @c The ARG is an optional argument, defaulting to DEFAULT.  To be used
 @c for macro arguments in their documentation (@defmac).
 @macro dvar{varname, default}
-@r{[}@var{\varname\} = @samp{\default\}@r{]}@c
+@r{[}@var{\varname\} = @samp{\default\}@r{]}
 @end macro
 
 @c Handling the indexes with Texinfo yields several different problems.

根据这个补丁文件修改即可,直接修改源代码包,下次编译就不会再提示这个错误了。

3.host-makedevs

/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-makedevs/makedevs.c:374:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
  int ret = EXIT_SUCCESS;
      ^
cc1: all warnings being treated as errors

直接修改/opt/Armcore_a20_V30_lichee/out/linux/common/buildroot/build/host-makedevs/makedevs.c文件:
最后一行,return 0;
修改为:return ret;

我给板子上换了一个8GB的nand flash,所以去内核里面勾选nand flash的驱动后再编译

最后打包,选择sun7i_linux_evb-v10

./build.sh pack

最后打包好的文件在tools/pack/sun7i_linux_evb-v10.img

使用PhoenixSuit烧录,要提前进入fel模式,可以通过烧录fel-boot.sunxi到sd卡来进入,

wget http://www.hno.se/code/A10/OLD/fel-boot.sunxi
dd if=fel-boot.sunxi of=/dev/sdX bs=1024 seek=8

#7 Re: 全志 SOC » Orangepi zero openwrt的AP问题 » 2020-05-12 10:50:04

sky92682 说:

orange pi官方放出的固件貌似支持无线

但是官方是直接用armbian的内核把openwrt的根目录给怼进去的,支持相当不好

#8 Re: 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 22:45:04

我把镜像顺便附上,大佬们帮忙看看是哪不对?
openwrt-sunxi-arm9-suniv-f1c100s-licheepi-nano-ext4-sdcard_img.gz

配置文件(下载后重命名为.config):
config.txt

#9 Re: 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 22:42:17

不过,usb好像仍然无法使用。。
难道修改了那个bit也没用?
附启动图

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
352 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2883784 bytes read in 153 ms (18 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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] random: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1756K rodata, 1024K init, 255K bss, 10112K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a389a0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3dc50 - 0xc0a7db24   ( 256 kB)
[    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.000046] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000114] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000578] Console: colour dummy device 80x30
[    0.000672] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070235] pid_max: default: 32768 minimum: 301
[    0.070591] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070632] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071888] CPU: Testing write buffer coherency: ok
[    0.073637] Setting up static identity map for 0x80100000 - 0x80100058
[    0.080050] VFP support v0.3: not present
[    0.080674] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080737] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080966] pinctrl core: initialized pinctrl subsystem
[    0.083191] NET: Registered protocol family 16
[    0.084550] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086871] No ATAGs?
[    0.114153] SCSI subsystem initialized
[    0.114921] usbcore: registered new interface driver usbfs
[    0.115073] usbcore: registered new interface driver hub
[    0.115261] usbcore: registered new device driver usb
[    0.115749] pps_core: LinuxPPS API ver. 1 registered
[    0.115780] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115842] PTP clock support registered
[    0.116559] Advanced Linux Sound Architecture Driver Initialized.
[    0.118652] clocksource: Switched to clocksource timer
[    0.132472] NET: Registered protocol family 2
[    0.134041] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.134116] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.134168] TCP: Hash tables configured (established 1024 bind 1024)
[    0.134424] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.134484] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134996] NET: Registered protocol family 1
[    0.136249] RPC: Registered named UNIX socket transport module.
[    0.136290] RPC: Registered udp transport module.
[    0.136306] RPC: Registered tcp transport module.
[    0.136322] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.138787] No memory allocated for crashlog
[    0.139400] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.154496] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.156798] NFS: Registering the id_resolver key type
[    0.156886] Key type id_resolver registered
[    0.156908] Key type id_legacy registered
[    0.157039] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.175337] Key type asymmetric registered
[    0.175377] Asymmetric key parser 'x509' registered
[    0.175446] io scheduler noop registered
[    0.175467] io scheduler deadline registered
[    0.176277] io scheduler cfq registered (default)
[    0.176311] io scheduler mq-deadline registered
[    0.176330] io scheduler kyber registered
[    0.177462] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.187387] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.274732] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.279728] console [ttyS0] disabled
[    0.299969] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.776362] console [ttyS0] enabled
[    0.801921] loop: module loaded
[    0.805820] SCSI Media Changer driver v0.25
[    0.820884] random: fast init done
[    0.824941] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.834141] libphy: Fixed MDIO Bus: probed
[    0.839392] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.845923] ehci-platform: EHCI generic platform driver
[    0.851474] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.857696] ohci-platform: OHCI generic platform driver
[    0.863384] usbcore: registered new interface driver usb-storage
[    0.870131] mousedev: PS/2 mouse device common for all mice
[    0.876414] i2c /dev entries driver
[    0.881452] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.948794] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.970441] NET: Registered protocol family 10
[    0.977914] Segment Routing with IPv6
[    0.981963] NET: Registered protocol family 17
[    0.986545] can: controller area network core (rev 20170425 abi 9)
[    0.993040] NET: Registered protocol family 29
[    0.997635] 8021q: 802.1Q VLAN Support v1.8
[    1.002014] Key type dns_resolver registered
[    1.016898] hctosys: unable to open rtc device (rtc0)
[    1.022565] ALSA device list:
[    1.025556]   #0: Loopback 1
[    1.031966] Waiting for root device /dev/mmcblk0p2...
[    1.078903] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.092047] mmc0: new high speed SDHC card at address aaaa
[    1.098768] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.108354]  mmcblk0: p1 p2
[    1.136322] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.144052] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.155953] Freeing unused kernel memory: 1024K
[    1.335855] init: Console is alive
[    1.339988] init: - watchdog -
[    1.468518] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.515787] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.534244] init: - preinit -
[    2.009340] random: jshn: uninitialized urandom read (4 bytes read)
[    2.119069] random: jshn: uninitialized urandom read (4 bytes read)
[    2.193781] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.550419] mount_root: mounting /dev/root
[    5.573333] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.691753] urandom-seed: Seed file not found (/etc/urandom.seed)
[    5.759495] procd: - early -
[    5.762655] procd: - watchdog -
[    7.479656] procd: - watchdog -
[    7.483590] procd: - ubus -
[    7.512830] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.541707] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.549356] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.560740] procd: - init -
Please press Enter to activate this console.
[    8.015143] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.049449] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.100604] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.123542] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.243455] xt_time: kernel timezone is -0000
[    8.269859] PPP generic driver version 2.4.2
[    8.279030] NET: Registered protocol family 24
[    8.291659] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            ext4          252.0M      7.5M    239.4M   3% /
tmpfs                tmpfs          11.6M     44.0K     11.5M   0% /tmp
tmpfs                tmpfs         512.0K         0    512.0K   0% /dev
root@OpenWrt:/# free -m
             total       used       free     shared    buffers     cached
Mem:         23680      15960       7720         44        632       3800
-/+ buffers/cache:      11528      12152
Swap:            0          0          0

#10 Re: 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 22:40:36

终于启动成功了,
打开以下几项就可以了

[*] Advanced configuration options (for developers)  --->
[*]   Automatic rebuild of packages
 (-fno-caller-saves -fno-plt) Additional compiler options

#11 Re: 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 15:38:33

看来是根目录被挂载成只读了,在cmdline后面加上rw,可还是Kernel panic

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
355 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2877552 bytes read in 153 ms (17.9 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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] random: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait rw
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1748K rodata, 1024K init, 255K bss, 10112K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a388c0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3db70 - 0xc0a7d964   ( 256 kB)
[    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.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000113] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000575] Console: colour dummy device 80x30
[    0.000669] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070238] pid_max: default: 32768 minimum: 301
[    0.070594] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070638] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071888] CPU: Testing write buffer coherency: ok
[    0.073640] Setting up static identity map for 0x80100000 - 0x80100058
[    0.080067] VFP support v0.3: not present
[    0.080682] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080742] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080979] pinctrl core: initialized pinctrl subsystem
[    0.083158] NET: Registered protocol family 16
[    0.084559] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086854] No ATAGs?
[    0.113629] SCSI subsystem initialized
[    0.114387] usbcore: registered new interface driver usbfs
[    0.114535] usbcore: registered new interface driver hub
[    0.114719] usbcore: registered new device driver usb
[    0.115158] pps_core: LinuxPPS API ver. 1 registered
[    0.115186] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115245] PTP clock support registered
[    0.115919] Advanced Linux Sound Architecture Driver Initialized.
[    0.118020] clocksource: Switched to clocksource timer
[    0.131615] NET: Registered protocol family 2
[    0.133168] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133244] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133295] TCP: Hash tables configured (established 1024 bind 1024)
[    0.133546] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133605] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134109] NET: Registered protocol family 1
[    0.135365] RPC: Registered named UNIX socket transport module.
[    0.135407] RPC: Registered udp transport module.
[    0.135424] RPC: Registered tcp transport module.
[    0.135440] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137754] No memory allocated for crashlog
[    0.138477] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.153357] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.155676] NFS: Registering the id_resolver key type
[    0.155759] Key type id_resolver registered
[    0.155781] Key type id_legacy registered
[    0.155907] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174065] Key type asymmetric registered
[    0.174107] Asymmetric key parser 'x509' registered
[    0.174177] io scheduler noop registered
[    0.174198] io scheduler deadline registered
[    0.175005] io scheduler cfq registered (default)
[    0.175044] io scheduler mq-deadline registered
[    0.175062] io scheduler kyber registered
[    0.176208] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.185954] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.271460] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.276323] console [ttyS0] disabled
[    0.296578] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.773449] console [ttyS0] enabled
[    0.798844] loop: module loaded
[    0.802738] SCSI Media Changer driver v0.25
[    0.818085] random: fast init done
[    0.821853] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.831028] libphy: Fixed MDIO Bus: probed
[    0.836089] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842740] ehci-platform: EHCI generic platform driver
[    0.848289] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.854505] ohci-platform: OHCI generic platform driver
[    0.860195] usbcore: registered new interface driver usb-storage
[    0.866809] mousedev: PS/2 mouse device common for all mice
[    0.873040] i2c /dev entries driver
[    0.877914] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.948163] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.969661] NET: Registered protocol family 10
[    0.977116] Segment Routing with IPv6
[    0.981166] NET: Registered protocol family 17
[    0.985742] can: controller area network core (rev 20170425 abi 9)
[    0.992243] NET: Registered protocol family 29
[    0.996837] 8021q: 802.1Q VLAN Support v1.8
[    1.001217] Key type dns_resolver registered
[    1.016611] ALSA device list:
[    1.019733]   #0: Loopback 1
[    1.025927] Waiting for root device /dev/mmcblk0p2...
[    1.078229] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.091374] mmc0: new high speed SDHC card at address aaaa
[    1.097997] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.107692]  mmcblk0: p1 p2
[    1.138313] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.145909] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.157051] Freeing unused kernel memory: 1024K
[    1.193779] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.193779]
[    1.202927] CPU: 0 PID: 1 Comm: init Not tainted 4.14.63 #0
[    1.208489] Hardware name: Allwinner suniv Family
[    1.213280] [<c010d2a8>] (unwind_backtrace) from [<c010aeb0>] (show_stack+0x10/0x14)
[    1.221040] [<c010aeb0>] (show_stack) from [<c0114f64>] (panic+0xb8/0x24c)
[    1.227921] [<c0114f64>] (panic) from [<c011628c>] (do_exit+0x4b4/0x97c)
[    1.234625] [<c011628c>] (do_exit) from [<c0117310>] (do_group_exit+0xb4/0xb8)
[    1.241840] [<c0117310>] (do_group_exit) from [<c011fee0>] (get_signal+0x4d0/0x554)
[    1.249499] [<c011fee0>] (get_signal) from [<c010a3b8>] (do_signal+0x398/0x3fc)
[    1.256815] [<c010a3b8>] (do_signal) from [<c010a578>] (do_work_pending+0x4c/0xcc)
[    1.264386] [<c010a578>] (do_work_pending) from [<c01077c8>] (slow_work_pending+0xc/0x20)
[    1.272559] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.272559]
[  131.268131] random: crng init done

#12 Re: 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 15:15:27

闯鬼了,居然会Kernel panic

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
352 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2877552 bytes read in 153 ms (17.9 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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] random: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1748K rodata, 1024K init, 255K bss, 10112K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a388c0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3db70 - 0xc0a7d964   ( 256 kB)
[    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.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000112] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000581] Console: colour dummy device 80x30
[    0.000672] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070240] pid_max: default: 32768 minimum: 301
[    0.070593] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070636] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071878] CPU: Testing write buffer coherency: ok
[    0.073619] Setting up static identity map for 0x80100000 - 0x80100058
[    0.079965] VFP support v0.3: not present
[    0.080588] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080650] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080886] pinctrl core: initialized pinctrl subsystem
[    0.083086] NET: Registered protocol family 16
[    0.084441] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086693] No ATAGs?
[    0.113409] SCSI subsystem initialized
[    0.114160] usbcore: registered new interface driver usbfs
[    0.114310] usbcore: registered new interface driver hub
[    0.114493] usbcore: registered new device driver usb
[    0.114938] pps_core: LinuxPPS API ver. 1 registered
[    0.114967] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115026] PTP clock support registered
[    0.115694] Advanced Linux Sound Architecture Driver Initialized.
[    0.117748] clocksource: Switched to clocksource timer
[    0.131359] NET: Registered protocol family 2
[    0.132911] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.132987] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133039] TCP: Hash tables configured (established 1024 bind 1024)
[    0.133295] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133354] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.133858] NET: Registered protocol family 1
[    0.135116] RPC: Registered named UNIX socket transport module.
[    0.135156] RPC: Registered udp transport module.
[    0.135174] RPC: Registered tcp transport module.
[    0.135190] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137464] No memory allocated for crashlog
[    0.138187] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.153064] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.155363] NFS: Registering the id_resolver key type
[    0.155450] Key type id_resolver registered
[    0.155470] Key type id_legacy registered
[    0.155591] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.173756] Key type asymmetric registered
[    0.173799] Asymmetric key parser 'x509' registered
[    0.173871] io scheduler noop registered
[    0.173894] io scheduler deadline registered
[    0.174710] io scheduler cfq registered (default)
[    0.174746] io scheduler mq-deadline registered
[    0.174765] io scheduler kyber registered
[    0.175903] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.185697] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.271099] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.275968] console [ttyS0] disabled
[    0.296227] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.772824] console [ttyS0] enabled
[    0.798200] loop: module loaded
[    0.802094] SCSI Media Changer driver v0.25
[    0.817319] random: fast init done
[    0.821173] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.830360] libphy: Fixed MDIO Bus: probed
[    0.835420] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842073] ehci-platform: EHCI generic platform driver
[    0.847550] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853850] ohci-platform: OHCI generic platform driver
[    0.859530] usbcore: registered new interface driver usb-storage
[    0.866146] mousedev: PS/2 mouse device common for all mice
[    0.872381] i2c /dev entries driver
[    0.877252] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.947891] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.969345] NET: Registered protocol family 10
[    0.976787] Segment Routing with IPv6
[    0.980843] NET: Registered protocol family 17
[    0.985419] can: controller area network core (rev 20170425 abi 9)
[    0.991912] NET: Registered protocol family 29
[    0.996508] 8021q: 802.1Q VLAN Support v1.8
[    1.000890] Key type dns_resolver registered
[    1.016241] ALSA device list:
[    1.019360]   #0: Loopback 1
[    1.025550] Waiting for root device /dev/mmcblk0p2...
[    1.077960] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.091127] mmc0: new high speed SDHC card at address aaaa
[    1.097860] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.107434]  mmcblk0: p1 p2
[    1.136031] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.143763] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.155665] Freeing unused kernel memory: 1024K
[    1.192446] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.192446]
[    1.201594] CPU: 0 PID: 1 Comm: init Not tainted 4.14.63 #0
[    1.207154] Hardware name: Allwinner suniv Family
[    1.211946] [<c010d2a8>] (unwind_backtrace) from [<c010aeb0>] (show_stack+0x10/0x14)
[    1.219708] [<c010aeb0>] (show_stack) from [<c0114f64>] (panic+0xb8/0x24c)
[    1.226591] [<c0114f64>] (panic) from [<c011628c>] (do_exit+0x4b4/0x97c)
[    1.233293] [<c011628c>] (do_exit) from [<c0117310>] (do_group_exit+0xb4/0xb8)
[    1.240508] [<c0117310>] (do_group_exit) from [<c011fee0>] (get_signal+0x4d0/0x554)
[    1.248167] [<c011fee0>] (get_signal) from [<c010a3b8>] (do_signal+0x398/0x3fc)
[    1.255485] [<c010a3b8>] (do_signal) from [<c010a578>] (do_work_pending+0x4c/0xcc)
[    1.263055] [<c010a578>] (do_work_pending) from [<c01077c8>] (slow_work_pending+0xc/0x20)
[    1.271227] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.271227]
[  131.567859] random: crng init done

#13 全志 SOC » 尝试给f1c100s编译openwrt【挖】 » 2020-05-03 15:12:28

chainsx
回复: 10

用的这个源码编译的
编译过程不要使用root编译!!!

https://github.com/qinfengling/openwrt/tree/licheepi-nano/

1,拉取源码

git clone -b licheepi-nano https://github.com/qinfengling/openwrt.git

不得不说,按照网上改hosts的方法使github访问速度快了不少,基本满速下载,后来查了一下GitHub访问速度慢的原因是github的fastly节点被q了。

2,然后

./scripts/feeds update -a && ./scripts/feeds install -a

(这个真心慢得吐血,还会拉取失败,不过我用阿里云早上就能拉取成功)

3,使用

make menuconfig

选择f1c100s然后

make V=s world

进行编译

4,编译完成后,进入build_dir/target-arm_arm926ej-s_musl_eabi/linux-sunxi_arm9/linux-4.14.63/drivers/clk/sunxi-ng,把ccu-suniv.c中对应的8改为1(不说都懂),然后把ccu-suniv.o删掉,最好把构建目录下的bin文件夹也删掉重新生成。

5,使用

make menuconfig

增加rndis的相关软件包。

6,然后再编译重新生成

make V=s world

全程没有报错,好像要成功了,我待会插卡试试再来发帖。

#14 ESP32/ESP8266 » qemu_esp32 » 2020-03-03 21:38:04

chainsx
回复: 3

https://github.com/Ebiroll/qemu_esp32
编译使用了一下,感觉不错,
据说是官方在支持,但是我觉得官方也不可能给太多吧。。。

#15 全志 SOC » 编译v3s bsp添加rtl8723bs时出现以下错误 » 2020-02-21 09:18:47

chainsx
回复: 1
MODPOST vmlinux.o
WARNING: modpost: Found 5 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Building modules, stage 2.
  MODPOST 16 modules
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
WARNING: could not find drivers/media/video/sunxi-vfe/lib/.libisp.cmd for drivers/media/video/sunxi-vfe/lib/libisp
ERROR: "wifi_pm_get_mod_type" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!ERROR: "wifi_pm_power" [drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!
/root/v3s-linux-sdk/linux-3.4/scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1096: recipe for target 'modules' failed
make: *** [modules] Error 2
make: *** Waiting for unfinished jobs....
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready

#19 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 最近一个很火的过时技术WebUSB » 2020-02-09 21:16:07

chainsx
回复: 8

https://flash.android.com
我很好奇这个网页居然没被Q,
先不说这个,网上找了一下关于WebUSB的api结果没太大收获,
上github看了一下发现有很多基于这个弄出来的项目,
例如WebADB,WebFU(给arduino升级的),等等,
那么能不能用这个来给sd卡写镜像什么的。

#20 全志 SOC » f1c100s使用uart1 » 2020-02-07 13:15:12

chainsx
回复: 3

分享一个骚操作,最近usb to ttl串口模块被我弄坏两个了,疫情严重好多商家不发货。
于是想通过电脑usb连接nano,使用adb,然后使用uart1串口连接其他板子,现在使用minicom移植到板子没有问题,adb也配置好了,
按理来说uart1对应的难道不是/dev/ttyS1吗,在nano上使用minicom无回显,还需要什么配置吗?

#22 Re: 全志 SOC » 树莓派的一个镜像是如何做到适配不同架构的芯片的,能否做一个f1c100s/v3s的通用镜像。 » 2020-02-02 00:11:27

树莓派是因为在GPU中有一段固化了的Bootloader,所以能够识别型号来选内核。

#23 Re: 全志 SOC » 树莓派的一个镜像是如何做到适配不同架构的芯片的,能否做一个f1c100s/v3s的通用镜像。 » 2020-02-02 00:09:38

树莓派启动不是靠u-boot,而是博通自己的闭源GPU-Bootloader,开机时加载先在第一个fat32的分区里寻找特定的启动文件bootcode.bin来启动GPU,GPU 启动后会检索附加配置文件(config.txt、fixup.dat),根据其内容设置 CPU 运行参数及内存分配情况,随后将用户代码加载至内存,在树莓派 1 代中,用户代码部分被保存在 kernel.img 文件中,2 代中,该文件更名为 kernel7.img,3 代和4代中,该文件更名为 kernel8.img。
与其他arm的机器不同的,树莓派上电后的初始化工作大多是在 GPU 中完成

#24 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 18:33:58

晕哥 说:

删了就应该可以了。

嗯,我把led相关的都删了,看样子应该没问题了,谢谢各位了

#25 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 18:22:49

cityf 说:

PG0-5在dts可能被led占用了,检查一下。

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disbaled";
	};

的确是,请问具体该怎么改呢?

#26 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 18:04:23

cityf 说:

噢,对,就是这个问题。

据说RTL8723长时间工作不是很稳定,你可以试一试。

这不是不稳定的事了,用nmcli连接WiFi直接挂

#27 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 17:56:02

U-Boot SPL 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
287 bytes read in 17 ms (15.6 KiB/s)
## Executing script at 41900000
reading zImage
3971856 bytes read in 661 ms (5.7 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
11856 bytes read in 29 ms (398.4 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe4f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@chainsx.cn) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP Mon Jan 13 10:37:52 CST 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53560K/64036K available (6144K kernel code, 237K rwdata, 1448K rodata, 1024K init, 262K bss, 10476K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a3b580   ( 238 kB)
[    0.000000]        .bss : 0xc0a427f0 - 0xc0a8402c   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000181] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000420] Console: colour dummy device 80x30
[    0.000852] console [tty0] enabled
[    0.000890] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000928] pid_max: default: 32768 minimum: 301
[    0.001070] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001101] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001719] CPU: Testing write buffer coherency: ok
[    0.002130] /cpus/cpu@0 missing clock-frequency property
[    0.002175] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002665] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002878] Hierarchical SRCU implementation.
[    0.003414] smp: Bringing up secondary CPUs ...
[    0.003447] smp: Brought up 1 node, 1 CPU
[    0.003467] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003487] CPU: All CPU(s) started in SVC mode.
[    0.004284] devtmpfs: initialized
[    0.007472] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007810] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007868] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.008042] pinctrl core: initialized pinctrl subsystem
[    0.008948] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.009124] NET: Registered protocol family 16
[    0.009609] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010844] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010897] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.024144] SCSI subsystem initialized
[    0.024462] usbcore: registered new interface driver usbfs
[    0.024572] usbcore: registered new interface driver hub
[    0.024690] usbcore: registered new device driver usb
[    0.024965] pps_core: LinuxPPS API ver. 1 registered
[    0.024991] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.025038] PTP clock support registered
[    0.025268] Advanced Linux Sound Architecture Driver Initialized.
[    0.027134] clocksource: Switched to clocksource arch_sys_counter
[    0.038200] NET: Registered protocol family 2
[    0.038837] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038893] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038931] TCP: Hash tables configured (established 1024 bind 1024)
[    0.039079] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.039144] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.039375] NET: Registered protocol family 1
[    0.040000] RPC: Registered named UNIX socket transport module.
[    0.040048] RPC: Registered udp transport module.
[    0.040066] RPC: Registered tcp transport module.
[    0.040083] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.042201] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.051250] NFS: Registering the id_resolver key type
[    0.051327] Key type id_resolver registered
[    0.051346] Key type id_legacy registered
[    0.052351] random: fast init done
[    0.055294] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.055348] io scheduler noop registered
[    0.055367] io scheduler deadline registered
[    0.055669] io scheduler cfq registered (default)
[    0.055697] io scheduler mq-deadline registered
[    0.055717] io scheduler kyber registered
[    0.060171] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.131781] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.135213] console [ttyS0] disabled
[    0.155519] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.737400] console [ttyS0] enabled
[    0.744505] libphy: Fixed MDIO Bus: probed
[    0.749208] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.755026] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.760815] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.766993] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.772715] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.779973] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.785639] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.792886] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.797870] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.804868] libphy: stmmac: probed
[    0.810261] usbcore: registered new interface driver rtl8xxxu
[    0.816046] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.822704] ehci-platform: EHCI generic platform driver
[    0.828274] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.833913] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.841947] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.877149] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.884370] hub 1-0:1.0: USB hub found
[    0.888359] hub 1-0:1.0: 1 port detected
[    0.892893] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.899212] ohci-platform: OHCI generic platform driver
[    0.904777] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.911532] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.919527] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.992294] hub 2-0:1.0: USB hub found
[    0.996151] hub 2-0:1.0: 1 port detected
[    1.003779] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.013408] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.022456] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.029392] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.033953] i2c /dev entries driver
[    1.038987] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.048579] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.117182] sunxi-mmc 1c0f000.mmc: base:0xc41f8000 irq:23
[    1.164522] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.174733] mmc0: new high speed SDHC card at address 1234
[    1.180831] sunxi-mmc 1c10000.mmc: base:0xc41fc000 irq:24
[    1.187421] usbcore: registered new interface driver usbhid
[    1.193023] usbhid: USB HID core driver
[    1.197632] mmcblk0: mmc0:1234 SA04G 3.64 GiB
[    1.205247] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.213320] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.221886]  mmcblk0: p1 p2
[    1.226822] NET: Registered protocol family 17
[    1.231547] Key type dns_resolver registered
[    1.235972] Registering SWP/SWPB emulation handler
[    1.245421] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.256119] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.272516] Console: switching to colour frame buffer device 100x30
[    1.288908] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.301357] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.320570] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.330413] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.343651] hub 3-0:1.0: USB hub found
[    1.351652] hub 3-0:1.0: 1 port detected
[    1.360820] using random self ethernet address
[    1.369189] using random host ethernet address
[    1.378423] usb0: HOST MAC 72:95:b9:b4:ad:46
[    1.386373] usb0: MAC ca:34:cc:df:91:03
[    1.393828] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.404910] g_cdc gadget: g_cdc ready
[    1.414726] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.427179] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:28:40 UTC (1720)
[    1.439389] vcc5v0: disabling
[    1.445984] ALSA device list:
[    1.452567]   #0: V3s Audio Codec
[    1.461751] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.475940] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.488948] mmc1: new high speed SDIO card at address 0001
[    1.513090] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.525081] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.536626] devtmpfs: mounted
[    1.544647] Freeing unused kernel memory: 1024K
[    1.859659] systemd[1]: System time before build time, advancing clock.
[    1.902638] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    1.947626] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    1.977549] systemd[1]: Detected architecture arm.
[    2.000937] systemd[1]: Set hostname to <acqua>.
[    2.561583] systemd[1]: Listening on fsck to fsckd communication Socket.
[    2.577358] systemd[1]: Listening on udev Kernel Socket.
[    2.590744] systemd[1]: Reached target Swap.
[    2.602996] systemd[1]: Reached target Encrypted Volumes.
[    2.616327] systemd[1]: Reached target Remote File Systems (Pre).
[    2.630433] systemd[1]: Reached target Remote File Systems.
[    2.644485] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    2.743762] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

Ubuntu 16.04.6 LTS acqua ttyS0

acqua login: ro[   14.488944] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.495655] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.505507] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.512451] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.519097] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.525605] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.532159] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.538687] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.545200] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.551746] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.558246] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.564722] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.571247] sunxi-mmc 1c10000.mmc: data error, sending stop command
o[   14.577952] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.584759] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.591399] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.597977] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.604489] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.611355] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.617913] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.624409] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.630932] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.637476] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.645519] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   14.653172] sunxi-mmc 1c10000.mmc: data error, sending stop command
t
Password: [   18.447256] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.453869] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.464811] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.474216] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.482577] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.493056] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.501027] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.508885] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.515949] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.523813] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.531630] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.538928] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.545948] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.553135] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.560298] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.568033] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.575210] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.582505] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.589693] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.596693] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.603857] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.611015] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.618138] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.625820] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.633156] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.640361] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.647727] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.654752] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.661924] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.669075] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.676096] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.683221] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.690438] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.698410] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   18.705765] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.667255] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.674341] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.684535] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.693735] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.701742] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.709589] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.716770] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.724547] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.732335] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.740151] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.754588] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.761832] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.769167] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.776185] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.783475] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.790657] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.797803] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.804798] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.811963] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.819107] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.826097] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.833246] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.840390] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.847522] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.854511] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.862389] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.869706] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   19.876866] sunxi-mmc 1c10000.mmc: data error, sending stop command

Last login: Thu Feb 11 16:33:07 UTC 2016 on ttyS0
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.13.16-licheepi-zero+ armv7l)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
root@acqua:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:02:de:02:81:79
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:38

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr cc:d2:9b:4d:ae:7c
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@acqua:~# [   43.018408] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.237917] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.245326] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.255358] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.265620] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.273533] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.281456] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.289276] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.296466] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.304191] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.312072] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.319823] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.326868] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.334732] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.342059] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.349989] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.357064] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.364341] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.371537] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.378683] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.385674] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.392843] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.399989] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.406980] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.414139] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.421293] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.428435] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.435419] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.442570] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.449706] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.456687] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.468743] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.687964] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.695387] sunxi-mmc 1c10000.mmc: data error, sending stop command
[   43.702509] sunxi-mmc 1c10000.mmc: data error, sending stop command

#28 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 17:47:06

sunxi-mmc 1c10000.mmc: data error, sending stop command

不知为何,然而还是挂了。

#29 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 17:27:48

OK,解决了,原因是要使用sun8i-v3s-licheepi-zero-dock.dtb而不能使用sun8i-v3s-licheepi-zero.dtb

#30 Re: 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-17 09:02:17

cityf 说:

设备树配好了吗?

你这里是指make menuconfig选择r8723bs之后还要对dts进行更改吗?

#31 全志 SOC » v3s下通过SDIO0使用无线网卡的问题 » 2020-01-15 21:07:08

chainsx
回复: 15

rtl8723bs通过SDIO0的引脚直接插在板子上的,
试过了4.10和4.13的内核,加了r8723bs的驱动,
开机后modprobe r8723bs不报错也无回显,
ifconfig wlan0 up提示没有设备,
确认网卡没坏,插在f1c100s上能用,
这是因为什么原因?

#32 全志 SOC » Orangepi zero openwrt的AP问题 » 2020-01-09 17:13:15

chainsx
回复: 7

openwrt官方的固件不支持opi zero板载的xr819,
自己用lean的源码编译了一个openwrt,打上了xr819的patch,
https://github.com/melsem/openwrt-lede_xradio-xr819_soc-audio
全是毛子文,

但是在luci中可以使用client模式,
只能把热点工作频率 模式由N改为Legacy才能用,

固件放下面,
不知道armbian的xr819驱动哪来的这么稳定,现在勉强用着做旁路由,
万能的坑友啊,,,有没有一样用opi zero想彻底解决这个问题的。

固件:
https://whycan.cn/files/members/1866/openwrt-sunxi-cortexa7-sun8i-h2-plus-orangepi-zero-ext4-sdcard_img.gz

#34 Re: 全志 SOC » 在H6上遇到的一个玄学问题 » 2019-08-20 01:01:59

谢啦,不想理它了,正好换一块新板子。

#35 Re: 全志 SOC » 在H6上遇到的一个玄学问题 » 2019-08-16 12:09:27

重新烧录镜像也是只能进uboot,一样的系统啊。。。

#36 Re: 全志 SOC » 在H6上遇到的一个玄学问题 » 2019-08-16 12:08:42

换了好几张卡了,确认不是卡的问题,百思不得其解,不然怎会称为玄学问题?

#37 全志 SOC » 在H6上遇到的一个玄学问题 » 2019-08-15 21:13:36

chainsx
回复: 6

板子:OrangepiOnePlus
CPU:Allwinner H6

以前启动以及使用都没有任何问题,
今天突然不能启动到根目录。
会卡在initrd,不能成功启动到根目录。

串口显示信息为:
Waiting for root system /dev/mmcblk0p2, countdown : 4
...
后面提示是找不到/dev/mmcblk0p2
我看了/dev里的确没有mmcblk0p2,但是插在电脑上有sda1和sda2。
同样一个系统,为什么今天就启动不了了?

而且换过卡也是同样,不插卡能进fel,难道是硬件损坏?

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn