您尚未登录。

楼主 #1 2017-11-22 09:10:12

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

荔枝派zero核心板pdf:
https://whycan.cn/files/20171005/11/lichee_zero(核心板).pdf

荔枝派zero底板pdf:
https://whycan.cn/files/20171005/11/lichee_base(底板).pdf


二代一体开发板: 荔枝派一体开发板原理图(核心板与底板整合到一块).pdf

全志V3s手册V1.0: Allwinner_V3s_Datasheet_V1.0.pdf
全志S3手册V0.2: Allwinner_S3_Datasheet_V0_2.pdf (索智S3手册)



-------------------------------------------------------------------------------------------


回顾:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

1. 准备工作
    1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训),  然后安装 vmware tools(不是必须,但是方便文件共享)

    2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf

    3) 安装git源码管理软件:  sudo apt-get install git

    4) 其他支撑软件

2. u-boot
      首先获取u-boot源码:             git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
      如果你需要支持spi flash:   git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental

修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j3

3. 设备树, Linux
    获取Linux源码(zero-4.13.y分支对网卡支持比较好):  git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
    生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
    设备树文件(默认不需要修改):  arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
    编译内核:     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
    编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs

4. 根文件系统
    1). 下载最新的buildroot稳定版本
        官方网站:   https://buildroot.org/download.html
        长支持版本:buildroot-2017.02.7.tar.gz
        最新稳定版:buildroot-2017.08.1.tar.gz

    2). 配置buildroot 参数, make menuconfig; make

        QQ20171122094600.png

        QQ20171122094653.png

        如果不会配置, 就下载下面这个文件,然后把 buildroot-v3s-20171122.zip解压后 拷贝到 buidroot目录成 .config 文件。       

     3). 执行编译, 生成文件跟文件系统。

     4). 如需构建Qt应用程序,   视频地址:  buildroot成功后如何编译Qt应用程序

5. 烧录TF卡启动盘:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd

离线

#2 2017-11-22 15:03:45

1066950103
会员
注册时间: 2017-11-17
已发帖子: 61
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

1.用win下面的镜像烧录工具烧录了一个基本的能跑的镜像文件进去lichee_zero-mindb_alpha.dd 这样做的目的 我懒得去为TF分区。
2.lichee_zero-mindb_alpha.dd默认的内核应该是4.10版本,我替换了自己编译的4.13版本的。/linux/arch/arm/boot目录下的zImage
3.把TF接入ubuntu然后把TF卡第二个分区 挂在 , 删除里面的所有文件 用tar xvf output/images/rootfs.tar -C 把编译的rootfs解压进去 执行sync
   然后umount 。
4.上面的rootfs 是跟楼主一样的操作 配置也是用的楼主的 ,我在编译的时候发现出错缺QT5之类的东西 然后make menuconfig直接去掉了QT5的选项编译通过了。(在软件包里面添加过自己要的东西)
经过上面操作linux启动卡在了
{

[    1.192356] hub 1-0:1.0: 1 port detected
[    1.200380] using random self ethernet address
[    1.208226] using random host ethernet address
[    1.216843] usb0: HOST MAC ea:c8:a5:20:9a:df
[    1.224451] usb0: MAC a2:ec:c7:6c:e1:00
[    1.231535] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.242270] g_cdc gadget: g_cdc ready
[    1.249411] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 01:09:08 UTC (4148)
[    1.261211] vcc3v0: disabling
[    1.267486] vcc5v0: disabling
[    1.273645] ALSA device list:
[    1.279839]   No soundcards found.
[    1.288015] Waiting for root device /dev/mmcblk0p2...
[    1.332320] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.345631] mmc0: new high speed SD card at address b368
[    1.354996] mmcblk0: mmc0:b368 00000 954 MiB
[    1.364840]  mmcblk0: p1 p2
[    1.387187] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.400317] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.441536] random: fast init done
[    1.465441] EXT4-fs (mmcblk0p2): recovery complete
[    1.475471] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.486876] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.497877] devtmpfs: mounted
[    1.505378] Freeing unused kernel memory: 1024K
[    1.663420] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[  177.125243] random: crng init done

}
请楼主指点一下我那里操作不对为什么卡住了。

离线

楼主 #3 2017-11-22 15:10:01

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

U-Boot 2017.01-rc2-00071-gf03c1f5-dirty (Nov 18 2017 - 22:15:31 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** 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
reading zImage
3898688 bytes read in 621 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11931 bytes read in 28 ms (416 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe9a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #35 SMP Sat Nov 18 22:21:37 CST 2017
[    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 s33920 r8192 d23424 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 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) 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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1432K rodata, 1024K init, 262K bss, 10456K 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1bc   ( 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000417] Console: colour dummy device 80x30
[    0.000454] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000470] pid_max: default: 32768 minimum: 301
[    0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001204] CPU: Testing write buffer coherency: ok
[    0.001578] /cpus/cpu@0 missing clock-frequency property
[    0.001604] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002044] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002219] Hierarchical SRCU implementation.
[    0.002703] smp: Bringing up secondary CPUs ...
[    0.002720] smp: Brought up 1 node, 1 CPU
[    0.002730] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002737] CPU: All CPU(s) started in SVC mode.
[    0.003505] devtmpfs: initialized
[    0.006733] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007030] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007058] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007230] pinctrl core: initialized pinctrl subsystem
[    0.008093] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008234] NET: Registered protocol family 16
[    0.008703] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009842] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009861] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023902] SCSI subsystem initialized
[    0.024221] usbcore: registered new interface driver usbfs
[    0.024290] usbcore: registered new interface driver hub
[    0.024388] usbcore: registered new device driver usb
[    0.024653] pps_core: LinuxPPS API ver. 1 registered
[    0.024667] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024691] PTP clock support registered
[    0.024931] Advanced Linux Sound Architecture Driver Initialized.
[    0.026779] clocksource: Switched to clocksource arch_sys_counter
[    0.037466] NET: Registered protocol family 2
[    0.038055] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038091] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038114] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038250] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038299] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038527] NET: Registered protocol family 1
[    0.039133] RPC: Registered named UNIX socket transport module.
[    0.039156] RPC: Registered udp transport module.
[    0.039162] RPC: Registered tcp transport module.
[    0.039167] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041054] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050094] NFS: Registering the id_resolver key type
[    0.050156] Key type id_resolver registered
[    0.050164] Key type id_legacy registered
[    0.051175] random: fast init done
[    0.053944] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053969] io scheduler noop registered
[    0.053977] io scheduler deadline registered
[    0.054238] io scheduler cfq registered (default)
[    0.054250] io scheduler mq-deadline registered
[    0.054257] io scheduler kyber registered
[    0.058737] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126666] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130091] console [ttyS0] disabled
[    0.150367] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.733086] console [ttyS0] enabled
[    0.758199] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.788741] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.802399] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.807603] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.813863] Creating 4 MTD partitions on "spi32766.0":
[    0.819040] 0x000000000000-0x000000100000 : "uboot"
[    0.824545] 0x000000100000-0x000000110000 : "dtb"
[    0.829815] 0x000000110000-0x000000710000 : "kernel"
[    0.835152] 0x000000710000-0x000002000000 : "rootfs"
[    0.840987] libphy: Fixed MDIO Bus: probed
[    0.845629] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.851525] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.857266] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.863418] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.869119] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.876334] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.882000] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.889225] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.894184] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.901160] libphy: stmmac: probed
[    0.906501] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.913168] ehci-platform: EHCI generic platform driver
[    0.918715] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.924329] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.932305] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.966800] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.974049] hub 1-0:1.0: USB hub found
[    0.977995] hub 1-0:1.0: 1 port detected
[    0.982545] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.988852] ohci-platform: OHCI generic platform driver
[    0.994425] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.001157] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.009114] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.081939] hub 2-0:1.0: USB hub found
[    1.085759] hub 2-0:1.0: 1 port detected
[    1.093423] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.103057] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.111989] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.118894] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.123445] i2c /dev entries driver
[    1.128364] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.137888] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.206827] sunxi-mmc 1c0f000.mmc: base:0xc41fe000 irq:23
[    1.253909] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.263906] mmc0: new high speed SD card at address b368
[    1.269784] sunxi-mmc 1c10000.mmc: base:0xc4303000 irq:24
[    1.276198] usbcore: registered new interface driver usbhid
[    1.281865] usbhid: USB HID core driver
[    1.286452] mmcblk0: mmc0:b368 FFFFF 1.85 GiB
[    1.293142] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.301196] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.307701]  mmcblk0: p1 p2
[    1.315808] NET: Registered protocol family 17
[    1.320502] Key type dns_resolver registered
[    1.324909] Registering SWP/SWPB emulation handler
[    1.334192] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.344903] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.361252] Console: switching to colour frame buffer device 100x30
[    1.373677] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.382270] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.393669] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.399513] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.408694] hub 3-0:1.0: USB hub found
[    1.412562] hub 3-0:1.0: 1 port detected
[    1.417910] using random self ethernet address
[    1.422406] using random host ethernet address
[    1.429079] usb0: HOST MAC ea:2e:b5:37:94:39
[    1.433399] usb0: MAC ea:73:b4:e9:b1:97
[    1.437391] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.444869] g_cdc gadget: g_cdc ready
[    1.451183] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.459688] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:11 UTC (11)
[    1.468021] vcc5v0: disabling
[    1.470997] ALSA device list:
[    1.473961]   #0: V3s Audio Codec
[    1.479412] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.488737] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.744749] EXT4-fs (mmcblk0p2): recovery complete
[    1.752584] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.760827] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.769205] devtmpfs: mounted
[    1.773355] Freeing unused kernel memory: 1024K
[    1.924658] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

我的TF启动是这样的,
你看下第二个分区有没有  /dev/null, /dev/consle的设备?

离线

楼主 #4 2017-11-22 15:12:02

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

tar 解压缩到tf卡分区完成之后执行一次 sync再拔卡,
看下第二个分区下面的文件是否都完整, 目录结构是否正确,
看下 /sbin/init, /bin/busybox 这些文件是否都存在,
上面都试过不行的话就换张卡试一试。

离线

#5 2017-11-22 15:34:44

1066950103
会员
注册时间: 2017-11-17
已发帖子: 61
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

离线

楼主 #6 2017-11-22 15:38:54

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

buildroot的默认账号是root, 密码是空,
配置的话在buildroot menuconfig里面可能可以配置,
如果不行的话, 在V3s 的Linux终端执行 passwd,
重设root密码.

如果觉得登陆对话框碍事, 看看这个 我用buildroot产生的rootfs,每次启动都要登录,有什么办法可以去掉这个登录吗?

离线

楼主 #7 2017-11-22 15:40:18

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

但是lcd上出现了用户登陆提示,这种情况你把 uboot,设备树, Linux都用我上面写的。
log跑屏幕上去这个是在哪里配置的,我现在还没找到,如果你找到麻烦跟帖一下。

离线

#8 2017-12-11 16:21:48

Wang
会员
注册时间: 2017-12-09
已发帖子: 13
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

[    1.435209] ALSA device list:
[    1.441772]   #0: V3s Audio Codec
[    1.450847] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.464176] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.501478] EXT4-fs (mmcblk0p2): recovery complete
[    1.511839] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.523603] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.534523] devtmpfs: mounted
[    1.542406] Freeing unused kernel memory: 1024K
[    1.575758] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
[    6.646708] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[    6.669615] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    6.718357] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
[   11.766679] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   11.789876] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   11.819580] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   11.841746] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #1
[   11.853155] Hardware name: Allwinner sun8i Family
[   11.862104] [<c010e5f8>] (unwind_backtrace) from [<c010b2a0>] (show_stack+0x10/0x14)
[   11.874216] [<c010b2a0>] (show_stack) from [<c06604a8>] (dump_stack+0x88/0x9c)
[   11.885796] [<c06604a8>] (dump_stack) from [<c011b5dc>] (panic+0xdc/0x248)
[   11.896984] [<c011b5dc>] (panic) from [<c0672074>] (kernel_init+0xf8/0x108)
[   11.908254] [<c0672074>] (kernel_init) from [<c0107618>] (ret_from_fork+0x14/0x3c)
[   11.920133] Rebooting in 5 seconds..

根文件系统配置用了楼主的,启动时打印这个错误Starting init: /sbin/init exists but couldn't execute it (error -8),换了张卡也一样,怎么解决,是不是还是配置问题

离线

#9 2017-12-11 16:47:13

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Wang 说:

根文件系统配置用了楼主的,启动时打印这个错误Starting init: /sbin/init exists but couldn't execute it (error -8),换了张卡也一样,怎么解决,是不是还是配置问题

根文件系统哪里下载的?





离线

#10 2017-12-11 17:01:36

Wang
会员
注册时间: 2017-12-09
已发帖子: 13
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

离线

#11 2017-12-11 17:52:12

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这个是buildroot源码, 不是根文件系统哦。
根文件系统是编译后的这个文件:  output/images/rootfs.tar





离线

#12 2017-12-11 19:18:34

Wang
会员
注册时间: 2017-12-09
已发帖子: 13
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

这个是buildroot源码, 不是根文件系统哦。
根文件系统是编译后的这个文件:  output/images/rootfs.tar

就是用这个源码编译的根文件系统,配置文件用的楼主的,启动后就一直提示错误然后重启

离线

#13 2017-12-11 19:52:31

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Wang 说:
晕哥 说:

这个是buildroot源码, 不是根文件系统哦。
根文件系统是编译后的这个文件:  output/images/rootfs.tar

就是用这个源码编译的根文件系统,配置文件用的楼主的,启动后就一直提示错误然后重启

我传一个编译好的给你, 试一试 rootfs_tar.7z,
看能否跑起来,然后再排除问题。
有问题可以继续留言。





离线

#14 2017-12-11 20:43:10

basicdev
会员
注册时间: 2017-10-02
已发帖子: 159
积分: 159

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我大概明白原因了, 应该解压缩 buildroot-v3s-20171122.zip 改名.config

离线

#15 2017-12-12 11:58:03

Wang
会员
注册时间: 2017-12-09
已发帖子: 13
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

basicdev 说:

我大概明白原因了, 应该解压缩 buildroot-v3s-20171122.zip 改名.config

是的,都没理解这句话,谢谢各位

离线

#16 2017-12-14 09:19:55

Lvy
会员
注册时间: 2017-11-25
已发帖子: 107
积分: 91.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问你装的vmware14是Workstation Player版还是Workstation Pro版?

离线

#17 2017-12-14 11:27:18

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Lvy 说:

请问你装的vmware14是Workstation Player版还是Workstation Pro版?

我用的就是这个: VMware-workstation-full-14.0.0-6661328.exe

序列号网上很多,找找就能用。

有人说VirtualBox好用,但是我用过多台电脑均不稳定。





离线

#18 2017-12-23 11:09:42

daydayup
会员
注册时间: 2017-10-09
已发帖子: 343
积分: 343

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd

lz你好,请问我用这个固件能否用荔枝派zero 开发板挂载U盘呢?

离线

#19 2017-12-23 11:16:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

内核驱动选中 usb storage:
QQ20171223163927.png

QQ20171223111330.png

QQ20171223111656.jpg

这个文件系统可以手动挂载U盘.





离线

#20 2017-12-23 16:29:57

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)


晕哥,u盘不是接到otg口么,你那个是怎接的u盘呢

离线

#21 2017-12-23 16:34:00

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

zhuacai 说:

晕哥,u盘不是接到otg口么,你那个是怎接的u盘呢

看错了,你的也是接到otg口,我的内核是按你这个页面的教程做的,是不是没配置内核支持u盘或读卡器呢

离线

#22 2017-12-23 16:38:34

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,内核配置太难了,比如要配置网卡等等,我一点都不懂,有什么资料可以推存给我学习的吗

离线

#23 2017-12-23 16:46:02

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

zhuacai 说:

晕哥,内核配置太难了,比如要配置网卡等等,我一点都不懂,有什么资料可以推存给我学习的吗

学习的话还是先找s3c2440,s3c2416开发板,视频文字资料都非常多。
学了那些之后配置就得心应手了。





离线

#24 2017-12-23 18:50:37

basicdev
会员
注册时间: 2017-10-02
已发帖子: 159
积分: 159

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

QQ20171223184340.png

musb-hrc musb-hdrc.1.auto: VBUS_ERROR in bidle(98 VALID)

请问大神们, 我的U盘插入荔枝派Zero dock板子上, 一点反应都没有, 就是上面这个错误.

离线

#25 2017-12-23 18:55:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

basicdev 说:

https://whycan.cn/files/members/317/QQ20171223184340.png

musb-hrc musb-hdrc.1.auto: VBUS_ERROR in bidle(98 VALID)

请问大神们, 我的U盘插入荔枝派Zero dock板子上, 一点反应都没有, 就是上面这个错误.

我碰到过这个问题:
github 上 4.10-y 分支亲自试过, 板子上的电源拨码开关有问题,导致VBUS无电造成!
解决方法就是把电源开关按下,确认VUSB有5V,然后再插入U盘。
保证药到病除!
4.13-y 还没有验证。

造成这个的原因我问过荔枝派zero的群主, 因为这些开关不耐热,过高温回流焊的时候按键损坏造成接触不良。

QQ20171223190045.png





离线

#26 2018-01-07 21:52:50

bugfix
会员
注册时间: 2017-11-22
已发帖子: 125
积分: 125

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问大家,我用buildroot 不管我怎么减少 增加包 编译出来的 target 大小都不会改变, 应该怎么做?

离线

#27 2018-01-07 21:58:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

bugfix 说:

请问大家,我用buildroot 不管我怎么减少 增加包 编译出来的 target 大小都不会改变, 应该怎么做?

这个问题, 你应该先删除生成的二进制文件, 再删除 .stamp_built (比如 output/build/busybox-1.27.2/.stamp_built), 到buildroot目录执行make.
如果再不行, 把 .stamp_ 开头的文件全删了, 再make一次,药到病除。





离线

#28 2018-01-07 22:08:05

linghaibin
会员
注册时间: 2018-01-07
已发帖子: 36
积分: 28

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

如果需要指定 rootfs.jffs2 的大小 可以在哪里设置

离线

#29 2018-01-07 22:14:38

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

linghaibin 说:

如果需要指定 rootfs.jffs2 的大小 可以在哪里设置

貌似不能指定文件大小,只能指定page size和erase size.





离线

#30 2018-01-07 22:23:29

linghaibin
会员
注册时间: 2018-01-07
已发帖子: 36
积分: 28

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
linghaibin 说:

如果需要指定 rootfs.jffs2 的大小 可以在哪里设置

貌似不能指定文件大小,只能指定page size和erase size.


#mkfs.jffs2 -r rootfs -o fs.jffs2 -e 0x20000 --pad=0x500000 -s 0x800 –n -l

即可生成 rootfs.jffs2

Mkfs.jffs2各参数的意义如下:

-r:指定要做成image的目录名。

-o:指定输出image的文件名。

-e:每一块要擦除的block size,默认是64KB.要注意,不同的flash, 其block size会不一样,三星的K9F2G08U0A的block size为0x20000(从其datasheet里可以找到)。在没有加-e选项是,启动会出现以下错误:at91sam user.warn kernel: Empty flash at 0x00f0fffc ends at 0x00f10000。因此,若有类似的错误,加上-e选项,并配置nandflash的块大小,即可消除。

--pad(-p):用16进制来表示所要输出文件的大小,也就是fs.jffs2的大小,如果实际大小不足此设定的大小,则用0xFF补足。也可以不用此选项,生成的文件系统的大小跟本身大小一致,暂时还不知道有和妙用,但是加上后会少出现很多错误。

-n,-no-cleanmarkers:指明不添加清楚标记(nandflash有自己的校检块,存放相关的信息)。如果挂载后会出现类似:CLEANMARKER node found at 0x0042c000 has totlen 0xc != normal 0x0的警告,则加上-n就会消失。

-l,--little-endian:指定使用小端格式。

还有的选项,不需要了,可以自己看帮助!用如下命令mkfs.jffs2 –h。


看mkfs 应该是可以的

离线

#31 2018-01-07 22:29:06

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我看过 mkfs.jffs2 并没有输出文件大小的参数,
他只能根据你指定rootfs目录,生成一个 rootfs.jffs2格式的文件,
至于大小是由 rootfs 目录里面的文件体积决定。

个人推测。





离线

#32 2018-01-08 11:07:32

linghaibin
会员
注册时间: 2018-01-07
已发帖子: 36
积分: 28

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

我看过 mkfs.jffs2 并没有输出文件大小的参数,
他只能根据你指定rootfs目录,生成一个 rootfs.jffs2格式的文件,
至于大小是由 rootfs 目录里面的文件体积决定。

个人推测。


通过直接删除 output 目录是可以按照内容变小的 但是没找到设置指定大小的方法

离线

#33 2018-01-08 13:46:53

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

linghaibin 说:
晕哥 说:

我看过 mkfs.jffs2 并没有输出文件大小的参数,
他只能根据你指定rootfs目录,生成一个 rootfs.jffs2格式的文件,
至于大小是由 rootfs 目录里面的文件体积决定。

个人推测。


通过直接删除 output 目录是可以按照内容变小的 但是没找到设置指定大小的方法

我认为没有这种接口,你的目录直接决定了输出文件大小,最多给你超出指定大小的的警告。





离线

#34 2018-01-13 11:01:50

Any
会员
注册时间: 2017-12-11
已发帖子: 20
积分: 20

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主你好,想请教下buildroot使用的问题。
硬件环境是ilicheepi一代,系统是ubuntu17.10,想用buildroot创建根文件系统。有几个问题请教。
我打算用最新版本的交叉编译器,apt-get下载的版本是arm-linux-gnueabihf-gcc 7.2。
那么我在buildroot配置菜单里,toolchains这里有几个选项不知道该怎么选。
选择外部编译器;
选择编译器路径:/usr
选择编译器头?:arm-linux-genueabihf
然后我执行make,报一下错误:
as they were configured in a way that makes them non-relocatable,
and contain a lot of pre-built libraries that would conflict with
the ones Buildroot wants to build.
package/pkg-generic.mk:224: recipe for target '/opt/buildroot-2017.11/output/build/toolchain-external-custom/.stamp_configured' failed
make: *** [/opt/buildroot-2017.11/output/build/toolchain-external-custom/.stamp_configured] Error 1
any@Any-Desktop-PC:/opt/buildroot-2017.11$

离线

#35 2018-01-13 11:04:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Any 说:

楼主你好,想请教下buildroot使用的问题。
硬件环境是ilicheepi一代,系统是ubuntu17.10,想用buildroot创建根文件系统。有几个问题请教。
我打算用最新版本的交叉编译器,apt-get下载的版本是arm-linux-gnueabihf-gcc 7.2。
那么我在buildroot配置菜单里,toolchains这里有几个选项不知道该怎么选。
选择外部编译器;
选择编译器路径:/usr
选择编译器头?:arm-linux-genueabihf
然后我执行make,报一下错误:
as they were configured in a way that makes them non-relocatable,
and contain a lot of pre-built libraries that would conflict with
the ones Buildroot wants to build.
package/pkg-generic.mk:224: recipe for target '/opt/buildroot-2017.11/output/build/toolchain-external-custom/.stamp_configured' failed
make: *** [/opt/buildroot-2017.11/output/build/toolchain-external-custom/.stamp_configured] Error 1
any@Any-Desktop-PC:/opt/buildroot-2017.11$

参考链接: 如何配置buildroot用外部编译器?





离线

#36 2018-03-22 10:22:57

丘哥
会员
注册时间: 2018-03-22
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我编译完Buildroot出现以下错误:


ERROR: attr-2.4.47.src.tar.gz has wrong sha256 hash:
ERROR: expected: 25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859
ERROR: got     : 13f04a44c4648a1da2aea09765ae87d9be5d7f31329bc7b0ef8565c5f3a46b18
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
make: *** [/home/lianyy/lichee/buildroot-2017.08/output/build/host-attr-2.4.47/.stamp_downloaded] Error 1



请问是什么原因

离线

#37 2018-03-22 10:37:11

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你下载到的 attr-2.4.47.src.tar.gz 与 buildroot 里面要求的不一致.

sha256 是一种哈希算法。





离线

#38 2018-03-22 10:43:09

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

他这个防止篡改软件的,所以用了哈希校验。
你可以手动从这里下载 attr-2.4.47.src.tar.gz 到buildroot的dl目录。

hexing@ubuntu:/disk2$ wget https://ftp.osuosl.org/pub/lfs/lfs-packages/7.10/attr-2.4.47.src.tar.gz
--2018-03-22 10:42:17--  https://ftp.osuosl.org/pub/lfs/lfs-packages/7.10/attr-2.4.47.src.tar.gz
Resolving ftp.osuosl.org (ftp.osuosl.org)... 140.211.166.134, 64.50.236.52, 64.50.233.100, ...
Connecting to ftp.osuosl.org (ftp.osuosl.org)|140.211.166.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 343692 (336K) [application/x-gzip]
Saving to: ‘attr-2.4.47.src.tar.gz’

100%[=============================================================================================================>] 343,692      177KB/s   in 1.9s   

2018-03-22 10:42:22 (177 KB/s) - ‘attr-2.4.47.src.tar.gz’ saved [343692/343692]

hexing@ubuntu:/disk2$ sha256sum attr-2.4.47.src.tar.gz
25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859  attr-2.4.47.src.tar.gz

帮你试过了, 这个链接的文件是没有问题的。





离线

#39 2018-03-29 11:58:27

heroydx
会员
注册时间: 2018-03-22
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问楼主,这个是不是不能连以太网啊。。

离线

#40 2018-03-29 13:32:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

heroydx 说:

请问楼主,这个是不是不能连以太网啊。。

以太网功能正常!设备树和驱动都已经开启以太网了。





离线

#41 2018-04-04 11:30:44

heroydx
会员
注册时间: 2018-03-22
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
heroydx 说:

请问楼主,这个是不是不能连以太网啊。。

以太网功能正常!设备树和驱动都已经开启以太网了。

现在已经连上了,之前是网线出了问题,麻烦晕哥了。。。

离线

#42 2018-04-18 12:38:25

小猪佩奇
会员
注册时间: 2018-03-19
已发帖子: 59
积分: 59

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@沉鱼 楼主,你编译好的linux&dtb,是直接下载下来的主线内核没有修改过的吗?

离线

楼主 #43 2018-04-18 13:34:39

沉鱼
管理员
注册时间: 2017-09-06
已发帖子: 161
积分: 161

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

小猪佩奇 说:

@沉鱼 楼主,你编译好的linux&dtb,是直接下载下来的主线内核没有修改过的吗?

是的,就是4.13-y 原味的。

离线

#44 2018-05-11 10:18:53

northseawind
会员
注册时间: 2017-11-22
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

点32个赞

离线

#45 2018-07-20 12:36:39

john78
会员
注册时间: 2018-07-19
已发帖子: 222
积分: 155

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

buildroot-v3s-20171122.zip  ----复制后make
最后
table='/work/v3s/buildroot-2017.02.7/output/build/_device_table.txt'
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /work/v3s/buildroot-2017.02.7/output/target/THIS_                       IS_NOT_YOUR_ROOT_FILESYSTEM

又是什么坑?

离线

#46 2018-07-20 12:56:32

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

没有错误,只是例行警告target 目录不能作为根文件系统,因为 dev 目录下面没有设备文件。





离线

#47 2018-07-20 13:06:36

john78
会员
注册时间: 2018-07-19
已发帖子: 222
积分: 155

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

谢谢!
还有 sun8i-v3s-licheepi-zero-dock.dtb  这个文件,从哪生成的?

离线

#48 2018-07-20 13:33:17

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

john78 说:

还有 sun8i-v3s-licheepi-zero-dock.dtb  这个文件,从哪生成的?

由这个命令:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

或者这个命令生成的:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs

在这个位置:
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb





离线

#49 2018-08-06 17:01:27

hydys
会员
注册时间: 2018-06-19
已发帖子: 30
积分: 25

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

全志V3s,sysconfig和dts是个什么关系,4.13-y 有使用sysconfig吗?

离线

#50 2018-08-06 17:29:10

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

hydys 说:

全志V3s,sysconfig和dts是个什么关系,4.13-y 有使用sysconfig吗?

sysconfig.fex 是全志bsp一直以来自己搞的一套轮子, 用于设备树解析,文本文件格式,不需要编译成二级制,直接烧到ROM固定地址.
4.13-y没有这个奇葩玩意,按标准linux的dts玩。





离线

#51 2018-09-06 20:27:29

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 723
积分: 695

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:
U-Boot 2017.01-rc2-00071-gf03c1f5-dirty (Nov 18 2017 - 22:15:31 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** 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
reading zImage
3898688 bytes read in 621 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11931 bytes read in 28 ms (416 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe9a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #35 SMP Sat Nov 18 22:21:37 CST 2017
[    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 s33920 r8192 d23424 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 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) 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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1432K rodata, 1024K init, 262K bss, 10456K 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1bc   ( 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000417] Console: colour dummy device 80x30
[    0.000454] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000470] pid_max: default: 32768 minimum: 301
[    0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001204] CPU: Testing write buffer coherency: ok
[    0.001578] /cpus/cpu@0 missing clock-frequency property
[    0.001604] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002044] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002219] Hierarchical SRCU implementation.
[    0.002703] smp: Bringing up secondary CPUs ...
[    0.002720] smp: Brought up 1 node, 1 CPU
[    0.002730] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002737] CPU: All CPU(s) started in SVC mode.
[    0.003505] devtmpfs: initialized
[    0.006733] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007030] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007058] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007230] pinctrl core: initialized pinctrl subsystem
[    0.008093] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008234] NET: Registered protocol family 16
[    0.008703] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009842] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009861] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023902] SCSI subsystem initialized
[    0.024221] usbcore: registered new interface driver usbfs
[    0.024290] usbcore: registered new interface driver hub
[    0.024388] usbcore: registered new device driver usb
[    0.024653] pps_core: LinuxPPS API ver. 1 registered
[    0.024667] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024691] PTP clock support registered
[    0.024931] Advanced Linux Sound Architecture Driver Initialized.
[    0.026779] clocksource: Switched to clocksource arch_sys_counter
[    0.037466] NET: Registered protocol family 2
[    0.038055] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038091] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038114] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038250] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038299] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038527] NET: Registered protocol family 1
[    0.039133] RPC: Registered named UNIX socket transport module.
[    0.039156] RPC: Registered udp transport module.
[    0.039162] RPC: Registered tcp transport module.
[    0.039167] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041054] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050094] NFS: Registering the id_resolver key type
[    0.050156] Key type id_resolver registered
[    0.050164] Key type id_legacy registered
[    0.051175] random: fast init done
[    0.053944] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053969] io scheduler noop registered
[    0.053977] io scheduler deadline registered
[    0.054238] io scheduler cfq registered (default)
[    0.054250] io scheduler mq-deadline registered
[    0.054257] io scheduler kyber registered
[    0.058737] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126666] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130091] console [ttyS0] disabled
[    0.150367] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.733086] console [ttyS0] enabled
[    0.758199] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.788741] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.802399] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.807603] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.813863] Creating 4 MTD partitions on "spi32766.0":
[    0.819040] 0x000000000000-0x000000100000 : "uboot"
[    0.824545] 0x000000100000-0x000000110000 : "dtb"
[    0.829815] 0x000000110000-0x000000710000 : "kernel"
[    0.835152] 0x000000710000-0x000002000000 : "rootfs"
[    0.840987] libphy: Fixed MDIO Bus: probed
[    0.845629] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.851525] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.857266] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.863418] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.869119] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.876334] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.882000] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.889225] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.894184] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.901160] libphy: stmmac: probed
[    0.906501] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.913168] ehci-platform: EHCI generic platform driver
[    0.918715] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.924329] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.932305] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.966800] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.974049] hub 1-0:1.0: USB hub found
[    0.977995] hub 1-0:1.0: 1 port detected
[    0.982545] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.988852] ohci-platform: OHCI generic platform driver
[    0.994425] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.001157] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.009114] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.081939] hub 2-0:1.0: USB hub found
[    1.085759] hub 2-0:1.0: 1 port detected
[    1.093423] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.103057] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.111989] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.118894] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.123445] i2c /dev entries driver
[    1.128364] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.137888] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.206827] sunxi-mmc 1c0f000.mmc: base:0xc41fe000 irq:23
[    1.253909] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.263906] mmc0: new high speed SD card at address b368
[    1.269784] sunxi-mmc 1c10000.mmc: base:0xc4303000 irq:24
[    1.276198] usbcore: registered new interface driver usbhid
[    1.281865] usbhid: USB HID core driver
[    1.286452] mmcblk0: mmc0:b368 FFFFF 1.85 GiB
[    1.293142] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.301196] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.307701]  mmcblk0: p1 p2
[    1.315808] NET: Registered protocol family 17
[    1.320502] Key type dns_resolver registered
[    1.324909] Registering SWP/SWPB emulation handler
[    1.334192] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.344903] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.361252] Console: switching to colour frame buffer device 100x30
[    1.373677] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.382270] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.393669] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.399513] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.408694] hub 3-0:1.0: USB hub found
[    1.412562] hub 3-0:1.0: 1 port detected
[    1.417910] using random self ethernet address
[    1.422406] using random host ethernet address
[    1.429079] usb0: HOST MAC ea:2e:b5:37:94:39
[    1.433399] usb0: MAC ea:73:b4:e9:b1:97
[    1.437391] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.444869] g_cdc gadget: g_cdc ready
[    1.451183] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.459688] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:11 UTC (11)
[    1.468021] vcc5v0: disabling
[    1.470997] ALSA device list:
[    1.473961]   #0: V3s Audio Codec
[    1.479412] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.488737] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.744749] EXT4-fs (mmcblk0p2): recovery complete
[    1.752584] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.760827] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.769205] devtmpfs: mounted
[    1.773355] Freeing unused kernel memory: 1024K
[    1.924658] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

我的TF启动是这样的,
你看下第二个分区有没有  /dev/null, /dev/consle的设备?


为什么我这里输入root 在串口上面不会显示出来 ,也没有任何反应 就是一直你上面的那个地方

离线

#52 2018-09-07 09:32:19

cassette
会员
注册时间: 2018-09-07
已发帖子: 5
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

正在往buildroot里装一些package,楼主能否发一份配置buildroot 的参数。

离线

#53 2018-09-07 09:35:03

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

cassette 说:

正在往buildroot里装一些package,楼主能否发一份配置buildroot 的参数。

看一楼的 4. 根文件系统





离线

#54 2018-09-19 13:52:28

cassette
会员
注册时间: 2018-09-07
已发帖子: 5
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
cassette 说:

正在往buildroot里装一些package,楼主能否发一份配置buildroot 的参数。

看一楼的 4. 根文件系统

多谢,buildroot安装应用与调试一直正常,

今天改动了下BSP Kernel config,用的是build_tiger-cdr kernel 脚本,编出来的UImage,单独替换了第一分区中的文件,启动后Kernel panic,

将config恢复成lichee中默认的sunxiW8pismp-tiger-cdr,启动后也会panic

log是默认config的

 
[    1.210254] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.219238] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.226475] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.237879] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.245673] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.251973] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.263958] no led_3, ignore it!
[    1.267665] no led_4, ignore it!
[    1.271463] no led_5, ignore it!
[    1.275135] no led_6, ignore it!
[    1.278856] no led_7, ignore it!
[    1.284687] usbcore: registered new interface driver usbhid
[    1.291020] usbhid: USB HID core driver
[    1.296074] ashmem: initialized
[    1.299875] logger: created 256K log 'log_main'
[    1.305411] logger: created 32K log 'log_events'
[    1.310791] logger: created 32K log 'log_radio'
[    1.316153] logger: created 32K log 'log_system'
[    1.322955] script_get_item return type err, consider it no ldo
[    1.333857] *******************Try sdio*******************
[    1.340417] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.348410] TCP: cubic registered
[    1.352302] NET: Registered protocol family 17
[    1.357353] *******************Try sd *******************
[    1.363704] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.372518] ThumbEE CPU extension supported.
[    1.377381] Registering SWP/SWPB emulation handler
[    1.387376] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.396595] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.405287] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.413853] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.422501] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.431158] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.439895] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.448794] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:16:37 UTC (997)
[    1.459945] mmc0: new high speed SDHC card at address 1234
[    1.566637] ------------[ cut here ]------------
[    1.570002] kernel BUG at drivers/mmc/host/sunxi-mci.c:2656!
[    1.570002] Internal error: Oops - BUG: 0 [#1] ARM
[    1.570002] Modules linked in:
[    1.570002] CPU: 0    Not tainted  (3.4.39 #3)
[    1.570002] PC is at sunxi_mci_rescan_card+0x28/0x4c
[    1.570002] LR is at sif_platform_rescan_card+0x24/0x2c
[    1.570002] pc : [<c0271dd0>]    lr : [<c01cf18c>]    psr: 60000013
[    1.570002] sp : c1821f08  ip : c1821f18  fp : c1821f14
[    1.570002] r10: c04dde50  r9 : c04aef6c  r8 : c04dde50
[    1.570002] r7 : c055c958  r6 : 00000004  r5 : c049ff3c  r4 : c055c954
[    1.570002] r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : 00000001
[    1.570002] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    1.570002] Control: 10c5387d  Table: 40004059  DAC: 00000015
[    1.570002]
[    1.570002] PC: 0xc0271d50:
[    1.570002] 1d50  e1a05001 e5967000 ebf704fc e594324c e0800007 e593203c e3120c02 0a000003
[    1.570002] 1d70  e5962000 e0602002 e3520000 bafffff8 e593003c e2100c02 089da8f0 e1a01005
[    1.570002] 1d90  e59f000c eb03bf61 e3e00000 e89da8f0 c04bd7a0 c0453a14 e1a0c00d e92dd800
[    1.570002] 1db0  e24cb004 e3500003 9a000000 e7f001f2 e59f3028 e7933100 e3530000 1a000000
[    1.570002] 1dd0  e7f001f2 e2911000 e5930004 13a01001 e583106c e3a01000 ebffb8a6 e89da800
[    1.570002] 1df0  c055f84c e1a0c00d e92dd818 e24cb004 e59030c8 e1a04000 e3130002 0a000003
[    1.570002] 1e10  e5903000 e59f0028 e5931004 eb03bf3f e3a03003 e3a00000 e584305c e594300c
[    1.570002] 1e30  e584008c e5932000 e3a02007 e5832000 e89da818 c0454368 e1a0c00d e92dd8f0
[    1.570002]
[    1.570002] LR: 0xc01cf10c:
[    1.570002] f10c  e3a03002 e1a00004 e5853234 eb026cdd e3100001 1a000002 e59f0034 e59f1028
[    1.570002] f12c  eb064a7b e1a00004 e3a01001 eb026cc3 e3500000 0a000002 e59f0018 e59f1008
[    1.570002] f14c  eb064a73 e3a00000 e89da830 c03815a1 c041e387 c04393ad c04393da e1a0c00d
[    1.570002] f16c  e92dd800 e24cb004 e59f3014 e1a01000 e5930004 e3700001 089da800 eb028b06
[    1.570002] f18c  e89da800 c04dde50 e1a0c00d e92dd818 e24cb004 e59f4018 e1a00004 eb064a5c
[    1.570002] f1ac  e59f0010 eb064a5a e1a00004 eb064a58 e89da818 c04393ff c0439438 e1a0c00d
[    1.570002] f1cc  e92dd830 e24cb004 e59f0048 e3a04065 eb064a4f e59f0040 eb064a4d e59f0034
[    1.570002] f1ec  eb064a4b e59f1034 e59f0034 eb064a48 e3a00000 e59f502c ebff7b38 ea000002
[    1.570002]
[    1.570002] SP: 0xc1821e88:
[    1.570002] 1e88  c04dde50 c04aef6c c04dde50 c1821ec4 c1821eb0 c1821eb0 c1821ec4 c0271dd4
[    1.570002] 1ea8  60000013 c000f894 c1821f14 c1821ec0 c000f5ec c000a020 00000001 00000001
[    1.570002] 1ec8  00000000 00000000 c055c954 c049ff3c 00000004 c055c958 c04dde50 c04aef6c
[    1.570002] 1ee8  c04dde50 c1821f14 c1821f18 c1821f08 c01cf18c c0271dd0 60000013 ffffffff
[    1.570002] 1f08  c1821f24 c1821f18 c01cf18c c0271db4 c1821f4c c1821f28 c01d0294 c01cf174
[    1.570002] 1f28  00000007 c049ff3c 00000000 c0521280 0000009f c048d258 c1821f64 c1821f50
[    1.570002] 1f48  c01ceaa0 c01d0238 00000000 00000007 c1821f7c c1821f68 c049ffa0 c01cea8c
[    1.570002] 1f68  56bfbaf7 000075be c1821fb4 c1821f80 c000a3fc c049ff48 00000000 c0413ebc
[    1.570002]
[    1.570002] IP: 0xc1821e98:
[    1.570002] 1e98  c1821eb0 c1821eb0 c1821ec4 c0271dd4 60000013 c000f894 c1821f14 c1821ec0
[    1.570002] 1eb8  c000f5ec c000a020 00000001 00000001 00000000 00000000 c055c954 c049ff3c
[    1.570002] 1ed8  00000004 c055c958 c04dde50 c04aef6c c04dde50 c1821f14 c1821f18 c1821f08
[    1.570002] 1ef8  c01cf18c c0271dd0 60000013 ffffffff c1821f24 c1821f18 c01cf18c c0271db4
[    1.570002] 1f18  c1821f4c c1821f28 c01d0294 c01cf174 00000007 c049ff3c 00000000 c0521280
[    1.570002] 1f38  0000009f c048d258 c1821f64 c1821f50 c01ceaa0 c01d0238 00000000 00000007
[    1.570002] 1f58  c1821f7c c1821f68 c049ffa0 c01cea8c 56bfbaf7 000075be c1821fb4 c1821f80
[    1.570002] 1f78  c000a3fc c049ff48 00000000 c0413ebc c1821fb4 00000007 00000007 c04aae88
[    1.570002]
[    1.570002] FP: 0xc1821e94:
[    1.570002] 1e94  c1821ec4 c1821eb0 c1821eb0 c1821ec4 c0271dd4 60000013 c000f894 c1821f14
[    1.570002] 1eb4  c1821ec0 c000f5ec c000a020 00000001 00000001 00000000 00000000 c055c954
[    1.570002] 1ed4  c049ff3c 00000004 c055c958 c04dde50 c04aef6c c04dde50 c1821f14 c1821f18
[    1.570002] 1ef4  c1821f08 c01cf18c c0271dd0 60000013 ffffffff c1821f24 c1821f18 c01cf18c
[    1.570002] 1f14  c0271db4 c1821f4c c1821f28 c01d0294 c01cf174 00000007 c049ff3c 00000000
[    1.570002] 1f34  c0521280 0000009f c048d258 c1821f64 c1821f50 c01ceaa0 c01d0238 00000000
[    1.570002] 1f54  00000007 c1821f7c c1821f68 c049ffa0 c01cea8c 56bfbaf7 000075be c1821fb4
[    1.570002] 1f74  c1821f80 c000a3fc c049ff48 00000000 c0413ebc c1821fb4 00000007 00000007
[    1.570002]
[    1.570002] R4: 0xc055c8d4:
[    1.570002] c8d4  00000000 00000000 01c68000 01c68fff c19c1840 00000200 c04bca34 c063b240
[    1.570002] c8f4  c19c1600 00000061 00000061 c19c1840 00000400 00000000 00000000 00000000
[    1.570002] c914  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] c934  00000000 00000000 00000000 00000000 f1c30000 00000001 00000003 c143a418
[    1.570002] c954  00000000 c055c958 c055c958 00000000 00000000 00000000 00000000 00000000
[    1.570002] c974  00000000 00000000 00000000 00000000 00000000 00000000 c1a56e80 00000000
[    1.570002] c994  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] c9b4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002]
[    1.570002] R5: 0xc049febc:
[    1.570002] febc  e1a0c00d e92dd800 e24cb004 e59f0014 ebf3ff0f e3500000 189da800 e59f0008
[    1.570002] fedc  ebf3fdfc e89da800 c04ddc38 c04ddbe4 e1a0c00d e92dd800 e24cb004 e3500000
[    1.570002] fefc  0a00000b e5d03000 e3530000 0a000008 e59f3024 e2802010 e5933018 e4901004
[    1.570002] ff1c  e1500002 e4831004 1afffffb e1d020b0 e1c320b0 e3a00000 e89da800 c04ddbc8
[    1.570002] ff3c  e1a0c00d e92dd800 e24cb004 e24dd008 e59f3054 e5933000 e3130010 0a000006
[    1.570002] ff5c  e59f2048 e30735be e59f0044 e59f1044 e1cd20f0 e59f2040 ebfb06e9 ebf4bbd6
[    1.570002] ff7c  e2501000 1a000003 e59f0030 e3a03003 e59f2014 ebf4bb2f ebf4c6f1 ebf4c5ca
[    1.570002] ff9c  ebf4bab7 e24bd00c e89da800 c04dde50 56bfbaf7 c04391ec c0439215 c0439221
[    1.570002]
[    1.570002] R7: 0xc055c8d8:
[    1.570002] c8d8  00000000 01c68000 01c68fff c19c1840 00000200 c04bca34 c063b240 c19c1600
[    1.570002] c8f8  00000061 00000061 c19c1840 00000400 00000000 00000000 00000000 00000000
[    1.570002] c918  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] c938  00000000 00000000 00000000 f1c30000 00000001 00000003 c143a418 00000000
[    1.570002] c958  c055c958 c055c958 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] c978  00000000 00000000 00000000 00000000 00000000 c1a56e80 00000000 00000000
[    1.570002] c998  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] c9b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002]
[    1.570002] R8: 0xc04dddd0:
[    1.570002] ddd0  c0438f89 00000400 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] ddf0  c01ceafc c01ceba0 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de10  00000000 c01ceae0 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de50  000000d1 00000001 c04398c3 c0381668 c01cf064 c01cf054 00000000 00000000
[    1.570002] de70  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de90  00000000 00000000 00000000 00000000 c04398d4 c0381668 c01cfddc c01cfc2c
[    1.570002] deb0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002]
[    1.570002] R9: 0xc04aeeec:
[    1.570002] eeec  c04a7260 c04a727c c04a741c c04a7470 c048ee68 c0490978 c04909dc c0493cfc
[    1.570002] ef0c  c002eadc c04940e8 c0495494 c04954fc c0495690 c04958c4 c049591c c0497088
[    1.570002] ef2c  c049c194 c049cb64 c049dfc4 c019de0c c049edd4 c01b596c c04a1240 c04a2198
[    1.570002] ef4c  c04a3148 c04a32d0 c04a38d4 c04a4f7c c04a61fc c049ee14 c049f068 c049ff3c
[    1.570002] ef6c  c04a4be8 c04a5020 c049d63c 37303730 30303130 32303030 30303144 31343030
[    1.570002] ef8c  30304445 30303030 30303030 30303030 30303030 30303030 42353230 35443141
[    1.570002] efac  30303230 30303030 30303030 30303030 30303330 30303030 30303130 30303030
[    1.570002] efcc  30303030 30303030 30303030 30303030 30303430 30303030 65643030 00000076
[    1.570002]
[    1.570002] R10: 0xc04dddd0:
[    1.570002] ddd0  c0438f89 00000400 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] ddf0  c01ceafc c01ceba0 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de10  00000000 c01ceae0 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de50  000000d1 00000001 c04398c3 c0381668 c01cf064 c01cf054 00000000 00000000
[    1.570002] de70  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] de90  00000000 00000000 00000000 00000000 c04398d4 c0381668 c01cfddc c01cfc2c
[    1.570002] deb0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.570002] Process swapper (pid: 1, stack limit = 0xc18202f0)
[    1.570002] Stack: (0xc1821f08 to 0xc1822000)
[    1.570002] 1f00:                   c1821f24 c1821f18 c01cf18c c0271db4 c1821f4c c1821f28
[    1.570002] 1f20: c01d0294 c01cf174 00000007 c049ff3c 00000000 c0521280 0000009f c048d258
[    1.570002] 1f40: c1821f64 c1821f50 c01ceaa0 c01d0238 00000000 00000007 c1821f7c c1821f68
[    1.570002] 1f60: c049ffa0 c01cea8c 56bfbaf7 000075be c1821fb4 c1821f80 c000a3fc c049ff48
[    1.570002] 1f80: 00000000 c0413ebc c1821fb4 00000007 00000007 c04aae88 c04aae68 c0521280
[    1.570002] 1fa0: 0000009f c04aef6c c1821ff4 c1821fb8 c048d8c4 c000a370 00000007 00000007
[    1.570002] 1fc0: c048d258 c048d7d8 c0031d20 00000000 c048d7d8 c0031d20 00000013 00000000
[    1.570002] 1fe0: 00000000 00000000 00000000 c1821ff8 c0031d20 c048d7e4 aae8aae8 aae8aae8
[    1.570002] Backtrace:
[    1.570002] [<c0271da8>] (sunxi_mci_rescan_card+0x0/0x4c) from [<c01cf18c>] (sif_platform_rescan_card+0x24/0x2c)
[    1.570002] [<c01cf168>] (sif_platform_rescan_card+0x0/0x2c) from [<c01d0294>] (esp_sdio_init+0x68/0x210)
[    1.570002] [<c01d022c>] (esp_sdio_init+0x0/0x210) from [<c01ceaa0>] (esp_common_init+0x20/0x38)
[    1.570002] [<c01cea80>] (esp_common_init+0x0/0x38) from [<c049ffa0>] (esp_init+0x64/0x84)
[    1.570002]  r4:00000007 r3:00000000
[    1.570002] [<c049ff3c>] (esp_init+0x0/0x84) from [<c000a3fc>] (do_one_initcall+0x98/0x168)
[    1.570002] [<c000a364>] (do_one_initcall+0x0/0x168) from [<c048d8c4>] (kernel_init+0xec/0x1a8)
[    1.570002]  r9:c04aef6c r8:0000009f r7:c0521280 r6:c04aae68 r5:c04aae88
[    1.570002] r4:00000007
[    1.570002] [<c048d7d8>] (kernel_init+0x0/0x1a8) from [<c0031d20>] (do_exit+0x0/0x660)
[    1.570002] Code: e59f3028 e7933100 e3530000 1a000000 (e7f001f2)
[    2.776953] ---[ end trace cdb2e77eb4bbe170 ]---
[    2.782210] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.782218]
[    2.792647] Rebooting in 5 seconds..
 

离线

#55 2018-09-19 14:28:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

kernel BUG at drivers/mmc/host/sunxi-mci.c:2656!

TF/SD卡电路有问题?还是驱动没配好?





离线

#56 2018-09-19 17:09:26

cassette
会员
注册时间: 2018-09-07
已发帖子: 5
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

kernel BUG at drivers/mmc/host/sunxi-mci.c:2656!

TF/SD卡电路有问题?还是驱动没配好?

确实config搞错了,重新配置了一遍,编译正常

但是kernel启动后 挂载根文件出错了


 
[    1.221294] *******************Try sdio*******************
[    1.228825] TCP: cubic registered
[    1.232742] NET: Registered protocol family 17
[    1.237921] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.246719] ThumbEE CPU extension supported.
[    1.251613] Registering SWP/SWPB emulation handler
[    1.258171] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.267158] *******************Try sd *******************
[    1.273453] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.282038] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.292032] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.302883] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.311480] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.320347] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.329219] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:17 UTC (17)
[    1.339431] ALSA device list:
[    1.342909]   #0: audiocodec
[    1.346642] Waiting for root device /dev/mmcblk0p2...
[    1.355516] mmc0: new high speed SDHC card at address 1234
[    1.362258] mmcblk0: mmc0:1234 SA16G 14.6 GiB
[    1.369305]  mmcblk0: p1 p2
[    1.373376] mmcblk mmc0:1234: Card claimed for testing.
[    1.379301] mmc0:1234: SA16G 14.6 GiB
[    1.383712] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.392560] *******************sd init ok*******************
[    1.399101] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.407865] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.416497] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.425133] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.433671] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.442303] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.467269] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    1.476807] Backtrace:  

离线

#57 2018-09-19 17:13:24

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

/dev/mmcblk0p2 不是一个合法的分区, 文件系统不对?没有挂载起来.
要按照要求在PC下格式化一下, mkfs.extX ??





离线

#58 2018-09-19 17:32:01

cassette
会员
注册时间: 2018-09-07
已发帖子: 5
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

/dev/mmcblk0p2 不是一个合法的分区, 文件系统不对?没有挂载起来.
要按照要求在PC下格式化一下, mkfs.extX ??



将卡分区删除,重新格式化,考入一个最小的rootfs

报如下错误



[    1.426855] *******************sd init ok*******************
[    1.433318] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.442161] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.450801] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.459327] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.467958] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.476579] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.491722] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.502381] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.537268] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.546579] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.556482] devtmpfs: mounted
[    1.560130] Freeing init memory: 140K
[    1.589523] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    1.603595] Backtrace:
[    1.606540] [<c0013410>] (dump_backtrace+0x0/0x110) from [<c0354534>] (dump_stack+0x18/0x1c)
[    1.616101]  r6:c049c090 r5:c049c0b0 r4:c04e5fc0 r3:00000001
[    1.622892] [<c035451c>] (dump_stack+0x0/0x1c) from [<c0354918>] (panic+0x78/0x1cc)
[    1.631584] [<c03548a0>] (panic+0x0/0x1cc) from [<c03544f8>] (init_post+0xa8/0xcc)
[    1.640179]  r3:c181db40 r2:00000010 r1:00001a33 r0:c0403bbe
[    1.646949]  r7:c04e5fc0
[    1.649964] [<c0354450>] (init_post+0x0/0xcc) from [<c047e950>] (kernel_init+0x170/0x1a8)
[    1.659228]  r4:00000007 r3:c1401798
[    1.663502] [<c047e7e0>] (kernel_init+0x0/0x1a8) from [<c0031df4>] (do_exit+0x0/0x66c)
[    1.672491] Rebooting in 5 seconds..
[    6.676867] Restarting Linux version 3.4.39 (qh@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #4 Thu Jan 11 13:00:40 CST 2018
[    6.676883]

离线

#59 2018-09-19 17:40:29

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Try passing init= option to kernel

bootargs 里面 init 参数指定第一个进程





离线

#60 2018-09-20 01:12:10

cassette
会员
注册时间: 2018-09-07
已发帖子: 5
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

Try passing init= option to kernel

bootargs 里面 init 参数指定第一个进程

是否指的是Uboot传参,

不太了解这个,可否详细指引一下,

环境是主线uboot+BSP kernel

谢谢

最近编辑记录 cassette (2018-09-20 01:13:36)

离线

#61 2018-09-20 06:43:46

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

可以的,改一下 u-boot的 bootargs 就可以了,
有几种修改方法,论坛里面搜一下。





离线

#62 2018-09-25 13:49:41

fypp
会员
注册时间: 2018-09-25
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

1066950103 说:

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

我这里用4.13的内核,也遇到启动到这里卡住的问题。楼主最后是怎么解决的?

离线

#63 2018-09-25 13:59:37

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

fypp 说:
1066950103 说:

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

我这里用4.13的内核,也遇到启动到这里卡住的问题。楼主最后是怎么解决的?

什么提示信息?





离线

#64 2018-09-25 14:49:12

fypp
会员
注册时间: 2018-09-25
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
fypp 说:
1066950103 说:

坑哥说我这个正常 我认为我是那里没有做的好。我从0开始在来了一遍。发现之前其实可以了的只是,lcd的分辨率不对导致登陆那里没有显示出来。系统正常运行后uart0 串口不能交互了。但是lcd上出现了用户登陆提示 以及光标说明系统正常运行了。我现在需要让uart0 具有交互 ,以及想登陆系统 请问用户名和密码是好多呢? 在buildroo里面可以配置么?

我这里用4.13的内核,也遇到启动到这里卡住的问题。楼主最后是怎么解决的?

什么提示信息?

[    1.002502] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input                          /input0
[    1.011495] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.018426] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.022979] i2c /dev entries driver
[    1.027967] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-004                          8/input/input1
[    1.037505] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, now                          ayout=0)
[    1.106434] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[    1.153643] mmc0: host does not support reading read-only switch, assuming wr                          ite-enable
[    1.163923] mmc0: new high speed SDHC card at address aaaa
[    1.169997] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[    1.176598] usbcore: registered new interface driver usbhid
[    1.182197] usbhid: USB HID core driver
[    1.186803] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[    1.193275] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not r                          egistered
[    1.201367] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.208930]  mmcblk0: p1 p2
[    1.215895] NET: Registered protocol family 17
[    1.220584] Key type dns_resolver registered
[    1.225001] Registering SWP/SWPB emulation handler
[    1.235307] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto su                          pply vcc not found, using dummy regulator
[    1.246817] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.252607] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus                           number 3
[    1.261754] hub 3-0:1.0: USB hub found
[    1.265643] hub 3-0:1.0: 1 port detected
[    1.270970] using random self ethernet address
[    1.275485] using random host ethernet address
[    1.281121] usb0: HOST MAC 8e:cf:26:d6:b1:83
[    1.285461] usb0: MAC 02:a6:8d:82:9b:23
[    1.289429] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day                           2008
[    1.296952] g_cdc gadget: g_cdc ready
[    1.303090] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.312606] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:0                          5 UTC (5)
[    1.320838] vcc5v0: disabling
[    1.323830] ALSA device list:
[    1.326862]   #0: V3s Audio Codec
[    1.331737] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                          atibilities
[    1.341187] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp                          atibilities
[    1.548366] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                          pts: (null)
[    1.556634] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.564782] devtmpfs: mounted
[    1.569033] Freeing unused kernel memory: 1024K
[    1.698646] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    1.784013] Adding 131068k swap on /swap.  Priority:-1 extents:1 across:13106                          8k SS
[   10.886447] random: crng init done

启动卡在这里,没有出现登录界面。

离线

#65 2018-09-25 14:53:27

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.





离线

#66 2018-09-25 15:16:56

fypp
会员
注册时间: 2018-09-25
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.

重新制作试过了,还是卡在这里。我用网盘共享的文件启动发现是正常的,不知道我自己制作的时候哪里出了问题。我看了下/dev/ 下没有console和log,这个有影响吗? 在哪个阶段会生成这个两个文件。

离线

#67 2018-09-25 15:23:18

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

fypp 说:
晕哥 说:

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.

重新制作试过了,还是卡在这里。我用网盘共享的文件启动发现是正常的,不知道我自己制作的时候哪里出了问题。我看了下/dev/ 下没有console和log,这个有影响吗? 在哪个阶段会生成这个两个文件。

有影响,一定要有 /dev/console 文件.

创建 console 设备文件的方法:

mkdir dev -p
cd dev/
sudo mknod console c 5 1





离线

#68 2018-09-25 15:57:15

fypp
会员
注册时间: 2018-09-25
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
fypp 说:
晕哥 说:

你的根文件系统有问题,请重新格式化第二个分区并把根文件系统拷进去, 或者换一张TF卡试一试.

重新制作试过了,还是卡在这里。我用网盘共享的文件启动发现是正常的,不知道我自己制作的时候哪里出了问题。我看了下/dev/ 下没有console和log,这个有影响吗? 在哪个阶段会生成这个两个文件。

有影响,一定要有 /dev/console 文件.

创建 console 设备文件的方法:

mkdir dev -p
cd dev/
sudo mknod console c 5 1

U-Boot SPL 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58 -0700) Allwinner Techn                                                                                                                                                             ology

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

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00057-g32ab180 (Sep 24 2018 - 03:47:58 -0700) Allwinner Techn                                                                                                                                                             ology

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

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
292 bytes read in 20 ms (13.7 KiB/s)
## Executing script at 41900000
reading zImage
3949696 bytes read in 201 ms (18.7 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11856 bytes read in 26 ms (445.3 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+ (codixu@ubuntu) (gcc version                                                                                                                                                              7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f919                                                                                                                                                             77701] (Linaro GCC 7.3-2018.05)) #1 SMP Mon Sep 24 08:04:54 PDT 2018
[    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 instructio                                                                                                                                                             n 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 @c3f5f000 s33868 r8192 d23476 u6553                                                                                                                                                             6
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                             es: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 ro                                                                                                                                                             otwait 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: 55096K/65536K available (6144K kernel code, 217K rwdata,                                                                                                                                                              1436K rodata, 1024K init, 261K bss, 10440K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 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 - 0xc0a366c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d7f0 - 0xc0a7efec   ( 262 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 43980                                                                                                                                                             46511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000178] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_                                                                                                                                                             idle_ns: 79635851949 ns
[    0.000413] Console: colour dummy device 80x30
[    0.000851] console [tty0] enabled
[    0.000892] Calibrating delay loop (skipped), value calculated using timer fr                                                                                                                                                             equency.. 48.00 BogoMIPS (lpj=240000)
[    0.000931] pid_max: default: 32768 minimum: 301
[    0.001069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001100] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001720] CPU: Testing write buffer coherency: ok
[    0.002112] /cpus/cpu@0 missing clock-frequency property
[    0.002153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002618] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002820] Hierarchical SRCU implementation.
[    0.003351] smp: Bringing up secondary CPUs ...
[    0.003383] smp: Brought up 1 node, 1 CPU
[    0.003403] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003422] CPU: All CPU(s) started in SVC mode.
[    0.004213] devtmpfs: initialized
[    0.007273] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7                                                                                                                                                              rev 5
[    0.007601] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                             x_idle_ns: 19112604462750000 ns
[    0.007653] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007830] pinctrl core: initialized pinctrl subsystem
[    0.008689] random: get_random_u32 called from bucket_table_alloc+0xfc/0x224                                                                                                                                                              with crng_init=0
[    0.008858] NET: Registered protocol family 16
[    0.009314] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010537] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint                                                                                                                                                              registers.
[    0.010587] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023462] SCSI subsystem initialized
[    0.023801] usbcore: registered new interface driver usbfs
[    0.023890] usbcore: registered new interface driver hub
[    0.023996] usbcore: registered new device driver usb
[    0.024277] pps_core: LinuxPPS API ver. 1 registered
[    0.024305] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                                                                                                                             tti <giometti@linux.it>
[    0.024354] PTP clock support registered
[    0.024578] Advanced Linux Sound Architecture Driver Initialized.
[    0.026399] clocksource: Switched to clocksource arch_sys_counter
[    0.036684] NET: Registered protocol family 2
[    0.037289] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037348] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037384] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037531] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037593] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037823] NET: Registered protocol family 1
[    0.038430] RPC: Registered named UNIX socket transport module.
[    0.038473] RPC: Registered udp transport module.
[    0.038490] RPC: Registered tcp transport module.
[    0.038507] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040554] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049540] NFS: Registering the id_resolver key type
[    0.049622] Key type id_resolver registered
[    0.049640] Key type id_legacy registered
[    0.050658] random: fast init done
[    0.053463] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                                                                                             49)
[    0.053517] io scheduler noop registered
[    0.053535] io scheduler deadline registered
[    0.053808] io scheduler cfq registered (default)
[    0.053836] io scheduler mq-deadline registered
[    0.053854] io scheduler kyber registered
[    0.058258] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126731] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130057] console [ttyS0] disabled
[    0.150356] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 15                                                                                                                                                             00000) is a U6_16550A
[    0.737619] console [ttyS0] enabled
[    0.744357] libphy: Fixed MDIO Bus: probed
[    0.749058] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.754873] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.760664] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.766885] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.772566] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supporte                                                                                                                                                             d
[    0.779838] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.785504] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supporte                                                                                                                                                             d
[    0.792754] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.797737] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.804707] libphy: stmmac: probed
[    0.809962] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.816634] ehci-platform: EHCI generic platform driver
[    0.822152] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.827858] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus n                                                                                                                                                             umber 1
[    0.835804] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.866421] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.873594] hub 1-0:1.0: USB hub found
[    0.877583] hub 1-0:1.0: 1 port detected
[    0.882092] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.888412] ohci-platform: OHCI generic platform driver
[    0.893962] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.900706] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus n                                                                                                                                                             umber 2
[    0.908693] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.981497] hub 2-0:1.0: USB hub found
[    0.985340] hub 2-0:1.0: 1 port detected
[    0.992907] udc-core: couldn't find an available UDC - added [g_cdc] to list                                                                                                                                                              of pending drivers
[    1.002529] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input                                                                                                                                                             /input0
[    1.011509] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.018446] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.022994] i2c /dev entries driver
[    1.027996] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-004                                                                                                                                                             8/input/input1
[    1.037520] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, now                                                                                                                                                             ayout=0)
[    1.106448] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[    1.153631] mmc0: host does not support reading read-only switch, assuming wr                                                                                                                                                             ite-enable
[    1.163914] mmc0: new high speed SDHC card at address aaaa
[    1.169992] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[    1.176587] usbcore: registered new interface driver usbhid
[    1.182187] usbhid: USB HID core driver
[    1.186794] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[    1.193258] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not r                                                                                                                                                             egistered
[    1.201349] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.208916]  mmcblk0: p1 p2
[    1.215873] NET: Registered protocol family 17
[    1.220568] Key type dns_resolver registered
[    1.224987] Registering SWP/SWPB emulation handler
[    1.235277] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto su                                                                                                                                                             pply vcc not found, using dummy regulator
[    1.246796] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.252584] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus                                                                                                                                                              number 3
[    1.261741] hub 3-0:1.0: USB hub found
[    1.265634] hub 3-0:1.0: 1 port detected
[    1.270956] using random self ethernet address
[    1.275471] using random host ethernet address
[    1.281101] usb0: HOST MAC be:50:aa:2c:22:94
[    1.285439] usb0: MAC a2:1e:00:16:82:90
[    1.289405] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day                                                                                                                                                              2008
[    1.296933] g_cdc gadget: g_cdc ready
[    1.303068] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.312557] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:0                                                                                                                                                             5 UTC (5)
[    1.320792] vcc5v0: disabling
[    1.323786] ALSA device list:
[    1.326817]   #0: V3s Audio Codec
[    1.331910] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                                                                                                                                                             atibilities
[    1.341365] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp                                                                                                                                                             atibilities
[    1.398757] EXT4-fs (mmcblk0p2): recovery complete
[    1.405563] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                                                                                                             pts: (null)
[    1.413814] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.421855] devtmpfs: mounted
[    1.426036] Freeing unused kernel memory: 1024K
[    1.539973] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    1.624663] Adding 131068k swap on /swap.  Priority:-1 extents:1 across:13106                                                                                                                                                             8k SS

创建了console, 启动到这里还是卡住了。另外我用网盘的镜像时,板上的哪个绿灯没有亮;自己制作的就亮在那里了...
晕哥,还有其他可能吗?

离线

#69 2018-09-25 16:24:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

看了你的启动log, 没有显示bootargs ?是不是没有按照一楼的要求改?





离线

#70 2018-09-26 17:55:22

fypp
会员
注册时间: 2018-09-25
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

看了你的启动log, 没有显示bootargs ?是不是没有按照一楼的要求改?

我是通过写入boot.src来写入的。仔细对比了下,百度网盘中的zero_imager.zip的boot.cmd有问题,多了个console=tty0,去掉就好了。多谢晕哥指导。

setenv bootargs console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
load mmc 0:1 0x41000000 zImage
load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-ctc.dtb
bootz 0x41000000 - 0x41800000

离线

#71 2018-09-26 18:11:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

兄弟客气了,以后有什么学习心得分享体验都可以发上来,一可以备忘,二可以整理思路。





离线

#72 2018-09-28 17:18:02

未来
会员
注册时间: 2018-09-28
已发帖子: 14
积分: 14

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

大家好请教下大家以下两步的关系, 已经有“make LicheePi_Zero_defconfig” 了,“make menuconfig” 的作用是什么呢? 第二步可以省略吗?
Step1:ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)
Step2:ARCH=arm make menuconfig

离线

#73 2018-09-28 17:39:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

make LicheePi_Zero_defconfig:

make menuconfig:

配置参数与驱动,可以省略.





离线

#74 2018-09-28 20:25:59

未来
会员
注册时间: 2018-09-28
已发帖子: 14
积分: 14

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

make menuconfig:

配置参数与驱动,可以省略.

--->感谢晕哥指导 ^^

离线

#75 2018-10-11 11:45:10

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

为什么我编译完内核了,没有生成USB设备,代码跑不起来找不到摄像头,怎么配置,晕哥指导一下,感谢

最近编辑记录 penlei (2018-10-11 11:45:57)

离线

#76 2018-10-11 11:49:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

penlei 说:

为什么我编译完内核了,没有生成USB设备,代码跑不起来找不到摄像头,怎么配置,晕哥指导一下,感谢

V3s USB 接 UVC 摄像头?





离线

#77 2018-10-11 12:28:26

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

是的接uvc,找不到摄像头设备,不知道是不是没配置好

离线

#78 2018-10-11 12:45:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

U盘, USB HID条码枪,USB转串口 都用过没有问题, uvc摄像头应该是没有问题的。





离线

#79 2018-10-11 13:52:47

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

哦哦,那就有点奇怪了,会不会我的menuconfig那块配置的没配好,代码一直报错打开v4l错误,第一次尝试编译内核不怎么懂,内核源代码下的是linux-zero-4.13,我按照编译步骤进行的,现在不知道问题出在哪里了

离线

#80 2018-10-11 14:56:15

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

QQ20181011143247.png

QQ20181011143407.png


试了一下, 很正常:

[  160.637781] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  160.882556] uvcvideo: Found UVC 1.00 device HD Webcam C615 (046d:082c)

# ls /dev/video0 -l
crw-rw----    1 root     root       81,   0 Jan  8 23:29 /dev/video0





离线

#81 2018-10-11 15:32:24

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

QQ20181011155003.png

QQ20181011153147.png

测了一下,果然成功!





离线

#82 2018-10-11 15:38:34

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

操作方法:

1. buildroot 里面启用mjpg-streamer:

BR2_PACKAGE_MJPG_STREAMER=y

然后执行 make, 会自动生成可执行文件

2. 打包可执行文件

cd /disk4/buildroot-2017.08.1/output/target
tar cvf m.tar ./usr/bin/mjpg_streamer ./usr/lib/input_testpicture.so ./usr/lib/input_uvc.so*  ./usr/lib/output_http.so* ./usr/lib/libv4l2.so* ./usr/lib/libv4lconvert.so.* ./usr/lib/libjpeg.so* ./usr/www/

3. 把 m.tar 拷贝到目标板,并执行:

tar xvf m.tar -C /

4. 目标板执行:

LD_LIBRARY_PATH=/usr/lib /usr/bin/mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0" -o "/usr/lib/output_http.so -w /usr/www/"

参考: https://www.acmesystems.it/video_streaming





离线

#83 2018-10-11 18:07:41

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

非常感谢,我刚刚按照你给的操作步骤配置完menuconfig的uvc那块但是我编译make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4时会出现如图选择参数配置的问题,我一直点回车默认执行编译,整个编译完了,烧录完镜像系统跑不起了,我用串口调试工具看系统打印信息一直卡在Starting kernel...起不来,

离线

#84 2018-10-11 18:25:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

penlei 说:

非常感谢,我刚刚按照你给的操作步骤配置完menuconfig的uvc那块但是我编译make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4时会出现如图选择参数配置的问题,我一直点回车默认执行编译,整个编译完了,烧录完镜像系统跑不起了,我用串口调试工具看系统打印信息一直卡在Starting kernel...起不来,

https://whycan.cn/t_1724_1.html#p9997





离线

#85 2018-10-11 23:15:45

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

太感谢你了,刚刚才弄好

离线

#86 2018-10-11 23:20:15

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

penlei 说:

太感谢你了,刚刚才弄好

如何解决的?分享一下喜悦。





离线

#87 2018-10-12 09:33:30

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

是自己把自己给坑了,犯了很低端的问题,第一次自己编译内核有太多的不懂呢,我在配置uvc时我用的make menuconfig,然后系统架构就默认变成了x86的了,烧录到板子系统就起不来,后来我就把之前能跑起来的内核(之前内核我都是默认licheepi配置的参数没有进行过修改)的.config文本和后面配置完uvc后的.config文本进行比较发现后面配置过的uvc参数的内核架构变成x86了的,而不是arm架构的,所以才跑不起来,这时才发现问题点在哪,后面用make ARCH=arm menuconfig配置uvc参数然后编译就行了,也生成vide0设备,昨天找问题的时多亏了同事帮助下才弄好,也非常感谢晕哥的回帖和帮助,感觉自己很菜鸟还有很多东西要学,多努力。

离线

#88 2018-10-12 09:38:48

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

penlei 说:

是自己把自己给坑了,犯了很低端的问题,第一次自己编译内核有太多的不懂呢,我在配置uvc时我用的make menuconfig,然后系统架构就默认变成了x86的了,烧录到板子系统就起不来,后来我就把之前能跑起来的内核(之前内核我都是默认licheepi配置的参数没有进行过修改)的.config文本和后面配置完uvc后的.config文本进行比较发现后面配置过的uvc参数的内核架构变成x86了的,而不是arm架构的,所以才跑不起来,这时才发现问题点在哪,后面用make ARCH=arm menuconfig配置uvc参数然后编译就行了,也生成vide0设备,昨天找问题的时多亏了同事帮助下才弄好,也非常感谢晕哥的回帖和帮助,感觉自己很菜鸟还有很多东西要学,多努力。

哈,继续努力,一起加油!





离线

#89 2018-10-13 09:50:56

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,请教一个问题,我今天跑了一下代码,发现串口用不了,但是系统dev目录下有生成ttys1设备(我代码里open打开的是ttys1设备)代码初始化串口的时候波特率是115200,数据位是8,windos串口工具客户端显示已连接,但是就是不能接收和发送,这是什么情况,是不是我的内核配置还有问题。

离线

#90 2018-10-13 10:31:26

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

penlei 说:

晕哥,请教一个问题,我今天跑了一下代码,发现串口用不了,但是系统dev目录下有生成ttys1设备(我代码里open打开的是ttys1设备)代码初始化串口的时候波特率是115200,数据位是8,windos串口工具客户端显示已连接,但是就是不能接收和发送,这是什么情况,是不是我的内核配置还有问题。

u-boot 用哪组串口,有没有数据输出?





离线

#91 2018-10-13 11:53:39

penlei
会员
注册时间: 2018-10-11
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

u-boot的调试串口用的UART0,系统起来就有打印信息输出,终端调试串口配的是UART2,但是接发没反应,如果我代码跑起来并且串口连上的话会有一串打印信息出来(我代码初始化串口的时候,如果open串口成功会有输出一段字符串到串口调试工作的)但是现在什么都没有反应,会不会是串口驱动GPIO没配好,还请晕哥指导下,

离线

#92 2018-10-13 13:35:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

linux 下用 uart2, 你的 dts/dtsi, bootargs 分别是怎么设置的,为什么不设置与 u-boot 相同的串口?





离线

#93 2018-11-06 23:08:12

mwin
会员
注册时间: 2018-10-25
已发帖子: 30
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥你好。小白向你请教一下
用你的镜像文件写进去后,没有提示错。在登录根文件系统提示这个 Welcome to Buildroot
[  189.446225] random: crng init done   具体不知道是什么原因.

离线

#94 2018-11-07 00:52:03

mwin
会员
注册时间: 2018-10-25
已发帖子: 30
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

自己来填一下这个坑,:解决方法是,把主板的电源也从电脑接出。原来是用手机的充电头接控制板,一直不可以,并助没有出错。搞了几天  会不会是电源共地的问题?

离线

#95 2018-11-07 16:24:37

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

新手没找到怎么发帖[笑哭]

离线

#96 2018-11-07 16:28:09

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:

新手没找到怎么发帖[笑哭]

右上角: https://whycan.cn/f_17.html





离线

#97 2018-11-08 17:55:23

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

进入到 Device Drivers ‣ SPI Flash Support,选择Enable Driver Model for SPI flash:
-星号- Enable Driver Model for SPI flash                                                 │ │ 
  │ │               [ ]   Support sandbox SPI flash device                                                │ │ 
  │ │               [星号] Legacy SPI Flash Interface support                                                │ │ 
  │ │               [ ]   SPI flash Bank/Extended address register support                                │ │ 
  │ │               [ ]   Atmel SPI flash support                                                         │ │ 
  │ │               [ ]   EON SPI flash support                                                           │ │ 
  │ │               [ ]   GigaDevice SPI flash support                                                    │ │ 
  │ │               [ ]   Macronix SPI flash support                                                      │ │ 
  │ │               [ ]   Spansion SPI flash support                                                      │ │ 
  │ │               [ ]   STMicro SPI flash support                                                       │ │ 
  │ │               [ ]   SST SPI flash support                                                           │ │ 
  │ │               [星号]   Winbond SPI flash support                                                       │ │ 
  │ │               [星号]   Use small 4096 B erase sectors                                                  │ │ 
  │ │               [ ]   AT45xxx DataFlash support                                                       │ │ 
  │ │               [ ]   SPI Flash MTD support 


Save 以后直接退出是么????

然后遇到这个问题:
cmd/bootm.c: In function ‘do_imls_nor’:
cmd/bootm.c:327:7: error: ‘CONFIG_SYS_MAX_FLASH_BANKS’ undeclared (first use in this function)
   i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
       ^
cmd/bootm.c:327:7: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:280: recipe for target 'cmd/bootm.o' failed

离线

#98 2018-11-08 18:01:25

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

看下目录下面的 .config 文件的最后更新日期, 就知道有没有保存成功了。

上面这个问题没遇到过。





离线

#99 2018-11-09 12:05:33

checkout
会员
注册时间: 2018-11-09
已发帖子: 173
积分: 168

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

为什么不配置builroot一键生成uboot,kernel和rootfs?

离线

#100 2018-11-09 21:44:36

dobyppg
会员
注册时间: 2018-11-09
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

刚刚入坑,我按照步骤烧录的楼主提供的V3s_TFCard,但是总是自己重启,打印信息如下:

U-Boot SPL 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
4016104 bytes read in 637 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 29 ms (397.5 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe1a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[    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 s33920 r8192 d23424 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 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K 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 - 0xc0a37b00   ( 223 kB)
[    0.000000]        .bss : 0xc0a3ebec - 0xc0a8153c   ( 267 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000189] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000417] Console: colour dummy device 80x30
[    0.000456] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000473] pid_max: default: 32768 minimum: 301
[    0.000603] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000619] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001227] CPU: Testing write buffer coherency: ok
[    0.001611] /cpus/cpu@0 missing clock-frequency property
[    0.001635] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002069] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002249] Hierarchical SRCU implementation.
[    0.002739] smp: Bringing up secondary CPUs ...
[    0.002756] smp: Brought up 1 node, 1 CPU
[    0.002766] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002773] CPU: All CPU(s) started in SVC mode.
[    0.003540] devtmpfs: initialized
[    0.006665] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006960] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006988] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007154] pinctrl core: initialized pinctrl subsystem
[    0.008023] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008164] NET: Registered protocol family 16
[    0.008652] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009781] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009798] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023293] SCSI subsystem initialized
[    0.023603] usbcore: registered new interface driver usbfs
[    0.023670] usbcore: registered new interface driver hub
[    0.023770] usbcore: registered new device driver usb
[    0.024022] pps_core: LinuxPPS API ver. 1 registered
[    0.024034] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024056] PTP clock support registered
[    0.024282] Advanced Linux Sound Architecture Driver Initialized.
[    0.026142] clocksource: Switched to clocksource arch_sys_counter
[    0.036919] NET: Registered protocol family 2
[    0.037516] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037554] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037576] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037703] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037750] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037966] NET: Registered protocol family 1
[    0.038555] RPC: Registered named UNIX socket transport module.
[    0.038578] RPC: Registered udp transport module.
[    0.038583] RPC: Registered tcp transport module.
[    0.038588] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040562] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049495] NFS: Registering the id_resolver key type
[    0.049551] Key type id_resolver registered
[    0.049558] Key type id_legacy registered
[    0.049605] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.051066] random: fast init done
[    0.053877] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053902] io scheduler noop registered
[    0.053911] io scheduler deadline registered
[    0.054164] io scheduler cfq registered (default)
[    0.054178] io scheduler mq-deadline registered
[    0.054185] io scheduler kyber registered
[    0.058527] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127613] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130886] console [ttyS0] disabled
[    0.151160] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.741853] console [ttyS0] enabled
[    0.750020] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[    0.756669] m25p80: probe of spi32766.0 failed with error -2
[    0.762886] libphy: Fixed MDIO Bus: probed
[    0.767641] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.773437] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.779223] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.785213] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.794790] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.800483] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.807716] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.813369] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.820593] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.825553] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.832521] libphy: stmmac: probed
[    0.837844] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.844385] ehci-platform: EHCI generic platform driver
[    0.850019] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.855638] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.863613] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.896160] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.903402] hub 1-0:1.0: USB hub found
[    0.907354] hub 1-0:1.0: 1 port detected
[    0.911837] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.918131] ohci-platform: OHCI generic platform driver
[    0.923704] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.930439] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.938394] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.011267] hub 2-0:1.0: USB hub found
[    1.015113] hub 2-0:1.0: 1 port detected
[    1.022753] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.032352] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.041372] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.048279] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.052824] i2c /dev entries driver
[    1.057848] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.067351] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.136192] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.183100] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.192886] mmc0: Problem switching card into high-speed mode!
[    1.198843] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.205213] usbcore: registered new interface driver usbhid
[    1.210869] usbhid: USB HID core driver
[    1.215474] mmc0: new SDHC card at address 0001
[    1.220796] mmcblk0: mmc0:0001 SD16G 15.0 GiB 
[    1.227568] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.235497] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.242082]  mmcblk0: p1 p2
[    1.250229] NET: Registered protocol family 17
[    1.254801] Key type dns_resolver registered
[    1.259354] Registering SWP/SWPB emulation handler
[    1.268798] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.279472] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.295656] Console: switching to colour frame buffer device 100x30
[    1.308165] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.316879] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.328305] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.334070] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.343258] hub 3-0:1.0: USB hub found
[    1.347235] hub 3-0:1.0: 1 port detected
[    1.352445] using random self ethernet address
[    1.357024] using random host ethernet address
[    1.363533] usb0: HOST MAC 1e:56:5f:d1:5b:35
[    1.367980] usb0: MAC 7a:22:a8:1d:eb:71
[    1.371875] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.379394] g_cdc gadget: g_cdc ready
[    1.385742] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.394243] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:08:36 UTC (516)
[    1.402666] vcc5v0: disabling
[    1.405642] ALSA device list:
[    1.408660]   #0: V3s Audio Codec
[    1.414061] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.423537] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.469694] EXT4-fs (mmcblk0p2): recovery complete
[    1.477571] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.485734] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.494781] devtmpfs: mounted
[    1.499148] Freeing unused kernel memory: 1024K
[    1.530217] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[    6.566158] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[    6.581503] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    6.623106] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[   11.686150] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   11.701541] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   11.719872] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   11.734027] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[   11.741324] Hardware name: Allwinner sun8i Family
[   11.746067] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[   11.753813] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[   11.761037] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[   11.767911] [<c011b05c>] (panic) from [<c06870d4>] (kernel_init+0x100/0x110)
[   11.774955] [<c06870d4>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[   11.782527] Rebooting in 5 seconds..

离线

#101 2018-11-09 22:04:03

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@dobyppg
你的根文件系统有问题,

Starting init: /sbin/init exists but couldn't execute it (error -8)





离线

#102 2018-11-10 14:50:06

dobyppg
会员
注册时间: 2018-11-09
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

@dobyppg
你的根文件系统有问题,

Starting init: /sbin/init exists but couldn't execute it (error -8)

我用sudo重新解压rootfs可以了,谢谢!
后边的VBUS_ERROR是怎么回事,我看有人说是一个拨码开关造成的,但是板子上好像没有拨码开关。

Starting network: OK


Welcome to Buildroot

buildroot login: [    7.286279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[    9.366275] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   13.206274] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   15.286278] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   17.366279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   19.446277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   23.286277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100

离线

#103 2018-11-10 15:12:52

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

dobyppg 说:
晕哥 说:

@dobyppg
你的根文件系统有问题,

Starting init: /sbin/init exists but couldn't execute it (error -8)

我用sudo重新解压rootfs可以了,谢谢!
后边的VBUS_ERROR是怎么回事,我看有人说是一个拨码开关造成的,但是板子上好像没有拨码开关。

Starting network: OK


Welcome to Buildroot

buildroot login: [    7.286279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[    9.366275] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   13.206274] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   15.286278] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   17.366279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   19.446277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   23.286277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100

看起来好像是 usb 的 vbus 电源 引脚引起?





离线

#104 2018-11-10 16:43:52

dobyppg
会员
注册时间: 2018-11-09
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
dobyppg 说:
晕哥 说:

@dobyppg
你的根文件系统有问题,

Starting init: /sbin/init exists but couldn't execute it (error -8)

我用sudo重新解压rootfs可以了,谢谢!
后边的VBUS_ERROR是怎么回事,我看有人说是一个拨码开关造成的,但是板子上好像没有拨码开关。

Starting network: OK


Welcome to Buildroot

buildroot login: [    7.286279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[    9.366275] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   13.206274] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   15.286278] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   17.366279] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   19.446277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100
[   23.286277] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #0, port1 00000100

看起来好像是 usb 的 vbus 电源 引脚引起?

不管他了能跑起来就可以了 哈哈 谢谢!

离线

#105 2018-11-13 16:36:31

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

编译v3s的linux系统从16M的flash启动的步骤是怎样的???

离线

#106 2018-11-13 16:38:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:

编译v3s从16M的flash启动的步骤是怎样的???

首先芯片内部BROM加载spl(boot0)到SRAM,
然后spl(boot0)初始化ddr并加载spi flash里面的u-boot到 ddr,
接着u-boot载入zImage,
zImage初始化各种硬件和根文件系统并启动到shell





离线

#107 2018-11-13 16:40:40

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Docker开发环境可以比较好地开发使用使用摄像头吗????

离线

#108 2018-11-13 16:42:01

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
290qcxlf 说:

编译v3s从16M的flash启动的步骤是怎样的???

首先芯片内部BROM加载spl(boot0)到SRAM,
然后spl(boot0)初始化ddr并加载spi flash里面的u-boot到 ddr,
接着u-boot载入zImage,
zImage初始化各种硬件和根文件系统并启动到shell

OK,好的。

离线

#109 2018-11-13 16:46:13

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
290qcxlf 说:

编译v3s从16M的flash启动的步骤是怎样的???

首先芯片内部BROM加载spl(boot0)到SRAM,
然后spl(boot0)初始化ddr并加载spi flash里面的u-boot到 ddr,
接着u-boot载入zImage,
zImage初始化各种硬件和根文件系统并启动到shell

那先编译uboot,然后编译内核,最后编译根文件系统是么???我用ubuntu14.04真机编译有问题么???

最近编辑记录 290qcxlf (2018-11-13 16:49:29)

离线

#110 2018-11-13 16:47:30

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:
晕哥 说:
290qcxlf 说:

编译v3s从16M的flash启动的步骤是怎样的???

首先芯片内部BROM加载spl(boot0)到SRAM,
然后spl(boot0)初始化ddr并加载spi flash里面的u-boot到 ddr,
接着u-boot载入zImage,
zImage初始化各种硬件和根文件系统并启动到shell

那先编译uboot,然后编译内核,最后编译根文件系统是么???

对的,可以按照这个顺序。
建议先从 TF 卡玩起,套路都是一样的, 先熟悉玩法。





离线

#111 2018-11-13 16:48:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:

Docker开发环境可以比较好地开发使用使用摄像头吗????

新手不建议用dock.

USB摄像头?
如果是USB摄像头熟悉了前面的流程,都不是问题。





离线

#112 2018-11-15 11:55:54

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

问题1:编译16M的flash linux不能用qt写界面是么??
问题2: Debian GNU/Linux 8 LicheePi ttyS0
          licheepi login: root
——》按下回车登录没有反应???
问题3:编译支持ov5647摄像头的linux系统的开发环境和主要步骤是怎样的???编sd卡启动和flash启动的步骤是一样的么???

离线

#113 2018-11-15 14:07:09

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
290qcxlf 说:

Docker开发环境可以比较好地开发使用使用摄像头吗????

新手不建议用dock.

USB摄像头?
如果是USB摄像头熟悉了前面的流程,都不是问题。

OV5647的摄像头应该咋编译16Mflash启动的Linux系统呢????

最近编辑记录 290qcxlf (2018-11-15 14:07:42)

离线

#114 2018-11-15 14:09:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:

问题1:编译16M的flash linux不能用qt写界面是么??
问题2: Debian GNU/Linux 8 LicheePi ttyS0
          licheepi login: root
——》按下回车登录没有反应???
问题3:编译支持ov5647摄像头的linux系统的开发环境和主要步骤是怎样的???编sd卡启动和flash启动的步骤是一样的么???

1. 16M 可以装下 Qt了
2. 我记得账号是root, 密码是 licheepi
3. ov5647 要用全志官方的camdroid才行 https://whycan.cn/t_1780.html, 搞MIPI/DVP摄像头,视频编解码目前只能用官方的SDK.





离线

#115 2018-11-15 15:35:09

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
290qcxlf 说:

问题1:编译16M的flash linux不能用qt写界面是么??
问题2: Debian GNU/Linux 8 LicheePi ttyS0
          licheepi login: root
——》按下回车登录没有反应???
问题3:编译支持ov5647摄像头的linux系统的开发环境和主要步骤是怎样的???编sd卡启动和flash启动的步骤是一样的么???

1. 16M 可以装下 Qt了
2. 我记得账号是root, 密码是 licheepi
3. ov5647 要用全志官方的camdroid才行 https://whycan.cn/t_1780.html, 搞MIPI/DVP摄像头,视频编解码目前只能用官方的SDK.

主线Uboot + Bsp 内核是可以支持什么摄像头比较好啊???16M flash的系统可以同时开发摄像头+qt+wifi么?

最近编辑记录 290qcxlf (2018-11-15 15:35:47)

离线

#116 2018-11-15 15:52:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

290qcxlf 说:
晕哥 说:
290qcxlf 说:

问题1:编译16M的flash linux不能用qt写界面是么??
问题2: Debian GNU/Linux 8 LicheePi ttyS0
          licheepi login: root
——》按下回车登录没有反应???
问题3:编译支持ov5647摄像头的linux系统的开发环境和主要步骤是怎样的???编sd卡启动和flash启动的步骤是一样的么???

1. 16M 可以装下 Qt了
2. 我记得账号是root, 密码是 licheepi
3. ov5647 要用全志官方的camdroid才行 https://whycan.cn/t_1780.html, 搞MIPI/DVP摄像头,视频编解码目前只能用官方的SDK.

主线Uboot + Bsp 内核是可以支持什么摄像头比较好啊???16M flash的系统可以同时开发摄像头+qt+wifi么?

主线Uboot + Bsp 内核 支持所有bsp支持的摄像头 ov271X, ov5647, ar0330 等,
16M flash的系统可以同时开发摄像头+qt+wifi, 一般的应用足够了,
实在不行还有32M.





离线

#117 2018-11-15 18:00:41

290qcxlf
会员
注册时间: 2018-11-07
已发帖子: 19
积分: 19

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
290qcxlf 说:
晕哥 说:

1. 16M 可以装下 Qt了
2. 我记得账号是root, 密码是 licheepi
3. ov5647 要用全志官方的camdroid才行 https://whycan.cn/t_1780.html, 搞MIPI/DVP摄像头,视频编解码目前只能用官方的SDK.

主线Uboot + Bsp 内核是可以支持什么摄像头比较好啊???16M flash的系统可以同时开发摄像头+qt+wifi么?

主线Uboot + Bsp 内核 支持所有bsp支持的摄像头 ov271X, ov5647, ar0330 等,
16M flash的系统可以同时开发摄像头+qt+wifi, 一般的应用足够了,
实在不行还有32M.

OK,谢谢晕哥大神,那我用sd卡先熟悉编译系统,然后再编译16M的flash启动的linux开发ov5647摄像头+qt5+wifi(rtl8188cus或者esp的),采用主线Uboot + Bsp 内核的方式,就不用坑卓开发了

离线

#118 2018-11-19 14:06:46

vigour1000
会员
注册时间: 2018-11-19
已发帖子: 101
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

手上用老版本的底板加核心板的同样能这样用吗?

离线

#119 2018-11-19 14:37:55

lilo
会员
注册时间: 2017-10-15
已发帖子: 215
积分: 215

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

vigour1000 说:

手上用老版本的底板加核心板的同样能这样用吗?

新老版本原理图基本一致,只是把原来分离的底板和核心板做到一起了。

离线

#120 2018-11-20 18:32:02

木子猫
会员
注册时间: 2018-03-27
已发帖子: 63
积分: 22.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

下载的最近的zero-4.13y 编译后lsusb命令只能找到v3s自己,外部插在usb口的都没反应 是怎么回事呢 参考4.10的dts相应的配置了的

离线

#121 2018-11-20 19:36:50

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

木子猫 说:

下载的最近的zero-4.13y 编译后lsusb命令只能找到v3s自己,外部插在usb口的都没反应 是怎么回事呢 参考4.10的dts相应的配置了的

USB_ID 引脚要下拉





离线

#122 2019-01-09 10:26:07

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我这几天想重新编译配置内核时出现了错误,百度上也没有明确的解答,想请问下晕哥应该怎么解决这个问题呢?
以下是我在make ARCH=arm menuconfig后出现的错误:
root@ubuntu:~/v3s/linux4.13-y/linux# make ARCH=arm licheepi_zero_defconfig
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2466:0:
scripts/kconfig/zconf.lex.c_shipped: In function ‘yy_get_next_buffer’:
scripts/kconfig/zconf.lex.c_shipped:971:16: error: ‘EINTR’ undeclared (first use in this function)
   if( errno != EINTR) \
                ^
scripts/kconfig/zconf.lex.c_shipped:1615:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^~~~~~~~
scripts/kconfig/zconf.lex.c_shipped:971:16: note: each undeclared identifier is reported only once for each function it appears in
   if( errno != EINTR) \
                ^
scripts/kconfig/zconf.lex.c_shipped:1615:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2468:0:
scripts/kconfig/confdata.c: In function ‘conf_split_config’:
scripts/kconfig/confdata.c:921:17: error: ‘ENOENT’ undeclared (first use in this function); did you mean ‘E_NOT’?
    if (errno != ENOENT) {
                 ^~~~~~
                 E_NOT
scripts/kconfig/confdata.c: In function ‘conf_set_all_new_symbols’:
scripts/kconfig/confdata.c:1144:13: error: ‘ERANGE’ undeclared (first use in this function); did you mean ‘E_RANGE’?
     errno = ERANGE;
             ^~~~~~
             E_RANGE
scripts/Makefile.host:118: recipe for target 'scripts/kconfig/zconf.tab.o' failed
make[1]: *** [scripts/kconfig/zconf.tab.o] Error 1
Makefile:547: recipe for target 'licheepi_zero_defconfig' failed
make: *** [licheepi_zero_defconfig] Error 2

离线

#123 2019-01-09 10:52:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

感觉你的 x86 gcc 有问题, 用 apt-get 卸载,再装一下新的试一试。

https://stackoverflow.com/questions/43314326/why-is-eintr-undeclared





离线

#124 2019-01-09 11:08:37

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥你的意思是不是apt-get remove gcc然后重新安装一遍呢?

离线

#125 2019-01-09 11:15:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

千石级灯 说:

@晕哥
晕哥你的意思是不是apt-get remove gcc然后重新安装一遍呢?

对的.





离线

#126 2019-01-09 14:18:01

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我在对v3s运行qt时出现了以下信息导致我无法播放网络的音乐:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
针对这个信息我从网上重新编译了一个libqtmedia_audioengine.so放到板子和电脑上重新对工程编译,板子还是不能播放网络音乐,请问下这个我该怎么解决呢?

离线

#127 2019-01-09 14:21:46

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

看下这个 libqtmedia_audioengine 底层用的是 alsa 库?

如果是用 alsa 库, 你得用 aplay 等 alsa utils 先测试一下是否能播放,
再调试一下 libqtmedia_audioengine  这个库为什么不能播放.


我只测试过 tinyalsa,  先用tinymix 设置寄存器, tinyplay 是能播放的.





离线

#128 2019-01-09 14:27:50

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,想问下如何查看libqtmedia_audioengine底层是用哪个库的呢?是不是有一些命令可以查到呢?这个我不太会请晕哥指点下。

离线

#129 2019-01-09 14:35:08

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我刚才在下载下来的库中的文件中使用命令find . -name *alsa* ,发现如下结果:
root@ubuntu:/mnt/hgfs/shareubantu/licheepi/qt_test/qtmultimedia-opensource-src-5.4.1# find . -name *alsa*
./config.tests/alsa
./config.tests/alsa/alsa.pro
./config.tests/alsa/alsatest.cpp
./src/plugins/alsa
./src/plugins/alsa/alsa.json
./src/plugins/alsa/alsa.pro
./src/plugins/alsa/qalsaaudiodeviceinfo.cpp
./src/plugins/alsa/qalsaaudiodeviceinfo.h
./src/plugins/alsa/qalsaaudioinput.cpp
./src/plugins/alsa/qalsaaudioinput.h
./src/plugins/alsa/qalsaaudiooutput.cpp
./src/plugins/alsa/qalsaaudiooutput.h
./src/plugins/alsa/qalsaplugin.cpp
./src/plugins/alsa/qalsaplugin.h
是不是说libqtmedia_audioengine底层是调用alsa的呢?

离线

#130 2019-01-09 14:42:33

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我还发现了一个问题,不知是不是这个问题导致了无法使用 libqtmedia_audioengine 的呢?
我在调用aplay 11.wav是出现了not enough memory的错误,而我我也使用tinyplay来播放.wav文件:
# aplay 11.wav
Playing WAVE '11.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
aplay: set_params:1437: not enough memory
请问这个问题我可以怎么解决呢?

离线

#131 2019-01-09 14:49:17

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

aplay: set_params:1437: not enough memory


这个问题没有遇到过, 应该不会是系统没内存, 得进去跟踪试一下.


libqtmedia_audioengine 看起来是用 alsa 的, 你用电脑 ubuntu 试一试, 能否播放.





一般的应用, 只要你适配一下底层播放函数就可以了, 怒改 tinyplay.c 怼上去就好了, 嵌入式嘛, 能用就可以, 不需要太灵活。





离线

#132 2019-01-09 15:06:39

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我使用pc机windows下的qt能够播放音乐的,在ubantu上还没试过是否能够播放

离线

#133 2019-01-09 15:08:59

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我应该在哪个文件修改下我的底层的播放函数呢?

离线

#134 2019-01-09 15:27:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

千石级灯 说:

@晕哥
晕哥,我应该在哪个文件修改下我的底层的播放函数呢?

在应用里面(比如按键事件)直接调用tinyplay.c 播放音乐,别去对接qt的播放。





离线

#135 2019-01-17 09:30:15

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,我在 https://github.com/al177/esp8089 下载了一份esp8089的驱动源码,想进行编译时,
root@ubuntu:~/v3s/linux4.13-y/linux# make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules M=../esp8089 CONFIG_ESP8089=m
make[1]: *** No rule to make target '../esp8089/esp_debug.o', needed by '../esp8089/esp8089.o'.  Stop.
Makefile:1512: recipe for target '_module_../esp8089' failed
make: *** [_module_../esp8089] Error 2

想请问下晕哥,是不是我的命令有问题了,还是有其他可以参考的关于esp8089驱动编译和使用的帖子呢?

离线

#136 2019-01-17 13:36:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这题不会  sad





离线

#137 2019-01-19 09:48:55

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥

我的荔枝派zero用V3s_TFCard.7z这个固件测试qt,

根据你那个视频测试了 analogclock 时钟程序正常运行,

测试自带example另一个程序 calculator ,可以运行,但显示找不到字体的错误信息,如下:

QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
。

晕哥,看样子是缺少字体,这情况有遇到吗,怎么填坑。。。

离线

#138 2019-01-19 10:10:43

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

QQ20190119101008.png

buildroot-2018.08.2/.config

Target packages -> Fonts, cursors, icons, sounds and themes -> DejaVu fonts



我记得 buildroot 勾上上面的字体,然后目标文件系统里面会复制字体,当然你手动拷贝也是可以的。





离线

#139 2019-01-19 15:37:19

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

https://whycan.cn/files/members/3/QQ20190119101008.png

buildroot-2018.08.2/.config

Target packages -> Fonts, cursors, icons, sounds and themes -> DejaVu fonts



我记得 buildroot 勾上上面的字体,然后目标文件系统里面会复制字体,当然你手动拷贝也是可以的。

谢谢晕哥指导,按照上面说的操作成功了。


这里说下需要注意的地方:

1.配置后生成的fonts目录在/usr/share/目录内,需要复制到/usr/lib/下,否则还是找不到。
2.fonts目录里有两个子目录,需要把这两个目录里的字体文件直接复制到fonts。否则虽然不报错,但还是不能显示。

离线

#140 2019-01-19 15:58:00

山无棱
会员
注册时间: 2017-10-23
已发帖子: 116
积分: 116

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

添加环境变量应该也可以解决这个问题:

export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QWS_FONTDIR=/usr/share/fonts

离线

#141 2019-01-19 16:35:23

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

山无棱 说:

添加环境变量应该也可以解决这个问题:

export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QWS_FONTDIR=/usr/share/fonts


能详细说下添加到哪个文件里面吗?

离线

#142 2019-01-19 16:40:32

山无棱
会员
注册时间: 2017-10-23
已发帖子: 116
积分: 116

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Jmhh247 说:
山无棱 说:

添加环境变量应该也可以解决这个问题:

export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QWS_FONTDIR=/usr/share/fonts


能详细说下添加到哪个文件里面吗?

1. 可以放这个文件 etc/profile.d/run.sh

export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QWS_FONTDIR=/usr/share/fonts
/usr/bin/your_qt_app

2. 可以直接这样执行:
QT_QPA_FONTDIR=/usr/share/fonts QT_QWS_FONTDIR=/usr/share/fonts /usr/bin/your_qt_app

离线

#143 2019-01-21 13:07:48

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,请问下在v3s下的esp8089需要 ESP8089 reset via GPIO 几的呢,我这边reset GPIO 0时出现如下的情况:
eagle sdio can not power up!

离线

#144 2019-01-21 13:43:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

千石级灯 说:

@晕哥
晕哥,请问下在v3s下的esp8089需要 ESP8089 reset via GPIO 几的呢,我这边reset GPIO 0时出现如下的情况:
eagle sdio can not power up!

对 reset 口没有限制吧? 你用示波器或者逻辑分析仪抓一下是否有下拉.

对了, 前面的 esp8089 怎么编译通过的?





离线

#145 2019-01-22 08:48:08

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

山无棱 说:
Jmhh247 说:
山无棱 说:

添加环境变量应该也可以解决这个问题:


能详细说下添加到哪个文件里面吗?

1. 可以放这个文件 etc/profile.d/run.sh

export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QWS_FONTDIR=/usr/share/fonts
/usr/bin/your_qt_app

2. 可以直接这样执行:
QT_QPA_FONTDIR=/usr/share/fonts QT_QWS_FONTDIR=/usr/share/fonts /usr/bin/your_qt_app

多谢分享!

离线

#146 2019-01-24 16:07:32

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,请问下我该怎么解决一下这个问题呢,我最近使用dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
然后虚拟机就一直卡住不动了,换了几张sd卡也是存在类似的问题,重装过虚拟机和VMware也还是没能够解决这个问题,请问晕哥我该怎么解决呢?

离线

#147 2019-01-24 16:09:05

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥,就是烧不进去uboot

离线

#148 2019-01-25 13:41:46

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

千石级灯 说:

@晕哥
晕哥,就是烧不进去uboot


虚拟机下能看到TF卡吗,df 看看

离线

#149 2019-01-25 13:44:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

千石级灯 说:

@晕哥
晕哥,请问下我该怎么解决一下这个问题呢,我最近使用dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
然后虚拟机就一直卡住不动了,换了几张sd卡也是存在类似的问题,重装过虚拟机和VMware也还是没能够解决这个问题,请问晕哥我该怎么解决呢?

这么奇怪的事情, 闻所未闻, 只能先换电脑试一试了。





离线

#150 2019-01-26 17:43:33

千石级灯
会员
注册时间: 2018-12-20
已发帖子: 47
积分: 47

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
晕哥这次我终于调试好v3s的esp8089的驱动了呢
(1)下载源码 https://github.com/al177/esp8089
修改Makefile,修改如下的内容:
KVERS_UNAME = 4.13.16-licheepi-zero+
KVERS_ARCH = arm
KBUILD ?=/home/gec/v3s/linux4.13-y/linux
modules:
    $(MAKE) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C $(KBUILD) M=$(SRC_DIR)
然后直接在文件夹内make 即可生成esp8089.ko文件
(2)参考RTL8723bs的配置方法
a.wpa_supplicant-2.6交叉编译
使用wpa_supplicant与wpa_cli相关的工具测试wifi

(1)1. libnl交叉编译
下载:https://www.infradead.org/~tgr/libnl/files/libnl-1.1.4.tar.gz

解压:tar zxvf libnl-1.1.4.tar.gz
          cd libnl-1.1.4/
配置
./configure --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out
删除:(这一步一定不能忘记)
rm lib/libnl.a
可能导致编译报错(编译出错Relocations in generic ELF (EM: 62))
编译:make CC=arm-linux-gnueabihf-gcc AR=aarch64-linux-gnu-ar LD=arm-linux-gnueabihf-ld
          make install
(2)openssl-1.0.0交叉编译
下载:https://www.openssl.org/source/old/1.0.1/openssl-1.0.1s.tar.gz

解压:tar -xzvf  openssl-1.0.0.tart.gz
配置:

./config no-asm shared --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out

修改makfile:

(1)修改交叉编译器
CC= gcc
AR= ar $(ARFLAGS) r
RANLIB= /usr/bin/ranlib
NM= nm

修改为:
CC=arm-linux-gnueabihf-gcc
AR= arm-linux-gnueabihf-ar $(ARFLAGS) r
RANLIB= arm-linux-gnueabihf-gcc-ranlib
NM= arm-linux-gnueabihf-gcc-nm
(2)去掉里面的-m64



make make install
备注:
no-asm是在交叉编译过程中不使用汇编代码代码加速编译过程.原因是它的汇编代码是对arm格式不支持的。我试过了,如果没有这个参数,你的交叉编译一定出错。shared生成动态连接库。prefix=路径  就是你的安装目录。

3. wpa_supplicant交叉编译

下载:http://hostap.epitest.fi/releases/wpa_supplicant-2.6.tar.gz

解压:tar -zxvf wpa_supplicant-2.6.tar.gz
           cd  wpa_supplicant-2.6/wpa_supplicant

拷贝配置:
          cp defconfig .config

修改.config
(-O后面不能有空格)
CC=arm-linux-gnueabihf-gcc -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib
CFLAGS += -I/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/include
LIBS += -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib

makefile修改:(这里是为了生成静态链接的bin文件)
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
    @$(E) "  LD " $@

修改为
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS) -lm -lpthread
    @$(E) "  LD " $@

wpa_cli: $(OBJS_c)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

修改为
wpa_cli: $(OBJS_c)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

编译:
make
即可生成静态链接的wpa_supplicant/wpa_cli工具,不需要依赖其他的库文件。

工具wpa_cli ,wpa_passphrase,wpa_supplicant拷贝进开发板的/bin 目录





三,在开发板中设置
(1)insmod esp8089.ko

然后输入ifconfig wlan0 up命令启动wlan0

(3)建立 /etc/wpa_supplicant.conf 文件:
#可有可无,没有的话无法用wpa_cli terminate来关闭wpa_supplicant
ctrl_interface=/var/run/wpa_supplicant
# 确保只有root用户能读取WPA的配置,可有可无,尤其是在嵌入式设备上
ctrl_interface_group=0
# 使用wpa_supplicant来扫描和选择AP,也可以设置成0或2,但只有1才能正确工作
ap_scan=1
#设置需要链接上的网络信息
network={
    ssid="unicompy1F"
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="unicomp#38468350"
    priority=5
}
(4)输入命令wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
使用这个命令来链接上wifi
测试wlan0:            udhcpc -i wlan0

补充:运维常用linux命令整理
1.临时添加
1 route add default gw 192.168.1.4
2.永久添加
12 vim /etc/sysconfig/networkGATEWAY=192.168.1.4

(5)配置网络ping通外网部分了

一.手动测试是否成功加载网卡驱动,可执行如下命令:ifconfig eth0 192.168.1.218 up
二。以下是在配置好内核以及成功加载网卡的前提下实现能够自动配置网络,能够ping通的步骤
(1)修改 /etc/network/interfaces
即vi /etc/network/interfaces后添加如下语句:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.218    # 3 你要变化的IP地址
gateway 192.168.1.251   (该网关最好需要设置成跟电脑的网关一致,我这里是 192.168.1.251,跟路由器设置相关)
netmask 255.255.255.0

(2)vi  /etc/resolv.conf
添加以下语句
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114

(3)为了能够实现自动开机设置
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114
可以  vi   /etc/init.d/rcS
然后添加以下三句即可:
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 202.96.134.33" >> /etc/resolv.conf
echo "nameserver 114.114.114" >> /etc/resolv.conf

之后就可以直接ping通了!!!

离线

#151 2019-01-26 18:15:03

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@千石级灯 感谢分享! whycan.cn 感谢有你!





离线

#152 2019-02-07 03:04:19

dragoniye
会员
注册时间: 2019-02-07
已发帖子: 39
积分: 37.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

已入坑。

编译u-boot 提示binman错误。 这应该是个特初级的问题吧?请大神指教


log数据:


  MKIMAGE u-boot-dtb.img
  CC      spl/common/spl/spl.o
  CC      spl/lib/display_options.o
  LD      spl/common/spl/built-in.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKSUNXI spl/sunxi-spl.bin
  BINMAN  u-boot-sunxi-with-spl.bin
/bin/sh: 1: ./tools/binman/binman: not found
make: *** [u-boot-sunxi-with-spl.bin] Error 127
dragoniye@ubuntu:~/sdf1/licheeZero/u-boot$ python --version
Python 2.7.6

离线

#153 2019-02-07 08:44:27

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@dragoniye

先检查一下 tools/binman/binman  tools/binman/binman.py 文件是否都存在,


然后看下, 这个是否可以执行:

tools/binman/binman

这个是否可以执行:

python tools/binman/binman.py

参考: https://github.com/u-boot/u-boot/blob/master/tools/binman/binman.py





离线

#154 2019-02-07 17:24:38

dragoniye
会员
注册时间: 2019-02-07
已发帖子: 39
积分: 37.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

@晕哥
问题找到了。

share的win10目录, ln文件没创建成功。

离线

#155 2019-02-08 08:34:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

dragoniye 说:

@晕哥
问题找到了。

share的win10目录, ln文件没创建成功。

原来如此!





离线

#156 2019-02-21 14:11:06

蜀道难
会员
注册时间: 2019-02-15
已发帖子: 2
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主,linux4.13-y这个内核支持摄像头吗?

离线

#157 2019-02-21 14:16:31

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

蜀道难 说:

楼主,linux4.13-y这个内核支持摄像头吗?

linux4.13-y 不支持摄像头

linux 5.0支持 CSI 摄像头, 不支持 MIPI摄像头



围观蓝莓派(Blueberry-PI)之后, 一定要试一试 主线 Linux DVP CSI 摄像头:
https://whycan.cn/t_2039.html





离线

#158 2019-02-22 12:05:40

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

請問! 是否把原本sun8i.h 裡面的
" #ifdef CONFIG_USB_EHCI
  #define CONFIG USB_EHCI_SUNXI
  #endif

  #ifdef CONFIG_MACH_SUN8I_H3
.
.
"
不要.. 之後加下面 program?

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -J3

离线

#159 2019-02-22 16:49:46

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

起 u-boot 裡打 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
就出現下面問題..
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:398: recipe for target 'scripts_basic' failed
make: *** [scripts basic] Error 2

离线

#160 2019-02-22 16:53:55

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

起 u-boot 裡打 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
就出現下面問題..
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:398: recipe for target 'scripts_basic' failed
make: *** [scripts basic] Error 2

没有安装gcc?

试一试  apt-get install -y gcc g+++





离线

#161 2019-02-25 17:46:43

刘少来了
会员
注册时间: 2019-01-24
已发帖子: 25
积分: 20

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

新人报道

离线

#162 2019-02-28 11:34:37

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

3. 设备树, Linux,
是否指 u-boot/dts 裡執行 git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y?

离线

#163 2019-02-28 11:40:48

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

3. 设备树, Linux,
是否指 u-boot/dts 裡執行 git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y?

这里是指 Linux,和Linux对应的设备树。





离线

#164 2019-03-06 17:27:12

蜀道难
会员
注册时间: 2019-02-15
已发帖子: 2
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主,使用camroid环境时minigui中如何显示汉字呀!

离线

#165 2019-03-06 23:04:48

www220
会员
注册时间: 2018-02-09
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
basicdev 说:

https://whycan.cn/files/members/317/QQ20171223184340.png

musb-hrc musb-hdrc.1.auto: VBUS_ERROR in bidle(98 VALID)

请问大神们, 我的U盘插入荔枝派Zero dock板子上, 一点反应都没有, 就是上面这个错误.

我碰到过这个问题:
github 上 4.10-y 分支亲自试过, 板子上的电源拨码开关有问题,导致VBUS无电造成!
解决方法就是把电源开关按下,确认VUSB有5V,然后再插入U盘。
保证药到病除!
4.13-y 还没有验证。

造成这个的原因我问过荔枝派zero的群主, 因为这些开关不耐热,过高温回流焊的时候按键损坏造成接触不良。

https://whycan.cn/files/members/3/QQ20171223190045.png

大神有支持usb的v3s的uboot吗?

离线

#166 2019-03-07 09:26:57

山无棱
会员
注册时间: 2017-10-23
已发帖子: 116
积分: 116

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

有,官方 uboot 就支持 usb,貌似有源码,只是spl闭源。

官方烧录软件的原理就是和 uboot usb通讯烧录。

离线

#167 2019-03-31 20:21:47

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

呼叫大佬帮助。

我用一楼的固件 V3s_TFCard.7z,在荔枝派zero上测试,QT不能显示图片,不知道什么原因?(同样的代码在ubuntu上可以显示)

程序很简单就是直接在label上显示一张图片,如下:

 label->setPixmap(QPixmap(":/image/images/2019.png"));

离线

#168 2019-03-31 20:27:27

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.





离线

#169 2019-03-31 21:51:01

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

多谢晕哥指导,我测试了可以正常显示 bmp文件。后续我再测下png

离线

#170 2019-04-01 16:17:53

Jmhh247
会员
注册时间: 2018-12-21
已发帖子: 262
积分: 262

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

折腾了两天,终于能显示png了。。。

确实在buildroot里面勾上 png相关支持就可以了,然后要删除掉qt5目录内的.stamp_built .stamp_configured 。

刚开始我没删掉这些,生成的根文件系统还是不支持显示png

感觉自己蠢哭了。。。

离线

#171 2019-04-01 16:20:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好事多磨嘛,解决就好了,感谢分享!





离线

#172 2019-04-18 14:34:27

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

荔枝派zero核心板pdf:
https://whycan.cn/files/20171005/11/lichee_zero(核心板).pdf

荔枝派zero底板pdf:
https://whycan.cn/files/20171005/11/lichee_base(底板).pdf


二代一体开发板: 荔枝派一体开发板原理图(核心板与底板整合到一块).pdf

全志V3s手册V1.0: Allwinner_V3s_Datasheet_V1.0.pdf
全志S3手册V0.2: Allwinner_S3_Datasheet_V0_2.pdf (索智S3手册)


http://bbs.lichee.pro/d/127-lichee-sipeed

Lichee Zero:
链接: https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw 37
提取码:66we
Lichee Zero Plus:
链接: https://pan.baidu.com/s/1DNx1UM7xzSOXFBMSEZv7nA 6
提取码:8umq
Lichee Two:
链接: https://pan.baidu.com/s/1xh74NrFtiGmQ9cdgCRBMBA 5
提取码:riw6
Lichee Nano:
链接: https://pan.baidu.com/s/1xfR7RCKHK033EXvAVQbMbQ 26
提取码:srv5
Lichee Tang:
链接: https://pan.baidu.com/s/1wiNE8Q4ddaF_c-vb40rfAA
提取码:zwfl
Lichee One:
链接: https://pan.baidu.com/s/12vld5q9yyokt2deF-CyX8A 2
提取码:sxq2
Lichee One Plus:
链接: https://pan.baidu.com/s/1PwepFH_TMQ5QJSOpXHZ4Xg 4
提取码:3rza
Lichee Dan/Sipeed M1
链接: https://pan.baidu.com/s/19lEeGs2j5sDK2Z9tgx6xxQ 33
提取码:bvl2




-------------------------------------------------------------------------------------------


回顾:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

1. 准备工作
    1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训),  然后安装 vmware tools(不是必须,但是方便文件共享)

    2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf

    3) 安装git源码管理软件:  sudo apt-get install git

    4) 其他支撑软件

2. u-boot
      首先获取u-boot源码:             git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
      如果你需要支持spi flash:   git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental

修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j3

3. 设备树, Linux
    获取Linux源码(zero-4.13.y分支对网卡支持比较好):  git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
    生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
    设备树文件(默认不需要修改):  arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
    编译内核:     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
    编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs

4. 根文件系统
    1). 下载最新的buildroot稳定版本
        官方网站:   https://buildroot.org/download.html
        长支持版本:buildroot-2017.02.7.tar.gz
        最新稳定版:buildroot-2017.08.1.tar.gz

    2). 配置buildroot 参数, make menuconfig; make

        https://whycan.cn/files/members/4/QQ20171122094600.png

        https://whycan.cn/files/members/4/QQ20171122094653.png

        如果不会配置, 就下载下面这个文件,然后把 buildroot-v3s-20171122.zip解压后 拷贝到 buidroot目录成 .config 文件。       

     3). 执行编译, 生成文件跟文件系统。

     4). 如需构建Qt应用程序,   视频地址:  buildroot成功后如何编译Qt应用程序

5. 烧录TF卡启动盘:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd


晕哥
我按这个步骤,编译出来的固件,内核提示找不到声卡设备哦,
我看sun8i-v3s-licheepi-zero.dts里面,没有声卡和网络的配置啊,
我要被这个芯片搞晕头了

离线

#173 2019-04-18 14:39:13

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

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

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};




离线

#174 2019-04-18 14:51:05

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

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

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊

离线

#175 2019-04-18 15:12:38

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

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

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊


晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了

离线

#176 2019-04-18 15:18:33

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
渔头 说:
晕哥 说:

核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts

这个文件才有: https://github.com/Lichee-Pi/linux/blob/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

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

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button@200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button@400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button@600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button@800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊


晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了

下面这么多DTB,我就没试这个dock的,因为不知道啥意思
sun8i-v3s.dtsi                    sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb
sun8i-v3s-licheepi-zero-dock.dtb  sun8i-v3s-licheepi-zero-with-480x272-lcd.dts
sun8i-v3s-licheepi-zero-dock.dts  sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb
sun8i-v3s-licheepi-zero.dtb       sun8i-v3s-licheepi-zero-with-800x480-lcd.dts
sun8i-v3s-licheepi-zero.dts       sun8i-v3s-licheepi-zero-with-lcd.dtsi

离线

#177 2019-04-18 15:21:57

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

很荣幸为大家解决入坑小问题.

dtb 是 dts 编译好的二进制文件,
dts 是设备树文件
dtsi 一般是 dts include 的文件, 一般不直接参与编译,而是和 dts 一起。


sun8i-v3s.dtsi  这个是最核心的设备树基础文件,


sun8i-v3s-licheepi-zero.dts  这个是核心板设备树

sun8i-v3s-licheepi-zero-dock.dts  dock的意思应该就是 核心板 + 底板了, 所以里面启用了网卡和声卡。





离线

#178 2019-04-18 17:30:50

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

很荣幸为大家解决入坑小问题.

dtb 是 dts 编译好的二进制文件,
dts 是设备树文件
dtsi 一般是 dts include 的文件, 一般不直接参与编译,而是和 dts 一起。


sun8i-v3s.dtsi  这个是最核心的设备树基础文件,


sun8i-v3s-licheepi-zero.dts  这个是核心板设备树

sun8i-v3s-licheepi-zero-dock.dts  dock的意思应该就是 核心板 + 底板了, 所以里面启用了网卡和声卡。



我刚买的开发板,录音居然也要换咪头才行,幸好前面已经有人把坑填了

离线

#179 2019-04-18 17:37:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

那现在录到声音了吗?





离线

#180 2019-04-18 17:38:41

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

那现在录到声音了吗?

离线

#181 2019-04-18 17:42:04

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

那现在录到声音了吗?


晕哥
推荐一下,用哪个摄像头比较好,还有wifi,我想用USB的WIFI模块,如果用USB的WIFI,会不会影响烧录

离线

#182 2019-04-18 17:42:48

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:
晕哥 说:

那现在录到声音了吗?

是把 MIC 焊下换个方向?

离线

#183 2019-04-18 17:46:19

渔头
会员
注册时间: 2019-04-08
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

没有,方向没错,只是换了个咪头,用导线引出来,没直接焊到板上

最近编辑记录 渔头 (2019-04-18 17:55:16)

离线

#184 2019-04-18 18:27:19

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

渔头 说:

没有,方向没错,只是换了个咪头,用导线引出来,没直接焊到板上

原来如此,学习了,怪不得我的录不到声音。

离线

#185 2019-04-22 10:17:00

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

荔枝派zero核心板pdf:
https://whycan.cn/files/20171005/11/lichee_zero(核心板).pdf

荔枝派zero底板pdf:
https://whycan.cn/files/20171005/11/lichee_base(底板).pdf


二代一体开发板: 荔枝派一体开发板原理图(核心板与底板整合到一块).pdf

全志V3s手册V1.0: Allwinner_V3s_Datasheet_V1.0.pdf
全志S3手册V0.2: Allwinner_S3_Datasheet_V0_2.pdf (索智S3手册)












http://bbs.lichee.pro/d/127-lichee-sipeed

Lichee Zero:
链接: https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw 37
提取码:66we
Lichee Zero Plus:
链接: https://pan.baidu.com/s/1DNx1UM7xzSOXFBMSEZv7nA 6
提取码:8umq
Lichee Two:
链接: https://pan.baidu.com/s/1xh74NrFtiGmQ9cdgCRBMBA 5
提取码:riw6
Lichee Nano:
链接: https://pan.baidu.com/s/1xfR7RCKHK033EXvAVQbMbQ 26
提取码:srv5
Lichee Tang:
链接: https://pan.baidu.com/s/1wiNE8Q4ddaF_c-vb40rfAA
提取码:zwfl
Lichee One:
链接: https://pan.baidu.com/s/12vld5q9yyokt2deF-CyX8A 2
提取码:sxq2
Lichee One Plus:
链接: https://pan.baidu.com/s/1PwepFH_TMQ5QJSOpXHZ4Xg 4
提取码:3rza
Lichee Dan/Sipeed M1
链接: https://pan.baidu.com/s/19lEeGs2j5sDK2Z9tgx6xxQ 33
提取码:bvl2




-------------------------------------------------------------------------------------------


回顾:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

1. 准备工作
    1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训),  然后安装 vmware tools(不是必须,但是方便文件共享)

    2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf

    3) 安装git源码管理软件:  sudo apt-get install git

    4) 其他支撑软件

2. u-boot
      首先获取u-boot源码:             git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
      如果你需要支持spi flash:   git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental

修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j3

3. 设备树, Linux
    获取Linux源码(zero-4.13.y分支对网卡支持比较好):  git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
    生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
    设备树文件(默认不需要修改):  arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
    编译内核:     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
    编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs

4. 根文件系统
    1). 下载最新的buildroot稳定版本
        官方网站:   https://buildroot.org/download.html
        长支持版本:buildroot-2017.02.7.tar.gz
        最新稳定版:buildroot-2017.08.1.tar.gz

    2). 配置buildroot 参数, make menuconfig; make

        https://whycan.cn/files/members/4/QQ20171122094600.png

        https://whycan.cn/files/members/4/QQ20171122094653.png

        如果不会配置, 就下载下面这个文件,然后把 buildroot-v3s-20171122.zip解压后 拷贝到 buidroot目录成 .config 文件。       

     3). 执行编译, 生成文件跟文件系统。

     4). 如需构建Qt应用程序,   视频地址:  buildroot成功后如何编译Qt应用程序

5. 烧录TF卡启动盘:  【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd

晕哥,使用这个固件,烧写完成之后,串口一点输出都没有。硬件上是接的U0。

离线

#186 2019-04-22 10:21:45

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

串口输出是 UART0(PB8, PB9), 看下有没有接错?





离线

#187 2019-05-06 10:50:35

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,如何获取V3S的UUID?

离线

#188 2019-05-06 11:20:38

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

晕哥,如何获取V3S的UUID?

打开 文件/proc/cpuinfo,
查找 Serial,
然后读后面的字符串.


# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 48.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : Allwinner sun8i Family
Revision        : 0000
Serial          : 12c0000337f6d21a





离线

#189 2019-05-06 15:12:01

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

发现上面这个 Serial 和 下面寄存器读取的值不能完全对应上, 是哪里出错了呢?

# devmem 0x01c23800
0x12C00003
# devmem 0x01c23804
0x34104620
# devmem 0x01c23808
0x78850018
# devmem 0x01c2380C
0x18470490





离线

#190 2019-05-06 15:19:48

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun8i-v3s.dtsi 添加:

sid: eeprom@1c23800 {
                        compatible = "allwinner,sun7i-a20-sid";
                        reg = <0x01c23800 0x200>;
                };


hexdump -C /sys/devices/platform/soc/1c23800.eeprom/sunxi-sid0/nvmem 执行结果:

00000000  12 c0 00 03 34 10 46 20  78 85 00 18 18 47 04 90  |....4.F x....G..|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000040  00 00 00 00 00 00 1a 0d  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  12 c0 00 03 34 10 46 20  78 85 00 18 18 47 04 90  |....4.F x....G..|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000140  00 00 00 00 00 00 1a 0d  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

与楼上一致!





离线

#191 2019-05-06 15:40:14

arychen
会员
注册时间: 2019-04-06
已发帖子: 275
积分: 250.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

天哪 我诧异晕哥你是靠什么活的 哈哈   专职极客玩家吗

离线

#192 2019-05-06 16:26:37

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

arychen 说:

天哪 我诧异晕哥你是靠什么活的 哈哈   专职极客玩家吗

忙里偷闲随便玩玩.





离线

#193 2019-05-06 21:22:50

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

发现上面这个 Serial 和 下面寄存器读取的值不能完全对应上, 是哪里出错了呢?

# devmem 0x01c23800
0x12C00003
# devmem 0x01c23804
0x34104620
# devmem 0x01c23808
0x78850018
# devmem 0x01c2380C
0x18470490


晕哥,上面的0x01c23800 、0x01c23804、0x01c23808、x01c2380C是寄存器地址么? 我搜索了v3s datasheet,然而并没有这个地址。

离线

#194 2019-05-06 21:30:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:
晕哥 说:

发现上面这个 Serial 和 下面寄存器读取的值不能完全对应上, 是哪里出错了呢?

# devmem 0x01c23800
0x12C00003
# devmem 0x01c23804
0x34104620
# devmem 0x01c23808
0x78850018
# devmem 0x01c2380C
0x18470490


晕哥,上面的0x01c23800 、0x01c23804、0x01c23808、x01c2380C是寄存器地址么? 我搜索了v3s datasheet,然而并没有这个地址。

V3s/S3手册写的是 0x01c24000, 我根据全志其他 soc 手册推算出来的,
你可以多测几片V3s试一试.

感觉组合起来应该可以作为唯一Id使用, 有待证实.





离线

#195 2019-05-13 18:40:46

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问晕哥版主,使用“buildroot”文件系统怎么校准电阻屏。没有找到"ts_calibration"

离线

#196 2019-05-13 19:00:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

请问晕哥版主,使用“buildroot”文件系统怎么校准电阻屏。没有找到"ts_calibration"

QQ20190513190258.png


勾选 Target packages > Libraries > Hardware handling > BR2_PACKAGE_TSLIB





离线

#197 2019-05-14 13:25:23

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥版主,我的那一项显示 “-*-” 选不了

离线

#198 2019-05-14 13:40:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

晕哥版主,我的那一项显示 “-*-” 选不了

你的 buildroot 版本是多少?
“-*-” 应该是已选中 ???





离线

#199 2019-05-14 22:00:46

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我的是“buildroot-2017.08.1”

离线

#200 2019-05-14 22:17:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

我的是“buildroot-2017.08.1”

是不是已经被勾选了, 看下 output/target/usr/bin 目录, 有没有 ts_xxxx 文件.





离线

#201 2019-05-15 11:22:58

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,使用BSP内核,选通了ov5640。然后也更改了fex。

[csi1]                                                                          
vip_used                 = 1                                                    
vip_mode                 = 0                                                    
vip_dev_qty              = 1                                                    
vip_define_sensor_list   = 0                                                    
vip_csi_pck              = port:PE00<2><default><default><default>              
vip_csi_mck              = port:PE01<2><default><default><default>              
vip_csi_hsync            = port:PE02<2><default><default><default>              
vip_csi_vsync            = port:PE03<2><default><default><default>              
vip_csi_d0               = port:PE04<2><default><default><default>              
vip_csi_d1               = port:PE05<2><default><default><default>              
vip_csi_d2               = port:PE06<2><default><default><default>              
vip_csi_d3               = port:PE07<2><default><default><default>              
vip_csi_d4               = port:PE08<2><default><default><default>              
vip_csi_d5               = port:PE09<2><default><default><default>              
vip_csi_d6               = port:PE10<2><default><default><default>              
vip_csi_d7               = port:PE11<2><default><default><default>              
vip_csi_d8               = port:PE12<2><default><default><default>              
;vip_csi_d9               = port:PE13<2><default><default><default>             
vip_csi_d10               = port:PE14<2><default><default><default>             
vip_csi_d11               = port:PE15<2><default><default><default>             
                                                                                
vip_csi_sck               = port:PE21<2><default><default><default>             
vip_csi_sda               = port:PE22<2><default><default><default>             
                                                                                
vip_dev0_mname           = "ov5640"                                             
vip_dev0_pos             = "front"                                              
vip_dev0_twi_id          = 4                                                    
vip_dev0_twi_addr        = 0x78                                                 
vip_dev0_isp_used        = 0                                                    
vip_dev0_fmt             = 0                                                    
vip_dev0_stby_mode       = 0                                                    
vip_dev0_vflip           = 0                                                    
vip_dev0_hflip           = 0                                                    
vip_dev0_iovdd           = ""                                                   
vip_dev0_iovdd_vol       = 2800000                                              
vip_dev0_avdd            = ""                                                   
vip_dev0_avdd_vol        = 2800000                                              
vip_dev0_dvdd            = ""                                                   
vip_dev0_dvdd_vol        = 1500000                                              
vip_dev0_afvdd           = ""                                                   
vip_dev0_afvdd_vol       = 2800000                                              
vip_dev0_power_en        =                                                      
vip_dev0_reset           = port:PE23<1><default><default><default>
vip_dev0_pwdn            = port:PE24<1><default><default><default>              
vip_dev0_flash_en        =                                                      
vip_dev0_flash_mode      =                                                      
vip_dev0_af_pwdn         =                                                      
                                                                                
vip_dev0_act_used        = 0                                                    
vip_dev0_act_name        = "ad5820_act"                                         
vip_dev0_act_slave       = 0x18                                                 
                                                                                
vip_dev1_mname           = "gc2035"                                             
vip_dev1_pos                 = "front"                                          
vip_dev1_lane            = 1                                                    
vip_dev1_twi_id          = 4                                                    
vip_dev1_twi_addr        = 0x78                                                 
vip_dev1_isp_used        = 0                                                    
vip_dev1_fmt             = 1                                                    
vip_dev1_stby_mode       = 0                                                    
vip_dev1_vflip           = 0                                                    
vip_dev1_hflip           = 0                                                    
vip_dev1_iovdd           = ""                                                   
vip_dev1_iovdd_vol       = 2800000                                              
vip_dev1_avdd            = ""                                                   
vip_dev1_avdd_vol        = 2800000                                              
vip_dev1_dvdd            = ""                                                   
vip_dev1_dvdd_vol        = 1500000                                              
vip_dev1_afvdd           = ""                                                   
vip_dev1_afvdd_vol       = 2800000                                              
vip_dev1_power_en        =                                                      
vip_dev1_reset           =                                                      
vip_dev1_pwdn            =                                                      
vip_dev1_flash_en        =                                                      
vip_dev1_flash_mode      =                                                      
vip_dev1_af_pwdn         = 

可是在用fswebcam拍照时

# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
[   26.003939] [VFE]vfe_open
--- Opening /dev/video1...
[   26.007092] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[   26.018941] [VFE]vfe_open ok

/dev/video1 opened.
[   26.024950] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
No input was specified, usin[   26.037247] [VFE]vfe_close
g the first.
Unable to[   26.042806] [VFE]vfe select input flag = 0, s_input have not be used .
 query input 0.
VIDIOC[   26.053040] [VFE]..........................vfe clk close!.......................
_ENUMINPUT: Invalid argument
   26.064499] [VFE]vfe_close end
0m# 
# 
# 
# 
# 
# 
# 
# 
# i2cd
i2cdetect  i2cdump
# i2cd
i2cdetect  i2cdump
# i2cdetect -l
i2cdetect: can't open '/sys/class/i2c-dev': No such file or directory
# i2cdetect -y 1
i2cdetect: can't open '/dev/i2c/1': No such file or directory
# ls
# 

这是什么原因呢

离线

#202 2019-05-15 11:33:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

有没有 /dev/i2cX,   /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface





离线

#203 2019-05-15 11:40:59

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

有没有 /dev/i2cX,   /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface


主要是这个错误

--- Opening /dev/video1...
[   33.650171] [VFE]vfe_open
Trying source module v4l2...[   33.656150] [VFE]..........................vfe clk open!.......................

[   33.667840] [VFE]vfe_open ok
[   33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [   33.681675] [VFE]vfe_close
input was specified, using the f[   33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [   33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[   33.708530] [VFE]vfe_close end
PUT: Invalid argument

不知道这个是什么造成的

最近编辑记录 晕哥小弟 (2019-05-15 11:41:19)

离线

#204 2019-05-15 11:42:03

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

https://www.kancloud.cn/lichee/lpi0/470832
群主也有这个问题,但是没有说清楚。

离线

#205 2019-05-15 11:43:09

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #37 Wed May 15 11:39:13 CST 2019
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 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: 64MB = 64MB total
[    0.000000] Memory: 29176k/29176k available, 36360k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc052b000   (5260 kB)
[    0.000000]       .init : 0xc052b000 - 0xc054f000   ( 144 kB)
[    0.000000]       .data : 0xc0550000 - 0xc05cd490   ( 502 kB)
[    0.000000]        .bss : 0xc05cd4b4 - 0xc06ae354   ( 900 kB)
[    0.000000] NR_IRQS:544
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000148] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000168] pid_max: default: 32768 minimum: 301
[    0.000312] Mount-cache hash table entries: 512
[    0.000870] CPU: Testing write buffer coherency: ok
[    0.001132] Setting up static identity map for 0x403aa208 - 0x403aa260
[    0.001816] devtmpfs: initialized
[    0.003522] pinctrl core: initialized pinctrl subsystem
[    0.004012] NET: Registered protocol family 16
[    0.004320] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004380] script_sysfs_init success
[    0.005154] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006059] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006427] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007202] persistent_ram: found existing buffer, size 21180, start 21180
[    0.101129] console [ram-1] enabled
[    0.102061] Not Found clk pll_isp in script 
[    0.102194] Not Found clk pll_video in script 
[    0.102422] Not Found clk pll_ve in script 
[    0.102544] Not Found clk pll_periph0 in script 
[    0.102665] Not Found clk pll_de in script 
[    0.107130] bio: create slab <bio-0> at 0
[    0.107512] pwm module init!
[    0.109723] SCSI subsystem initialized
[    0.110225] usbcore: registered new interface driver usbfs
[    0.110433] usbcore: registered new interface driver hub
[    0.110801] usbcore: registered new device driver usb
[    0.111097] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.111227] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.111456] Linux video capture interface: v2.00
[    0.111650] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.112215] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.113108] Switching to clocksource arch_sys_counter
[    0.119984] NET: Registered protocol family 2
[    0.119984] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119984] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.119984] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.119984] TCP: Hash tables configured (established 2048 bind 2048)
[    0.120225] TCP: reno registered
[    0.120355] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.120593] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.120985] NET: Registered protocol family 1
[    0.121452] standby_mode = 1. 
[    0.121680] wakeup src cnt is : 3. 
[    0.121820] pmu1_enable = 0x1. 
[    0.121940] pmux_id = 0x1. 
[    0.122172] config_pmux_para: script_parser_fetch err. 
[    0.122296] pmu2_enable = 0x0. 
[    0.122423] add_sys_pwr_dm: get ldo name failed
[    0.122651] add_sys_pwr_dm: get ldo name failed
[    0.122774] add_sys_pwr_dm: get ldo name failed
[    0.122897] add_sys_pwr_dm: get ldo name failed
[    0.123125] add_sys_pwr_dm: get ldo name failed
[    0.123248] add_sys_pwr_dm: get ldo name failed
[    0.123474] add_sys_pwr_dm: get ldo name failed
[    0.123598] add_sys_pwr_dm: get ldo name failed
[    0.123720] add_sys_pwr_dm: get ldo name failed
[    0.123947] add_sys_pwr_dm: get ldo name failed
[    0.124068] after inited: sys_mask config = 0x0. 
[    0.124291] dynamic_standby enalbe = 0x0. 
[    0.124462] sunxi_reg_init enter
[    0.126525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.126818] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.127135] msgmni has been set to 56
[    0.128317] io scheduler noop registered
[    0.128454] io scheduler deadline registered
[    0.128654] io scheduler cfq registered (default)
[    0.129271] [DISP]disp_module_init
[    0.129786] cmdline,disp=
[    0.130184] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.130534] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.131503] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[    0.132966] [DISP]disp_module_init finish
[    0.133477] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.133936] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.134173] sw_uart_pm()890 - uart0 clk is already enable
[    0.134307] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.247778] console [ttyS0] enabled
[    0.737814] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.745700] spi spi0: master is unqueued, this is deprecated
[    0.753808] Failed to alloc md5
[    0.757463] eth0: Use random mac address
[    0.762122] usbcore: registered new interface driver catc
[    0.768378] usbcore: registered new interface driver kaweth
[    0.774700] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[    0.783272] usbcore: registered new interface driver pegasus
[    0.789803] usbcore: registered new interface driver rtl8150
[    0.796290] usbcore: registered new interface driver asix
[    0.802556] usbcore: registered new interface driver cdc_ether
[    0.809180] usbcore: registered new interface driver cdc_eem
[    0.815721] usbcore: registered new interface driver dm9601
[    0.822081] usbcore: registered new interface driver smsc75xx
[    0.828731] usbcore: registered new interface driver smsc95xx
[    0.835257] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[    0.843015] usbcore: registered new interface driver gl620a
[    0.849351] usbcore: registered new interface driver net1080
[    0.855901] usbcore: registered new interface driver plusb
[    0.862163] usbcore: registered new interface driver rndis_host
[    0.868983] usbcore: registered new interface driver cdc_subset
[    0.875716] usbcore: registered new interface driver zaurus
[    0.882171] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    0.890577] usbcore: registered new interface driver int51x1
[    0.897114] usbcore: registered new interface driver kalmia
[    0.903471] usbcore: registered new interface driver ipheth
[    0.909918] usbcore: registered new interface driver sierra_net
[    0.916652] usbcore: registered new interface driver cx82310_eth
[    0.923594] usbcore: registered new interface driver cdc_ncm
[    0.930052] usbcore: registered new interface driver lg-vl600
[    0.936686] usbcore: registered new interface driver qmi_wwan
[    0.943549] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.971131] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.980494] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.989127] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.010037] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.016821] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.024598] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.032841] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.041277] usb usb1: Manufacturer: Linux 3.4.39 ehci_hcd
[    1.047482] usb usb1: SerialNumber: sunxi-ehci
[    1.053225] hub 1-0:1.0: USB hub found
[    1.057525] hub 1-0:1.0: 1 port detected
[    1.062594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.089650] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.098627] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 2
[    1.107320] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.174098] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.181867] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.189997] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.198140] usb usb2: Manufacturer: Linux 3.4.39 ohci_hcd
[    1.204353] usb usb2: SerialNumber: sunxi-ohci
[    1.209963] hub 2-0:1.0: USB hub found
[    1.214293] hub 2-0:1.0: 1 port detected
[    1.219417] usbcore: registered new interface driver cdc_acm
[    1.225859] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.235026] usbcore: registered new interface driver cdc_wdm
[    1.241433] Initializing USB Mass Storage driver...
[    1.247153] usbcore: registered new interface driver usb-storage
[    1.253944] USB Mass Storage support registered.
[    1.259413] usbcore: registered new interface driver usbserial
[    1.266023] usbserial: USB Serial Driver core
[    1.271140] usbcore: registered new interface driver option
[    1.277468] USB Serial support registered for GSM modem (1-port)
[    1.284447] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    1.291574] sunxikbd_script_init: key para not found, used default para. 
[    1.300339] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.307857] i2c /dev entries driver
[    1.312242] [VFE]cci probe start cci_sel = 0!
[    1.317218] [VFE]cci probe end cci_sel = 0!
[    1.322029] [VFE]cci_init end
[    1.325551] [VFE]Welcome to Video Front End driver
[    1.331245] [VFE]pdev->id = 1
[    1.334651] [VFE]dev->mipi_sel = 1
[    1.338637] [VFE]dev->vip_sel = 1
[    1.342448] [VFE]dev->isp_sel = 0
[    1.352354] [VFE_WARN]vfe vpu clock is null
[    1.357517] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[    1.365478] [VFE]vfe_init end
[    1.369790] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.378681] [VFE]probe_work_handle start!
[    1.383365] [VFE]..........................vfe clk open!.......................
[    1.391748] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.400719] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.409444] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.418282] [VFE]v4l2 subdev register input_num = 0
[    1.423928] [VFE]vfe sensor detect start! input_num = 0
[    1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[    1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[    1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0
[    1.460313] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.469051] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.477814] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.487041] [VFE]V4L2 device registered as video1
[    1.492418] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.499681] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.510965] [VFE]..........................vfe clk close!.......................
[    1.519711] [VFE]probe_work_handle end!
[    1.524273] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.531757] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.538056] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.549954] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    1.557480] =========script_get_err============
[    1.564103] usbcore: registered new interface driver usbhid
[    1.570538] usbhid: USB HID core driver
[    1.575561] ashmem: initialized
[    1.579298] logger: created 256K log 'log_main'
[    1.584942] logger: created 32K log 'log_events'
[    1.590357] logger: created 32K log 'log_radio'
[    1.595636] logger: created 32K log 'log_system'
[    1.606895] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.612686] *******************Try sdio*******************
[    1.621126] TCP: cubic registered
[    1.625001] NET: Registered protocol family 17
[    1.630254] VFP support v0.3: [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    1.640507] ThumbEE CPU extension supported.
[    1.645483] *******************Try sd *******************
[    1.651613] Registering SWP/SWPB emulation handler
[    1.658081] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.667140] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.677168] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.688018] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.696613] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.705301] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.714174] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.722981] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:10 UTC (10)
[    1.733372] ALSA device list:
[    1.736805]   #0: audiocodec
[    1.740542] Waiting for root device /dev/mmcblk0p2...
[    1.777498] mmc0: new high speed SDHC card at address aaaa
[    1.784150] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.793829]  mmcblk0: p1 p2
[    1.797839] mmcblk mmc0:aaaa: Card claimed for testing.
[    1.803921] mmc0:aaaa: SC16G 14.8 GiB 
[    1.808312] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.817174] *******************sd init ok*******************
[    1.823657] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.832519] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.841079] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.849727] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.858414] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.866975] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.962903] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.974732] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.020978] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.030169] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.041157] devtmpfs: mounted
[    2.044757] Freeing init memory: 144K
[    2.163985] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# 
# 
# 
# 
# i2cdetect -y
BusyBox v1.29.3 (2019-04-29 11:17:35 CST) multi-call binary.

Usage: i2cdetect -l | -F I2CBUS | [-ya] [-q|-r] I2CBUS [FIRST LAST]

Detect I2C chips

        -l      List installed buses
        -F BUS# List functionalities on this bus
        -y      Disable interactive mode
        -a      Force scanning of non-regular addresses
        -q      Use smbus quick write commands for probing (default)
        -r      Use smbus read byte commands for probing
        FIRST and LAST limit probing range
# i2cdetect -l
# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
--- Opening /dev/video1...
[   33.650171] [VFE]vfe_open
Trying source module v4l2...[   33.656150] [VFE]..........................vfe clk open!.......................

[   33.667840] [VFE]vfe_open ok
[   33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [   33.681675] [VFE]vfe_close
input was specified, using the f[   33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [   33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[   33.708530] [VFE]vfe_close end
PUT: Invalid argument
# 
# 
# 
# 
# 
#

附上我的启动信息。有时间帮我分析原因。

离线

#206 2019-05-15 13:44:08

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

看前面的错误, 觉得应该是 没有生成 /dev/videoX 设备,

看log 果然是视频设备没有注册成功:

[    1.418282] [VFE]v4l2 subdev register input_num = 0
[    1.423928] [VFE]vfe sensor detect start! input_num = 0
[    1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[    1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[    1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0

menuconfig 里面有 ov5640 吗? ov5640 与 ov5647 的设备Id 不同的。





离线

#207 2019-05-15 13:46:25

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

不对吧,你往下看,产生了 /dev/video1啊

离线

#208 2019-05-15 14:19:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

不对吧,你往下看,产生了 /dev/video1啊

嗯, 眼花了。

找到这个, 问题和你的一样,
https://licheezero.readthedocs.io/zh/latest/系统开发/bsp_cam.html

但是我仍然没看出来他是如何解决的.





离线

#209 2019-05-15 14:29:25

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

离线

#210 2019-05-15 14:32:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

有没有试过这个: https://whycan.cn/t_1780.html





离线

#211 2019-05-15 14:35:41

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
晕哥小弟 说:

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

有没有试过这个: https://whycan.cn/t_1780.html


我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。

离线

#212 2019-05-15 15:05:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:
晕哥 说:
晕哥小弟 说:

这就咋玩了,主线生成不了/dev/video*  BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。

有没有试过这个: https://whycan.cn/t_1780.html


我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。

用上面的固件, 会有空照片?





离线

#213 2019-05-15 15:39:58

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
晕哥小弟 说:
晕哥 说:

有没有试过这个: https://whycan.cn/t_1780.html


我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。

用上面的固件, 会有空照片?

是的,我之前测试的时候发现的,好像拍了十几张的样子,然后有一张图片生成了,但是就是没有图像。后来我就没有管了。换linux了。

离线

#214 2019-05-15 18:57:05

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Jmhh247 说:
晕哥 说:

先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.

那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.

折腾了两天,终于能显示png了。。。

确实在buildroot里面勾上 png相关支持就可以了,然后要删除掉qt5目录内的.stamp_built .stamp_configured 。

刚开始我没删掉这些,生成的根文件系统还是不支持显示png

感觉自己蠢哭了。。。


我也遇到了这个问题,请问是删除掉“./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_built”,和 “./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_configured” 这两个目录下的文件么,请指教!!

离线

#215 2019-05-15 20:22:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

可以先这样试一试





离线

#216 2019-05-15 22:36:06

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,有方法可以把主线的uboot.bin   +  bsp kernel  + script.bin 等等打包一个img文件,我烧到flash中,之前好像在论坛里面看到。今天早了很长时间没有找到。

离线

#217 2019-05-16 08:08:45

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

晕哥,有方法可以把主线的uboot.bin   +  bsp kernel  + script.bin 等等打包一个img文件,我烧到flash中,之前好像在论坛里面看到。今天早了很长时间没有找到。

https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)





离线

#218 2019-05-16 08:38:46

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,上面你提供的链接,我搜到了,我现在的环境是主线u-boot + BSP 内核。想烧写到spi-flash中。

离线

#219 2019-05-16 08:46:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

晕哥,上面你提供的链接,我搜到了,我现在的环境是主线u-boot + BSP 内核。想烧写到spi-flash中。

可以的, 貌似我以前做过 flash 固件, 刚刚没找到。





离线

#220 2019-05-16 08:51:54

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我其实不需要固件,我需要个步骤。 因为现在我有主线的uboot  BSPkernel +  boot.scr  + script.bin +还有一个rootfs (我不知道是什么格式,是buildroot生成的) 这些我不知道烧写到什么位置。

离线

#221 2019-05-16 10:27:41

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,按照自己的理解,和参照网上。自己折腾了下。
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)
21、启动不起来,任何串口任何信息都没有。

最近编辑记录 晕哥小弟 (2019-05-16 11:46:59)

离线

#222 2019-05-16 10:48:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

串口连 u-boot 信息都没有?

到这里跟帖吧:
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)





离线

#223 2019-05-17 16:09:25

jianke512
会员
注册时间: 2019-05-17
已发帖子: 6
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,现在调试LecheePi Zero,屏幕800x480,已按照1楼的配置更改UBOOT,kernel用的800x480的dtb,启动过程中UBOOT屏幕可以显示,linux kernel屏幕不显示并且kernel hang住,请帮忙给些调试建议

kernle停在Console: switching to colour dummy device 80x30位置不动了



U-Boot SPL 2017.01-rc2 (May 17 2019 - 15:06:54)                                 
DRAM: 64 MiB                                                                    
Trying to boot from MMC1                                                        
                                                                                
U-Boot 2017.01-rc2 (May 17 2019 - 15:06:54 +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 (May 17 2019 - 15:06:54 +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                                                
reading zImage                                                                  
4021504 bytes read in 218 ms (17.6 MiB/s)                                       
reading sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb                            
11953 bytes read in 27 ms (431.6 KiB/s)                                         
## Flattened Device Tree blob at 41800000                                       
   Booting using the fdt blob at 0x41800000                                     
   Loading Device Tree to 42dfa000, end 42dffeb0 ... OK                         
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Booting Linux on physical CPU 0x0                                
[    0.000000] Linux version 4.14.14-licheepi-zero (root@muwei) (gcc version 7.9
[    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 instructie
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero                           
[    0.000000] Memory policy: Data cache writealloc                             
[    0.000000] random: fast init done                                           
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33740 r8192 d23604 u6556
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883     
[    0.000000] Kernel command line: console=ttyS0,115200 rootwait root=/dev/mmcw
[    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: 53512K/64036K available (6144K kernel code, 284K rwdata,)
[    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 - 0xc0a473a0   ( 285 kB)                
[    0.000000]        .bss : 0xc0a4e6dc - 0xc0a902e4   ( 264 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_cycless
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398s
[    0.000018] Switching to timer-based delay loop, resolution 41ns             
[    0.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, maxs
[    0.000430] Console: colour dummy device 80x30                               
[    0.000470] Calibrating delay loop (skipped), value calculated using timer f)
[    0.000486] pid_max: default: 32768 minimum: 301                             
[    0.000612] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
[    0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[    0.001273] CPU: Testing write buffer coherency: ok                          
[    0.001665] /cpus/cpu@0 missing clock-frequency property                     
[    0.001692] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000                 
[    0.002158] Setting up static identity map for 0x40100000 - 0x40100060       
[    0.002338] Hierarchical SRCU implementation.                                
[    0.002846] smp: Bringing up secondary CPUs ...                              
[    0.002860] smp: Brought up 1 node, 1 CPU                                    
[    0.002868] SMP: Total of 1 processors activated (48.00 BogoMIPS).           
[    0.002876] CPU: All CPU(s) started in SVC mode.                             
[    0.003681] devtmpfs: initialized                                            
[    0.006874] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5
[    0.007170] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.007198] futex hash table entries: 256 (order: 2, 16384 bytes)            
[    0.007379] pinctrl core: initialized pinctrl subsystem                      
[    0.008361] NET: Registered protocol family 16                               
[    0.008834] DMA: preallocated 256 KiB pool for atomic coherent allocations   
[    0.009885] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint.
[    0.009982] hw-breakpoint: maximum watchpoint size is 8 bytes.               
[    0.021743] SCSI subsystem initialized                                       
[    0.021993] usbcore: registered new interface driver usbfs                   
[    0.022046] usbcore: registered new interface driver hub                     
[    0.022140] usbcore: registered new device driver usb                        
[    0.022382] pps_core: LinuxPPS API ver. 1 registered                         
[    0.022393] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    0.022415] PTP clock support registered                                     
[    0.022612] Advanced Linux Sound Architecture Driver Initialized.            
[    0.024319] clocksource: Switched to clocksource arch_sys_counter            
[    0.034142] NET: Registered protocol family 2                                
[    0.034814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)  
[    0.034849] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)         
[    0.034872] TCP: Hash tables configured (established 1024 bind 1024)         
[    0.035007] UDP hash table entries: 256 (order: 1, 8192 bytes)               
[    0.035059] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)          
[    0.035282] NET: Registered protocol family 1                                
[    0.035967] RPC: Registered named UNIX socket transport module.              
[    0.035989] RPC: Registered udp transport module.                            
[    0.035995] RPC: Registered tcp transport module.                            
[    0.036001] RPC: Registered tcp NFSv4.1 backchannel transport module.        
[    0.037885] workingset: timestamp_bits=30 max_order=14 bucket_order=0        
[    0.043680] NFS: Registering the id_resolver key type                        
[    0.043740] Key type id_resolver registered                                  
[    0.043749] Key type id_legacy registered                                    
[    0.047928] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[    0.047952] io scheduler noop registered                                     
[    0.047960] io scheduler deadline registered                                 
[    0.048260] io scheduler cfq registered (default)                            
[    0.048274] io scheduler mq-deadline registered                              
[    0.048282] io scheduler kyber registered                                    
[    0.048869] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO              
[    0.052104] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver  
[    0.052982] pwm-backlight backlight: backlight supply power not found, usingr
[    0.147212] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled         
[    0.150251] console [ttyS0] disabled                                         
[    0.170534] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1A
[    0.749735] console [ttyS0] enabled                                          
[    0.756268] panel-simple panel: panel supply power not found, using dummy rer
[    0.765453] libphy: Fixed MDIO Bus: probed                                   
[    0.769921] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver       
[    0.776531] ehci-platform: EHCI generic platform driver                      
[    0.782032] ehci-platform 1c1a000.usb: EHCI Host Controller                  
[    0.787700] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus 1
[    0.795653] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000             
[    0.824364] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00            
[    0.831462] hub 1-0:1.0: USB hub found                                       
[    0.835402] hub 1-0:1.0: 1 port detected                                     
[    0.839938] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver           
[    0.846239] ohci-platform: OHCI generic platform driver                      
[    0.851805] ohci-platform 1c1a400.usb: Generic Platform OHCI controller      
[    0.858530] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus 2
[    0.866485] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400             
[    0.939323] hub 2-0:1.0: USB hub found                                       
[    0.943162] hub 2-0:1.0: 1 port detected                                     
[    0.950768] udc-core: couldn't find an available UDC - added [g_cdc] to lists
[    0.960467] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0    
[    0.967364] sun6i-rtc 1c20400.rtc: RTC enabled                               
[    0.971933] i2c /dev entries driver                                          
[    0.976832] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-000
[    0.985861] IR NEC protocol handler initialized                              
[    0.990400] IR RC5(x/sz) protocol handler initialized                        
[    0.995533] IR RC6 protocol handler initialized                              
[    1.000061] IR JVC protocol handler initialized                              
[    1.004610] IR Sony protocol handler initialized                             
[    1.009220] IR SANYO protocol handler initialized                            
[    1.013917] IR Sharp protocol handler initialized                            
[    1.018628] IR MCE Keyboard/mouse protocol handler initialized               
[    1.024464] IR XMP protocol handler initialized                              
[    1.029670] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, no)
[    1.094359] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:24                    
[    1.101308] usbcore: registered new interface driver usbhid                  
[    1.106979] usbhid: USB HID core driver                                      
[    1.112789] NET: Registered protocol family 17                               
[    1.117475] Key type dns_resolver registered                                 
[    1.121869] Registering SWP/SWPB emulation handler                           
[    1.134778] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e8900
[    1.145375] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=80
[    1.161569] Console: switching to colour frame buffer device 100x30          
[    1.174080] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registere!
[    1.182839] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).      
[    1.189586] [drm] No driver support for vblank timestamp query.              
[    1.204990] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0743094)   
[    1.212352] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0)
[    1.220086] fb: switching to sun4i-drm-fb from simple                        
[    1.225268] Console: switching to colour dummy device 80x30 

离线

#224 2019-05-17 16:18:32

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Console: switching to colour dummy device 80x30

感觉应该是你的 u-boot bootargs 里面的 console 参数不是 /dev/ttyS0

导致默认控制台发生了切换.





离线

#225 2019-05-17 17:17:37

jianke512
会员
注册时间: 2019-05-17
已发帖子: 6
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中

离线

#226 2019-05-17 17:20:57

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

jianke512 说:

晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中

参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)


参考这个帖子, 一个一个替换文件, 逐步排除问题。





离线

#227 2019-05-19 16:31:06

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥版主:“buildroot-2017.08.1” 自带的/usr/bin/ts_calibrate,测试时,提示“tslib: Selected device is not a touchscreen (must support ABS and KEY event types)”。 以前手动按装tslib. 设置:export TSLIB_TSDEVICE=/dev/input/event1
就可以找到touchscreen , “buildroot-2017.08.1” 自带的/usr/bin/ts_calibrate设置没有效果。

最近编辑记录 lgliang (2019-05-19 16:31:34)

离线

#228 2019-05-19 16:37:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

提示“tslib: Selected device is not a touchscreen (must support ABS and KEY event types)”。

是 TSLIB_TSDEVICE 环境变量没有测试

那现在可以了吗?





离线

#229 2019-05-19 16:49:34

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

手动export TSLIB_TSDEVICE=/dev/input/event1 就可以了,我之前把这个命令写入/etc/profile里面没有效果,发现这个电阻触摸屏不是很准确。有时会跳动

最近编辑记录 lgliang (2019-05-19 17:04:13)

离线

#230 2019-05-19 17:09:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

手动export TSLIB_TSDEVICE=/dev/input/event1 就可以了,我之前把这个命令写入/etc/profile里面没有效果,发现这个电阻触摸屏不是很准确。有时会跳动

触摸不准是因为驱动没有防抖, 据说 tslib 的插件有防抖功能, 你研究一下.



驱动防抖 @john78 大神已经实现了: https://whycan.cn/t_1259.html#p14265





离线

#231 2019-05-19 17:11:19

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好的,谢谢晕哥

离线

#232 2019-05-20 14:01:19

jianke512
会员
注册时间: 2019-05-17
已发帖子: 6
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:
jianke512 说:

晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中

参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)


参考这个帖子, 一个一个替换文件, 逐步排除问题。

Hi,

   晕哥,此问题解决,参考以下链接的改法OK了,谢谢

https://www.lotlab.org/2018/07/28/record-of-using-licheepi-zero-part-1-u-boot-linux-buildroot/

离线

#233 2019-05-21 09:33:13

lgliang
会员
注册时间: 2019-04-26
已发帖子: 11
积分: 11

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问晕哥,buildroot上的mPlayer是使用的软解码还是硬解码。

离线

#234 2019-05-21 09:36:35

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lgliang 说:

请问晕哥,buildroot上的mPlayer是使用的软解码还是硬解码。

软解。


因为硬解码没有统一的标准。





离线

#235 2019-06-19 15:40:02

tobunto
会员
注册时间: 2019-03-04
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我跟着教程都走通了,但是挂载emdebian系统后,启动时出错了,emdebian系统是根据https://licheezero.readthedocs.io/zh/latest/系统开发/emdebian.html制作的,错误是Starting init: /etc/init exists but couldn't execute it (error -13)
/bin/sh: 0: Can't open earlyprintk,没找到原因,有了解的能指点下吗。

离线

#236 2019-06-19 15:46:49

nuvoton
会员
注册时间: 2019-06-17
已发帖子: 59
积分: 59

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

/etc/init exists but couldn't execute it (error -13)

/etc/init 存在, 但是不能执行, 看文件是不是没有执行属性, 或者依赖的库不存在,还是别的问题?

离线

#237 2019-06-20 09:13:32

tobunto
会员
注册时间: 2019-03-04
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

debian系统的/etc/init是个目录,/etc/init/下也都是一些配置文件,应该与执行权限没关

离线

#238 2019-06-20 09:20:08

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

tobunto 说:

debian系统的/etc/init是个目录,/etc/init/下也都是一些配置文件,应该与执行权限没关

那你的 bootargs 是什么? 系统第一个执行程序是 init=/etc/init ?





离线

#239 2019-06-20 09:35:47

tobunto
会员
注册时间: 2019-03-04
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

没指定第一个启动程序,是按帖子上面的配的:#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw rootfstype=ext4 rootdelay=8 vt.global_cursor_default=0"

离线

#240 2019-07-04 00:14:25

xk100
会员
注册时间: 2018-12-13
已发帖子: 74
积分: 57.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

jianke512 说:
晕哥 说:
jianke512 说:

晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中

参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)


参考这个帖子, 一个一个替换文件, 逐步排除问题。

Hi,

   晕哥,此问题解决,参考以下链接的改法OK了,谢谢

https://www.lotlab.org/2018/07/28/record-of-using-licheepi-zero-part-1-u-boot-linux-buildroot/

碰到同样的问题。明天试试。

离线

#241 2019-07-05 21:47:30

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

买了一块licheepi zero ,准备在家试试 主线 uboot  +主线  kernel 。我发现kernel 的提交记录都是两年前的,是不是太老了。如果想玩是不是可以用最新的kernel 5.几版本好像。

离线

#242 2019-07-05 21:53:24

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

4.13/4.14 还行, 用来量产了.

离线

#243 2019-07-24 17:18:36

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2


编译的时候出现这个问题,找了网上好多都没有找到答案

离线

#244 2019-07-24 17:32:09

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

太一酱鸭 说:

root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2


编译的时候出现这个问题,找了网上好多都没有找到答案

貌似找到一个,明天上班再看看能不能解决

离线

#245 2019-08-05 10:33:34

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥我用linux3.4编译的zImage,然后一直点亮不了板子无法启动内核

 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
284 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading zImage
1866504 bytes read in 129 ms (13.8 MiB/s)
reading sun8i-v3s-blueberrypi-csi-ov2640.dtb
12240 bytes read in 26 ms (459 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfffcf ... OK
Cannot setup simplefb: node not found

Starting kernel ...

离线

#246 2019-08-05 10:39:58

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:
晕哥 说:

有没有 /dev/i2cX,   /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface


主要是这个错误

--- Opening /dev/video1...
[   33.650171] [VFE]vfe_open
Trying source module v4l2...[   33.656150] [VFE]..........................vfe clk open!.......................

[   33.667840] [VFE]vfe_open ok
[   33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [   33.681675] [VFE]vfe_close
input was specified, using the f[   33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [   33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[   33.708530] [VFE]vfe_close end
PUT: Invalid argument

不知道这个是什么造成的

我也是这个问题,请问您解决了吗

离线

#247 2019-08-05 11:31:36

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我的解决了,你的是自己的板子,还是开发板?

离线

#248 2019-08-05 15:13:57

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

我的解决了,你的是自己的板子,还是开发板?

我的是荔枝派zero,方便加qq(你猜)细聊吗

离线

#249 2019-08-05 16:48:26

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥小弟 说:

我的解决了,你的是自己的板子,还是开发板?

大佬方便加或者告诉我一下你的联系方式吗QAQ

离线

#250 2019-08-06 08:13:48

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

已经加了。不一定能解决,你的问题还是贴出来,晕哥都能解决的。我的很多很多的问题都是晕哥帮助解决的。

离线

#251 2019-08-15 16:40:54

a1326268019
会员
注册时间: 2019-08-15
已发帖子: 12
积分: 12

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

各位大神,请问我编译uboot报这个错误怎么解决啊,u-boot是https://github.com/Lichee-Pi/u-boot下载的
里面确实没有LicheePi_Zero_defconfig
板子是荔枝派Zero V3s开发板

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_defconfig
***
*** Can't find default configuration "arch/../configs/LicheePi_Zero_defconfig"!
***
make[1]: *** [LicheePi_Zero_defconfig] Error 1
make: *** [LicheePi_Zero_defconfig] Error 2

最近编辑记录 a1326268019 (2019-08-15 16:46:09)

离线

#252 2019-08-15 17:32:32

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

用指定的分支, 比如 v3s-spi-experimental





离线

#253 2019-08-29 19:58:39

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

主线的kernel 是全志的官网弄出来的,还是索智弄出来的呢?还是licheepi zero的作者弄出来的呢?

离线

#254 2019-10-19 10:07:30

tianjianwudi
会员
注册时间: 2019-10-14
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

编译buildroot过程中下载文件太慢了,贼痛苦。
很不易的下载,在此分享下,拷贝到buildroot-2017.08/dl/ 下即可。

https://pan.baidu.com/s/1Pb18GiPxJedcUI-sYFqKQA&shfl=sharepset

离线

#255 2019-10-19 10:15:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

感谢楼上的朋友分享!





离线

#256 2019-10-19 15:38:40

tianjianwudi
会员
注册时间: 2019-10-14
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请教晕哥及各位大神,为什么我将qt widgets中的例程编译后放 荔枝派zero 中运行时不显示文字。
一开始报未找到/lib/fonts文件夹,后来将buildroot-2017.08/output/target/usr/share/fonts拷贝到荔枝派中,未报任何信息,但还是不显示文字。

离线

#257 2019-10-19 16:05:10

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

勾选这个选项就可以显示了: BR2_PACKAGE_LIBERATION





离线

#258 2019-10-23 00:41:50

tianjianwudi
会员
注册时间: 2019-10-14
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

勾选这个选项就可以显示了: BR2_PACKAGE_LIBERATION

晕哥,请问 BR2_PACKAGE_LIBERATION 选项在哪啊?
我在buildroot 下 menuconfig 里找不到 BR2_PACKAGE_LIBERATION ,只在.config里找到以下内容。

#
# Fonts
#
BR2_PACKAGE_BITSTREAM_VERA=y
BR2_PACKAGE_CANTARELL=y
BR2_PACKAGE_DEJAVU=y
BR2_PACKAGE_DEJAVU_MONO=y
BR2_PACKAGE_DEJAVU_SANS=y
BR2_PACKAGE_DEJAVU_SERIF=y
BR2_PACKAGE_DEJAVU_SANS_CONDENSED=y
BR2_PACKAGE_DEJAVU_SERIF_CONDENSED=y
BR2_PACKAGE_FONT_AWESOME=y
BR2_PACKAGE_GHOSTSCRIPT_FONTS=y
BR2_PACKAGE_INCONSOLATA=y
BR2_PACKAGE_LIBERATION=y
BR2_PACKAGE_LIBERATION_MONO=y
BR2_PACKAGE_LIBERATION_SANS=y
BR2_PACKAGE_LIBERATION_SERIF=y

离线

#259 2019-10-23 09:19:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Target packages  --->
    Fonts, cursors, icons, sounds and themes  --->
        [ ] Liberation (Free fonts)





离线

#260 2019-10-27 14:06:25

tianjianwudi
会员
注册时间: 2019-10-14
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

谢谢解答!
搞了好几天,还去重新移植qt5,结果还是只要将fonts下子目录中的字体文件移动到fonts目录下就能显示文字了。

离线

#261 2019-11-22 15:38:35

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

大家好!!請教各位大佬!! 本人用A33-Vstar開發板,想选通ov5640,但出現以下問題.
ov5640_1.png
ov5640_2.png

同sys_config.fex setting
ov5640_3.png

開啟
--- I2C support
[x] I2C device interface

离线

#262 2019-11-22 15:49:13

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

最前面 axp22_dldo3 创建 debugfs 出错了, 有没有影响?





离线

#263 2019-11-22 17:20:56

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

最前面 axp22_dldo3 创建 debugfs 出错了, 有没有影响?

改為以下. 但都出現問題
vip_dev0_iovdd = ""
vip_dev0_avdd = ""
vip_dev0_dvdd = ""

ov5640_4.png

离线

#264 2019-11-22 18:43:56

超级萌新
会员
注册时间: 2018-05-04
已发帖子: 408
积分: 407

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

用逻辑分析仪抓 i2c 和 camera 的数据,看有什么情况

离线

#265 2019-11-25 17:25:41

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

超级萌新 说:

用逻辑分析仪抓 i2c 和 camera 的数据,看有什么情况

我發現 DOVDD-CSI 無 2.8V, AVDD-CSI 無 2.8V, DVDD18V-CSI 無1.8V, 是什麼原因?

离线

#266 2019-11-25 17:33:36

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

我發現 DOVDD-CSI 無 2.8V, AVDD-CSI 無 2.8V, DVDD18V-CSI 無1.8V, 是什麼原因?

电源有问题





离线

#267 2019-11-25 18:11:08

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

电源有问题

是否關 axp22_dldo3 创建 debugfs 出错了問題?

离线

#268 2019-11-25 18:14:00

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

augyy 说:

是否關 axp22_dldo3 创建 debugfs 出错了問題?

不排除, 有可能的.





离线

#269 2019-11-26 13:45:59

augyy
会员
注册时间: 2019-01-29
已发帖子: 46
积分: 46

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

不排除, 有可能的.

請問有冇解決方法!!因為找了很多網,都找不到解決方法

离线

#270 2019-11-26 14:11:16

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

另起一个帖子吧: https://whycan.cn/t_3297.html#p28559





离线

#271 2019-12-11 11:34:35

ma6254
会员
注册时间: 2019-11-03
已发帖子: 41
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我用win10的subsystem编译出现了这个错误,似乎是wsl内部IPC实现的问题
一会儿换用doker编译看看,可以的话我上传个编译用的docker镜像

fakeroot, while creating message channels: Function not implemented This may be due to a lack of SYSV IPC support. fakeroot: error while starting the `faked' daemon.

_20191211103600.png

离线

#272 2019-12-19 09:32:29

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

哪位大神直到:
我的usb 插到荔枝派zero里,不工作。
USB 热插拔不起作用.pdf

离线

#273 2019-12-28 11:06:34

泽被苍生
会员
注册时间: 2019-12-15
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y  这条指令下载4.13y文件6个多G正常吗?

离线

#274 2019-12-28 11:13:38

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我这里用 du -sh linux/ 命令显示 4 G 左右,

6G 可能是空间占用吧, 应该是正常的。

离线

#275 2019-12-28 11:19:09

泽被苍生
会员
注册时间: 2019-12-15
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

raspberryman 说:

我这里用 du -sh linux/ 命令显示 4 G 左右,

6G 可能是空间占用吧, 应该是正常的。

哦哦我以为有问题,这个还不能断点续传是吧。下载一点就中断了每次从头开始

离线

#276 2019-12-28 11:26:39

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

泽被苍生 说:

哦哦我以为有问题,这个还不能断点续传是吧。下载一点就中断了每次从头开始

墙内访问 github 是有这个问题, 最好是凌晨下载,速度飞快。

离线

#277 2019-12-28 12:15:25

泽被苍生
会员
注册时间: 2019-12-15
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

raspberryman 说:

墙内访问 github 是有这个问题, 最好是凌晨下载,速度飞快。

谢谢大佬的指点

离线

#278 2020-01-11 16:39:56

yuanlwjt
会员
注册时间: 2019-10-23
已发帖子: 129
积分: 109

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd

这里下载的文件按照步骤烧写到SD卡,V3S无法启动,出现 Starting init: /sbin/init exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
Rebooting in 5 seconds..
这种错误,什么原因呢?

离线

#279 2020-01-11 17:04:13

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

搜一下,这个问题问过很多次了。





离线

#280 2020-01-15 15:29:13

三哥
会员
注册时间: 2018-08-03
已发帖子: 72
积分: 44.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好长贴,翻死我了,下次继续来翻

离线

#281 2020-01-17 00:23:14

xql2008
会员
注册时间: 2019-12-26
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你这个咋跟官方介绍的不一样呢?是因为官方的是最新的编译方式吗?我的板子是最新买的,按你的编译过程,烧进去,跑步起来,串口也没信息。如果,烧lichee_zero_test_Debian_LXDE,就可以跑起来,说明硬件没问题。可能是编译哪里不对。晕哥,能帮我分析下吗?

离线

#282 2020-01-19 17:16:57

晕哥小弟
会员
注册时间: 2019-04-04
已发帖子: 309
积分: 299.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请教下,这是为什么?

17648] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.826401] *******************sd init ok*******************
[    1.832989] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.841895] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.851727] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.860402] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.869054] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.877799] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.896177] *******************Try sdio*******************
[    1.905705] *******************Try sd *******************
[    1.915233] *******************Try mmc*******************
[    1.967081] *******************Try sdio*******************
[    1.977772] *******************Try sd *******************
[    1.985450] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.996146] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.005425] *******************Try mmc*******************
[    2.012949] EXT4-fs (mmcblk0p2): couldn't mount RDWR because of unsupported optional features (400)
[    2.033832] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    2.043468] Backtrace: 
[    2.046441] [<c00133a4>] (dump_backtrace+0x0/0x104) from [<c03a7b7c>] (dump_stack+0x18/0x1c)
[    2.056035]  r6:c05e24f0 r5:c303b024 r4:c303b024 r3:00000001
[    2.062918] [<c03a7b64>] (dump_stack+0x0/0x1c) from [<c03a7f4c>] (panic+0x78/0x1bc)
[    2.071651] [<c03a7ed4>] (panic+0x0/0x1bc) from [<c0531d5c>] (mount_block_root+0x248/0x280)
[    2.081144]  r3:c3023efc r2:c04c4e7a r1:c3023f30 r0:c04aae7e
[    2.088007]  r7:c04aaee2
[    2.091061] [<c0531b14>] (mount_block_root+0x0/0x280) from [<c0531dec>] (mount_root+0x58/0x6c)
[    2.100850] [<c0531d94>] (mount_root+0x0/0x6c) from [<c0531f30>] (prepare_namespace+0x130/0x190)
[    2.110826]  r5:c055015d r4:c05e1364
[    2.115149] [<c0531e00>] (prepare_namespace+0x0/0x190) from [<c053197c>] (kernel_init+0x174/0x1b4)
[    2.125317]  r5:c0550120 r4:00000007
[    2.129643] [<c0531808>] (kernel_init+0x0/0x1b4) from [<c0031fd4>] (do_exit+0x0/0x638)
[    2.138654]  r9:00000000 r8:00000000 r7:00000013 r6:c0031fd4 r5:c0531808
[    2.146596] r4:00000000
[    2.149851] Rebooting in 5 seconds..
[    7.154200] Restarting Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #55 Thu Dec 12 16:12:04 CST 2019
[    7.154212] 

离线

#283 2020-01-19 17:54:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

根文件系统 mount 失败.





离线

#284 2020-01-20 21:42:59

joyhope
会员
注册时间: 2020-01-16
已发帖子: 39
积分: 39

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

#282 楼的错误我也遇到多次,在主线上没有遇到,在3.4 上遇到。 我不知道哪里下载的3.4 和 这个论坛里面一个3.4 的版本有差异。我用论坛3.4的配置,结果Menuconfig  一堆的问题。后来重新下载论坛的3.4,按照指南操作就没有遇到#282的问题。

离线

#285 2020-02-25 17:25:29

yytyu
会员
注册时间: 2018-11-01
已发帖子: 34
积分: 18

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

mark

离线

#286 2020-03-09 08:11:45

mcu1234mcu
会员
注册时间: 2020-02-22
已发帖子: 18
积分: 18

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

QQ图片20200309080732.jpg
编译uboot出现上面的错误,在下小白,刚入手荔枝派ZERO,请教晕哥

离线

#287 2020-03-09 08:31:23

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

sudo apt-get install device-tree-compiler

提示缺啥装啥就行

@mcu1234mcu





离线

#288 2020-03-11 09:11:08

mcu1234mcu
会员
注册时间: 2020-02-22
已发帖子: 18
积分: 18

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

sudo apt-get install device-tree-compiler

提示缺啥装啥就行

@mcu1234mcu

搞定了,谢谢

离线

#289 2020-03-15 09:19:47

yuanlwjt
会员
注册时间: 2019-10-23
已发帖子: 129
积分: 109

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

按照论坛里的教程:
    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

在V3S ZERO开发板上运行后,出现如下情况:

[    1.391582] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.401860] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.552817] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[    1.567509] EXT4-fs (mmcblk0p2): recovery complete
[    1.577550] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.585719] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.594166] devtmpfs: mounted
[    1.598397] Freeing unused kernel memory: 1024K
[    1.613776] Starting init: /sbin/init exists but couldn't execute it (error -5)
[    1.623757] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.630930] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.645087] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero #1
[    1.652298] Hardware name: Allwinner sun8i Family
[    1.657036] [<c010e514>] (unwind_backtrace) from [<c010b1b8>] (show_stack+0x10/0x14)
[    1.664779] [<c010b1b8>] (show_stack) from [<c065e5a4>] (dump_stack+0x88/0x9c)
[    1.672001] [<c065e5a4>] (dump_stack) from [<c011b48c>] (panic+0xdc/0x248)
[    1.678875] [<c011b48c>] (panic) from [<c06700ec>] (kernel_init+0x100/0x110)
[    1.685919] [<c06700ec>] (kernel_init) from [<c0107538>] (ret_from_fork+0x14/0x3c)
[    1.693492] Rebooting in 5 seconds..

板子启动不了?是什么情况?

如果把第二步改一下:
  4) 建立第二个分区,大小100M,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录
第二个分区改成100M,就可以正常启动。200M就不行了,是什么问题呢?


遇到同样问题,该如何解决?

离线

#290 2020-03-15 09:29:45

异乡是故乡
会员
注册时间: 2019-11-15
已发帖子: 74
积分: 73.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你的根文件系统出问题了, 换张卡试一试.

离线

#291 2020-03-15 10:46:55

yuanlwjt
会员
注册时间: 2019-10-23
已发帖子: 129
积分: 109

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

异乡是故乡 说:

你的根文件系统出问题了, 换张卡试一试.

好的,我换张卡试试看

离线

#292 2020-03-21 14:29:40

yuanlwjt
会员
注册时间: 2019-10-23
已发帖子: 129
积分: 109

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

换了张SD可以了,但是按照
1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        sudo tar xvf output/images/rootfs.tar -C /media/bao/rootfs
这样子烧写到SD卡
偶尔几次就又启动不了,偶尔几次又可以

离线

#293 2020-03-21 14:31:15

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你把rootfs文件系统写坏了吗?  或者再换一张卡试一试。

离线

#294 2020-03-30 19:36:49

jengy
会员
注册时间: 2020-03-30
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

各位老大,我刷了V3s_TFCard.7z,我是一体的板子,用了_dock 设备树,可是网卡还是没看到,是什么情况呀?
是dts文件还要做修改吗?请不吝赐教。

log:

U-Boot SPL 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4016104 bytes read in 634 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe1a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[    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 s33920 r8192 d23424 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 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K 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 - 0xc0a37b00   ( 223 kB)
[    0.000000]        .bss : 0xc0a3ebec - 0xc0a8153c   ( 267 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000193] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000426] Console: colour dummy device 80x30
[    0.000464] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000480] pid_max: default: 32768 minimum: 301
[    0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000624] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001225] CPU: Testing write buffer coherency: ok
[    0.001606] /cpus/cpu@0 missing clock-frequency property
[    0.001630] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002066] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002239] Hierarchical SRCU implementation.
[    0.002732] smp: Bringing up secondary CPUs ...
[    0.002747] smp: Brought up 1 node, 1 CPU
[    0.002757] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002764] CPU: All CPU(s) started in SVC mode.
[    0.003531] devtmpfs: initialized
[    0.006677] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006973] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006999] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007167] pinctrl core: initialized pinctrl subsystem
[    0.008048] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008190] NET: Registered protocol family 16
[    0.008677] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009802] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009819] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023331] SCSI subsystem initialized
[    0.023635] usbcore: registered new interface driver usbfs
[    0.023704] usbcore: registered new interface driver hub
[    0.023803] usbcore: registered new device driver usb
[    0.024055] pps_core: LinuxPPS API ver. 1 registered
[    0.024068] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024093] PTP clock support registered
[    0.024322] Advanced Linux Sound Architecture Driver Initialized.
[    0.026178] clocksource: Switched to clocksource arch_sys_counter
[    0.036999] NET: Registered protocol family 2
[    0.037589] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037623] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037647] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037772] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037820] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038043] NET: Registered protocol family 1
[    0.038633] RPC: Registered named UNIX socket transport module.
[    0.038653] RPC: Registered udp transport module.
[    0.038659] RPC: Registered tcp transport module.
[    0.038664] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040625] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049604] NFS: Registering the id_resolver key type
[    0.049659] Key type id_resolver registered
[    0.049666] Key type id_legacy registered
[    0.049715] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.051190] random: fast init done
[    0.053994] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054019] io scheduler noop registered
[    0.054028] io scheduler deadline registered
[    0.054276] io scheduler cfq registered (default)
[    0.054290] io scheduler mq-deadline registered
[    0.054298] io scheduler kyber registered
[    0.058664] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127674] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.130946] console [ttyS0] disabled
[    0.151221] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.741916] console [ttyS0] enabled
[    0.750108] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[    0.756757] m25p80: probe of spi32766.0 failed with error -2
[    0.762967] libphy: Fixed MDIO Bus: probed
[    0.767734] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.773529] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.779313] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.785307] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.794892] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.800586] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.807816] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.813469] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.820693] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.825653] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.832628] libphy: stmmac: probed
[    0.837960] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.844499] ehci-platform: EHCI generic platform driver
[    0.850145] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.855767] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.863738] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.896194] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.903449] hub 1-0:1.0: USB hub found
[    0.907395] hub 1-0:1.0: 1 port detected
[    0.911889] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.918189] ohci-platform: OHCI generic platform driver
[    0.923762] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.930493] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.938454] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.011305] hub 2-0:1.0: USB hub found
[    1.015145] hub 2-0:1.0: 1 port detected
[    1.022794] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.032379] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.041390] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.048300] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.052851] i2c /dev entries driver
[    1.057877] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.067389] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.136223] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.196204] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.202595] usbcore: registered new interface driver usbhid
[    1.208266] usbhid: USB HID core driver
[    1.214142] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.222206] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.230865] NET: Registered protocol family 17
[    1.235451] Key type dns_resolver registered
[    1.239988] Registering SWP/SWPB emulation handler
[    1.251716] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.262392] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.278762] Console: switching to colour frame buffer device 100x30
[    1.291196] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.299828] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.311262] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.317113] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.325057] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.334326] hub 3-0:1.0: USB hub found
[    1.338495] mmc0: new high speed SDHC card at address b368
[    1.344629] hub 3-0:1.0: 1 port detected
[    1.348840] mmcblk0: mmc0:b368 CBADS 30.0 GiB
[    1.355532] using random self ethernet address
[    1.360101] using random host ethernet address
[    1.364963]  mmcblk0: p1 p2
[    1.369819] usb0: HOST MAC 02:51:3b:c0:fe:f4
[    1.374141] usb0: MAC c2:86:96:e9:19:df
[    1.378164] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.385642] g_cdc gadget: g_cdc ready
[    1.392015] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.400718] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:17:46 UTC (1066)
[    1.409260] vcc5v0: disabling
[    1.412238] ALSA device list:
[    1.415201]   #0: V3s Audio Codec
[    1.420572] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.429785] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.440045] mmc1: new high speed SDIO card at address 0001
[    1.555346] EXT4-fs (mmcblk0p2): recovery complete
[    1.562454] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.570666] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.578269] devtmpfs: mounted
[    1.582532] Freeing unused kernel memory: 1024K
[    1.685800] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

最近编辑记录 jengy (2020-03-30 19:42:02)

离线

#295 2020-03-31 09:19:00

jengy
会员
注册时间: 2020-03-30
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

以太网功能正常!设备树和驱动都已经开启以太网了。

@晕哥 我用了你发的 V3s_TFCard,为什么我的网卡在登录后用 ifconfig 命令没看到。

u-boot启动日志如下:

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4016104 bytes read in 634 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe1a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[    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

离线

#296 2020-03-31 09:22:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,389
积分: 9202

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

ifconfig -a





离线

#297 2020-03-31 12:33:06

jengy
会员
注册时间: 2020-03-30
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

嗯,找到网卡了,谢谢!

离线

#298 2020-04-13 08:38:19

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

Starting logging: OK
Initializing random number generator... done.
Starting network: OK
# ls
analogclock  lib          media        root         tmp
bin          lib32        mnt          run          usr
dev          linuxrc      opt          sbin         var
etc          lost+found   proc         sys
# ./analogclock -platform linuxfb
-/bin/sh: ./analogclock: Permission denied
# 

在运行QT文件的时候报错 Permission denied
请问是什么原因呢?

离线

#299 2020-04-13 08:45:47

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

没有执行属性吧, 试一试 chmod +x analogclock

离线

#300 2020-04-13 09:15:15

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

X3 说:

没有执行属性吧, 试一试 chmod +x analogclock


谢谢,按照你的方式已经可以了!

离线

#301 2020-04-22 15:46:24

whoam1
会员
注册时间: 2020-04-09
已发帖子: 18
积分: 18

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

多谢分享、大佬,请问怎么启动有线网络?

离线

#302 2020-05-07 10:00:58

yyb390931229
会员
注册时间: 2020-04-27
已发帖子: 7
积分: 7

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

搞了半天没起来,学习中感谢楼主

离线

#303 2020-05-08 08:58:53

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 488
积分: 393
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

为啥推荐vm,我用的virtual,请问这里面是有什么坑么

离线

#304 2020-05-08 09:07:57

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

mysteryli 说:

为啥推荐vm,我用的virtual,请问这里面是有什么坑么

virtual pc容易挂,换过几台电脑都一样,后来换VMWARE一直到今,很稳定。





离线

#305 2020-05-08 15:23:17

zyj
会员
注册时间: 2020-05-08
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

系统刷完后大部分时间无法启动,其少数断电后可以起来,但是系统起来后有时出现系统加载中途死机或无限重启的情况,有时启动后几分钟系统出现死机的情况

离线

#306 2020-05-09 12:21:40

JQH
会员
注册时间: 2020-05-09
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

是的,都没理解这句话,谢谢各位

离线

#307 2020-05-10 12:12:40

grantho
会员
注册时间: 2020-03-21
已发帖子: 70
积分: 6.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问串口控制台是ttyS0,而与SDC0引脚是复用的,从TF卡启动,控制台与TF卡都同时工作正常吗?

离线

#308 2020-05-10 12:14:04

有梦的地方
会员
注册时间: 2020-03-17
已发帖子: 284
积分: 284

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

grantho 说:

请问串口控制台是ttyS0,而与SDC0引脚是复用的,从TF卡启动,控制台与TF卡都同时工作正常吗?

只能二选一。

离线

#309 2020-05-10 12:18:53

grantho
会员
注册时间: 2020-03-21
已发帖子: 70
积分: 6.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

有梦的地方 说:

只能二选一。

那为什么看到评论中的打印,控制台工作正常,TF卡文件系统分区挂载也正常呢?不大明白

最近编辑记录 grantho (2020-05-10 12:19:25)

离线

#310 2020-05-10 12:45:36

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

grantho 说:

那为什么看到评论中的打印,控制台工作正常,TF卡文件系统分区挂载也正常呢?不大明白

是另外一组串口0,详情参考荔枝派zero原理图。





离线

#311 2020-05-11 16:14:08

lhb882
会员
注册时间: 2020-03-27
已发帖子: 10
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请问有没有32M得sunxi工具

离线

#312 2020-05-11 16:19:04

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

lhb882 说:

请问有没有32M得sunxi工具

https://whycan.cn/t_444.html





离线

#313 2020-05-21 21:13:09

yvan
会员
注册时间: 2019-10-16
已发帖子: 5
积分: 5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

膜拜大佬! 请问一下要如何支持双屏异显示啊?

离线

#314 2020-05-28 09:59:43

andrewchen175
会员
注册时间: 2020-04-26
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

请教各位大咖,按步骤进行烧录之后,插卡启动,屏幕只出现一张LOGO图,然后图没了,屏幕亮但没内容,LED 在闪,这样是正常的吗?如果不正常,会是哪里出问题,在线等,多谢了

离线

#315 2020-05-28 10:16:48

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

正常,接串口终端操作吧。





离线

#316 2020-05-31 14:31:01

TDA2030
会员
注册时间: 2019-10-17
已发帖子: 12
积分: 12

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

编译老是失败,好想下载楼主打包好的镜像,给我个机会

离线

#317 2020-05-31 14:37:26

TDA2030
会员
注册时间: 2019-10-17
已发帖子: 12
积分: 12

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

编译u-boot 报错:arch/arm/dts/sun8i-v3s-licheepi-zero.dtb: Warning (simple_bus_reg): Node /soc/interrupt-controller@01c81000 simple-bus unit address format error, expected "1c81000"
重新clone后也是一个样,求救大神

离线

#318 2020-06-07 08:57:56

andrewchen175
会员
注册时间: 2020-04-26
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

社区主任好,版主好,楼主好,这个启动系统已经建立,同时学到了一些linux的入门操作,谢谢楼主。接下来应该怎么写用户程序?怎么把用户程序加入系统中运行?有没有类似“helloword!"之类的例程详细介绍?翻了半天没发现有相关主题,求相关资源,入门小白也能看懂的。

离线

#319 2020-06-07 09:11:44

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

andrewchen175 说:

社区主任好,版主好,楼主好,这个启动系统已经建立,同时学到了一些linux的入门操作,谢谢楼主。接下来应该怎么写用户程序?怎么把用户程序加入系统中运行?有没有类似“helloword!"之类的例程详细介绍?翻了半天没发现有相关主题,求相关资源,入门小白也能看懂的。

写一个简单的 HelloWorld app程序, 用gcc编译,

比如路径是 /opt/helloworld

你创建 /etc/profile.d/app 文件

添加一行: /opt/helloworld

就能开机执行了.





离线

#320 2020-06-17 21:25:09

forcaowu
会员
注册时间: 2020-06-17
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

感觉这个站还比较靠谱些,其他地方找资料好少

离线

#321 2020-06-18 16:47:20

panchuane
会员
注册时间: 2020-06-18
已发帖子: 2
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

刚买了这个板子,学习一下你的经验。很有用,谢谢了。

离线

#322 2020-06-29 16:13:44

liuy
会员
注册时间: 2020-06-24
已发帖子: 10
积分: 49

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这个F1C100S能不能用SD卡烧录SPI  NAND啊

离线

#323 2020-07-03 16:35:04

JiuHuan
会员
注册时间: 2020-06-28
已发帖子: 13
积分: 13

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

对于buildroot,翻了又翻。 一直不能理解,到底需要勾选哪些(除了 cpu 和 工具链 必配置之外的)。 百度找的相关资料也描述的不多。这块 有没有好的资料推荐。

离线

#324 2020-07-08 14:09:17

174high
会员
注册时间: 2020-07-08
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

不能执行 /sbin/init 。 启动的时候,请问是什么情况。

离线

#325 2020-07-08 15:32:21

174high
会员
注册时间: 2020-07-08
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥 说:

是不是已经被勾选了, 看下 output/target/usr/bin 目录, 有没有 ts_xxxx 文件.

buildroot 版本多少合适呢?

离线

#326 2020-07-12 21:34:21

v3s_tester
会员
注册时间: 2020-07-12
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

第一次接触V3S,想自己编译uboot,内核和文件系统,然后烧到TF卡中。这篇文章正好是需要的,学习了!

离线

#327 2020-07-17 12:30:03

selected
会员
注册时间: 2020-04-10
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

刚入门这个荔枝派zero,把linux源码、设备树编译好了,那个跟文件系统是真的难受。。。求讲解视频

离线

#328 2020-07-17 12:50:23

selected
会员
注册时间: 2020-04-10
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

根文件系统编译需要从网络上下载其他资源吗??进度条一直卡着,等待很久才跳出去,死活下载不了。哎。

离线

#329 2020-07-18 07:35:57

selected
会员
注册时间: 2020-04-10
已发帖子: 3
积分: 3

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

根文件系统的版本:buildroot-2017.08.1.tar.gz  ubantu用的是16的版本 ,编译的时候下载很多资源 例如uclibc 等等,进度条不走,可以把获取源文件的网址换成一个网速快的嘛?

离线

#330 2020-07-18 08:17:28

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

selected 说:

根文件系统的版本:buildroot-2017.08.1.tar.gz  ubantu用的是16的版本 ,编译的时候下载很多资源 例如uclibc 等等,进度条不走,可以把获取源文件的网址换成一个网速快的嘛?

建议在vultr的日本vps上面编译, 没有进度条问题,可以按时长租用,销毁实例停止收费:

https://whycan.cn/t_3759.html
https://whycan.cn/t_3884.html

其他的不方便多说。





离线

#331 2020-08-05 21:03:50

白菜爱西瓜
会员
注册时间: 2020-08-05
已发帖子: 9
积分: 9

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这里的内容下载下来试试看,希望可以解决啊

离线

#332 2020-08-07 16:05:23

haxxjj77
会员
注册时间: 2020-08-07
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

写的很详细真好,新手都能照搬操作下来,什么时候能出一个烧写SPIFLASH的教程就好了,期待!

离线

#333 2020-08-08 09:52:59

hilam8899
会员
注册时间: 2020-08-08
已发帖子: 10
积分: 0

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好资料,这里的内容下载下来试试看,谢谢!

离线

#334 2020-08-10 19:18:59

popmark
会员
注册时间: 2020-04-15
已发帖子: 2
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

刚刚入手zero dock,好好读了一下,受益匪浅

离线

#335 2020-08-11 00:35:03

yongzong
会员
注册时间: 2020-08-11
已发帖子: 7
积分: 7

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这里的内容下载下来试试看,希望可以解决啊

离线

#336 2020-08-12 09:38:19

jkl
会员
注册时间: 2019-11-18
已发帖子: 267
积分: 150.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

沉鱼 说:

但是lcd上出现了用户登陆提示,这种情况你把 uboot,设备树, Linux都用我上面写的。
log跑屏幕上去这个是在哪里配置的,我现在还没找到,如果你找到麻烦跟帖一下。

你好,请问log跑到屏幕上这个问题您解决了吗?

离线

#337 2020-09-10 20:24:41

andrewchen175
会员
注册时间: 2020-04-26
已发帖子: 24
积分: 24

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

想把Vrtc 和其它3.3V分开,找不到J12和R6,求荔枝派Zero V3s开发板的PCB丝印图,多谢先!

离线

#338 2020-12-15 11:04:07

xcxd
会员
注册时间: 2020-11-25
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

好不容易把串口调试通了,但是发现串口波特率设置高了(比如115200)就不能通信了,怎么让高频率的 也能用,请教大神指点

离线

#339 2021-04-02 03:40:53

yelong98
会员
注册时间: 2020-06-03
已发帖子: 97
积分: 59.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

又一个入坑的重头开始炒作业

离线

#340 2021-04-02 03:41:48

yelong98
会员
注册时间: 2020-06-03
已发帖子: 97
积分: 59.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

这个上手教程贴有更新么?看起来还是3年前的了

离线

#341 2021-04-02 10:52:47

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 488
积分: 393
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

最高只能用到115200

xcxd 说:

好不容易把串口调试通了,但是发现串口波特率设置高了(比如115200)就不能通信了,怎么让高频率的 也能用,请教大神指点

离线

#342 2021-04-03 01:17:44

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 488
积分: 393
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

感谢分享,亲测成功运行,可以扫描到wifi的SSID了,验证了硬件没问题,回头会测试一下是否可以连接并上网!

千石级灯 说:

@晕哥
晕哥这次我终于调试好v3s的esp8089的驱动了呢
(1)下载源码 https://github.com/al177/esp8089
修改Makefile,修改如下的内容:
KVERS_UNAME = 4.13.16-licheepi-zero+
KVERS_ARCH = arm
KBUILD ?=/home/gec/v3s/linux4.13-y/linux
modules:
    $(MAKE) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C $(KBUILD) M=$(SRC_DIR)
然后直接在文件夹内make 即可生成esp8089.ko文件
(2)参考RTL8723bs的配置方法
a.wpa_supplicant-2.6交叉编译
使用wpa_supplicant与wpa_cli相关的工具测试wifi

(1)1. libnl交叉编译
下载:https://www.infradead.org/~tgr/libnl/files/libnl-1.1.4.tar.gz

解压:tar zxvf libnl-1.1.4.tar.gz
          cd libnl-1.1.4/
配置
./configure --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out
删除:(这一步一定不能忘记)
rm lib/libnl.a
可能导致编译报错(编译出错Relocations in generic ELF (EM: 62))
编译:make CC=arm-linux-gnueabihf-gcc AR=aarch64-linux-gnu-ar LD=arm-linux-gnueabihf-ld
          make install
(2)openssl-1.0.0交叉编译
下载:https://www.openssl.org/source/old/1.0.1/openssl-1.0.1s.tar.gz

解压:tar -xzvf  openssl-1.0.0.tart.gz
配置:

./config no-asm shared --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out

修改makfile:

(1)修改交叉编译器
CC= gcc
AR= ar $(ARFLAGS) r
RANLIB= /usr/bin/ranlib
NM= nm

修改为:
CC=arm-linux-gnueabihf-gcc
AR= arm-linux-gnueabihf-ar $(ARFLAGS) r
RANLIB= arm-linux-gnueabihf-gcc-ranlib
NM= arm-linux-gnueabihf-gcc-nm
(2)去掉里面的-m64



make make install
备注:
no-asm是在交叉编译过程中不使用汇编代码代码加速编译过程.原因是它的汇编代码是对arm格式不支持的。我试过了,如果没有这个参数,你的交叉编译一定出错。shared生成动态连接库。prefix=路径  就是你的安装目录。

3. wpa_supplicant交叉编译

下载:http://hostap.epitest.fi/releases/wpa_supplicant-2.6.tar.gz

解压:tar -zxvf wpa_supplicant-2.6.tar.gz
           cd  wpa_supplicant-2.6/wpa_supplicant

拷贝配置:
          cp defconfig .config

修改.config
(-O后面不能有空格)
CC=arm-linux-gnueabihf-gcc -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib
CFLAGS += -I/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/include
LIBS += -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib

makefile修改:(这里是为了生成静态链接的bin文件)
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
    @$(E) "  LD " $@

修改为
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS) -lm -lpthread
    @$(E) "  LD " $@

wpa_cli: $(OBJS_c)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

修改为
wpa_cli: $(OBJS_c)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

编译:
make
即可生成静态链接的wpa_supplicant/wpa_cli工具,不需要依赖其他的库文件。

工具wpa_cli ,wpa_passphrase,wpa_supplicant拷贝进开发板的/bin 目录





三,在开发板中设置
(1)insmod esp8089.ko

然后输入ifconfig wlan0 up命令启动wlan0

(3)建立 /etc/wpa_supplicant.conf 文件:
#可有可无,没有的话无法用wpa_cli terminate来关闭wpa_supplicant
ctrl_interface=/var/run/wpa_supplicant
# 确保只有root用户能读取WPA的配置,可有可无,尤其是在嵌入式设备上
ctrl_interface_group=0
# 使用wpa_supplicant来扫描和选择AP,也可以设置成0或2,但只有1才能正确工作
ap_scan=1
#设置需要链接上的网络信息
network={
    ssid="unicompy1F"
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="unicomp#38468350"
    priority=5
}
(4)输入命令wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
使用这个命令来链接上wifi
测试wlan0:            udhcpc -i wlan0

补充:运维常用linux命令整理
1.临时添加
1 route add default gw 192.168.1.4
2.永久添加
12 vim /etc/sysconfig/networkGATEWAY=192.168.1.4

(5)配置网络ping通外网部分了

一.手动测试是否成功加载网卡驱动,可执行如下命令:ifconfig eth0 192.168.1.218 up
二。以下是在配置好内核以及成功加载网卡的前提下实现能够自动配置网络,能够ping通的步骤
(1)修改 /etc/network/interfaces
即vi /etc/network/interfaces后添加如下语句:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.218    # 3 你要变化的IP地址
gateway 192.168.1.251   (该网关最好需要设置成跟电脑的网关一致,我这里是 192.168.1.251,跟路由器设置相关)
netmask 255.255.255.0

(2)vi  /etc/resolv.conf
添加以下语句
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114

(3)为了能够实现自动开机设置
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114
可以  vi   /etc/init.d/rcS
然后添加以下三句即可:
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 202.96.134.33" >> /etc/resolv.conf
echo "nameserver 114.114.114" >> /etc/resolv.conf

之后就可以直接ping通了!!!

离线

#343 2021-04-03 03:35:02

yelong98
会员
注册时间: 2020-06-03
已发帖子: 97
积分: 59.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

折腾到后半夜终于正常登录了,但是uboot可以看到lcd有输出,之后一直保持蓝色屏幕,串口后台能登录,请问大佬怎么可以lcdu也能显示出来登录界面?

离线

#344 2021-04-04 22:05:34

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 488
积分: 393
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

来还愿了,测试速度看下图,内网ssh传输,天线设计的不好,所以只是勉强能用

mysteryli 说:

感谢分享,亲测成功运行,可以扫描到wifi的SSID了,验证了硬件没问题,回头会测试一下是否可以连接并上网!

QQ图片20210404220435.png

离线

#345 2021-09-26 20:47:19

yzg092
会员
注册时间: 2021-09-26
已发帖子: 1
积分: 0.5

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

你好,我直接写入你发布的文件TFCard.7z总是不断重启,换了2张卡也一样。
下面是我的启动信息

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
4016104 bytes read in 633 ms (6.1 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe1a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[    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 s33920 r8192 d23424 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 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K 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 - 0xc0a37b00   ( 223 kB)
[    0.000000]        .bss : 0xc0a3ebec - 0xc0a8153c   ( 267 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000193] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000427] Console: colour dummy device 80x30
[    0.000465] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000482] pid_max: default: 32768 minimum: 301
[    0.000608] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000622] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001238] CPU: Testing write buffer coherency: ok
[    0.001614] /cpus/cpu@0 missing clock-frequency property
[    0.001637] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002082] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002260] Hierarchical SRCU implementation.
[    0.002752] smp: Bringing up secondary CPUs ...
[    0.002768] smp: Brought up 1 node, 1 CPU
[    0.002777] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002783] CPU: All CPU(s) started in SVC mode.
[    0.003561] devtmpfs: initialized
[    0.006709] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007007] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007034] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007201] pinctrl core: initialized pinctrl subsystem
[    0.008073] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008217] NET: Registered protocol family 16
[    0.008704] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009841] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009859] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023348] SCSI subsystem initialized
[    0.023654] usbcore: registered new interface driver usbfs
[    0.023724] usbcore: registered new interface driver hub
[    0.023826] usbcore: registered new device driver usb
[    0.024074] pps_core: LinuxPPS API ver. 1 registered
[    0.024086] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024109] PTP clock support registered
[    0.024336] Advanced Linux Sound Architecture Driver Initialized.
[    0.026198] clocksource: Switched to clocksource arch_sys_counter
[    0.037042] NET: Registered protocol family 2
[    0.037624] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037658] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037682] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037807] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037856] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038076] NET: Registered protocol family 1
[    0.038651] RPC: Registered named UNIX socket transport module.
[    0.038671] RPC: Registered udp transport module.
[    0.038677] RPC: Registered tcp transport module.
[    0.038683] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049604] NFS: Registering the id_resolver key type
[    0.049657] Key type id_resolver registered
[    0.049665] Key type id_legacy registered
[    0.049712] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.051191] random: fast init done
[    0.054018] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054043] io scheduler noop registered
[    0.054051] io scheduler deadline registered
[    0.054299] io scheduler cfq registered (default)
[    0.054312] io scheduler mq-deadline registered
[    0.054319] io scheduler kyber registered
[    0.058665] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127881] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.131112] console [ttyS0] disabled
[    0.151384] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.742080] console [ttyS0] enabled
[    0.750265] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[    0.756919] m25p80: probe of spi32766.0 failed with error -2
[    0.763133] libphy: Fixed MDIO Bus: probed
[    0.767882] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.773678] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.779460] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.785453] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.795037] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.800727] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.807957] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.813611] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.820838] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.825797] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.832770] libphy: stmmac: probed
[    0.838095] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.844634] ehci-platform: EHCI generic platform driver
[    0.850276] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.855897] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.863874] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.896215] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.903461] hub 1-0:1.0: USB hub found
[    0.907419] hub 1-0:1.0: 1 port detected
[    0.911904] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.918198] ohci-platform: OHCI generic platform driver
[    0.923767] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.930496] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.938456] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.011323] hub 2-0:1.0: USB hub found
[    1.015160] hub 2-0:1.0: 1 port detected
[    1.022813] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.032402] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.041418] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.048325] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.052877] i2c /dev entries driver
[    1.057905] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.067416] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.136247] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.186271] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.196228] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.202628] usbcore: registered new interface driver usbhid
[    1.208282] usbhid: USB HID core driver
[    1.213010] mmc0: new high speed SDHC card at address aaaa
[    1.219288] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
[    1.225830] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.233919] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.240418]  mmcblk0: p1 p2
[    1.248541] NET: Registered protocol family 17
[    1.253107] Key type dns_resolver registered
[    1.257653] Registering SWP/SWPB emulation handler
[    1.267152] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.277839] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.293997] Console: switching to colour frame buffer device 100x30
[    1.306476] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.315054] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.326576] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.332346] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.341491] hub 3-0:1.0: USB hub found
[    1.345356] hub 3-0:1.0: 1 port detected
[    1.350673] using random self ethernet address
[    1.355163] using random host ethernet address
[    1.361788] usb0: HOST MAC 36:a3:e9:ea:2b:58
[    1.366103] usb0: MAC da:14:24:62:2a:9c
[    1.370110] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.377625] g_cdc gadget: g_cdc ready
[    1.383985] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.392507] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:08:04 UTC (484)
[    1.400920] vcc5v0: disabling
[    1.403898] ALSA device list:
[    1.406921]   #0: V3s Audio Codec
[    1.414081] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.425191] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.462122] EXT4-fs (mmcblk0p2): recovery complete
[    1.467034] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.475185] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.484913] devtmpfs: error mounting -2
[    1.489977] Freeing unused kernel memory: 1024K
[    1.494762] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.508921] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[    1.516219] Hardware name: Allwinner sun8i Family
[    1.520955] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[    1.528701] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[    1.535927] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[    1.542801] [<c011b05c>] (panic) from [<c06870d4>] (kernel_init+0x100/0x110)
[    1.549846] [<c06870d4>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[    1.557418] Rebooting in 5 seconds..

离线

#346 2021-10-01 00:29:30

sunxiang
会员
注册时间: 2021-05-05
已发帖子: 222
积分: 121

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

切换到主线试试,哈哈

离线

#347 2021-10-02 01:07:28

sunxiang
会员
注册时间: 2021-05-05
已发帖子: 222
积分: 121

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

现在有个问题,我看大家的背光脚都是pb4,pb5。因为我这个板子是参照樱桃派画的,背光脚在pb2。跑bsp版本的时候,lcd可以正常亮起来。我不知道,如果切换主线的话,pb2是可以模拟pwm,以实现背光吗?可以给一个思路吗?

离线

#348 2021-10-02 08:14:34

tigger
Moderator
注册时间: 2021-06-18
已发帖子: 172
积分: 111

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

sunxiang 说:

现在有个问题,我看大家的背光脚都是pb4,pb5。因为我这个板子是参照樱桃派画的,背光脚在pb2。跑bsp版本的时候,lcd可以正常亮起来。我不知道,如果切换主线的话,pb2是可以模拟pwm,以实现背光吗?可以给一个思路吗?

不行,定时器IO模拟的PWM第一浪费CPU,第二不准。

离线

#349 2021-11-20 14:01:24

TwoOne
会员
注册时间: 2021-08-06
已发帖子: 2
积分: 2

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

谢谢晕哥。我自己编译到uboot就不动了

离线

#350 2021-12-12 20:46:32

jack123321
会员
注册时间: 2021-12-11
已发帖子: 10
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我搞了两天,硬是没搞出来。。。

离线

#351 2021-12-13 13:14:37

jack123321
会员
注册时间: 2021-12-11
已发帖子: 10
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

楼主一开始那个修改文件是增加还是全删除了用您的?

离线

#352 2021-12-13 13:20:53

jack123321
会员
注册时间: 2021-12-11
已发帖子: 10
积分: 10

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

3). 执行编译, 生成文件跟文件系统。   执行编译是在bulildroot目录下执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
这个吗?

离线

#353 2021-12-13 13:32:49

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

jack123321 说:

3). 执行编译, 生成文件跟文件系统。   执行编译是在bulildroot目录下执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
这个吗?

是的。


这个帖子过时了,建议用这个:

(V3s/V3x/S3/S3L/R11通吃)小智V3x开发板smallwitpi lite u-boot/linux/buildroot测试
https://whycan.com/t_7248.html#p69168





离线

#354 2022-02-13 19:02:42

zjf0519
会员
注册时间: 2022-02-13
已发帖子: 22
积分: 37

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

图形界面QT的7寸电容屏有没有成功驱动的镜像的?

离线

#355 2022-03-13 10:21:18

东方总败
会员
注册时间: 2022-02-28
已发帖子: 33
积分: 48

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

晕哥有没有移植过H616的uboot,我用的是香橙派zero2开发板,自己移植uboot一直没成功,头大,可以指点一下吗

离线

#358 2022-06-15 00:27:50

hahahah
会员
注册时间: 2022-06-15
已发帖子: 4
积分: 4

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我也遇到了5秒重启的问题,全部都是按照教程来的,前几次烧录成功正常启动可以进系统,后来又试了几次一直都有问题,不能理解,我前面整套流程下来至少2次都成功了,后面就出现这个问题,方法一模一样就是不对,我也是醉了

离线

#359 2022-07-25 16:20:51

tevada2010
会员
注册时间: 2022-07-23
已发帖子: 54
积分: 69

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

I compile buildroot it error why

freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   ^~~~~
make[5]: *** [Makefile:1915: freadahead.o] Error 1
make[5]: *** Waiting for unfinished jobs....
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
    ^~~~~
make[5]: *** [Makefile:1915: fseeko.o] Error 1
make[4]: *** [Makefile:1674: all] Error 2
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[2]: *** [Makefile:1528: all] Error 2

离线

#361 2022-08-31 11:00:10

zevinl
会员
注册时间: 2021-06-08
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我怎么bulidroot出错?而且tf卡第一个分区挂载不了

离线

#362 2022-10-13 22:53:01

lsmcld
会员
所在地: 成都
注册时间: 2021-12-19
已发帖子: 27
积分: 12
个人网站

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我的荔枝派吃灰了

离线

#363 2023-06-05 10:30:33

cpl
会员
注册时间: 2023-06-02
已发帖子: 1
积分: 1

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

我按教程试了一遍,使用tf卡启动,结果lcd没反应,连uart0串口都没识别出来T T

离线

#365 2023-08-30 21:21:18

砍柴少年
会员
注册时间: 2023-08-30
已发帖子: 6
积分: 6

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

小白发问,想知道为啥官方镜像,8G的TF卡,烧录后可用的内存只有几百兆啊:(

离线

#366 2024-03-13 12:06:37

paul_zdchun
会员
注册时间: 2024-01-23
已发帖子: 26
积分: 6

Re: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

内存几百兆?内存这个概念看来要好好定义一下

砍柴少年 说:

小白发问,想知道为啥官方镜像,8G的TF卡,烧录后可用的内存只有几百兆啊:(

离线

页脚

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

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